@cinerino/sdk 14.0.0-alpha.8 → 14.0.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 (371) hide show
  1. package/README.md +0 -3
  2. package/lib/abstract/auth/authClient.js +10 -60
  3. package/lib/abstract/chevre/categoryCode.d.ts +1 -1
  4. package/lib/abstract/chevre/categoryCode.js +16 -84
  5. package/lib/abstract/chevre/creativeWork.d.ts +1 -1
  6. package/lib/abstract/chevre/creativeWork.js +16 -84
  7. package/lib/abstract/chevre/emailMessage.d.ts +1 -1
  8. package/lib/abstract/chevre/emailMessage.js +16 -84
  9. package/lib/abstract/chevre/event/factory.d.ts +1 -1
  10. package/lib/abstract/chevre/event.d.ts +1 -1
  11. package/lib/abstract/chevre/event.js +102 -270
  12. package/lib/abstract/chevre/eventOffer.d.ts +1 -1
  13. package/lib/abstract/chevre/eventOffer.js +13 -76
  14. package/lib/abstract/chevre/eventSeries.d.ts +1 -1
  15. package/lib/abstract/chevre/eventSeries.js +12 -75
  16. package/lib/abstract/chevre/note.d.ts +1 -1
  17. package/lib/abstract/chevre/note.js +14 -77
  18. package/lib/abstract/chevre/paymentService.d.ts +1 -1
  19. package/lib/abstract/chevre/paymentService.js +14 -78
  20. package/lib/abstract/chevre/place/hasPOS.d.ts +1 -1
  21. package/lib/abstract/chevre/place/hasPOS.js +13 -99
  22. package/lib/abstract/chevre/place.d.ts +1 -1
  23. package/lib/abstract/chevre/place.js +82 -232
  24. package/lib/abstract/chevre/product.d.ts +1 -1
  25. package/lib/abstract/chevre/product.js +34 -124
  26. package/lib/abstract/chevre/productOffer.d.ts +1 -1
  27. package/lib/abstract/chevre/productOffer.js +13 -76
  28. package/lib/abstract/chevre/seatOffer.d.ts +1 -1
  29. package/lib/abstract/chevre/seatOffer.js +15 -79
  30. package/lib/abstract/chevre/seller/factory.d.ts +1 -1
  31. package/lib/abstract/chevre/seller.d.ts +1 -1
  32. package/lib/abstract/chevre/seller.js +42 -128
  33. package/lib/abstract/chevre/trip.d.ts +1 -1
  34. package/lib/abstract/chevre/trip.js +16 -84
  35. package/lib/abstract/chevre.js +127 -329
  36. package/lib/abstract/chevreAdmic/sync.js +24 -94
  37. package/lib/abstract/chevreAdmic.js +28 -76
  38. package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.d.ts +1 -1
  39. package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.js +11 -76
  40. package/lib/abstract/chevreAdmin/authorization.d.ts +1 -1
  41. package/lib/abstract/chevreAdmin/authorization.js +13 -76
  42. package/lib/abstract/chevreAdmin/customer.d.ts +1 -1
  43. package/lib/abstract/chevreAdmin/customer.js +13 -76
  44. package/lib/abstract/chevreAdmin/event.d.ts +1 -1
  45. package/lib/abstract/chevreAdmin/event.js +56 -162
  46. package/lib/abstract/chevreAdmin/eventOffer.d.ts +1 -1
  47. package/lib/abstract/chevreAdmin/eventOffer.js +41 -134
  48. package/lib/abstract/chevreAdmin/eventSeries.d.ts +1 -1
  49. package/lib/abstract/chevreAdmin/eventSeries.js +30 -104
  50. package/lib/abstract/chevreAdmin/me.d.ts +1 -1
  51. package/lib/abstract/chevreAdmin/me.js +25 -104
  52. package/lib/abstract/chevreAdmin/member.d.ts +1 -1
  53. package/lib/abstract/chevreAdmin/member.js +14 -100
  54. package/lib/abstract/chevreAdmin/movie.d.ts +1 -1
  55. package/lib/abstract/chevreAdmin/movie.js +21 -93
  56. package/lib/abstract/chevreAdmin/movieTheater.d.ts +1 -1
  57. package/lib/abstract/chevreAdmin/movieTheater.js +56 -162
  58. package/lib/abstract/chevreAdmin/note.d.ts +1 -1
  59. package/lib/abstract/chevreAdmin/note.js +32 -117
  60. package/lib/abstract/chevreAdmin/noteAboutOrder.d.ts +1 -1
  61. package/lib/abstract/chevreAdmin/noteAboutOrder.js +29 -112
  62. package/lib/abstract/chevreAdmin/offer.d.ts +1 -1
  63. package/lib/abstract/chevreAdmin/offer.js +24 -98
  64. package/lib/abstract/chevreAdmin/offerCatalog.d.ts +1 -1
  65. package/lib/abstract/chevreAdmin/offerCatalog.js +18 -85
  66. package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +1 -1
  67. package/lib/abstract/chevreAdmin/offerCatalogItem.js +25 -99
  68. package/lib/abstract/chevreAdmin/order.d.ts +1 -1
  69. package/lib/abstract/chevreAdmin/order.js +50 -161
  70. package/lib/abstract/chevreAdmin/paymentMethod.d.ts +1 -1
  71. package/lib/abstract/chevreAdmin/paymentMethod.js +15 -78
  72. package/lib/abstract/chevreAdmin/product.d.ts +1 -1
  73. package/lib/abstract/chevreAdmin/product.js +31 -110
  74. package/lib/abstract/chevreAdmin/productOffer.d.ts +1 -1
  75. package/lib/abstract/chevreAdmin/productOffer.js +41 -134
  76. package/lib/abstract/chevreAdmin/reservation.d.ts +1 -1
  77. package/lib/abstract/chevreAdmin/reservation.js +31 -125
  78. package/lib/abstract/chevreAdmin/room.d.ts +1 -1
  79. package/lib/abstract/chevreAdmin/room.js +25 -99
  80. package/lib/abstract/chevreAdmin/seat.d.ts +1 -1
  81. package/lib/abstract/chevreAdmin/seat.js +38 -129
  82. package/lib/abstract/chevreAdmin/seatSection.d.ts +1 -1
  83. package/lib/abstract/chevreAdmin/seatSection.js +25 -99
  84. package/lib/abstract/chevreAdmin/seller.d.ts +1 -1
  85. package/lib/abstract/chevreAdmin/seller.js +13 -76
  86. package/lib/abstract/chevreAdmin.js +191 -492
  87. package/lib/abstract/chevreAsset/order/factory.d.ts +1 -1
  88. package/lib/abstract/chevreAsset/order.js +77 -231
  89. package/lib/abstract/chevreAsset/permit.d.ts +1 -1
  90. package/lib/abstract/chevreAsset/permit.js +22 -92
  91. package/lib/abstract/chevreAsset/reservation/factory.d.ts +1 -1
  92. package/lib/abstract/chevreAsset/reservation.d.ts +1 -1
  93. package/lib/abstract/chevreAsset/reservation.js +23 -93
  94. package/lib/abstract/chevreAsset/token.js +4 -24
  95. package/lib/abstract/chevreAsset.js +65 -135
  96. package/lib/abstract/chevreConsole/account.d.ts +1 -1
  97. package/lib/abstract/chevreConsole/account.js +32 -116
  98. package/lib/abstract/chevreConsole/accountTitle.d.ts +1 -1
  99. package/lib/abstract/chevreConsole/accountTitle.js +113 -303
  100. package/lib/abstract/chevreConsole/accountTransaction.d.ts +3 -3
  101. package/lib/abstract/chevreConsole/accountTransaction.js +16 -84
  102. package/lib/abstract/chevreConsole/accountingReport.d.ts +1 -1
  103. package/lib/abstract/chevreConsole/accountingReport.js +16 -84
  104. package/lib/abstract/chevreConsole/action.d.ts +1 -1
  105. package/lib/abstract/chevreConsole/action.js +33 -115
  106. package/lib/abstract/chevreConsole/additionalProperty.d.ts +1 -1
  107. package/lib/abstract/chevreConsole/additionalProperty.js +46 -146
  108. package/lib/abstract/chevreConsole/advanceBookingRequirement.d.ts +1 -1
  109. package/lib/abstract/chevreConsole/advanceBookingRequirement.js +36 -139
  110. package/lib/abstract/chevreConsole/aggregateOffer.d.ts +1 -1
  111. package/lib/abstract/chevreConsole/aggregateOffer.js +22 -99
  112. package/lib/abstract/chevreConsole/aggregateReservation.d.ts +1 -1
  113. package/lib/abstract/chevreConsole/aggregateReservation.js +12 -75
  114. package/lib/abstract/chevreConsole/aggregation.d.ts +1 -1
  115. package/lib/abstract/chevreConsole/aggregation.js +15 -86
  116. package/lib/abstract/chevreConsole/assetTransaction/moneyTransfer.d.ts +1 -1
  117. package/lib/abstract/chevreConsole/assetTransaction/moneyTransfer.js +33 -139
  118. package/lib/abstract/chevreConsole/assetTransaction/pay.d.ts +1 -1
  119. package/lib/abstract/chevreConsole/assetTransaction/pay.js +44 -168
  120. package/lib/abstract/chevreConsole/assetTransaction/registerService.d.ts +1 -1
  121. package/lib/abstract/chevreConsole/assetTransaction/registerService.js +33 -150
  122. package/lib/abstract/chevreConsole/assetTransaction/reserve.d.ts +1 -1
  123. package/lib/abstract/chevreConsole/assetTransaction/reserve.js +40 -143
  124. package/lib/abstract/chevreConsole/assetTransaction.d.ts +1 -1
  125. package/lib/abstract/chevreConsole/assetTransaction.js +16 -84
  126. package/lib/abstract/chevreConsole/authorization.d.ts +1 -1
  127. package/lib/abstract/chevreConsole/authorization.js +13 -76
  128. package/lib/abstract/chevreConsole/categoryCode.d.ts +1 -1
  129. package/lib/abstract/chevreConsole/categoryCode.js +40 -137
  130. package/lib/abstract/chevreConsole/comment.d.ts +1 -1
  131. package/lib/abstract/chevreConsole/comment.js +25 -100
  132. package/lib/abstract/chevreConsole/creativeWork.js +15 -80
  133. package/lib/abstract/chevreConsole/customer.d.ts +1 -1
  134. package/lib/abstract/chevreConsole/customer.js +26 -107
  135. package/lib/abstract/chevreConsole/customerType.d.ts +1 -1
  136. package/lib/abstract/chevreConsole/customerType.js +13 -76
  137. package/lib/abstract/chevreConsole/emailMessage.d.ts +1 -1
  138. package/lib/abstract/chevreConsole/emailMessage.js +47 -147
  139. package/lib/abstract/chevreConsole/event/factory.d.ts +1 -1
  140. package/lib/abstract/chevreConsole/event.d.ts +1 -1
  141. package/lib/abstract/chevreConsole/event.js +60 -184
  142. package/lib/abstract/chevreConsole/eventSeries.js +23 -118
  143. package/lib/abstract/chevreConsole/hasMerchantReturnPolicy.d.ts +1 -1
  144. package/lib/abstract/chevreConsole/hasMerchantReturnPolicy.js +11 -74
  145. package/lib/abstract/chevreConsole/iam.d.ts +1 -1
  146. package/lib/abstract/chevreConsole/iam.js +116 -301
  147. package/lib/abstract/chevreConsole/identity.d.ts +1 -1
  148. package/lib/abstract/chevreConsole/identity.js +36 -139
  149. package/lib/abstract/chevreConsole/identityProvider.d.ts +1 -1
  150. package/lib/abstract/chevreConsole/identityProvider.js +36 -139
  151. package/lib/abstract/chevreConsole/issuer.d.ts +1 -1
  152. package/lib/abstract/chevreConsole/issuer.js +44 -152
  153. package/lib/abstract/chevreConsole/me.d.ts +1 -1
  154. package/lib/abstract/chevreConsole/me.js +26 -109
  155. package/lib/abstract/chevreConsole/member.d.ts +1 -1
  156. package/lib/abstract/chevreConsole/member.js +63 -210
  157. package/lib/abstract/chevreConsole/memberProgram.js +47 -156
  158. package/lib/abstract/chevreConsole/merchantReturnPolicy.d.ts +1 -1
  159. package/lib/abstract/chevreConsole/merchantReturnPolicy.js +45 -145
  160. package/lib/abstract/chevreConsole/message.d.ts +1 -1
  161. package/lib/abstract/chevreConsole/message.js +12 -75
  162. package/lib/abstract/chevreConsole/movieTicketType.d.ts +1 -1
  163. package/lib/abstract/chevreConsole/movieTicketType.js +36 -124
  164. package/lib/abstract/chevreConsole/offer.d.ts +1 -1
  165. package/lib/abstract/chevreConsole/offer.js +29 -108
  166. package/lib/abstract/chevreConsole/offerCatalog.d.ts +1 -1
  167. package/lib/abstract/chevreConsole/offerCatalog.js +38 -138
  168. package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +1 -1
  169. package/lib/abstract/chevreConsole/offerCatalogItem.js +51 -167
  170. package/lib/abstract/chevreConsole/offerItemCondition.d.ts +1 -1
  171. package/lib/abstract/chevreConsole/offerItemCondition.js +38 -131
  172. package/lib/abstract/chevreConsole/order/factory.d.ts +1 -1
  173. package/lib/abstract/chevreConsole/order.d.ts +1 -1
  174. package/lib/abstract/chevreConsole/order.js +45 -144
  175. package/lib/abstract/chevreConsole/ownershipInfo.d.ts +1 -1
  176. package/lib/abstract/chevreConsole/ownershipInfo.js +16 -84
  177. package/lib/abstract/chevreConsole/paymentService.d.ts +1 -1
  178. package/lib/abstract/chevreConsole/paymentService.js +55 -169
  179. package/lib/abstract/chevreConsole/paymentServiceChannel.d.ts +1 -1
  180. package/lib/abstract/chevreConsole/paymentServiceChannel.js +36 -139
  181. package/lib/abstract/chevreConsole/pendingReservation.d.ts +1 -1
  182. package/lib/abstract/chevreConsole/pendingReservation.js +23 -94
  183. package/lib/abstract/chevreConsole/permission.js +22 -93
  184. package/lib/abstract/chevreConsole/permit.d.ts +1 -1
  185. package/lib/abstract/chevreConsole/permit.js +34 -116
  186. package/lib/abstract/chevreConsole/person.d.ts +1 -1
  187. package/lib/abstract/chevreConsole/person.js +67 -186
  188. package/lib/abstract/chevreConsole/place/hasPOS.d.ts +1 -1
  189. package/lib/abstract/chevreConsole/place/hasPOS.js +33 -146
  190. package/lib/abstract/chevreConsole/place.d.ts +1 -1
  191. package/lib/abstract/chevreConsole/place.js +97 -260
  192. package/lib/abstract/chevreConsole/priceSpecification.d.ts +1 -1
  193. package/lib/abstract/chevreConsole/priceSpecification.js +37 -130
  194. package/lib/abstract/chevreConsole/product.d.ts +1 -1
  195. package/lib/abstract/chevreConsole/product.js +48 -155
  196. package/lib/abstract/chevreConsole/productModel.d.ts +1 -1
  197. package/lib/abstract/chevreConsole/productModel.js +34 -122
  198. package/lib/abstract/chevreConsole/project.d.ts +1 -1
  199. package/lib/abstract/chevreConsole/project.js +38 -147
  200. package/lib/abstract/chevreConsole/projectMakesOffer.d.ts +1 -1
  201. package/lib/abstract/chevreConsole/projectMakesOffer.js +32 -122
  202. package/lib/abstract/chevreConsole/reservation/factory.d.ts +1 -1
  203. package/lib/abstract/chevreConsole/reservation.js +11 -76
  204. package/lib/abstract/chevreConsole/seller/factory.d.ts +1 -1
  205. package/lib/abstract/chevreConsole/seller.d.ts +1 -1
  206. package/lib/abstract/chevreConsole/seller.js +139 -362
  207. package/lib/abstract/chevreConsole/sellerMakesOffer.d.ts +1 -1
  208. package/lib/abstract/chevreConsole/sellerMakesOffer.js +26 -107
  209. package/lib/abstract/chevreConsole/sellerReturnPolicy.d.ts +1 -1
  210. package/lib/abstract/chevreConsole/sellerReturnPolicy.js +45 -156
  211. package/lib/abstract/chevreConsole/task.d.ts +1 -1
  212. package/lib/abstract/chevreConsole/task.js +29 -108
  213. package/lib/abstract/chevreConsole/ticket.d.ts +1 -1
  214. package/lib/abstract/chevreConsole/ticket.js +12 -75
  215. package/lib/abstract/chevreConsole/token.js +4 -24
  216. package/lib/abstract/chevreConsole/transaction/placeOrder.d.ts +2 -3
  217. package/lib/abstract/chevreConsole/transaction/placeOrder.js +28 -139
  218. package/lib/abstract/chevreConsole/transaction/returnOrder.d.ts +2 -3
  219. package/lib/abstract/chevreConsole/transaction/returnOrder.js +18 -110
  220. package/lib/abstract/chevreConsole/transactionNumber.js +13 -76
  221. package/lib/abstract/chevreConsole/trip.d.ts +1 -1
  222. package/lib/abstract/chevreConsole/trip.js +46 -146
  223. package/lib/abstract/chevreConsole/userPool.d.ts +1 -1
  224. package/lib/abstract/chevreConsole/userPool.js +32 -114
  225. package/lib/abstract/chevreConsole/webSite.d.ts +1 -1
  226. package/lib/abstract/chevreConsole/webSite.js +36 -128
  227. package/lib/abstract/chevreConsole.js +496 -1270
  228. package/lib/abstract/chevrePay/payment/factory.d.ts +1 -1
  229. package/lib/abstract/chevrePay/payment.d.ts +1 -1
  230. package/lib/abstract/chevrePay/payment.js +300 -498
  231. package/lib/abstract/chevrePay.js +33 -84
  232. package/lib/abstract/chevreTxc/offer/factory.d.ts +1 -1
  233. package/lib/abstract/chevreTxc/offer.d.ts +1 -1
  234. package/lib/abstract/chevreTxc/offer.js +69 -195
  235. package/lib/abstract/chevreTxc.js +33 -84
  236. package/lib/abstract/chevreTxn/offer.d.ts +1 -1
  237. package/lib/abstract/chevreTxn/offer.js +57 -183
  238. package/lib/abstract/chevreTxn/transaction/placeOrder/factory.d.ts +1 -1
  239. package/lib/abstract/chevreTxn/transaction/placeOrder.d.ts +3 -3
  240. package/lib/abstract/chevreTxn/transaction/placeOrder.js +53 -197
  241. package/lib/abstract/chevreTxn/transaction/returnOrder/factory.d.ts +1 -1
  242. package/lib/abstract/chevreTxn/transaction/returnOrder.d.ts +3 -3
  243. package/lib/abstract/chevreTxn/transaction/returnOrder.js +38 -165
  244. package/lib/abstract/chevreTxn/transaction.d.ts +1 -11
  245. package/lib/abstract/chevreTxn/transaction.js +0 -10
  246. package/lib/abstract/chevreTxn.js +58 -119
  247. package/lib/abstract/cinerino/default.d.ts +0 -12
  248. package/lib/abstract/cinerino/default.js +19 -103
  249. package/lib/abstract/cinerino/service/categoryCode.d.ts +1 -1
  250. package/lib/abstract/cinerino/service/categoryCode.js +18 -94
  251. package/lib/abstract/cinerino/service/emailMessage.d.ts +1 -1
  252. package/lib/abstract/cinerino/service/emailMessage.js +18 -94
  253. package/lib/abstract/cinerino/service/event.d.ts +1 -1
  254. package/lib/abstract/cinerino/service/event.js +165 -351
  255. package/lib/abstract/cinerino/service/place/hasPOS.d.ts +1 -1
  256. package/lib/abstract/cinerino/service/place/hasPOS.js +16 -110
  257. package/lib/abstract/cinerino/service/place.d.ts +1 -1
  258. package/lib/abstract/cinerino/service/place.js +31 -142
  259. package/lib/abstract/cinerino/service/seller.d.ts +1 -1
  260. package/lib/abstract/cinerino/service/seller.js +54 -165
  261. package/lib/abstract/cloud/admin/creativeWork.d.ts +1 -1
  262. package/lib/abstract/cloud/admin/creativeWork.js +12 -83
  263. package/lib/abstract/cloud/admin/customer.d.ts +1 -1
  264. package/lib/abstract/cloud/admin/customer.js +20 -81
  265. package/lib/abstract/cloud/admin/event.d.ts +1 -1
  266. package/lib/abstract/cloud/admin/event.js +66 -210
  267. package/lib/abstract/cloud/admin/eventOffer.js +24 -119
  268. package/lib/abstract/cloud/admin/eventSeries.d.ts +1 -1
  269. package/lib/abstract/cloud/admin/eventSeries.js +12 -94
  270. package/lib/abstract/cloud/admin/me.js +18 -106
  271. package/lib/abstract/cloud/admin/noteAboutOrder.d.ts +1 -1
  272. package/lib/abstract/cloud/admin/noteAboutOrder.js +33 -138
  273. package/lib/abstract/cloud/admin/offer.d.ts +1 -1
  274. package/lib/abstract/cloud/admin/offer.js +88 -186
  275. package/lib/abstract/cloud/admin/offerCatalog.d.ts +1 -1
  276. package/lib/abstract/cloud/admin/offerCatalog.js +20 -126
  277. package/lib/abstract/cloud/admin/offerCatalogItem.d.ts +1 -1
  278. package/lib/abstract/cloud/admin/offerCatalogItem.js +25 -117
  279. package/lib/abstract/cloud/admin/order.d.ts +1 -1
  280. package/lib/abstract/cloud/admin/order.js +108 -219
  281. package/lib/abstract/cloud/admin/paymentMethod.js +12 -80
  282. package/lib/abstract/cloud/admin/product.d.ts +1 -1
  283. package/lib/abstract/cloud/admin/product.js +25 -114
  284. package/lib/abstract/cloud/admin/productOffer.d.ts +1 -1
  285. package/lib/abstract/cloud/admin/productOffer.js +28 -126
  286. package/lib/abstract/cloud/admin/reservation.d.ts +41 -8
  287. package/lib/abstract/cloud/admin/reservation.js +89 -226
  288. package/lib/abstract/cloud/admin/seller.d.ts +1 -1
  289. package/lib/abstract/cloud/admin/seller.js +12 -79
  290. package/lib/abstract/cloud/admin.js +135 -348
  291. package/lib/abstract/cloud/asset/delivery.js +23 -94
  292. package/lib/abstract/cloud/asset/order.js +180 -251
  293. package/lib/abstract/cloud/asset/reservation.d.ts +1 -1
  294. package/lib/abstract/cloud/asset/reservation.js +28 -113
  295. package/lib/abstract/cloud/asset/token.js +3 -23
  296. package/lib/abstract/cloud/asset.d.ts +0 -4
  297. package/lib/abstract/cloud/asset.js +60 -134
  298. package/lib/abstract/cloud/pay/payment.d.ts +1 -1
  299. package/lib/abstract/cloud/pay/payment.js +387 -689
  300. package/lib/abstract/cloud/pay.d.ts +0 -4
  301. package/lib/abstract/cloud/pay.js +33 -83
  302. package/lib/abstract/cloud/search/creativeWork.js +13 -76
  303. package/lib/abstract/cloud/search/eventOffer.js +15 -79
  304. package/lib/abstract/cloud/search/paymentService.js +14 -78
  305. package/lib/abstract/cloud/search/place.d.ts +1 -1
  306. package/lib/abstract/cloud/search/place.js +24 -96
  307. package/lib/abstract/cloud/search/product.d.ts +1 -1
  308. package/lib/abstract/cloud/search/product.js +34 -114
  309. package/lib/abstract/cloud/search/productOffer.js +15 -79
  310. package/lib/abstract/cloud/search/seatOffer.js +15 -79
  311. package/lib/abstract/cloud/search.js +86 -179
  312. package/lib/abstract/cloud/txc/transaction/forceAsync.d.ts +1 -1
  313. package/lib/abstract/cloud/txc/transaction/forceAsync.js +113 -206
  314. package/lib/abstract/cloud/txc/transaction/placeOrder.d.ts +1 -1
  315. package/lib/abstract/cloud/txc/transaction/placeOrder.js +146 -242
  316. package/lib/abstract/cloud/txc.js +34 -79
  317. package/lib/abstract/cloud/txn/offer.d.ts +1 -1
  318. package/lib/abstract/cloud/txn/offer.js +72 -172
  319. package/lib/abstract/cloud/txn/transaction/placeOrder.d.ts +1 -1
  320. package/lib/abstract/cloud/txn/transaction/placeOrder.js +145 -234
  321. package/lib/abstract/cloud/txn/transaction/returnOrder.d.ts +1 -1
  322. package/lib/abstract/cloud/txn/transaction/returnOrder.js +60 -141
  323. package/lib/abstract/cloud/txn.d.ts +0 -4
  324. package/lib/abstract/cloud/txn.js +52 -118
  325. package/lib/abstract/factory.d.ts +1 -1
  326. package/lib/abstract/factory.js +3 -15
  327. package/lib/abstract/index.d.ts +1 -1
  328. package/lib/abstract/index.js +107 -355
  329. package/lib/abstract/pecorino/accountTransaction.d.ts +3 -3
  330. package/lib/abstract/pecorino/accountTransaction.js +45 -146
  331. package/lib/abstract/pecorino/permit.d.ts +1 -1
  332. package/lib/abstract/pecorino/permit.js +24 -102
  333. package/lib/abstract/pecorino.d.ts +1 -1
  334. package/lib/abstract/pecorino.js +8 -56
  335. package/lib/abstract/service.d.ts +0 -1
  336. package/lib/abstract/service.js +65 -137
  337. package/lib/abstract/transporters.d.ts +2 -2
  338. package/lib/abstract/transporters.js +67 -143
  339. package/lib/abstract/waiterAdmin/rule.d.ts +1 -1
  340. package/lib/abstract/waiterAdmin/rule.js +13 -76
  341. package/lib/abstract/waiterAdmin/ruleSet.d.ts +1 -1
  342. package/lib/abstract/waiterAdmin/ruleSet.js +20 -92
  343. package/lib/abstract/waiterAdmin.js +35 -94
  344. package/lib/auth/clientCredentialsClient.d.ts +2 -4
  345. package/lib/auth/clientCredentialsClient.js +77 -158
  346. package/lib/auth/implicitGrantClient/credentials.d.ts +1 -2
  347. package/lib/auth/implicitGrantClient/error.d.ts +3 -3
  348. package/lib/auth/implicitGrantClient/error.js +5 -22
  349. package/lib/auth/implicitGrantClient/iframeHandler.d.ts +1 -1
  350. package/lib/auth/implicitGrantClient/iframeHandler.js +37 -27
  351. package/lib/auth/implicitGrantClient/popupAuthenticationHandler.d.ts +1 -1
  352. package/lib/auth/implicitGrantClient/popupAuthenticationHandler.js +35 -99
  353. package/lib/auth/implicitGrantClient/popupHandler.d.ts +1 -1
  354. package/lib/auth/implicitGrantClient/popupHandler.js +37 -27
  355. package/lib/auth/implicitGrantClient/silentAuthenticationHandler.d.ts +1 -1
  356. package/lib/auth/implicitGrantClient/silentAuthenticationHandler.js +35 -99
  357. package/lib/auth/implicitGrantClient/silentLogoutHandler.d.ts +1 -1
  358. package/lib/auth/implicitGrantClient/silentLogoutHandler.js +35 -99
  359. package/lib/auth/implicitGrantClient.d.ts +2 -2
  360. package/lib/auth/implicitGrantClient.js +153 -304
  361. package/lib/auth/loginTicket.js +7 -6
  362. package/lib/auth/oAuth2client.d.ts +2 -2
  363. package/lib/auth/oAuth2client.js +314 -390
  364. package/lib/browser.js +2 -2
  365. package/lib/bundle.js +6 -41699
  366. package/lib/bundle.js.map +7 -0
  367. package/lib/index.d.ts +2 -2
  368. package/lib/index.js +36 -106
  369. package/package.json +18 -21
  370. package/lib/abstract/chevreConsole/transaction.d.ts +0 -7
  371. package/lib/abstract/chevreConsole/transaction.js +0 -12
