hey-pharmacist-ecommerce 1.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 (287) hide show
  1. package/README.md +269 -0
  2. package/dist/index.d.mts +564 -0
  3. package/dist/index.d.ts +564 -0
  4. package/dist/index.js +7541 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.mjs +7485 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +70 -0
  9. package/src/components/CartItem.tsx +103 -0
  10. package/src/components/EmptyState.tsx +27 -0
  11. package/src/components/Footer.tsx +147 -0
  12. package/src/components/Header.tsx +151 -0
  13. package/src/components/OrderCard.tsx +98 -0
  14. package/src/components/ProductCard.tsx +122 -0
  15. package/src/components/ui/Badge.tsx +31 -0
  16. package/src/components/ui/Button.tsx +61 -0
  17. package/src/components/ui/Input.tsx +45 -0
  18. package/src/components/ui/Modal.tsx +79 -0
  19. package/src/components/ui/Skeleton.tsx +46 -0
  20. package/src/hooks/useOrders.ts +98 -0
  21. package/src/hooks/useProducts.ts +125 -0
  22. package/src/index.ts +71 -0
  23. package/src/lib/Apis/api.ts +46 -0
  24. package/src/lib/Apis/apis/addresses-api.ts +1461 -0
  25. package/src/lib/Apis/apis/auth-api.ts +945 -0
  26. package/src/lib/Apis/apis/blogs-api.ts +582 -0
  27. package/src/lib/Apis/apis/cart-api.ts +456 -0
  28. package/src/lib/Apis/apis/categories-api.ts +725 -0
  29. package/src/lib/Apis/apis/chats-api.ts +1101 -0
  30. package/src/lib/Apis/apis/contact-us-api.ts +394 -0
  31. package/src/lib/Apis/apis/discounts-api.ts +763 -0
  32. package/src/lib/Apis/apis/drafts-api.ts +448 -0
  33. package/src/lib/Apis/apis/events-api.ts +1311 -0
  34. package/src/lib/Apis/apis/file-proccesor-api.ts +293 -0
  35. package/src/lib/Apis/apis/health-api.ts +119 -0
  36. package/src/lib/Apis/apis/images-api.ts +271 -0
  37. package/src/lib/Apis/apis/inventory-api.ts +375 -0
  38. package/src/lib/Apis/apis/marketing-api.ts +3099 -0
  39. package/src/lib/Apis/apis/notifications-api.ts +843 -0
  40. package/src/lib/Apis/apis/open-aiapi.ts +513 -0
  41. package/src/lib/Apis/apis/orders-api.ts +1343 -0
  42. package/src/lib/Apis/apis/payment-methods-api.ts +411 -0
  43. package/src/lib/Apis/apis/payments-api.ts +469 -0
  44. package/src/lib/Apis/apis/product-attributes-api.ts +538 -0
  45. package/src/lib/Apis/apis/product-favorite-list-api.ts +321 -0
  46. package/src/lib/Apis/apis/product-variants-api.ts +648 -0
  47. package/src/lib/Apis/apis/products-api.ts +1442 -0
  48. package/src/lib/Apis/apis/review-api.ts +1383 -0
  49. package/src/lib/Apis/apis/roles-api.ts +614 -0
  50. package/src/lib/Apis/apis/shipping-api.ts +703 -0
  51. package/src/lib/Apis/apis/statistics-api.ts +234 -0
  52. package/src/lib/Apis/apis/stores-api.ts +1519 -0
  53. package/src/lib/Apis/apis/sub-categories-api.ts +1208 -0
  54. package/src/lib/Apis/apis/user-groups-api.ts +1198 -0
  55. package/src/lib/Apis/apis/users-api.ts +1403 -0
  56. package/src/lib/Apis/apis/web-hooks-api.ts +198 -0
  57. package/src/lib/Apis/base.ts +70 -0
  58. package/src/lib/Apis/configuration.ts +75 -0
  59. package/src/lib/Apis/index.ts +17 -0
  60. package/src/lib/Apis/models/add-contact-to-list-dto.ts +33 -0
  61. package/src/lib/Apis/models/add-message-dto.ts +56 -0
  62. package/src/lib/Apis/models/address-created-request.ts +134 -0
  63. package/src/lib/Apis/models/address.ts +164 -0
  64. package/src/lib/Apis/models/allow-user-credit-dto.ts +27 -0
  65. package/src/lib/Apis/models/appointment.ts +75 -0
  66. package/src/lib/Apis/models/available-dates-dto.ts +33 -0
  67. package/src/lib/Apis/models/available-suggested-dates-dto.ts +33 -0
  68. package/src/lib/Apis/models/blog.ts +75 -0
  69. package/src/lib/Apis/models/browser-stats-response-dto.ts +40 -0
  70. package/src/lib/Apis/models/bulk-move-subcategories-dto.ts +33 -0
  71. package/src/lib/Apis/models/bulk-unassign-subcategories-dto.ts +27 -0
  72. package/src/lib/Apis/models/campaign-content-response-dto.ts +40 -0
  73. package/src/lib/Apis/models/campaign-draft-dto.ts +175 -0
  74. package/src/lib/Apis/models/campaign-draft-response-dto.ts +40 -0
  75. package/src/lib/Apis/models/campaign-draft-schedule-dto.ts +49 -0
  76. package/src/lib/Apis/models/campaign-draft-schedule-response-dto.ts +40 -0
  77. package/src/lib/Apis/models/campaign-draft-sending-dto.ts +43 -0
  78. package/src/lib/Apis/models/campaign-draft-sending-response-dto.ts +40 -0
  79. package/src/lib/Apis/models/cart-body-dto.ts +40 -0
  80. package/src/lib/Apis/models/cart-body-populated.ts +47 -0
  81. package/src/lib/Apis/models/cart-item-populated.ts +41 -0
  82. package/src/lib/Apis/models/cart-item.ts +33 -0
  83. package/src/lib/Apis/models/cart-response-dto.ts +70 -0
  84. package/src/lib/Apis/models/categories-paginated-response-dto.ts +52 -0
  85. package/src/lib/Apis/models/category-filters.ts +40 -0
  86. package/src/lib/Apis/models/category-populated.ts +106 -0
  87. package/src/lib/Apis/models/category-sub-category-populated.ts +51 -0
  88. package/src/lib/Apis/models/category.ts +99 -0
  89. package/src/lib/Apis/models/categorys-headlines-response-dto.ts +40 -0
  90. package/src/lib/Apis/models/change-user-email-dto.ts +27 -0
  91. package/src/lib/Apis/models/chat.ts +33 -0
  92. package/src/lib/Apis/models/check-notifications-response-dto.ts +33 -0
  93. package/src/lib/Apis/models/contact-aggregated-stats-response-dto.ts +40 -0
  94. package/src/lib/Apis/models/contact-full-dto.ts +93 -0
  95. package/src/lib/Apis/models/contact-full-response-dto.ts +40 -0
  96. package/src/lib/Apis/models/contact-list-stats-response-dto.ts +40 -0
  97. package/src/lib/Apis/models/contact-lists-response-dto.ts +40 -0
  98. package/src/lib/Apis/models/contact-us.ts +81 -0
  99. package/src/lib/Apis/models/country-stats-response-dto.ts +40 -0
  100. package/src/lib/Apis/models/create-address-dto.ts +134 -0
  101. package/src/lib/Apis/models/create-blog-dto.ts +45 -0
  102. package/src/lib/Apis/models/create-category-dto.ts +45 -0
  103. package/src/lib/Apis/models/create-chat-dto.ts +39 -0
  104. package/src/lib/Apis/models/create-contact-dto.ts +39 -0
  105. package/src/lib/Apis/models/create-contact-list-dto.ts +27 -0
  106. package/src/lib/Apis/models/create-discount-dto.ts +208 -0
  107. package/src/lib/Apis/models/create-draft-dto.ts +67 -0
  108. package/src/lib/Apis/models/create-email-template-dto.ts +51 -0
  109. package/src/lib/Apis/models/create-event-dto.ts +52 -0
  110. package/src/lib/Apis/models/create-marketing-campaign-dto.ts +81 -0
  111. package/src/lib/Apis/models/create-message-dto.ts +57 -0
  112. package/src/lib/Apis/models/create-notification-dto.ts +75 -0
  113. package/src/lib/Apis/models/create-product-attribute-dto.ts +33 -0
  114. package/src/lib/Apis/models/create-product-dto.ts +94 -0
  115. package/src/lib/Apis/models/create-review-dto.ts +63 -0
  116. package/src/lib/Apis/models/create-role-dto.ts +57 -0
  117. package/src/lib/Apis/models/create-single-variant-product-dto.ts +155 -0
  118. package/src/lib/Apis/models/create-store-address-dto.ts +134 -0
  119. package/src/lib/Apis/models/create-store-dto.ts +105 -0
  120. package/src/lib/Apis/models/create-sub-category-dto.ts +45 -0
  121. package/src/lib/Apis/models/create-user-dto.ts +89 -0
  122. package/src/lib/Apis/models/create-user-group-dto.ts +39 -0
  123. package/src/lib/Apis/models/create-variant-dto.ts +119 -0
  124. package/src/lib/Apis/models/create-zone-dto.ts +82 -0
  125. package/src/lib/Apis/models/custom-product-dto.ts +63 -0
  126. package/src/lib/Apis/models/default-payment-method-request-dto.ts +27 -0
  127. package/src/lib/Apis/models/delete-file-dto.ts +27 -0
  128. package/src/lib/Apis/models/delete-many-files-dto.ts +27 -0
  129. package/src/lib/Apis/models/discount-paginated-response.ts +52 -0
  130. package/src/lib/Apis/models/discount.ts +245 -0
  131. package/src/lib/Apis/models/discounts-insights-dto.ts +57 -0
  132. package/src/lib/Apis/models/draft.ts +79 -0
  133. package/src/lib/Apis/models/email-invoice-dto.ts +45 -0
  134. package/src/lib/Apis/models/email-template-response-dto.ts +117 -0
  135. package/src/lib/Apis/models/event.ts +76 -0
  136. package/src/lib/Apis/models/extended-product-dto.ts +204 -0
  137. package/src/lib/Apis/models/fileproccesor-upload-body.ts +27 -0
  138. package/src/lib/Apis/models/forget-password.ts +27 -0
  139. package/src/lib/Apis/models/frequently-bought-product-dto.ts +71 -0
  140. package/src/lib/Apis/models/general-stats-response-dto.ts +40 -0
  141. package/src/lib/Apis/models/generate-day-slots-dto.ts +51 -0
  142. package/src/lib/Apis/models/generate-month-slots-dto.ts +57 -0
  143. package/src/lib/Apis/models/generate-week-slots-dto.ts +57 -0
  144. package/src/lib/Apis/models/google-analytics-request-dto.ts +55 -0
  145. package/src/lib/Apis/models/google-analytics-response-dto.ts +39 -0
  146. package/src/lib/Apis/models/group-with-no-users-dto.ts +75 -0
  147. package/src/lib/Apis/models/group-with-users-dto.ts +76 -0
  148. package/src/lib/Apis/models/images-upload-body.ts +27 -0
  149. package/src/lib/Apis/models/index.ts +197 -0
  150. package/src/lib/Apis/models/inventory-paginated-response.ts +75 -0
  151. package/src/lib/Apis/models/link-stats-response-dto.ts +40 -0
  152. package/src/lib/Apis/models/login-dto.ts +33 -0
  153. package/src/lib/Apis/models/manual-discount.ts +49 -0
  154. package/src/lib/Apis/models/manual-order-dto.ts +133 -0
  155. package/src/lib/Apis/models/manual-shipping-dto.ts +45 -0
  156. package/src/lib/Apis/models/marketing-campaign-content-dto.ts +27 -0
  157. package/src/lib/Apis/models/marketing-list-contact-dto.ts +51 -0
  158. package/src/lib/Apis/models/move-subcategory-dto.ts +27 -0
  159. package/src/lib/Apis/models/my-favorite-list-dto.ts +52 -0
  160. package/src/lib/Apis/models/notification.ts +93 -0
  161. package/src/lib/Apis/models/object-id.ts +21 -0
  162. package/src/lib/Apis/models/open-api.ts +33 -0
  163. package/src/lib/Apis/models/order-paginated-response.ts +52 -0
  164. package/src/lib/Apis/models/order.ts +214 -0
  165. package/src/lib/Apis/models/orders-insights-dto.ts +69 -0
  166. package/src/lib/Apis/models/paginated-products-dto.ts +52 -0
  167. package/src/lib/Apis/models/payment-method-data.ts +34 -0
  168. package/src/lib/Apis/models/payment-method.ts +51 -0
  169. package/src/lib/Apis/models/payment-time-line-dto.ts +56 -0
  170. package/src/lib/Apis/models/payment.ts +182 -0
  171. package/src/lib/Apis/models/payments-insights-dto.ts +69 -0
  172. package/src/lib/Apis/models/payments-paginated-response.ts +52 -0
  173. package/src/lib/Apis/models/pick-type-class.ts +51 -0
  174. package/src/lib/Apis/models/populated-chat-dto.ts +95 -0
  175. package/src/lib/Apis/models/populated-discount.ts +246 -0
  176. package/src/lib/Apis/models/populated-order.ts +209 -0
  177. package/src/lib/Apis/models/prefered-pick-or-delivery-time-dto.ts +33 -0
  178. package/src/lib/Apis/models/price-range.ts +33 -0
  179. package/src/lib/Apis/models/product-attribute.ts +57 -0
  180. package/src/lib/Apis/models/product-variant.ts +167 -0
  181. package/src/lib/Apis/models/product.ts +136 -0
  182. package/src/lib/Apis/models/products-insights-dto.ts +45 -0
  183. package/src/lib/Apis/models/rate-dto.ts +123 -0
  184. package/src/lib/Apis/models/refill-request-dto.ts +75 -0
  185. package/src/lib/Apis/models/refill-request.ts +105 -0
  186. package/src/lib/Apis/models/register-or-login-with-gmail.ts +27 -0
  187. package/src/lib/Apis/models/reserve-appointment.ts +261 -0
  188. package/src/lib/Apis/models/review.ts +93 -0
  189. package/src/lib/Apis/models/role.ts +69 -0
  190. package/src/lib/Apis/models/schedule-campaign-draft-dto.ts +27 -0
  191. package/src/lib/Apis/models/send-test-email-dto.ts +28 -0
  192. package/src/lib/Apis/models/shallow-parent-category-dto.ts +33 -0
  193. package/src/lib/Apis/models/shipment-details-dto.ts +88 -0
  194. package/src/lib/Apis/models/shipment-status-dto.ts +117 -0
  195. package/src/lib/Apis/models/shipment-with-order.ts +105 -0
  196. package/src/lib/Apis/models/shipment.ts +104 -0
  197. package/src/lib/Apis/models/shipping-info.ts +88 -0
  198. package/src/lib/Apis/models/single-browser-stats-dto.ts +45 -0
  199. package/src/lib/Apis/models/single-contact-aggregated-stats-dto.ts +129 -0
  200. package/src/lib/Apis/models/single-contact-list-stats-dto.ts +117 -0
  201. package/src/lib/Apis/models/single-country-stats-dto.ts +39 -0
  202. package/src/lib/Apis/models/single-general-stats.ts +153 -0
  203. package/src/lib/Apis/models/single-link-stats-dto.ts +39 -0
  204. package/src/lib/Apis/models/single-message-populated.ts +59 -0
  205. package/src/lib/Apis/models/single-notification-dto.ts +99 -0
  206. package/src/lib/Apis/models/single-product-media.ts +74 -0
  207. package/src/lib/Apis/models/single-recipient-dto.ts +33 -0
  208. package/src/lib/Apis/models/single-suggest-attribute.ts +33 -0
  209. package/src/lib/Apis/models/statistic-dto.ts +171 -0
  210. package/src/lib/Apis/models/store-entity.ts +117 -0
  211. package/src/lib/Apis/models/store.ts +135 -0
  212. package/src/lib/Apis/models/sub-category-headlines-only-response-dto.ts +39 -0
  213. package/src/lib/Apis/models/sub-category.ts +93 -0
  214. package/src/lib/Apis/models/suggest-attributes.ts +28 -0
  215. package/src/lib/Apis/models/suggested-slot.ts +33 -0
  216. package/src/lib/Apis/models/table-cell-dto.ts +33 -0
  217. package/src/lib/Apis/models/table-dto.ts +34 -0
  218. package/src/lib/Apis/models/tadmin-session-data.ts +47 -0
  219. package/src/lib/Apis/models/track-dto.ts +94 -0
  220. package/src/lib/Apis/models/tracking-status-location-base.ts +45 -0
  221. package/src/lib/Apis/models/tracking-status-substatus.ts +39 -0
  222. package/src/lib/Apis/models/tracking-status.ts +71 -0
  223. package/src/lib/Apis/models/transfere-patient-request.ts +123 -0
  224. package/src/lib/Apis/models/transfere-patients-request-dto.ts +99 -0
  225. package/src/lib/Apis/models/tuser-session-data.ts +34 -0
  226. package/src/lib/Apis/models/update-address-dto.ts +134 -0
  227. package/src/lib/Apis/models/update-blog-dto.ts +45 -0
  228. package/src/lib/Apis/models/update-campaign-draft-content-dto.ts +27 -0
  229. package/src/lib/Apis/models/update-category-dto.ts +45 -0
  230. package/src/lib/Apis/models/update-discount-dto.ts +208 -0
  231. package/src/lib/Apis/models/update-event-dto.ts +52 -0
  232. package/src/lib/Apis/models/update-items-order-dto.ts +27 -0
  233. package/src/lib/Apis/models/update-marketing-camp-draft-dto.ts +81 -0
  234. package/src/lib/Apis/models/update-message-dto.ts +57 -0
  235. package/src/lib/Apis/models/update-product-attribute-dto.ts +33 -0
  236. package/src/lib/Apis/models/update-product-dto.ts +96 -0
  237. package/src/lib/Apis/models/update-product-variant-dto.ts +119 -0
  238. package/src/lib/Apis/models/update-refill-request-dto.ts +75 -0
  239. package/src/lib/Apis/models/update-review-dto.ts +63 -0
  240. package/src/lib/Apis/models/update-role-dto.ts +57 -0
  241. package/src/lib/Apis/models/update-store-dto.ts +105 -0
  242. package/src/lib/Apis/models/update-sub-category-dto.ts +45 -0
  243. package/src/lib/Apis/models/update-transfere-patients-request-dto.ts +99 -0
  244. package/src/lib/Apis/models/update-user-dto.ts +239 -0
  245. package/src/lib/Apis/models/update-user-group-dto.ts +39 -0
  246. package/src/lib/Apis/models/update-zone-dto.ts +82 -0
  247. package/src/lib/Apis/models/upload-pdf-body.ts +27 -0
  248. package/src/lib/Apis/models/used-by.ts +87 -0
  249. package/src/lib/Apis/models/user-entity.ts +220 -0
  250. package/src/lib/Apis/models/user-group.ts +75 -0
  251. package/src/lib/Apis/models/user-insights-dto.ts +39 -0
  252. package/src/lib/Apis/models/user-with-no-id.ts +226 -0
  253. package/src/lib/Apis/models/user.ts +232 -0
  254. package/src/lib/Apis/models/users-paginated-response.ts +52 -0
  255. package/src/lib/Apis/models/verify-email-dto.ts +33 -0
  256. package/src/lib/Apis/models/zone-single-size.ts +51 -0
  257. package/src/lib/Apis/models/zone.ts +106 -0
  258. package/src/lib/Apis/wrapper.ts +37 -0
  259. package/src/lib/api/auth.ts +81 -0
  260. package/src/lib/api/cart.ts +42 -0
  261. package/src/lib/api/client.ts +118 -0
  262. package/src/lib/api/orders.ts +53 -0
  263. package/src/lib/api/products.ts +51 -0
  264. package/src/lib/api-adapter/auth-adapter.ts +196 -0
  265. package/src/lib/api-adapter/cart-adapter.ts +193 -0
  266. package/src/lib/api-adapter/config.ts +76 -0
  267. package/src/lib/api-adapter/index.ts +13 -0
  268. package/src/lib/api-adapter/mappers.ts +147 -0
  269. package/src/lib/api-adapter/orders-adapter.ts +195 -0
  270. package/src/lib/api-adapter/products-adapter.ts +194 -0
  271. package/src/lib/types/index.ts +152 -0
  272. package/src/lib/utils/colors.ts +51 -0
  273. package/src/lib/utils/format.ts +48 -0
  274. package/src/providers/AuthProvider.tsx +117 -0
  275. package/src/providers/CartProvider.tsx +131 -0
  276. package/src/providers/EcommerceProvider.tsx +34 -0
  277. package/src/providers/ThemeProvider.tsx +57 -0
  278. package/src/screens/CartScreen.tsx +140 -0
  279. package/src/screens/CheckoutScreen.tsx +340 -0
  280. package/src/screens/CurrentOrdersScreen.tsx +85 -0
  281. package/src/screens/LoginScreen.tsx +149 -0
  282. package/src/screens/OrdersScreen.tsx +86 -0
  283. package/src/screens/ProductDetailScreen.tsx +255 -0
  284. package/src/screens/ProfileScreen.tsx +211 -0
  285. package/src/screens/RegisterScreen.tsx +200 -0
  286. package/src/screens/ShopScreen.tsx +233 -0
  287. package/src/styles/globals.css +51 -0
