@trusted-solutions/sdit.models 0.28.0-alpha.9 → 0.28.0

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 (408) hide show
  1. package/base-data.d.ts +15 -15
  2. package/base-data.js +2 -2
  3. package/constants/client-endpoints.d.ts +7 -7
  4. package/constants/client-endpoints.js +10 -10
  5. package/constants/client-endpoints.js.map +1 -1
  6. package/constants/district-zip.taiwan.d.ts +7 -7
  7. package/constants/district-zip.taiwan.js +499 -499
  8. package/constants/index.d.ts +3 -3
  9. package/constants/index.js +6 -6
  10. package/constants/industry.d.ts +4 -4
  11. package/constants/industry.js +27 -27
  12. package/data-service/config.d.ts +62 -62
  13. package/data-service/config.js +895 -895
  14. package/data-service/enum.d.ts +82 -82
  15. package/data-service/enum.js +101 -101
  16. package/data-service/index.d.ts +4 -4
  17. package/data-service/index.js +7 -7
  18. package/data-service/lambda.d.ts +92 -92
  19. package/data-service/lambda.js +3 -3
  20. package/data-service/model.d.ts +79 -79
  21. package/data-service/model.js +190 -190
  22. package/enums/analysis.d.ts +201 -201
  23. package/enums/analysis.js +213 -213
  24. package/enums/block-storage.d.ts +4 -4
  25. package/enums/block-storage.js +8 -8
  26. package/enums/close-type.d.ts +4 -4
  27. package/enums/close-type.js +8 -8
  28. package/enums/cognito-filter-key.d.ts +14 -14
  29. package/enums/cognito-filter-key.js +19 -19
  30. package/enums/cognito-operator.d.ts +4 -4
  31. package/enums/cognito-operator.js +8 -8
  32. package/enums/company.d.ts +4 -4
  33. package/enums/company.js +8 -8
  34. package/enums/customer.d.ts +23 -23
  35. package/enums/customer.js +29 -29
  36. package/enums/discount-module.d.ts +18 -18
  37. package/enums/discount-module.js +27 -27
  38. package/enums/dynamodb-operator.d.ts +66 -66
  39. package/enums/dynamodb-operator.js +77 -77
  40. package/enums/error-type.d.ts +109 -109
  41. package/enums/error-type.js +145 -145
  42. package/enums/event.d.ts +29 -29
  43. package/enums/event.js +36 -36
  44. package/enums/external.d.ts +3 -3
  45. package/enums/external.js +7 -7
  46. package/enums/filter-keys.d.ts +9 -9
  47. package/enums/filter-keys.js +15 -15
  48. package/enums/import-data.d.ts +3 -3
  49. package/enums/import-data.js +7 -7
  50. package/enums/index.d.ts +41 -41
  51. package/enums/index.js +44 -44
  52. package/enums/inventory.d.ts +7 -7
  53. package/enums/inventory.js +11 -11
  54. package/enums/invoice-carrier-type.d.ts +5 -5
  55. package/enums/invoice-carrier-type.js +9 -9
  56. package/enums/invoice-error-name.d.ts +4 -4
  57. package/enums/invoice-error-name.js +8 -8
  58. package/enums/invoice-provider.d.ts +6 -5
  59. package/enums/invoice-provider.js +10 -9
  60. package/enums/invoice-provider.js.map +1 -1
  61. package/enums/invoice-status-type.d.ts +4 -4
  62. package/enums/invoice-status-type.js +8 -8
  63. package/enums/invoice-type.d.ts +6 -6
  64. package/enums/invoice-type.js +10 -10
  65. package/enums/language.d.ts +4 -4
  66. package/enums/language.js +8 -8
  67. package/enums/number-of-customers-group-type.d.ts +12 -12
  68. package/enums/number-of-customers-group-type.js +16 -16
  69. package/enums/offline-sync-type.d.ts +7 -7
  70. package/enums/offline-sync-type.js +11 -11
  71. package/enums/order-action-name.d.ts +4 -4
  72. package/enums/order-action-name.js +8 -8
  73. package/enums/order-item.d.ts +13 -13
  74. package/enums/order-item.js +18 -18
  75. package/enums/order-source-type.d.ts +5 -5
  76. package/enums/order-source-type.js +9 -9
  77. package/enums/order-status.d.ts +18 -18
  78. package/enums/order-status.js +22 -22
  79. package/enums/payment-parameters.d.ts +18 -18
  80. package/enums/payment-parameters.js +25 -25
  81. package/enums/payment-service-provider.d.ts +28 -28
  82. package/enums/payment-service-provider.js +32 -32
  83. package/enums/payment-type.d.ts +35 -35
  84. package/enums/payment-type.js +39 -39
  85. package/enums/permission-name.d.ts +30 -30
  86. package/enums/permission-name.js +34 -34
  87. package/enums/printer.d.ts +57 -57
  88. package/enums/printer.js +68 -68
  89. package/enums/real-time-switch-type.d.ts +8 -8
  90. package/enums/real-time-switch-type.js +12 -12
  91. package/enums/receipt.d.ts +4 -4
  92. package/enums/receipt.js +8 -8
  93. package/enums/serve-type.d.ts +6 -6
  94. package/enums/serve-type.js +10 -10
  95. package/enums/server-error.d.ts +4 -4
  96. package/enums/server-error.js +8 -8
  97. package/enums/store.d.ts +15 -15
  98. package/enums/store.js +21 -21
  99. package/enums/table-index.d.ts +25 -25
  100. package/enums/table-index.js +32 -32
  101. package/enums/table.d.ts +6 -6
  102. package/enums/table.js +10 -10
  103. package/enums/tax-type.d.ts +5 -5
  104. package/enums/tax-type.js +9 -9
  105. package/enums/user.d.ts +8 -8
  106. package/enums/user.js +13 -13
  107. package/lambda/contract.d.ts +97 -97
  108. package/lambda/contract.js +2 -2
  109. package/lambda/error/create-order-when-item-sold-out.d.ts +6 -6
  110. package/lambda/error/create-order-when-item-sold-out.js +2 -2
  111. package/lambda/error/index.d.ts +1 -1
  112. package/lambda/error/index.js +4 -4
  113. package/lambda/index.d.ts +10 -10
  114. package/lambda/index.js +13 -13
  115. package/lambda/line-notify.d.ts +8 -8
  116. package/lambda/line-notify.js +4 -4
  117. package/lambda/online-integration.d.ts +110 -110
  118. package/lambda/online-integration.js +2 -2
  119. package/lambda/online-ordering.d.ts +290 -281
  120. package/lambda/online-ordering.js +2 -2
  121. package/lambda/override.d.ts +23 -23
  122. package/lambda/override.js +2 -2
  123. package/lambda/pos-integration.d.ts +19 -19
  124. package/lambda/pos-integration.js +2 -2
  125. package/lambda/request/analysis.d.ts +4 -4
  126. package/lambda/request/analysis.js +2 -2
  127. package/lambda/request/chain.d.ts +30 -30
  128. package/lambda/request/chain.js +2 -2
  129. package/lambda/request/closing.d.ts +64 -64
  130. package/lambda/request/closing.js +2 -2
  131. package/lambda/request/common.d.ts +19 -19
  132. package/lambda/request/common.js +2 -2
  133. package/lambda/request/custom-analysis-group.d.ts +19 -19
  134. package/lambda/request/custom-analysis-group.js +2 -2
  135. package/lambda/request/customer.d.ts +19 -19
  136. package/lambda/request/customer.js +2 -2
  137. package/lambda/request/discount-module.d.ts +50 -50
  138. package/lambda/request/discount-module.js +2 -2
  139. package/lambda/request/event.d.ts +9 -9
  140. package/lambda/request/event.js +2 -2
  141. package/lambda/request/import-data.d.ts +15 -15
  142. package/lambda/request/import-data.js +2 -2
  143. package/lambda/request/index.d.ts +20 -20
  144. package/lambda/request/index.js +23 -23
  145. package/lambda/request/invoice.d.ts +96 -93
  146. package/lambda/request/invoice.js +2 -2
  147. package/lambda/request/kiosk.d.ts +15 -15
  148. package/lambda/request/kiosk.js +2 -2
  149. package/lambda/request/menu.d.ts +89 -89
  150. package/lambda/request/menu.js +2 -2
  151. package/lambda/request/offline-sync.d.ts +33 -33
  152. package/lambda/request/offline-sync.js +2 -2
  153. package/lambda/request/order.d.ts +49 -49
  154. package/lambda/request/order.js +2 -2
  155. package/lambda/request/payment.d.ts +19 -19
  156. package/lambda/request/payment.js +2 -2
  157. package/lambda/request/printer.d.ts +42 -42
  158. package/lambda/request/printer.js +2 -2
  159. package/lambda/request/real-time-switch.d.ts +33 -33
  160. package/lambda/request/real-time-switch.js +2 -2
  161. package/lambda/request/receipt.d.ts +5 -5
  162. package/lambda/request/receipt.js +2 -2
  163. package/lambda/request/store.d.ts +77 -77
  164. package/lambda/request/store.js +2 -2
  165. package/lambda/request/user.d.ts +29 -29
  166. package/lambda/request/user.js +2 -2
  167. package/lambda/response/analysis.d.ts +4 -4
  168. package/lambda/response/analysis.js +2 -2
  169. package/lambda/response/chain.d.ts +14 -14
  170. package/lambda/response/chain.js +2 -2
  171. package/lambda/response/closing.d.ts +14 -14
  172. package/lambda/response/closing.js +3 -3
  173. package/lambda/response/common.d.ts +15 -15
  174. package/lambda/response/common.js +2 -2
  175. package/lambda/response/custom-analysis-group.d.ts +14 -14
  176. package/lambda/response/custom-analysis-group.js +7 -7
  177. package/lambda/response/customer.d.ts +12 -12
  178. package/lambda/response/customer.js +2 -2
  179. package/lambda/response/discount-module.d.ts +28 -28
  180. package/lambda/response/discount-module.js +2 -2
  181. package/lambda/response/event.d.ts +4 -4
  182. package/lambda/response/event.js +2 -2
  183. package/lambda/response/index.d.ts +17 -17
  184. package/lambda/response/index.js +20 -20
  185. package/lambda/response/invoice.d.ts +34 -34
  186. package/lambda/response/invoice.js +2 -2
  187. package/lambda/response/kiosk.d.ts +12 -12
  188. package/lambda/response/kiosk.js +2 -2
  189. package/lambda/response/menu.d.ts +54 -54
  190. package/lambda/response/menu.js +2 -2
  191. package/lambda/response/order.d.ts +20 -20
  192. package/lambda/response/order.js +2 -2
  193. package/lambda/response/payment.d.ts +199 -199
  194. package/lambda/response/payment.js +2 -2
  195. package/lambda/response/printer.d.ts +22 -22
  196. package/lambda/response/printer.js +2 -2
  197. package/lambda/response/receipt.d.ts +4 -4
  198. package/lambda/response/receipt.js +2 -2
  199. package/lambda/response/store.d.ts +38 -38
  200. package/lambda/response/store.js +2 -2
  201. package/lambda/response/user.d.ts +17 -17
  202. package/lambda/response/user.js +2 -2
  203. package/lambda/subscription.d.ts +141 -141
  204. package/lambda/subscription.js +9 -9
  205. package/models/analysis-summary.d.ts +23 -23
  206. package/models/analysis-summary.js +2 -2
  207. package/models/analysis.d.ts +56 -56
  208. package/models/analysis.js +2 -2
  209. package/models/appointment.d.ts +18 -18
  210. package/models/appointment.js +2 -2
  211. package/models/array-mutations.d.ts +8 -8
  212. package/models/array-mutations.js +2 -2
  213. package/models/chain.d.ts +5 -5
  214. package/models/chain.js +2 -2
  215. package/models/cognito-filters.d.ts +21 -21
  216. package/models/cognito-filters.js +2 -2
  217. package/models/contract.d.ts +31 -31
  218. package/models/contract.js +2 -2
  219. package/models/csv/customer.d.ts +18 -18
  220. package/models/csv/customer.js +2 -2
  221. package/models/csv/index.d.ts +1 -1
  222. package/models/csv/index.js +4 -4
  223. package/models/custom-analysis-group.d.ts +5 -5
  224. package/models/custom-analysis-group.js +2 -2
  225. package/models/customer.d.ts +33 -32
  226. package/models/customer.js +2 -2
  227. package/models/discount-module/bundle-discount-module.d.ts +9 -9
  228. package/models/discount-module/bundle-discount-module.js +2 -2
  229. package/models/discount-module/discount-module.d.ts +92 -92
  230. package/models/discount-module/discount-module.js +2 -2
  231. package/models/discount-module/entire-order-discount-module.d.ts +6 -6
  232. package/models/discount-module/entire-order-discount-module.js +2 -2
  233. package/models/discount-module/index.d.ts +3 -3
  234. package/models/discount-module/index.js +6 -6
  235. package/models/discount-module/selected-item-discount-module.d.ts +9 -9
  236. package/models/discount-module/selected-item-discount-module.js +2 -2
  237. package/models/dynamodb-filters.d.ts +37 -37
  238. package/models/dynamodb-filters.js +2 -2
  239. package/models/dynamodb-index.d.ts +19 -19
  240. package/models/dynamodb-index.js +2 -2
  241. package/models/error/index.d.ts +11 -11
  242. package/models/error/index.js +6 -6
  243. package/models/error/invoice.d.ts +3 -3
  244. package/models/error/invoice.js +11 -11
  245. package/models/error/order.d.ts +17 -17
  246. package/models/error/order.js +42 -42
  247. package/models/error/store.d.ts +6 -6
  248. package/models/error/store.js +18 -18
  249. package/models/event.d.ts +13 -13
  250. package/models/event.js +2 -2
  251. package/models/external-config.d.ts +10 -10
  252. package/models/external-config.js +2 -2
  253. package/models/filter-request.d.ts +13 -13
  254. package/models/filter-request.js +2 -2
  255. package/models/index.d.ts +40 -40
  256. package/models/index.js +43 -43
  257. package/models/inventory/index.d.ts +5 -5
  258. package/models/inventory/index.js +8 -8
  259. package/models/inventory/inventory-item-record.d.ts +52 -52
  260. package/models/inventory/inventory-item-record.js +2 -2
  261. package/models/inventory/inventory-item.d.ts +38 -38
  262. package/models/inventory/inventory-item.js +2 -2
  263. package/models/inventory/inventory-record.d.ts +40 -40
  264. package/models/inventory/inventory-record.js +2 -2
  265. package/models/inventory/inventory.d.ts +23 -23
  266. package/models/inventory/inventory.js +2 -2
  267. package/models/inventory/relation.d.ts +17 -17
  268. package/models/inventory/relation.js +2 -2
  269. package/models/invoice-config.d.ts +25 -14
  270. package/models/invoice-config.js +2 -2
  271. package/models/invoice.d.ts +83 -83
  272. package/models/invoice.js +2 -2
  273. package/models/json/base-json.d.ts +3 -3
  274. package/models/json/base-json.js +2 -2
  275. package/models/json/index.d.ts +2 -2
  276. package/models/json/index.js +5 -5
  277. package/models/json/product-json.d.ts +16 -16
  278. package/models/json/product-json.js +2 -2
  279. package/models/kiosk.d.ts +4 -4
  280. package/models/kiosk.js +2 -2
  281. package/models/language.d.ts +8 -8
  282. package/models/language.js +2 -2
  283. package/models/menu.d.ts +111 -111
  284. package/models/menu.js +10 -10
  285. package/models/online-integration.d.ts +88 -88
  286. package/models/online-integration.js +59 -59
  287. package/models/online-ordering.d.ts +253 -237
  288. package/models/online-ordering.js +43 -37
  289. package/models/online-ordering.js.map +1 -1
  290. package/models/order-action.d.ts +11 -11
  291. package/models/order-action.js +2 -2
  292. package/models/order.d.ts +452 -451
  293. package/models/order.js +2 -2
  294. package/models/override.d.ts +28 -28
  295. package/models/override.js +14 -14
  296. package/models/payment-config.d.ts +69 -69
  297. package/models/payment-config.js +2 -2
  298. package/models/payment-parameters.d.ts +116 -116
  299. package/models/payment-parameters.js +3 -3
  300. package/models/payment.d.ts +42 -42
  301. package/models/payment.js +2 -2
  302. package/models/permission/index.d.ts +4 -4
  303. package/models/permission/index.js +7 -7
  304. package/models/permission/store-permission.d.ts +9 -9
  305. package/models/permission/store-permission.js +2 -2
  306. package/models/permission/store-role-store-permission.d.ts +5 -5
  307. package/models/permission/store-role-store-permission.js +2 -2
  308. package/models/permission/store-role-store-user.d.ts +5 -5
  309. package/models/permission/store-role-store-user.js +2 -2
  310. package/models/permission/store-role.d.ts +5 -5
  311. package/models/permission/store-role.js +2 -2
  312. package/models/plugin/index.d.ts +5 -5
  313. package/models/plugin/index.js +8 -8
  314. package/models/plugin/intent-handler/index.d.ts +2 -2
  315. package/models/plugin/intent-handler/index.js +5 -5
  316. package/models/plugin/intent-handler/intent-handler-request.d.ts +14 -14
  317. package/models/plugin/intent-handler/intent-handler-request.js +2 -2
  318. package/models/plugin/intent-handler/intent-handler-response.d.ts +7 -7
  319. package/models/plugin/intent-handler/intent-handler-response.js +2 -2
  320. package/models/plugin/payment-machine/index.d.ts +3 -3
  321. package/models/plugin/payment-machine/index.js +6 -6
  322. package/models/plugin/payment-machine/models/fixed-string.model.d.ts +14 -14
  323. package/models/plugin/payment-machine/models/fixed-string.model.js +52 -52
  324. package/models/plugin/payment-machine/models/index.d.ts +5 -5
  325. package/models/plugin/payment-machine/models/index.js +8 -8
  326. package/models/plugin/payment-machine/models/nccc/index.d.ts +3 -3
  327. package/models/plugin/payment-machine/models/nccc/index.js +6 -6
  328. package/models/plugin/payment-machine/models/nccc/payment-machine-d200.model.d.ts +41 -41
  329. package/models/plugin/payment-machine/models/nccc/payment-machine-d200.model.js +140 -140
  330. package/models/plugin/payment-machine/models/nccc/payment-machine-v3p.model.d.ts +42 -42
  331. package/models/plugin/payment-machine/models/nccc/payment-machine-v3p.model.js +621 -621
  332. package/models/plugin/payment-machine/models/nccc/payment-machine-vx520.model.d.ts +21 -21
  333. package/models/plugin/payment-machine/models/nccc/payment-machine-vx520.model.js +28 -28
  334. package/models/plugin/payment-machine/models/payment-machine-minimum.model.d.ts +38 -38
  335. package/models/plugin/payment-machine/models/payment-machine-minimum.model.js +27 -27
  336. package/models/plugin/payment-machine/models/payment-machine-union.model.d.ts +123 -123
  337. package/models/plugin/payment-machine/models/payment-machine-union.model.js +376 -376
  338. package/models/plugin/payment-machine/models/tsb/index.d.ts +1 -1
  339. package/models/plugin/payment-machine/models/tsb/index.js +4 -4
  340. package/models/plugin/payment-machine/models/tsb/payment-machine-d220.model.d.ts +20 -20
  341. package/models/plugin/payment-machine/models/tsb/payment-machine-d220.model.js +27 -27
  342. package/models/plugin/payment-machine/payment-machine-request.d.ts +8 -8
  343. package/models/plugin/payment-machine/payment-machine-request.js +2 -2
  344. package/models/plugin/payment-machine/payment-machine.d.ts +43 -43
  345. package/models/plugin/payment-machine/payment-machine.js +50 -50
  346. package/models/plugin/peripheral.model.d.ts +53 -53
  347. package/models/plugin/peripheral.model.js +38 -38
  348. package/models/plugin/printer/index.d.ts +2 -2
  349. package/models/plugin/printer/index.js +5 -5
  350. package/models/plugin/printer/printer-request.d.ts +20 -20
  351. package/models/plugin/printer/printer-request.js +2 -2
  352. package/models/plugin/printer/printer.d.ts +92 -92
  353. package/models/plugin/printer/printer.js +11 -11
  354. package/models/plugin/serial-port/index.d.ts +2 -2
  355. package/models/plugin/serial-port/index.js +5 -5
  356. package/models/plugin/serial-port/serial-port-request.d.ts +11 -11
  357. package/models/plugin/serial-port/serial-port-request.js +2 -2
  358. package/models/plugin/serial-port/serial-port.d.ts +17 -17
  359. package/models/plugin/serial-port/serial-port.js +22 -22
  360. package/models/printer.d.ts +70 -70
  361. package/models/printer.js +2 -2
  362. package/models/receipt.d.ts +61 -61
  363. package/models/receipt.js +2 -2
  364. package/models/store.d.ts +251 -240
  365. package/models/store.js +3 -3
  366. package/models/table.d.ts +35 -35
  367. package/models/table.js +9 -9
  368. package/models/template-interface/index.d.ts +1 -1
  369. package/models/template-interface/index.js +4 -4
  370. package/models/template-interface/list.d.ts +10 -10
  371. package/models/template-interface/list.js +2 -2
  372. package/models/user.d.ts +31 -31
  373. package/models/user.js +2 -2
  374. package/models/utils/index.d.ts +1 -1
  375. package/models/utils/index.js +4 -4
  376. package/models/utils/utils-data.d.ts +4 -4
  377. package/models/utils/utils-data.js +2 -2
  378. package/package.json +24 -24
  379. package/public-api.d.ts +5 -5
  380. package/public-api.js +8 -8
  381. package/third-party-api/uber-eats/enums/ub-menu.d.ts +24 -24
  382. package/third-party-api/uber-eats/enums/ub-menu.js +32 -32
  383. package/third-party-api/uber-eats/enums/ub-order.d.ts +55 -55
  384. package/third-party-api/uber-eats/enums/ub-order.js +66 -66
  385. package/third-party-api/uber-eats/enums/ub-utils.d.ts +34 -34
  386. package/third-party-api/uber-eats/enums/ub-utils.js +40 -40
  387. package/third-party-api/uber-eats/index.d.ts +13 -13
  388. package/third-party-api/uber-eats/index.js +16 -16
  389. package/third-party-api/uber-eats/models/ub-cancel-order.d.ts +28 -28
  390. package/third-party-api/uber-eats/models/ub-cancel-order.js +17 -17
  391. package/third-party-api/uber-eats/models/ub-cart.d.ts +84 -84
  392. package/third-party-api/uber-eats/models/ub-cart.js +2 -2
  393. package/third-party-api/uber-eats/models/ub-menu-config.d.ts +40 -40
  394. package/third-party-api/uber-eats/models/ub-menu-config.js +2 -2
  395. package/third-party-api/uber-eats/models/ub-menu-item.d.ts +112 -112
  396. package/third-party-api/uber-eats/models/ub-menu-item.js +2 -2
  397. package/third-party-api/uber-eats/models/ub-order.d.ts +59 -59
  398. package/third-party-api/uber-eats/models/ub-order.js +2 -2
  399. package/third-party-api/uber-eats/models/ub-payment.d.ts +59 -59
  400. package/third-party-api/uber-eats/models/ub-payment.js +2 -2
  401. package/third-party-api/uber-eats/models/ub-pos-accept-order.d.ts +39 -39
  402. package/third-party-api/uber-eats/models/ub-pos-accept-order.js +2 -2
  403. package/third-party-api/uber-eats/models/ub-pos-deny-order.d.ts +29 -29
  404. package/third-party-api/uber-eats/models/ub-pos-deny-order.js +17 -17
  405. package/third-party-api/uber-eats/models/ub-quantity-constraint-rules.d.ts +48 -48
  406. package/third-party-api/uber-eats/models/ub-quantity-constraint-rules.js +2 -2
  407. package/third-party-api/uber-eats/models/ub-utils.d.ts +41 -41
  408. package/third-party-api/uber-eats/models/ub-utils.js +2 -2