@@ -1,320 +1,140 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- var __rest = (this && this.__rest) || function (s, e) {
54
- var t = {};
55
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
- t[p] = s[p];
57
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
- t[p[i]] = s[p[i]];
61
- }
62
- return t;
63
- };
64
2
  Object.defineProperty(exports, "__esModule", { value: true });
65
3
  exports.SellerService = void 0;
66
- var http_status_1 = require("http-status");
67
- var service_1 = require("../service");
4
+ const http_status_1 = require("http-status");
5
+ const service_1 = require("../service");
68
6
  /**
69
7
  * 販売者サービス
70
8
  */
71
- var SellerService = /** @class */ (function (_super) {
72
- __extends(SellerService, _super);
73
- function SellerService() {
74
- return _super !== null && _super.apply(this, arguments) || this;
75
- }
9
+ class SellerService extends service_1.Service {
76
10
  /**
77
11
  * 販売者作成
78
12
  */
79
- SellerService.prototype.create = function (params) {
80
- return __awaiter(this, void 0, void 0, function () {
81
- var _this = this;
82
- return __generator(this, function (_a) {
83
- return [2 /*return*/, this.fetch({
84
- uri: '/sellers',
85
- method: 'POST',
86
- body: params,
87
- expectedStatusCodes: [http_status_1.CREATED]
88
- })
89
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
90
- return [2 /*return*/, response.json()];
91
- }); }); })];
92
- });
93
- });
94
- };
13
+ async create(params) {
14
+ return this.fetch({
15
+ uri: '/sellers',
16
+ method: 'POST',
17
+ body: params,
18
+ expectedStatusCodes: [http_status_1.status.CREATED]
19
+ })
20
+ .then(async (response) => response.json());
21
+ }
95
22
  /**
96
23
  * 販売者取得
97
24
  */