@@ -0,0 +1,1519 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hey Pharamcist API
5
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+ *
7
+ * OpenAPI spec version: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
15
+ import { Configuration } from '../configuration';
16
+ // Some imports not used depending on template conditions
17
+ // @ts-ignore
18
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
19
+ import { CreateStoreDto } from '../models';
20
+ import { RefillRequest } from '../models';
21
+ import { RefillRequestDto } from '../models';
22
+ import { StoreEntity } from '../models';
23
+ import { TransferePatientRequest } from '../models';
24
+ import { TransferePatientsRequestDto } from '../models';
25
+ import { UpdateRefillRequestDto } from '../models';
26
+ import { UpdateStoreDto } from '../models';
27
+ import { UpdateTransferePatientsRequestDto } from '../models';
28
+ /**
29
+ * StoresApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const StoresApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ *
36
+ * @summary Create a new store
37
+ * @param {CreateStoreDto} body
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ createStore: async (body: CreateStoreDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'body' is not null or undefined
43
+ if (body === null || body === undefined) {
44
+ throw new RequiredError('body','Required parameter body was null or undefined when calling createStore.');
45
+ }
46
+ const localVarPath = `/stores`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+ // authentication x-store-key required
58
+ if (configuration && configuration.apiKey) {
59
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
60
+ ? await configuration.apiKey("x-store-key")
61
+ : await configuration.apiKey;
62
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
63
+ }
64
+
65
+ localVarHeaderParameter['Content-Type'] = 'application/json';
66
+
67
+ const query = new URLSearchParams(localVarUrlObj.search);
68
+ for (const key in localVarQueryParameter) {
69
+ query.set(key, localVarQueryParameter[key]);
70
+ }
71
+ for (const key in options.params) {
72
+ query.set(key, options.params[key]);
73
+ }
74
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
78
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
79
+
80
+ return {
81
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ *
87
+ * @summary Delete refill request by id
88
+ * @param {string} requestId
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ deleteRefillRequest: async (requestId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'requestId' is not null or undefined
94
+ if (requestId === null || requestId === undefined) {
95
+ throw new RequiredError('requestId','Required parameter requestId was null or undefined when calling deleteRefillRequest.');
96
+ }
97
+ const localVarPath = `/stores/{id}/refill-requests/{requestId}`
98
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
99
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
100
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
101
+ let baseOptions;
102
+ if (configuration) {
103
+ baseOptions = configuration.baseOptions;
104
+ }
105
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
106
+ const localVarHeaderParameter = {} as any;
107
+ const localVarQueryParameter = {} as any;
108
+
109
+ // authentication x-store-key required
110
+ if (configuration && configuration.apiKey) {
111
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
112
+ ? await configuration.apiKey("x-store-key")
113
+ : await configuration.apiKey;
114
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
115
+ }
116
+
117
+ const query = new URLSearchParams(localVarUrlObj.search);
118
+ for (const key in localVarQueryParameter) {
119
+ query.set(key, localVarQueryParameter[key]);
120
+ }
121
+ for (const key in options.params) {
122
+ query.set(key, options.params[key]);
123
+ }
124
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+
128
+ return {
129
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ *
135
+ * @summary Delete store by id
136
+ * @param {string} id
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ deleteStore: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
141
+ // verify required parameter 'id' is not null or undefined
142
+ if (id === null || id === undefined) {
143
+ throw new RequiredError('id','Required parameter id was null or undefined when calling deleteStore.');
144
+ }
145
+ const localVarPath = `/stores/{id}`
146
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
154
+ const localVarHeaderParameter = {} as any;
155
+ const localVarQueryParameter = {} as any;
156
+
157
+ // authentication x-store-key required
158
+ if (configuration && configuration.apiKey) {
159
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
160
+ ? await configuration.apiKey("x-store-key")
161
+ : await configuration.apiKey;
162
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
163
+ }
164
+
165
+ const query = new URLSearchParams(localVarUrlObj.search);
166
+ for (const key in localVarQueryParameter) {
167
+ query.set(key, localVarQueryParameter[key]);
168
+ }
169
+ for (const key in options.params) {
170
+ query.set(key, options.params[key]);
171
+ }
172
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
175
+
176
+ return {
177
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
178
+ options: localVarRequestOptions,
179
+ };
180
+ },
181
+ /**
182
+ *
183
+ * @summary Delete transfere patients request by id
184
+ * @param {string} requestId
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ deleteTransferePatientsRequest: async (requestId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
189
+ // verify required parameter 'requestId' is not null or undefined
190
+ if (requestId === null || requestId === undefined) {
191
+ throw new RequiredError('requestId','Required parameter requestId was null or undefined when calling deleteTransferePatientsRequest.');
192
+ }
193
+ const localVarPath = `/stores/{id}/transfere-patients-requests/{requestId}`
194
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
197
+ let baseOptions;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ }
201
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options};
202
+ const localVarHeaderParameter = {} as any;
203
+ const localVarQueryParameter = {} as any;
204
+
205
+ // authentication x-store-key required
206
+ if (configuration && configuration.apiKey) {
207
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
208
+ ? await configuration.apiKey("x-store-key")
209
+ : await configuration.apiKey;
210
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
211
+ }
212
+
213
+ const query = new URLSearchParams(localVarUrlObj.search);
214
+ for (const key in localVarQueryParameter) {
215
+ query.set(key, localVarQueryParameter[key]);
216
+ }
217
+ for (const key in options.params) {
218
+ query.set(key, options.params[key]);
219
+ }
220
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
223
+
224
+ return {
225
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
226
+ options: localVarRequestOptions,
227
+ };
228
+ },
229
+ /**
230
+ *
231
+ * @summary Get all stores
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ getAllStores: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
236
+ const localVarPath = `/stores`;
237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
239
+ let baseOptions;
240
+ if (configuration) {
241
+ baseOptions = configuration.baseOptions;
242
+ }
243
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
244
+ const localVarHeaderParameter = {} as any;
245
+ const localVarQueryParameter = {} as any;
246
+
247
+ // authentication x-store-key required
248
+ if (configuration && configuration.apiKey) {
249
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
250
+ ? await configuration.apiKey("x-store-key")
251
+ : await configuration.apiKey;
252
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
253
+ }
254
+
255
+ const query = new URLSearchParams(localVarUrlObj.search);
256
+ for (const key in localVarQueryParameter) {
257
+ query.set(key, localVarQueryParameter[key]);
258
+ }
259
+ for (const key in options.params) {
260
+ query.set(key, options.params[key]);
261
+ }
262
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
265
+
266
+ return {
267
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
268
+ options: localVarRequestOptions,
269
+ };
270
+ },
271
+ /**
272
+ *
273
+ * @summary Get refill requests by store id
274
+ * @param {string} storeId
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ getRefillRequests: async (storeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
279
+ // verify required parameter 'storeId' is not null or undefined
280
+ if (storeId === null || storeId === undefined) {
281
+ throw new RequiredError('storeId','Required parameter storeId was null or undefined when calling getRefillRequests.');
282
+ }
283
+ const localVarPath = `/stores/{storeId}/refill-requests`
284
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
287
+ let baseOptions;
288
+ if (configuration) {
289
+ baseOptions = configuration.baseOptions;
290
+ }
291
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
292
+ const localVarHeaderParameter = {} as any;
293
+ const localVarQueryParameter = {} as any;
294
+
295
+ // authentication x-store-key required
296
+ if (configuration && configuration.apiKey) {
297
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
298
+ ? await configuration.apiKey("x-store-key")
299
+ : await configuration.apiKey;
300
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
301
+ }
302
+
303
+ const query = new URLSearchParams(localVarUrlObj.search);
304
+ for (const key in localVarQueryParameter) {
305
+ query.set(key, localVarQueryParameter[key]);
306
+ }
307
+ for (const key in options.params) {
308
+ query.set(key, options.params[key]);
309
+ }
310
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
313
+
314
+ return {
315
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
316
+ options: localVarRequestOptions,
317
+ };
318
+ },
319
+ /**
320
+ *
321
+ * @summary Get store by id
322
+ * @param {string} storeId
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ getStoreById: async (storeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
327
+ // verify required parameter 'storeId' is not null or undefined
328
+ if (storeId === null || storeId === undefined) {
329
+ throw new RequiredError('storeId','Required parameter storeId was null or undefined when calling getStoreById.');
330
+ }
331
+ const localVarPath = `/stores/{storeId}`
332
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
334
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
335
+ let baseOptions;
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ }
339
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
340
+ const localVarHeaderParameter = {} as any;
341
+ const localVarQueryParameter = {} as any;
342
+
343
+ // authentication x-store-key required
344
+ if (configuration && configuration.apiKey) {
345
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
346
+ ? await configuration.apiKey("x-store-key")
347
+ : await configuration.apiKey;
348
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
349
+ }
350
+
351
+ const query = new URLSearchParams(localVarUrlObj.search);
352
+ for (const key in localVarQueryParameter) {
353
+ query.set(key, localVarQueryParameter[key]);
354
+ }
355
+ for (const key in options.params) {
356
+ query.set(key, options.params[key]);
357
+ }
358
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
359
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
361
+
362
+ return {
363
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
364
+ options: localVarRequestOptions,
365
+ };
366
+ },
367
+ /**
368
+ *
369
+ * @summary Get transfere patients requests by store id
370
+ * @param {string} storeId
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ getTransferePatientsRequests: async (storeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
375
+ // verify required parameter 'storeId' is not null or undefined
376
+ if (storeId === null || storeId === undefined) {
377
+ throw new RequiredError('storeId','Required parameter storeId was null or undefined when calling getTransferePatientsRequests.');
378
+ }
379
+ const localVarPath = `/stores/{storeId}/transfere-patients-requests`
380
+ .replace(`{${"storeId"}}`, encodeURIComponent(String(storeId)));
381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
382
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
383
+ let baseOptions;
384
+ if (configuration) {
385
+ baseOptions = configuration.baseOptions;
386
+ }
387
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
388
+ const localVarHeaderParameter = {} as any;
389
+ const localVarQueryParameter = {} as any;
390
+
391
+ // authentication x-store-key required
392
+ if (configuration && configuration.apiKey) {
393
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
394
+ ? await configuration.apiKey("x-store-key")
395
+ : await configuration.apiKey;
396
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
397
+ }
398
+
399
+ const query = new URLSearchParams(localVarUrlObj.search);
400
+ for (const key in localVarQueryParameter) {
401
+ query.set(key, localVarQueryParameter[key]);
402
+ }
403
+ for (const key in options.params) {
404
+ query.set(key, options.params[key]);
405
+ }
406
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
408
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
409
+
410
+ return {
411
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
412
+ options: localVarRequestOptions,
413
+ };
414
+ },
415
+ /**
416
+ *
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ sendContactUsEmail: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
421
+ const localVarPath = `/stores/send-contact-us-email`;
422
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
423
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
424
+ let baseOptions;
425
+ if (configuration) {
426
+ baseOptions = configuration.baseOptions;
427
+ }
428
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
429
+ const localVarHeaderParameter = {} as any;
430
+ const localVarQueryParameter = {} as any;
431
+
432
+ // authentication x-store-key required
433
+ if (configuration && configuration.apiKey) {
434
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
435
+ ? await configuration.apiKey("x-store-key")
436
+ : await configuration.apiKey;
437
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
438
+ }
439
+
440
+ const query = new URLSearchParams(localVarUrlObj.search);
441
+ for (const key in localVarQueryParameter) {
442
+ query.set(key, localVarQueryParameter[key]);
443
+ }
444
+ for (const key in options.params) {
445
+ query.set(key, options.params[key]);
446
+ }
447
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
449
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
450
+
451
+ return {
452
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
453
+ options: localVarRequestOptions,
454
+ };
455
+ },
456
+ /**
457
+ *
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ sendContactUsEmailEzrirx: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
462
+ const localVarPath = `/stores/send-contact-us-email-ezrirx`;
463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
464
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
465
+ let baseOptions;
466
+ if (configuration) {
467
+ baseOptions = configuration.baseOptions;
468
+ }
469
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
470
+ const localVarHeaderParameter = {} as any;
471
+ const localVarQueryParameter = {} as any;
472
+
473
+ // authentication x-store-key required
474
+ if (configuration && configuration.apiKey) {
475
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
476
+ ? await configuration.apiKey("x-store-key")
477
+ : await configuration.apiKey;
478
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
479
+ }
480
+
481
+ const query = new URLSearchParams(localVarUrlObj.search);
482
+ for (const key in localVarQueryParameter) {
483
+ query.set(key, localVarQueryParameter[key]);
484
+ }
485
+ for (const key in options.params) {
486
+ query.set(key, options.params[key]);
487
+ }
488
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
489
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
490
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
491
+
492
+ return {
493
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
494
+ options: localVarRequestOptions,
495
+ };
496
+ },
497
+ /**
498
+ *
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ sendGMBookDemoEmail: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
503
+ const localVarPath = `/stores/g-m-send-book-demo-email`;
504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
505
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
506
+ let baseOptions;
507
+ if (configuration) {
508
+ baseOptions = configuration.baseOptions;
509
+ }
510
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
511
+ const localVarHeaderParameter = {} as any;
512
+ const localVarQueryParameter = {} as any;
513
+
514
+ // authentication x-store-key required
515
+ if (configuration && configuration.apiKey) {
516
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
517
+ ? await configuration.apiKey("x-store-key")
518
+ : await configuration.apiKey;
519
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
520
+ }
521
+
522
+ const query = new URLSearchParams(localVarUrlObj.search);
523
+ for (const key in localVarQueryParameter) {
524
+ query.set(key, localVarQueryParameter[key]);
525
+ }
526
+ for (const key in options.params) {
527
+ query.set(key, options.params[key]);
528
+ }
529
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
530
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
531
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
532
+
533
+ return {
534
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
535
+ options: localVarRequestOptions,
536
+ };
537
+ },
538
+ /**
539
+ *
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ sendGMContactUsEmail: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
544
+ const localVarPath = `/stores/g-m-send-contact-us-email`;
545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
546
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
547
+ let baseOptions;
548
+ if (configuration) {
549
+ baseOptions = configuration.baseOptions;
550
+ }
551
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
552
+ const localVarHeaderParameter = {} as any;
553
+ const localVarQueryParameter = {} as any;
554
+
555
+ // authentication x-store-key required
556
+ if (configuration && configuration.apiKey) {
557
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
558
+ ? await configuration.apiKey("x-store-key")
559
+ : await configuration.apiKey;
560
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
561
+ }
562
+
563
+ const query = new URLSearchParams(localVarUrlObj.search);
564
+ for (const key in localVarQueryParameter) {
565
+ query.set(key, localVarQueryParameter[key]);
566
+ }
567
+ for (const key in options.params) {
568
+ query.set(key, options.params[key]);
569
+ }
570
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
571
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
572
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
573
+
574
+ return {
575
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
576
+ options: localVarRequestOptions,
577
+ };
578
+ },
579
+ /**
580
+ *
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ sendGMJoinUsEmail: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
585
+ const localVarPath = `/stores/sendGMJoinUsEmail`;
586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
587
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
588
+ let baseOptions;
589
+ if (configuration) {
590
+ baseOptions = configuration.baseOptions;
591
+ }
592
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
593
+ const localVarHeaderParameter = {} as any;
594
+ const localVarQueryParameter = {} as any;
595
+
596
+ // authentication x-store-key required
597
+ if (configuration && configuration.apiKey) {
598
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
599
+ ? await configuration.apiKey("x-store-key")
600
+ : await configuration.apiKey;
601
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
602
+ }
603
+
604
+ const query = new URLSearchParams(localVarUrlObj.search);
605
+ for (const key in localVarQueryParameter) {
606
+ query.set(key, localVarQueryParameter[key]);
607
+ }
608
+ for (const key in options.params) {
609
+ query.set(key, options.params[key]);
610
+ }
611
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
613
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
614
+
615
+ return {
616
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
617
+ options: localVarRequestOptions,
618
+ };
619
+ },
620
+ /**
621
+ *
622
+ * @param {TransferePatientsRequestDto} body
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ sendNewPatientEmail: async (body: TransferePatientsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
627
+ // verify required parameter 'body' is not null or undefined
628
+ if (body === null || body === undefined) {
629
+ throw new RequiredError('body','Required parameter body was null or undefined when calling sendNewPatientEmail.');
630
+ }
631
+ const localVarPath = `/stores/send-new-patient-email`;
632
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
633
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
634
+ let baseOptions;
635
+ if (configuration) {
636
+ baseOptions = configuration.baseOptions;
637
+ }
638
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
639
+ const localVarHeaderParameter = {} as any;
640
+ const localVarQueryParameter = {} as any;
641
+
642
+ // authentication x-store-key required
643
+ if (configuration && configuration.apiKey) {
644
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
645
+ ? await configuration.apiKey("x-store-key")
646
+ : await configuration.apiKey;
647
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
648
+ }
649
+
650
+ localVarHeaderParameter['Content-Type'] = 'application/json';
651
+
652
+ const query = new URLSearchParams(localVarUrlObj.search);
653
+ for (const key in localVarQueryParameter) {
654
+ query.set(key, localVarQueryParameter[key]);
655
+ }
656
+ for (const key in options.params) {
657
+ query.set(key, options.params[key]);
658
+ }
659
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
660
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
661
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
662
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
663
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
664
+
665
+ return {
666
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
667
+ options: localVarRequestOptions,
668
+ };
669
+ },
670
+ /**
671
+ *
672
+ * @param {RefillRequestDto} body
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ sendRefillEmail: async (body: RefillRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
677
+ // verify required parameter 'body' is not null or undefined
678
+ if (body === null || body === undefined) {
679
+ throw new RequiredError('body','Required parameter body was null or undefined when calling sendRefillEmail.');
680
+ }
681
+ const localVarPath = `/stores/send-refill-email`;
682
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
683
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
684
+ let baseOptions;
685
+ if (configuration) {
686
+ baseOptions = configuration.baseOptions;
687
+ }
688
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
689
+ const localVarHeaderParameter = {} as any;
690
+ const localVarQueryParameter = {} as any;
691
+
692
+ // authentication x-store-key required
693
+ if (configuration && configuration.apiKey) {
694
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
695
+ ? await configuration.apiKey("x-store-key")
696
+ : await configuration.apiKey;
697
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
698
+ }
699
+
700
+ localVarHeaderParameter['Content-Type'] = 'application/json';
701
+
702
+ const query = new URLSearchParams(localVarUrlObj.search);
703
+ for (const key in localVarQueryParameter) {
704
+ query.set(key, localVarQueryParameter[key]);
705
+ }
706
+ for (const key in options.params) {
707
+ query.set(key, options.params[key]);
708
+ }
709
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
710
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
711
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
712
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
713
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
714
+
715
+ return {
716
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
717
+ options: localVarRequestOptions,
718
+ };
719
+ },
720
+ /**
721
+ *
722
+ * @summary Update refill request by id
723
+ * @param {UpdateRefillRequestDto} body
724
+ * @param {string} requestId
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ updateRefillRequest: async (body: UpdateRefillRequestDto, requestId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
729
+ // verify required parameter 'body' is not null or undefined
730
+ if (body === null || body === undefined) {
731
+ throw new RequiredError('body','Required parameter body was null or undefined when calling updateRefillRequest.');
732
+ }
733
+ // verify required parameter 'requestId' is not null or undefined
734
+ if (requestId === null || requestId === undefined) {
735
+ throw new RequiredError('requestId','Required parameter requestId was null or undefined when calling updateRefillRequest.');
736
+ }
737
+ const localVarPath = `/stores/{id}/refill-requests/{requestId}`
738
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
739
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
740
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
741
+ let baseOptions;
742
+ if (configuration) {
743
+ baseOptions = configuration.baseOptions;
744
+ }
745
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options};
746
+ const localVarHeaderParameter = {} as any;
747
+ const localVarQueryParameter = {} as any;
748
+
749
+ // authentication x-store-key required
750
+ if (configuration && configuration.apiKey) {
751
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
752
+ ? await configuration.apiKey("x-store-key")
753
+ : await configuration.apiKey;
754
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
755
+ }
756
+
757
+ localVarHeaderParameter['Content-Type'] = 'application/json';
758
+
759
+ const query = new URLSearchParams(localVarUrlObj.search);
760
+ for (const key in localVarQueryParameter) {
761
+ query.set(key, localVarQueryParameter[key]);
762
+ }
763
+ for (const key in options.params) {
764
+ query.set(key, options.params[key]);
765
+ }
766
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
769
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
770
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
771
+
772
+ return {
773
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
774
+ options: localVarRequestOptions,
775
+ };
776
+ },
777
+ /**
778
+ *
779
+ * @summary Get store by id
780
+ * @param {UpdateStoreDto} body
781
+ * @param {string} id
782
+ * @param {*} [options] Override http request option.
783
+ * @throws {RequiredError}
784
+ */
785
+ updateStore: async (body: UpdateStoreDto, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
786
+ // verify required parameter 'body' is not null or undefined
787
+ if (body === null || body === undefined) {
788
+ throw new RequiredError('body','Required parameter body was null or undefined when calling updateStore.');
789
+ }
790
+ // verify required parameter 'id' is not null or undefined
791
+ if (id === null || id === undefined) {
792
+ throw new RequiredError('id','Required parameter id was null or undefined when calling updateStore.');
793
+ }
794
+ const localVarPath = `/stores/{id}`
795
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
796
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
797
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
798
+ let baseOptions;
799
+ if (configuration) {
800
+ baseOptions = configuration.baseOptions;
801
+ }
802
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options};
803
+ const localVarHeaderParameter = {} as any;
804
+ const localVarQueryParameter = {} as any;
805
+
806
+ // authentication x-store-key required
807
+ if (configuration && configuration.apiKey) {
808
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
809
+ ? await configuration.apiKey("x-store-key")
810
+ : await configuration.apiKey;
811
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
812
+ }
813
+
814
+ localVarHeaderParameter['Content-Type'] = 'application/json';
815
+
816
+ const query = new URLSearchParams(localVarUrlObj.search);
817
+ for (const key in localVarQueryParameter) {
818
+ query.set(key, localVarQueryParameter[key]);
819
+ }
820
+ for (const key in options.params) {
821
+ query.set(key, options.params[key]);
822
+ }
823
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
824
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
825
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
826
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
827
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
828
+
829
+ return {
830
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
831
+ options: localVarRequestOptions,
832
+ };
833
+ },
834
+ /**
835
+ *
836
+ * @summary Update transfere patients request by id
837
+ * @param {UpdateTransferePatientsRequestDto} body
838
+ * @param {string} requestId
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ updateTransferePatientsRequest: async (body: UpdateTransferePatientsRequestDto, requestId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
843
+ // verify required parameter 'body' is not null or undefined
844
+ if (body === null || body === undefined) {
845
+ throw new RequiredError('body','Required parameter body was null or undefined when calling updateTransferePatientsRequest.');
846
+ }
847
+ // verify required parameter 'requestId' is not null or undefined
848
+ if (requestId === null || requestId === undefined) {
849
+ throw new RequiredError('requestId','Required parameter requestId was null or undefined when calling updateTransferePatientsRequest.');
850
+ }
851
+ const localVarPath = `/stores/{id}/transfere-patients-requests/{requestId}`
852
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
853
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
854
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
855
+ let baseOptions;
856
+ if (configuration) {
857
+ baseOptions = configuration.baseOptions;
858
+ }
859
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options};
860
+ const localVarHeaderParameter = {} as any;
861
+ const localVarQueryParameter = {} as any;
862
+
863
+ // authentication x-store-key required
864
+ if (configuration && configuration.apiKey) {
865
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
866
+ ? await configuration.apiKey("x-store-key")
867
+ : await configuration.apiKey;
868
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
869
+ }
870
+
871
+ localVarHeaderParameter['Content-Type'] = 'application/json';
872
+
873
+ const query = new URLSearchParams(localVarUrlObj.search);
874
+ for (const key in localVarQueryParameter) {
875
+ query.set(key, localVarQueryParameter[key]);
876
+ }
877
+ for (const key in options.params) {
878
+ query.set(key, options.params[key]);
879
+ }
880
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
881
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
883
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
884
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
885
+
886
+ return {
887
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
888
+ options: localVarRequestOptions,
889
+ };
890
+ },
891
+ }
892
+ };
893
+
894
+ /**
895
+ * StoresApi - functional programming interface
896
+ * @export
897
+ */
898
+ export const StoresApiFp = function(configuration?: Configuration) {
899
+ return {
900
+ /**
901
+ *
902
+ * @summary Create a new store
903
+ * @param {CreateStoreDto} body
904
+ * @param {*} [options] Override http request option.
905
+ * @throws {RequiredError}
906
+ */
907
+ async createStore(body: CreateStoreDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StoreEntity>>> {
908
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
909
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
910
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
911
+ return axios.request(axiosRequestArgs);
912
+ };
913
+ },
914
+ /**
915
+ *
916
+ * @summary Delete refill request by id
917
+ * @param {string} requestId
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ async deleteRefillRequest(requestId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<RefillRequest>>> {
922
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
923
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
924
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
925
+ return axios.request(axiosRequestArgs);
926
+ };
927
+ },
928
+ /**
929
+ *
930
+ * @summary Delete store by id
931
+ * @param {string} id
932
+ * @param {*} [options] Override http request option.
933
+ * @throws {RequiredError}
934
+ */
935
+ async deleteStore(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StoreEntity>>> {
936
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
937
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
938
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
939
+ return axios.request(axiosRequestArgs);
940
+ };
941
+ },
942
+ /**
943
+ *
944
+ * @summary Delete transfere patients request by id
945
+ * @param {string} requestId
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ */
949
+ async deleteTransferePatientsRequest(requestId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransferePatientRequest>>> {
950
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
951
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
952
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
953
+ return axios.request(axiosRequestArgs);
954
+ };
955
+ },
956
+ /**
957
+ *
958
+ * @summary Get all stores
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ async getAllStores(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<StoreEntity>>>> {
963
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
964
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
965
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
966
+ return axios.request(axiosRequestArgs);
967
+ };
968
+ },
969
+ /**
970
+ *
971
+ * @summary Get refill requests by store id
972
+ * @param {string} storeId
973
+ * @param {*} [options] Override http request option.
974
+ * @throws {RequiredError}
975
+ */
976
+ async getRefillRequests(storeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<RefillRequest>>>> {
977
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
978
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
979
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
980
+ return axios.request(axiosRequestArgs);
981
+ };
982
+ },
983
+ /**
984
+ *
985
+ * @summary Get store by id
986
+ * @param {string} storeId
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ async getStoreById(storeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StoreEntity>>> {
991
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
992
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
993
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
994
+ return axios.request(axiosRequestArgs);
995
+ };
996
+ },
997
+ /**
998
+ *
999
+ * @summary Get transfere patients requests by store id
1000
+ * @param {string} storeId
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ async getTransferePatientsRequests(storeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<TransferePatientRequest>>>> {
1005
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
1006
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1007
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1008
+ return axios.request(axiosRequestArgs);
1009
+ };
1010
+ },
1011
+ /**
1012
+ *
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ */
1016
+ async sendContactUsEmail(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1017
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
1018
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1019
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1020
+ return axios.request(axiosRequestArgs);
1021
+ };
1022
+ },
1023
+ /**
1024
+ *
1025
+ * @param {*} [options] Override http request option.
1026
+ * @throws {RequiredError}
1027
+ */
1028
+ async sendContactUsEmailEzrirx(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1029
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
1030
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1031
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1032
+ return axios.request(axiosRequestArgs);
1033
+ };
1034
+ },
1035
+ /**
1036
+ *
1037
+ * @param {*} [options] Override http request option.
1038
+ * @throws {RequiredError}
1039
+ */
1040
+ async sendGMBookDemoEmail(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1041
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
1042
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1043
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1044
+ return axios.request(axiosRequestArgs);
1045
+ };
1046
+ },
1047
+ /**
1048
+ *
1049
+ * @param {*} [options] Override http request option.
1050
+ * @throws {RequiredError}
1051
+ */
1052
+ async sendGMContactUsEmail(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1053
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
1054
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1055
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1056
+ return axios.request(axiosRequestArgs);
1057
+ };
1058
+ },
1059
+ /**
1060
+ *
1061
+ * @param {*} [options] Override http request option.
1062
+ * @throws {RequiredError}
1063
+ */
1064
+ async sendGMJoinUsEmail(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1065
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
1066
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1067
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1068
+ return axios.request(axiosRequestArgs);
1069
+ };
1070
+ },
1071
+ /**
1072
+ *
1073
+ * @param {TransferePatientsRequestDto} body
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ async sendNewPatientEmail(body: TransferePatientsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1078
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
1079
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1080
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1081
+ return axios.request(axiosRequestArgs);
1082
+ };
1083
+ },
1084
+ /**
1085
+ *
1086
+ * @param {RefillRequestDto} body
1087
+ * @param {*} [options] Override http request option.
1088
+ * @throws {RequiredError}
1089
+ */
1090
+ async sendRefillEmail(body: RefillRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
1091
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
1092
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1093
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1094
+ return axios.request(axiosRequestArgs);
1095
+ };
1096
+ },
1097
+ /**
1098
+ *
1099
+ * @summary Update refill request by id
1100
+ * @param {UpdateRefillRequestDto} body
1101
+ * @param {string} requestId
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ async updateRefillRequest(body: UpdateRefillRequestDto, requestId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<RefillRequest>>> {
1106
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
1107
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1108
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1109
+ return axios.request(axiosRequestArgs);
1110
+ };
1111
+ },
1112
+ /**
1113
+ *
1114
+ * @summary Get store by id
1115
+ * @param {UpdateStoreDto} body
1116
+ * @param {string} id
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ async updateStore(body: UpdateStoreDto, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StoreEntity>>> {
1121
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
1122
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1123
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1124
+ return axios.request(axiosRequestArgs);
1125
+ };
1126
+ },
1127
+ /**
1128
+ *
1129
+ * @summary Update transfere patients request by id
1130
+ * @param {UpdateTransferePatientsRequestDto} body
1131
+ * @param {string} requestId
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ */
1135
+ async updateTransferePatientsRequest(body: UpdateTransferePatientsRequestDto, requestId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransferePatientRequest>>> {
1136
+ const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
1137
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
1138
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
1139
+ return axios.request(axiosRequestArgs);
1140
+ };
1141
+ },
1142
+ }
1143
+ };
1144
+
1145
+ /**
1146
+ * StoresApi - factory interface
1147
+ * @export
1148
+ */
1149
+ export const StoresApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1150
+ return {
1151
+ /**
1152
+ *
1153
+ * @summary Create a new store
1154
+ * @param {CreateStoreDto} body
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ */
1158
+ async createStore(body: CreateStoreDto, options?: AxiosRequestConfig): Promise<AxiosResponse<StoreEntity>> {
1159
+ return StoresApiFp(configuration).createStore(body, options).then((request) => request(axios, basePath));
1160
+ },
1161
+ /**
1162
+ *
1163
+ * @summary Delete refill request by id
1164
+ * @param {string} requestId
1165
+ * @param {*} [options] Override http request option.
1166
+ * @throws {RequiredError}
1167
+ */
1168
+ async deleteRefillRequest(requestId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<RefillRequest>> {
1169
+ return StoresApiFp(configuration).deleteRefillRequest(requestId, options).then((request) => request(axios, basePath));
1170
+ },
1171
+ /**
1172
+ *
1173
+ * @summary Delete store by id
1174
+ * @param {string} id
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ */
1178
+ async deleteStore(id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StoreEntity>> {
1179
+ return StoresApiFp(configuration).deleteStore(id, options).then((request) => request(axios, basePath));
1180
+ },
1181
+ /**
1182
+ *
1183
+ * @summary Delete transfere patients request by id
1184
+ * @param {string} requestId
1185
+ * @param {*} [options] Override http request option.
1186
+ * @throws {RequiredError}
1187
+ */
1188
+ async deleteTransferePatientsRequest(requestId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<TransferePatientRequest>> {
1189
+ return StoresApiFp(configuration).deleteTransferePatientsRequest(requestId, options).then((request) => request(axios, basePath));
1190
+ },
1191
+ /**
1192
+ *
1193
+ * @summary Get all stores
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ */
1197
+ async getAllStores(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<StoreEntity>>> {
1198
+ return StoresApiFp(configuration).getAllStores(options).then((request) => request(axios, basePath));
1199
+ },
1200
+ /**
1201
+ *
1202
+ * @summary Get refill requests by store id
1203
+ * @param {string} storeId
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ async getRefillRequests(storeId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<RefillRequest>>> {
1208
+ return StoresApiFp(configuration).getRefillRequests(storeId, options).then((request) => request(axios, basePath));
1209
+ },
1210
+ /**
1211
+ *
1212
+ * @summary Get store by id
1213
+ * @param {string} storeId
1214
+ * @param {*} [options] Override http request option.
1215
+ * @throws {RequiredError}
1216
+ */
1217
+ async getStoreById(storeId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StoreEntity>> {
1218
+ return StoresApiFp(configuration).getStoreById(storeId, options).then((request) => request(axios, basePath));
1219
+ },
1220
+ /**
1221
+ *
1222
+ * @summary Get transfere patients requests by store id
1223
+ * @param {string} storeId
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ */
1227
+ async getTransferePatientsRequests(storeId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<TransferePatientRequest>>> {
1228
+ return StoresApiFp(configuration).getTransferePatientsRequests(storeId, options).then((request) => request(axios, basePath));
1229
+ },
1230
+ /**
1231
+ *
1232
+ * @param {*} [options] Override http request option.
1233
+ * @throws {RequiredError}
1234
+ */
1235
+ async sendContactUsEmail(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1236
+ return StoresApiFp(configuration).sendContactUsEmail(options).then((request) => request(axios, basePath));
1237
+ },
1238
+ /**
1239
+ *
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ */
1243
+ async sendContactUsEmailEzrirx(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1244
+ return StoresApiFp(configuration).sendContactUsEmailEzrirx(options).then((request) => request(axios, basePath));
1245
+ },
1246
+ /**
1247
+ *
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ async sendGMBookDemoEmail(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1252
+ return StoresApiFp(configuration).sendGMBookDemoEmail(options).then((request) => request(axios, basePath));
1253
+ },
1254
+ /**
1255
+ *
1256
+ * @param {*} [options] Override http request option.
1257
+ * @throws {RequiredError}
1258
+ */
1259
+ async sendGMContactUsEmail(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1260
+ return StoresApiFp(configuration).sendGMContactUsEmail(options).then((request) => request(axios, basePath));
1261
+ },
1262
+ /**
1263
+ *
1264
+ * @param {*} [options] Override http request option.
1265
+ * @throws {RequiredError}
1266
+ */
1267
+ async sendGMJoinUsEmail(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1268
+ return StoresApiFp(configuration).sendGMJoinUsEmail(options).then((request) => request(axios, basePath));
1269
+ },
1270
+ /**
1271
+ *
1272
+ * @param {TransferePatientsRequestDto} body
1273
+ * @param {*} [options] Override http request option.
1274
+ * @throws {RequiredError}
1275
+ */
1276
+ async sendNewPatientEmail(body: TransferePatientsRequestDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1277
+ return StoresApiFp(configuration).sendNewPatientEmail(body, options).then((request) => request(axios, basePath));
1278
+ },
1279
+ /**
1280
+ *
1281
+ * @param {RefillRequestDto} body
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ async sendRefillEmail(body: RefillRequestDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
1286
+ return StoresApiFp(configuration).sendRefillEmail(body, options).then((request) => request(axios, basePath));
1287
+ },
1288
+ /**
1289
+ *
1290
+ * @summary Update refill request by id
1291
+ * @param {UpdateRefillRequestDto} body
1292
+ * @param {string} requestId
1293
+ * @param {*} [options] Override http request option.
1294
+ * @throws {RequiredError}
1295
+ */
1296
+ async updateRefillRequest(body: UpdateRefillRequestDto, requestId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<RefillRequest>> {
1297
+ return StoresApiFp(configuration).updateRefillRequest(body, requestId, options).then((request) => request(axios, basePath));
1298
+ },
1299
+ /**
1300
+ *
1301
+ * @summary Get store by id
1302
+ * @param {UpdateStoreDto} body
1303
+ * @param {string} id
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ */
1307
+ async updateStore(body: UpdateStoreDto, id: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StoreEntity>> {
1308
+ return StoresApiFp(configuration).updateStore(body, id, options).then((request) => request(axios, basePath));
1309
+ },
1310
+ /**
1311
+ *
1312
+ * @summary Update transfere patients request by id
1313
+ * @param {UpdateTransferePatientsRequestDto} body
1314
+ * @param {string} requestId
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ async updateTransferePatientsRequest(body: UpdateTransferePatientsRequestDto, requestId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<TransferePatientRequest>> {
1319
+ return StoresApiFp(configuration).updateTransferePatientsRequest(body, requestId, options).then((request) => request(axios, basePath));
1320
+ },
1321
+ };
1322
+ };
1323
+
1324
+ /**
1325
+ * StoresApi - object-oriented interface
1326
+ * @export
1327
+ * @class StoresApi
1328
+ * @extends {BaseAPI}
1329
+ */
1330
+ export class StoresApi extends BaseAPI {
1331
+ /**
1332
+ *
1333
+ * @summary Create a new store
1334
+ * @param {CreateStoreDto} body
1335
+ * @param {*} [options] Override http request option.
1336
+ * @throws {RequiredError}
1337
+ * @memberof StoresApi
1338
+ */
1339
+ public async createStore(body: CreateStoreDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<StoreEntity>> {
1340
+ return StoresApiFp(this.configuration).createStore(body, options).then((request) => request(this.axios, this.basePath));
1341
+ }
1342
+ /**
1343
+ *
1344
+ * @summary Delete refill request by id
1345
+ * @param {string} requestId
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ * @memberof StoresApi
1349
+ */
1350
+ public async deleteRefillRequest(requestId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<RefillRequest>> {
1351
+ return StoresApiFp(this.configuration).deleteRefillRequest(requestId, options).then((request) => request(this.axios, this.basePath));
1352
+ }
1353
+ /**
1354
+ *
1355
+ * @summary Delete store by id
1356
+ * @param {string} id
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ * @memberof StoresApi
1360
+ */
1361
+ public async deleteStore(id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<StoreEntity>> {
1362
+ return StoresApiFp(this.configuration).deleteStore(id, options).then((request) => request(this.axios, this.basePath));
1363
+ }
1364
+ /**
1365
+ *
1366
+ * @summary Delete transfere patients request by id
1367
+ * @param {string} requestId
1368
+ * @param {*} [options] Override http request option.
1369
+ * @throws {RequiredError}
1370
+ * @memberof StoresApi
1371
+ */
1372
+ public async deleteTransferePatientsRequest(requestId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransferePatientRequest>> {
1373
+ return StoresApiFp(this.configuration).deleteTransferePatientsRequest(requestId, options).then((request) => request(this.axios, this.basePath));
1374
+ }
1375
+ /**
1376
+ *
1377
+ * @summary Get all stores
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ * @memberof StoresApi
1381
+ */
1382
+ public async getAllStores(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<StoreEntity>>> {
1383
+ return StoresApiFp(this.configuration).getAllStores(options).then((request) => request(this.axios, this.basePath));
1384
+ }
1385
+ /**
1386
+ *
1387
+ * @summary Get refill requests by store id
1388
+ * @param {string} storeId
1389
+ * @param {*} [options] Override http request option.
1390
+ * @throws {RequiredError}
1391
+ * @memberof StoresApi
1392
+ */
1393
+ public async getRefillRequests(storeId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<RefillRequest>>> {
1394
+ return StoresApiFp(this.configuration).getRefillRequests(storeId, options).then((request) => request(this.axios, this.basePath));
1395
+ }
1396
+ /**
1397
+ *
1398
+ * @summary Get store by id
1399
+ * @param {string} storeId
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ * @memberof StoresApi
1403
+ */
1404
+ public async getStoreById(storeId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<StoreEntity>> {
1405
+ return StoresApiFp(this.configuration).getStoreById(storeId, options).then((request) => request(this.axios, this.basePath));
1406
+ }
1407
+ /**
1408
+ *
1409
+ * @summary Get transfere patients requests by store id
1410
+ * @param {string} storeId
1411
+ * @param {*} [options] Override http request option.
1412
+ * @throws {RequiredError}
1413
+ * @memberof StoresApi
1414
+ */
1415
+ public async getTransferePatientsRequests(storeId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<TransferePatientRequest>>> {
1416
+ return StoresApiFp(this.configuration).getTransferePatientsRequests(storeId, options).then((request) => request(this.axios, this.basePath));
1417
+ }
1418
+ /**
1419
+ *
1420
+ * @param {*} [options] Override http request option.
1421
+ * @throws {RequiredError}
1422
+ * @memberof StoresApi
1423
+ */
1424
+ public async sendContactUsEmail(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1425
+ return StoresApiFp(this.configuration).sendContactUsEmail(options).then((request) => request(this.axios, this.basePath));
1426
+ }
1427
+ /**
1428
+ *
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ * @memberof StoresApi
1432
+ */
1433
+ public async sendContactUsEmailEzrirx(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1434
+ return StoresApiFp(this.configuration).sendContactUsEmailEzrirx(options).then((request) => request(this.axios, this.basePath));
1435
+ }
1436
+ /**
1437
+ *
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ * @memberof StoresApi
1441
+ */
1442
+ public async sendGMBookDemoEmail(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1443
+ return StoresApiFp(this.configuration).sendGMBookDemoEmail(options).then((request) => request(this.axios, this.basePath));
1444
+ }
1445
+ /**
1446
+ *
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ * @memberof StoresApi
1450
+ */
1451
+ public async sendGMContactUsEmail(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1452
+ return StoresApiFp(this.configuration).sendGMContactUsEmail(options).then((request) => request(this.axios, this.basePath));
1453
+ }
1454
+ /**
1455
+ *
1456
+ * @param {*} [options] Override http request option.
1457
+ * @throws {RequiredError}
1458
+ * @memberof StoresApi
1459
+ */
1460
+ public async sendGMJoinUsEmail(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1461
+ return StoresApiFp(this.configuration).sendGMJoinUsEmail(options).then((request) => request(this.axios, this.basePath));
1462
+ }
1463
+ /**
1464
+ *
1465
+ * @param {TransferePatientsRequestDto} body
1466
+ * @param {*} [options] Override http request option.
1467
+ * @throws {RequiredError}
1468
+ * @memberof StoresApi
1469
+ */
1470
+ public async sendNewPatientEmail(body: TransferePatientsRequestDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1471
+ return StoresApiFp(this.configuration).sendNewPatientEmail(body, options).then((request) => request(this.axios, this.basePath));
1472
+ }
1473
+ /**
1474
+ *
1475
+ * @param {RefillRequestDto} body
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ * @memberof StoresApi
1479
+ */
1480
+ public async sendRefillEmail(body: RefillRequestDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
1481
+ return StoresApiFp(this.configuration).sendRefillEmail(body, options).then((request) => request(this.axios, this.basePath));
1482
+ }
1483
+ /**
1484
+ *
1485
+ * @summary Update refill request by id
1486
+ * @param {UpdateRefillRequestDto} body
1487
+ * @param {string} requestId
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ * @memberof StoresApi
1491
+ */
1492
+ public async updateRefillRequest(body: UpdateRefillRequestDto, requestId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<RefillRequest>> {
1493
+ return StoresApiFp(this.configuration).updateRefillRequest(body, requestId, options).then((request) => request(this.axios, this.basePath));
1494
+ }
1495
+ /**
1496
+ *
1497
+ * @summary Get store by id
1498
+ * @param {UpdateStoreDto} body
1499
+ * @param {string} id
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ * @memberof StoresApi
1503
+ */
1504
+ public async updateStore(body: UpdateStoreDto, id: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<StoreEntity>> {
1505
+ return StoresApiFp(this.configuration).updateStore(body, id, options).then((request) => request(this.axios, this.basePath));
1506
+ }
1507
+ /**
1508
+ *
1509
+ * @summary Update transfere patients request by id
1510
+ * @param {UpdateTransferePatientsRequestDto} body
1511
+ * @param {string} requestId
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ * @memberof StoresApi
1515
+ */
1516
+ public async updateTransferePatientsRequest(body: UpdateTransferePatientsRequestDto, requestId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransferePatientRequest>> {
1517
+ return StoresApiFp(this.configuration).updateTransferePatientsRequest(body, requestId, options).then((request) => request(this.axios, this.basePath));
1518
+ }
1519
+ }