@@ -1,79 +1,79 @@
1
- import { ActionEnum, AkitaQueryEnum, AkitaStoreEnum, LambdaFunctionName } from "./enum";
2
- import { CreateEntityRequest, GetEntitiesRequest, UpdateEntityRequest, DeleteEntityRequest, DeleteAllRelationRequest, BatchCreateEntityRequest, BatchUpdateEntityRequest, BatchDeleteEntityRequest, QueryAllRelationRequest } from "./lambda";
3
- export interface ITSSDITEntity {
4
- akitaStore: AkitaStoreEnum | null;
5
- tableName: string;
6
- partition: string;
7
- sort: string | null;
8
- /** the partition of relation's partition */
9
- partitionParent?: string;
10
- /** delete all only */
11
- forDeleteAll?: {
12
- akitaQuery: AkitaQueryEnum;
13
- main: string;
14
- sub: string;
15
- };
16
- }
17
- export declare class TSSDITEntity {
18
- static Menu(): ITSSDITEntity;
19
- static MenuProductCategory(): ITSSDITEntity;
20
- static ProductCategory(): ITSSDITEntity;
21
- static Product(): ITSSDITEntity;
22
- static ProductAttribute(): ITSSDITEntity;
23
- static InventoryCategory(): ITSSDITEntity;
24
- static InventoryCategoryInventory(): ITSSDITEntity;
25
- static Inventory(): ITSSDITEntity;
26
- static ProductInventory(): ITSSDITEntity;
27
- static ProductAttributeInventory(): ITSSDITEntity;
28
- static InventoryRecord(): ITSSDITEntity;
29
- static InventoryItemRecord(): ITSSDITEntity;
30
- static ClosingSalesDetail(): ITSSDITEntity;
31
- static Floor(): ITSSDITEntity;
32
- static FloorTable(): ITSSDITEntity;
33
- static Table(): ITSSDITEntity;
34
- static Appointment(): ITSSDITEntity;
35
- }
36
- export declare type LambdaAction = CreateAction | GetAction | QueryAllAction | UpdateAction | DeleteAction | DeleteAllAction | BatchCreateAction | BatchUpdateAction | BatchDeleteAction;
37
- export interface CreateAction {
38
- action: ActionEnum.create;
39
- request: CreateEntityRequest<any>;
40
- }
41
- export interface GetAction {
42
- action: ActionEnum.get;
43
- request: GetEntitiesRequest;
44
- }
45
- export interface QueryAllAction {
46
- action: ActionEnum.queryAll;
47
- request: QueryAllRelationRequest;
48
- }
49
- export interface UpdateAction {
50
- action: ActionEnum.update;
51
- request: UpdateEntityRequest<any>;
52
- }
53
- export interface DeleteAction {
54
- action: ActionEnum.delete;
55
- request: DeleteEntityRequest;
56
- }
57
- export interface DeleteAllAction {
58
- action: ActionEnum.deleteAll;
59
- request: DeleteAllRelationRequest;
60
- }
61
- export interface BatchCreateAction {
62
- action: ActionEnum.batchCreate;
63
- request: BatchCreateEntityRequest<any>;
64
- }
65
- export interface BatchUpdateAction {
66
- action: ActionEnum.batchUpdate;
67
- request: BatchUpdateEntityRequest<any>;
68
- }
69
- export interface BatchDeleteAction {
70
- action: ActionEnum.batchDelete;
71
- request: BatchDeleteEntityRequest;
72
- }
73
- export interface LambdaFunction {
74
- name: LambdaFunctionName;
75
- actions: {
76
- entity: ITSSDITEntity;
77
- actionType: LambdaAction;
78
- }[];
79
- }
1
+ import { ActionEnum, AkitaQueryEnum, AkitaStoreEnum, LambdaFunctionName } from "./enum";
2
+ import { CreateEntityRequest, GetEntitiesRequest, UpdateEntityRequest, DeleteEntityRequest, DeleteAllRelationRequest, BatchCreateEntityRequest, BatchUpdateEntityRequest, BatchDeleteEntityRequest, QueryAllRelationRequest } from "./lambda";
3
+ export interface ITSSDITEntity {
4
+ akitaStore: AkitaStoreEnum | null;
5
+ tableName: string;
6
+ partition: string;
7
+ sort: string | null;
8
+ /** the partition of relation's partition */
9
+ partitionParent?: string;
10
+ /** delete all only */
11
+ forDeleteAll?: {
12
+ akitaQuery: AkitaQueryEnum;
13
+ main: string;
14
+ sub: string;
15
+ };
16
+ }
17
+ export declare class TSSDITEntity {
18
+ static Menu(): ITSSDITEntity;
19
+ static MenuProductCategory(): ITSSDITEntity;
20
+ static ProductCategory(): ITSSDITEntity;
21
+ static Product(): ITSSDITEntity;
22
+ static ProductAttribute(): ITSSDITEntity;
23
+ static InventoryCategory(): ITSSDITEntity;
24
+ static InventoryCategoryInventory(): ITSSDITEntity;
25
+ static Inventory(): ITSSDITEntity;
26
+ static ProductInventory(): ITSSDITEntity;
27
+ static ProductAttributeInventory(): ITSSDITEntity;
28
+ static InventoryRecord(): ITSSDITEntity;
29
+ static InventoryItemRecord(): ITSSDITEntity;
30
+ static ClosingSalesDetail(): ITSSDITEntity;
31
+ static Floor(): ITSSDITEntity;
32
+ static FloorTable(): ITSSDITEntity;
33
+ static Table(): ITSSDITEntity;
34
+ static Appointment(): ITSSDITEntity;
35
+ }
36
+ export declare type LambdaAction = CreateAction | GetAction | QueryAllAction | UpdateAction | DeleteAction | DeleteAllAction | BatchCreateAction | BatchUpdateAction | BatchDeleteAction;
37
+ export interface CreateAction {
38
+ action: ActionEnum.create;
39
+ request: CreateEntityRequest<any>;
40
+ }
41
+ export interface GetAction {
42
+ action: ActionEnum.get;
43
+ request: GetEntitiesRequest;
44
+ }
45
+ export interface QueryAllAction {
46
+ action: ActionEnum.queryAll;
47
+ request: QueryAllRelationRequest;
48
+ }
49
+ export interface UpdateAction {
50
+ action: ActionEnum.update;
51
+ request: UpdateEntityRequest<any>;
52
+ }
53
+ export interface DeleteAction {
54
+ action: ActionEnum.delete;
55
+ request: DeleteEntityRequest;
56
+ }
57
+ export interface DeleteAllAction {
58
+ action: ActionEnum.deleteAll;
59
+ request: DeleteAllRelationRequest;
60
+ }
61
+ export interface BatchCreateAction {
62
+ action: ActionEnum.batchCreate;
63
+ request: BatchCreateEntityRequest<any>;
64
+ }
65
+ export interface BatchUpdateAction {
66
+ action: ActionEnum.batchUpdate;
67
+ request: BatchUpdateEntityRequest<any>;
68
+ }
69
+ export interface BatchDeleteAction {
70
+ action: ActionEnum.batchDelete;
71
+ request: BatchDeleteEntityRequest;
72
+ }
73
+ export interface LambdaFunction {
74
+ name: LambdaFunctionName;
75
+ actions: {
76
+ entity: ITSSDITEntity;
77
+ actionType: LambdaAction;
78
+ }[];
79
+ }
@@ -1,191 +1,191 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TSSDITEntity = void 0;
4
- const enum_1 = require("./enum");
5
- class TSSDITEntity {
6
- static Menu() {
7
- return {
8
- akitaStore: enum_1.AkitaStoreEnum.menuStore,
9
- tableName: 'DataTableName',
10
- partition: 'Store',
11
- sort: 'Menu'
12
- };
13
- }
14
- ;
15
- static MenuProductCategory() {
16
- return {
17
- akitaStore: enum_1.AkitaStoreEnum.menuProductCategoryStore,
18
- tableName: 'DataTableName',
19
- partition: 'Menu',
20
- sort: 'ProductCategory',
21
- partitionParent: 'Store',
22
- forDeleteAll: {
23
- akitaQuery: enum_1.AkitaQueryEnum.menuProductCategoryQuery,
24
- main: 'menuId',
25
- sub: 'productCategoryId'
26
- }
27
- };
28
- }
29
- ;
30
- static ProductCategory() {
31
- return {
32
- akitaStore: enum_1.AkitaStoreEnum.productCategoryStore,
33
- tableName: 'DataTableName',
34
- partition: 'Store',
35
- sort: 'ProductCategory'
36
- };
37
- }
38
- ;
39
- static Product() {
40
- return {
41
- akitaStore: enum_1.AkitaStoreEnum.productStore,
42
- tableName: 'DataTableName',
43
- partition: 'Store',
44
- sort: 'Product'
45
- };
46
- }
47
- ;
48
- static ProductAttribute() {
49
- return {
50
- akitaStore: enum_1.AkitaStoreEnum.productAttributeStore,
51
- tableName: 'DataTableName',
52
- partition: 'Store',
53
- sort: 'ProductAttribute'
54
- };
55
- }
56
- ;
57
- static InventoryCategory() {
58
- return {
59
- akitaStore: enum_1.AkitaStoreEnum.inventoryCategoryStore,
60
- tableName: 'DataTableName',
61
- partition: 'Store',
62
- sort: 'InventoryCategory'
63
- };
64
- }
65
- ;
66
- static InventoryCategoryInventory() {
67
- return {
68
- akitaStore: enum_1.AkitaStoreEnum.inventoryCategoryInventoryStore,
69
- tableName: 'DataTableName',
70
- partition: 'InventoryCategory',
71
- sort: 'Inventory',
72
- partitionParent: 'Store',
73
- forDeleteAll: {
74
- akitaQuery: enum_1.AkitaQueryEnum.inventoryCategoryInventoryQuery,
75
- main: 'inventoryCategoryId',
76
- sub: 'inventoryId'
77
- }
78
- };
79
- }
80
- ;
81
- static Inventory() {
82
- return {
83
- akitaStore: enum_1.AkitaStoreEnum.inventoryStore,
84
- tableName: 'DataTableName',
85
- partition: 'Store',
86
- sort: 'Inventory'
87
- };
88
- }
89
- ;
90
- static ProductInventory() {
91
- return {
92
- akitaStore: enum_1.AkitaStoreEnum.productInventoryStore,
93
- tableName: 'DataTableName',
94
- partition: 'Product',
95
- sort: 'Inventory',
96
- partitionParent: 'Store',
97
- forDeleteAll: {
98
- akitaQuery: enum_1.AkitaQueryEnum.productInventoryQuery,
99
- main: 'productId',
100
- sub: 'inventoryId'
101
- }
102
- };
103
- }
104
- ;
105
- static ProductAttributeInventory() {
106
- return {
107
- akitaStore: enum_1.AkitaStoreEnum.productAttributeInventoryStore,
108
- tableName: 'DataTableName',
109
- partition: 'ProductAttribute',
110
- sort: 'Inventory',
111
- partitionParent: 'Store',
112
- forDeleteAll: {
113
- akitaQuery: enum_1.AkitaQueryEnum.productAttributeInventoryQuery,
114
- main: 'productAttributeId',
115
- sub: 'inventoryId'
116
- }
117
- };
118
- }
119
- ;
120
- static InventoryRecord() {
121
- return {
122
- akitaStore: null,
123
- tableName: 'OrderTableName',
124
- partition: 'InventoryRecord',
125
- sort: null
126
- };
127
- }
128
- ;
129
- static InventoryItemRecord() {
130
- return {
131
- akitaStore: null,
132
- tableName: 'OrderTableName',
133
- partition: 'InventoryItemRecord',
134
- sort: null
135
- };
136
- }
137
- ;
138
- static ClosingSalesDetail() {
139
- return {
140
- akitaStore: null,
141
- tableName: 'OrderTableName',
142
- partition: 'ClosingSalesDetail',
143
- sort: null
144
- };
145
- }
146
- ;
147
- static Floor() {
148
- return {
149
- akitaStore: enum_1.AkitaStoreEnum.floorStore,
150
- tableName: 'DataTableName',
151
- partition: 'Store',
152
- sort: 'Floor'
153
- };
154
- }
155
- ;
156
- static FloorTable() {
157
- return {
158
- akitaStore: enum_1.AkitaStoreEnum.floorTableStore,
159
- tableName: 'DataTableName',
160
- partition: 'Floor',
161
- sort: 'Table',
162
- partitionParent: 'Store',
163
- forDeleteAll: {
164
- akitaQuery: enum_1.AkitaQueryEnum.floorTableQuery,
165
- main: 'floorId',
166
- sub: 'tableId'
167
- }
168
- };
169
- }
170
- ;
171
- static Table() {
172
- return {
173
- akitaStore: enum_1.AkitaStoreEnum.tableStore,
174
- tableName: 'DataTableName',
175
- partition: 'Store',
176
- sort: 'Table'
177
- };
178
- }
179
- ;
180
- static Appointment() {
181
- return {
182
- akitaStore: enum_1.AkitaStoreEnum.appointmentsStore,
183
- tableName: 'OrderTableName',
184
- partition: 'Appointment',
185
- sort: null
186
- };
187
- }
188
- ;
189
- }
190
- exports.TSSDITEntity = TSSDITEntity;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TSSDITEntity = void 0;
4
+ const enum_1 = require("./enum");
5
+ class TSSDITEntity {
6
+ static Menu() {
7
+ return {
8
+ akitaStore: enum_1.AkitaStoreEnum.menuStore,
9
+ tableName: 'DataTableName',
10
+ partition: 'Store',
11
+ sort: 'Menu'
12
+ };
13
+ }
14
+ ;
15
+ static MenuProductCategory() {
16
+ return {
17
+ akitaStore: enum_1.AkitaStoreEnum.menuProductCategoryStore,
18
+ tableName: 'DataTableName',
19
+ partition: 'Menu',
20
+ sort: 'ProductCategory',
21
+ partitionParent: 'Store',
22
+ forDeleteAll: {
23
+ akitaQuery: enum_1.AkitaQueryEnum.menuProductCategoryQuery,
24
+ main: 'menuId',
25
+ sub: 'productCategoryId'
26
+ }
27
+ };
28
+ }
29
+ ;
30
+ static ProductCategory() {
31
+ return {
32
+ akitaStore: enum_1.AkitaStoreEnum.productCategoryStore,
33
+ tableName: 'DataTableName',
34
+ partition: 'Store',
35
+ sort: 'ProductCategory'
36
+ };
37
+ }
38
+ ;
39
+ static Product() {
40
+ return {
41
+ akitaStore: enum_1.AkitaStoreEnum.productStore,
42
+ tableName: 'DataTableName',
43
+ partition: 'Store',
44
+ sort: 'Product'
45
+ };
46
+ }
47
+ ;
48
+ static ProductAttribute() {
49
+ return {
50
+ akitaStore: enum_1.AkitaStoreEnum.productAttributeStore,
51
+ tableName: 'DataTableName',
52
+ partition: 'Store',
53
+ sort: 'ProductAttribute'
54
+ };
55
+ }
56
+ ;
57
+ static InventoryCategory() {
58
+ return {
59
+ akitaStore: enum_1.AkitaStoreEnum.inventoryCategoryStore,
60
+ tableName: 'DataTableName',
61
+ partition: 'Store',
62
+ sort: 'InventoryCategory'
63
+ };
64
+ }
65
+ ;
66
+ static InventoryCategoryInventory() {
67
+ return {
68
+ akitaStore: enum_1.AkitaStoreEnum.inventoryCategoryInventoryStore,
69
+ tableName: 'DataTableName',
70
+ partition: 'InventoryCategory',
71
+ sort: 'Inventory',
72
+ partitionParent: 'Store',
73
+ forDeleteAll: {
74
+ akitaQuery: enum_1.AkitaQueryEnum.inventoryCategoryInventoryQuery,
75
+ main: 'inventoryCategoryId',
76
+ sub: 'inventoryId'
77
+ }
78
+ };
79
+ }
80
+ ;
81
+ static Inventory() {
82
+ return {
83
+ akitaStore: enum_1.AkitaStoreEnum.inventoryStore,
84
+ tableName: 'DataTableName',
85
+ partition: 'Store',
86
+ sort: 'Inventory'
87
+ };
88
+ }
89
+ ;
90
+ static ProductInventory() {
91
+ return {
92
+ akitaStore: enum_1.AkitaStoreEnum.productInventoryStore,
93
+ tableName: 'DataTableName',
94
+ partition: 'Product',
95
+ sort: 'Inventory',
96
+ partitionParent: 'Store',
97
+ forDeleteAll: {
98
+ akitaQuery: enum_1.AkitaQueryEnum.productInventoryQuery,
99
+ main: 'productId',
100
+ sub: 'inventoryId'
101
+ }
102
+ };
103
+ }
104
+ ;
105
+ static ProductAttributeInventory() {
106
+ return {
107
+ akitaStore: enum_1.AkitaStoreEnum.productAttributeInventoryStore,
108
+ tableName: 'DataTableName',
109
+ partition: 'ProductAttribute',
110
+ sort: 'Inventory',
111
+ partitionParent: 'Store',
112
+ forDeleteAll: {
113
+ akitaQuery: enum_1.AkitaQueryEnum.productAttributeInventoryQuery,
114
+ main: 'productAttributeId',
115
+ sub: 'inventoryId'
116
+ }
117
+ };
118
+ }
119
+ ;
120
+ static InventoryRecord() {
121
+ return {
122
+ akitaStore: null,
123
+ tableName: 'OrderTableName',
124
+ partition: 'InventoryRecord',
125
+ sort: null
126
+ };
127
+ }
128
+ ;
129
+ static InventoryItemRecord() {
130
+ return {
131
+ akitaStore: null,
132
+ tableName: 'OrderTableName',
133
+ partition: 'InventoryItemRecord',
134
+ sort: null
135
+ };
136
+ }
137
+ ;
138
+ static ClosingSalesDetail() {
139
+ return {
140
+ akitaStore: null,
141
+ tableName: 'OrderTableName',
142
+ partition: 'ClosingSalesDetail',
143
+ sort: null
144
+ };
145
+ }
146
+ ;
147
+ static Floor() {
148
+ return {
149
+ akitaStore: enum_1.AkitaStoreEnum.floorStore,
150
+ tableName: 'DataTableName',
151
+ partition: 'Store',
152
+ sort: 'Floor'
153
+ };
154
+ }
155
+ ;
156
+ static FloorTable() {
157
+ return {
158
+ akitaStore: enum_1.AkitaStoreEnum.floorTableStore,
159
+ tableName: 'DataTableName',
160
+ partition: 'Floor',
161
+ sort: 'Table',
162
+ partitionParent: 'Store',
163
+ forDeleteAll: {
164
+ akitaQuery: enum_1.AkitaQueryEnum.floorTableQuery,
165
+ main: 'floorId',
166
+ sub: 'tableId'
167
+ }
168
+ };
169
+ }
170
+ ;
171
+ static Table() {
172
+ return {
173
+ akitaStore: enum_1.AkitaStoreEnum.tableStore,
174
+ tableName: 'DataTableName',
175
+ partition: 'Store',
176
+ sort: 'Table'
177
+ };
178
+ }
179
+ ;
180
+ static Appointment() {
181
+ return {
182
+ akitaStore: enum_1.AkitaStoreEnum.appointmentsStore,
183
+ tableName: 'OrderTableName',
184
+ partition: 'Appointment',
185
+ sort: null
186
+ };
187
+ }
188
+ ;
189
+ }
190
+ exports.TSSDITEntity = TSSDITEntity;
191
191
  //# sourceMappingURL=model.js.map