98
- SellerService.prototype.findById = function (params) {
99
- return __awaiter(this, void 0, void 0, function () {
100
- var _this = this;
101
- return __generator(this, function (_a) {
102
- return [2 /*return*/, this.fetch({
103
- uri: "/sellers/".concat(params.id),
104
- method: 'GET',
105
- qs: params.qs,
106
- expectedStatusCodes: [http_status_1.OK]
107
- })
108
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
109
- return [2 /*return*/, response.json()];
110
- }); }); })];
111
- });
112
- });
113
- };
25
+ async findById(params) {
26
+ return this.fetch({
27
+ uri: `/sellers/${params.id}`,
28
+ method: 'GET',
29
+ qs: params.qs,
30
+ expectedStatusCodes: [http_status_1.status.OK]
31
+ })
32
+ .then(async (response) => response.json());
33
+ }
114
34
  /**
115
35
  * 販売者検索
116
36
  */
117
- SellerService.prototype.search = function (params) {
118
- return __awaiter(this, void 0, void 0, function () {
119
- var _this = this;
120
- return __generator(this, function (_a) {
121
- return [2 /*return*/, this.fetch({
122
- uri: '/sellers',
123
- method: 'GET',
124
- qs: params,
125
- expectedStatusCodes: [http_status_1.OK]
126
- })
127
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
128
- var _a;
129
- return __generator(this, function (_b) {
130
- switch (_b.label) {
131
- case 0:
132
- _a = {};
133
- return [4 /*yield*/, response.json()];
134
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
135
- _a)];
136
- }
137
- });
138
- }); })];
139
- });
37
+ async search(params) {
38
+ return this.fetch({
39
+ uri: '/sellers',
40
+ method: 'GET',
41
+ qs: params,
42
+ expectedStatusCodes: [http_status_1.status.OK]
43
+ })
44
+ .then(async (response) => {
45
+ return {
46
+ data: await response.json()
47
+ };
140
48
  });
141
- };
49
+ }
142
50
  /**
143
51
  * 販売者編集
144
52
  */
145
- SellerService.prototype.update = function (params) {
146
- return __awaiter(this, void 0, void 0, function () {
147
- return __generator(this, function (_a) {
148
- switch (_a.label) {
149
- case 0: return [4 /*yield*/, this.fetch({
150
- uri: "/sellers/".concat(params.id),
151
- method: 'PUT',
152
- body: params.attributes,
153
- expectedStatusCodes: [http_status_1.NO_CONTENT]
154
- })];
155
- case 1:
156
- _a.sent();
157
- return [2 /*return*/];
158
- }
159
- });
53
+ async update(params) {
54
+ await this.fetch({
55
+ uri: `/sellers/${params.id}`,
56
+ method: 'PUT',
57
+ body: params.attributes,
58
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
160
59
  });
161
- };
60
+ }
162
61
  /**
163
62
  * 販売者削除
164
63
  */
165
- SellerService.prototype.deleteById = function (params) {
166
- return __awaiter(this, void 0, void 0, function () {
167
- return __generator(this, function (_a) {
168
- switch (_a.label) {
169
- case 0: return [4 /*yield*/, this.fetch({
170
- uri: "/sellers/".concat(params.id),
171
- method: 'DELETE',
172
- expectedStatusCodes: [http_status_1.NO_CONTENT]
173
- })];
174
- case 1:
175
- _a.sent();
176
- return [2 /*return*/];
177
- }
178
- });
64
+ async deleteById(params) {
65
+ await this.fetch({
66
+ uri: `/sellers/${params.id}`,
67
+ method: 'DELETE',
68
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
179
69
  });
180
- };
70
+ }
181
71
  /**
182
72
  * 対応決済方法区分検索
183
73
  */
184
- SellerService.prototype.searchPaymentAccepted = function (params) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- var _this = this;
187
- return __generator(this, function (_a) {
188
- return [2 /*return*/, this.fetch({
189
- uri: "/sellers/".concat(params.id, "/paymentAccepted"),
190
- method: 'GET',
191
- qs: params.qs,
192
- expectedStatusCodes: [http_status_1.OK]
193
- })
194
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
195
- return [2 /*return*/, response.json()];
196
- }); }); })];
197
- });
198
- });
199
- };
200
- SellerService.prototype.createPaymentAccepted = function (params) {
201
- return __awaiter(this, void 0, void 0, function () {
202
- var seller, body;
203
- return __generator(this, function (_a) {
204
- switch (_a.label) {
205
- case 0:
206
- seller = params.seller, body = __rest(params, ["seller"]);
207
- return [4 /*yield*/, this.fetch({
208
- uri: "/sellers/".concat(seller.id, "/paymentAccepted"),
209
- method: 'POST',
210
- body: body,
211
- expectedStatusCodes: [http_status_1.NO_CONTENT]
212
- })];
213
- case 1:
214
- _a.sent();
215
- return [2 /*return*/];
216
- }
217
- });
74
+ async searchPaymentAccepted(params) {
75
+ return this.fetch({
76
+ uri: `/sellers/${params.id}/paymentAccepted`,
77
+ method: 'GET',
78
+ qs: params.qs,
79
+ expectedStatusCodes: [http_status_1.status.OK]
80
+ })
81
+ .then(async (response) => response.json());
82
+ }
83
+ async createPaymentAccepted(params) {
84
+ const { seller, ...body } = params;
85
+ await this.fetch({
86
+ uri: `/sellers/${seller.id}/paymentAccepted`,
87
+ method: 'POST',
88
+ body,
89
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
218
90
  });
219
- };
220
- SellerService.prototype.deletePaymentAccepted = function (params) {
221
- return __awaiter(this, void 0, void 0, function () {
222
- return __generator(this, function (_a) {
223
- switch (_a.label) {
224
- case 0: return [4 /*yield*/, this.fetch({
225
- uri: "/sellers/".concat(params.seller.id, "/paymentAccepted/").concat(params.codeValue),
226
- method: 'DELETE',
227
- expectedStatusCodes: [http_status_1.NO_CONTENT]
228
- })];
229
- case 1:
230
- _a.sent();
231
- return [2 /*return*/];
232
- }
233
- });
91
+ }
92
+ async deletePaymentAccepted(params) {
93
+ await this.fetch({
94
+ uri: `/sellers/${params.seller.id}/paymentAccepted/${params.codeValue}`,
95
+ method: 'DELETE',
96
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
234
97
  });
235
- };
98
+ }
236
99
  /**
237
100
  * 提供決済サービス検索
238
101
  */
239
- SellerService.prototype.searchProvidesPaymentService = function (params) {
240
- return __awaiter(this, void 0, void 0, function () {
241
- var _this = this;
242
- var _a;
243
- return __generator(this, function (_b) {
244
- return [2 /*return*/, this.fetch({
245
- uri: "/sellers/".concat((_a = params.provider) === null || _a === void 0 ? void 0 : _a.id, "/providesPaymentService"),
246
- method: 'GET',
247
- qs: params.qs,
248
- expectedStatusCodes: [http_status_1.OK]
249
- })
250
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
251
- var _a;
252
- return __generator(this, function (_b) {
253
- switch (_b.label) {
254
- case 0:
255
- _a = {};
256
- return [4 /*yield*/, response.json()];
257
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
258
- _a)];
259
- }
260
- });
261
- }); })];
262
- });
102
+ async searchProvidesPaymentService(params) {
103
+ return this.fetch({
104
+ uri: `/sellers/${params.provider?.id}/providesPaymentService`,
105
+ method: 'GET',
106
+ qs: params.qs,
107
+ expectedStatusCodes: [http_status_1.status.OK]
108
+ })
109
+ .then(async (response) => {
110
+ return {
111
+ data: await response.json()
112
+ };
263
113
  });
264
- };
265
- SellerService.prototype.createProvidesPaymentService = function (params) {
266
- return __awaiter(this, void 0, void 0, function () {
267
- var _a;
268
- return __generator(this, function (_b) {
269
- switch (_b.label) {
270
- case 0: return [4 /*yield*/, this.fetch({
271
- uri: "/sellers/".concat((_a = params.provider) === null || _a === void 0 ? void 0 : _a.id, "/providesPaymentService"),
272
- method: 'POST',
273
- body: params,
274
- expectedStatusCodes: [http_status_1.NO_CONTENT]
275
- })];
276
- case 1:
277
- _b.sent();
278
- return [2 /*return*/];
279
- }
280
- });
114
+ }
115
+ async createProvidesPaymentService(params) {
116
+ await this.fetch({
117
+ uri: `/sellers/${params.provider?.id}/providesPaymentService`,
118
+ method: 'POST',
119
+ body: params,
120
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
281
121
  });
282
- };
283
- SellerService.prototype.updateProvidesPaymentService = function (params) {
284
- return __awaiter(this, void 0, void 0, function () {
285
- var _a;
286
- return __generator(this, function (_b) {
287
- switch (_b.label) {
288
- case 0: return [4 /*yield*/, this.fetch({
289
- uri: "/sellers/".concat((_a = params.provider) === null || _a === void 0 ? void 0 : _a.id, "/providesPaymentService/").concat(params.id),
290
- method: 'PUT',
291
- body: params,
292
- expectedStatusCodes: [http_status_1.NO_CONTENT]
293
- })];
294
- case 1:
295
- _b.sent();
296
- return [2 /*return*/];
297
- }
298
- });
122
+ }
123
+ async updateProvidesPaymentService(params) {
124
+ await this.fetch({
125
+ uri: `/sellers/${params.provider?.id}/providesPaymentService/${params.id}`,
126
+ method: 'PUT',
127
+ body: params,
128
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
299
129
  });
300
- };
301
- SellerService.prototype.deleteProvidesPaymentService = function (params) {
302
- return __awaiter(this, void 0, void 0, function () {
303
- var _a;
304
- return __generator(this, function (_b) {
305
- switch (_b.label) {
306
- case 0: return [4 /*yield*/, this.fetch({
307
- uri: "/sellers/".concat((_a = params.provider) === null || _a === void 0 ? void 0 : _a.id, "/providesPaymentService/").concat(params.id),
308
- method: 'DELETE',
309
- expectedStatusCodes: [http_status_1.NO_CONTENT]
310
- })];
311
- case 1:
312
- _b.sent();
313
- return [2 /*return*/];
314
- }
315
- });
130
+ }
131
+ async deleteProvidesPaymentService(params) {
132
+ await this.fetch({
133
+ uri: `/sellers/${params.provider?.id}/providesPaymentService/${params.id}`,
134
+ method: 'DELETE',
135
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
316
136
  });
317
- };
137
+ }
318
138
  // public async searchMakesProductOffer(params: {
319
139
  // seller: {
320
140
  // /**
@@ -335,7 +155,7 @@ var SellerService = /** @class */ (function (_super) {
335
155
  // uri: `/sellers/${params.seller?.id}/makesProductOffer`,
336
156
  // method: 'GET',
337
157
  // qs: params.qs,
338
- // expectedStatusCodes: [OK]
158
+ // expectedStatusCodes: [status.OK]
339
159
  // })
340
160
  // .then(async (response) => {
341
161
  // return {
@@ -353,7 +173,7 @@ var SellerService = /** @class */ (function (_super) {
353
173
  // uri: `/sellers/${String(params.seller?.id)}/makesProductOffer`,
354
174
  // method: 'POST',
355
175
  // body: params,
356
- // expectedStatusCodes: [NO_CONTENT]
176
+ // expectedStatusCodes: [status.NO_CONTENT]
357
177
  // });
358
178
  // }
359
179
  // public async updateMakesProductOffer(params: Pick<
@@ -366,7 +186,7 @@ var SellerService = /** @class */ (function (_super) {
366
186
  // uri: `/sellers/${String(params.seller?.id)}/makesProductOffer/${params.itemOffered.id}`,
367
187
  // method: 'PUT',
368
188
  // body: params,
369
- // expectedStatusCodes: [NO_CONTENT]
189
+ // expectedStatusCodes: [status.NO_CONTENT]
370
190
  // });
371
191
  // }
372
192
  // public async deleteMakesProductOffer(params: {
@@ -376,100 +196,57 @@ var SellerService = /** @class */ (function (_super) {
376
196
  // await this.fetch({
377
197
  // uri: `/sellers/${params.seller?.id}/makesProductOffer/${params.itemOffered.id}`,
378
198
  // method: 'DELETE',
379
- // expectedStatusCodes: [NO_CONTENT]
199
+ // expectedStatusCodes: [status.NO_CONTENT]
380
200
  // });
381
201
  // }
382
202
  /**
383
203
  * IAMメンバー作成
384
204
  */
385
- SellerService.prototype.createMember = function (params) {
386
- return __awaiter(this, void 0, void 0, function () {
387
- var sellerId;
388
- var _a;
389
- return __generator(this, function (_b) {
390
- switch (_b.label) {
391
- case 0:
392
- sellerId = (_a = params[0]) === null || _a === void 0 ? void 0 : _a.member.memberOf.id;
393
- return [4 /*yield*/, this.fetch({
394
- uri: "/sellers/".concat(String(sellerId), "/members"),
395
- method: 'POST',
396
- body: params,
397
- expectedStatusCodes: [http_status_1.CREATED, http_status_1.NO_CONTENT]
398
- })];
399
- case 1:
400
- _b.sent();
401
- return [2 /*return*/];
402
- }
403
- });
205
+ async createMember(params) {
206
+ const sellerId = params[0]?.member.memberOf.id;
207
+ await this.fetch({
208
+ uri: `/sellers/${String(sellerId)}/members`,
209
+ method: 'POST',
210
+ body: params,
211
+ expectedStatusCodes: [http_status_1.status.CREATED, http_status_1.status.NO_CONTENT]
404
212
  });
405
- };
213
+ }
406
214
  /**
407
215
  * IAMメンバー検索
408
216
  */
409
- SellerService.prototype.searchMembers = function (params) {
410
- return __awaiter(this, void 0, void 0, function () {
411
- var _this = this;
412
- return __generator(this, function (_a) {
413
- return [2 /*return*/, this.fetch({
414
- uri: "/sellers/".concat(String(params.seller.id), "/members"),
415
- method: 'GET',
416
- qs: params.qs,
417
- expectedStatusCodes: [http_status_1.OK]
418
- })
419
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
420
- var _a;
421
- return __generator(this, function (_b) {
422
- switch (_b.label) {
423
- case 0:
424
- _a = {};
425
- return [4 /*yield*/, response.json()];
426
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
427
- _a)];
428
- }
429
- });
430
- }); })];
431
- });
217
+ async searchMembers(params) {
218
+ return this.fetch({
219
+ uri: `/sellers/${String(params.seller.id)}/members`,
220
+ method: 'GET',
221
+ qs: params.qs,
222
+ expectedStatusCodes: [http_status_1.status.OK]
223
+ })
224
+ .then(async (response) => {
225
+ return {
226
+ data: await response.json()
227
+ };
432
228
  });
433
- };
229
+ }
434
230
  /**
435
231
  * IAMメンバー更新
436
232
  */
437
- SellerService.prototype.updateMember = function (params) {
438
- return __awaiter(this, void 0, void 0, function () {
439
- return __generator(this, function (_a) {
440
- switch (_a.label) {
441
- case 0: return [4 /*yield*/, this.fetch({
442
- uri: "/sellers/".concat(params.member.memberOf.id, "/members/").concat(params.member.id),
443
- method: 'PUT',
444
- body: params,
445
- expectedStatusCodes: [http_status_1.NO_CONTENT]
446
- })];
447
- case 1:
448
- _a.sent();
449
- return [2 /*return*/];
450
- }
451
- });
233
+ async updateMember(params) {
234
+ await this.fetch({
235
+ uri: `/sellers/${params.member.memberOf.id}/members/${params.member.id}`,
236
+ method: 'PUT',
237
+ body: params,
238
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
452
239
  });
453
- };
240
+ }
454
241
  /**
455
242
  * IAMメンバー削除
456
243
  */
457
- SellerService.prototype.deleteMember = function (params) {
458
- return __awaiter(this, void 0, void 0, function () {
459
- return __generator(this, function (_a) {
460
- switch (_a.label) {
461
- case 0: return [4 /*yield*/, this.fetch({
462
- uri: "/sellers/".concat(params.member.memberOf.id, "/members/").concat(params.member.id),
463
- method: 'DELETE',
464
- expectedStatusCodes: [http_status_1.NO_CONTENT]
465
- })];
466
- case 1:
467
- _a.sent();
468
- return [2 /*return*/];
469
- }
470
- });
244
+ async deleteMember(params) {
245
+ await this.fetch({
246
+ uri: `/sellers/${params.member.memberOf.id}/members/${params.member.id}`,
247
+ method: 'DELETE',
248
+ expectedStatusCodes: [http_status_1.status.NO_CONTENT]
471
249
  });
472
- };
473
- return SellerService;
474
- }(service_1.Service));
250
+ }
251
+ }
475
252
  exports.SellerService = SellerService;
@@ -1,4 +1,4 @@
1
- import * as factory from '../factory';
1
+ import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
3
  type IMakesOffer = Pick<factory.seller.IMakesOffer, 'typeOf' | 'availableAtOrFrom' | 'eligibleTransactionDuration'>;
4
4
  type IMakesOfferAsFindResult = IMakesOffer & {