@medipass/web-sdk 11.38.1-feature-eclipse-reporting.0 → 11.38.1-feature-typescript-claudia.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 (294) hide show
  1. package/.eslintrc.cjs +95 -0
  2. package/babel.config.js +2 -1
  3. package/lib/index.d.ts +262 -0
  4. package/lib/index.js +83 -3
  5. package/lib/{regions-7b23080d.js → regions-a0a28864.js} +2 -2
  6. package/lib/resources/accounts.d.ts +215 -0
  7. package/lib/resources/accounts.js +3 -3
  8. package/lib/resources/actions.d.ts +13 -0
  9. package/lib/resources/actions.js +3 -3
  10. package/lib/resources/api-keys.d.ts +24 -0
  11. package/lib/resources/api-keys.js +3 -3
  12. package/lib/resources/applications.d.ts +31 -0
  13. package/lib/resources/applications.js +3 -3
  14. package/lib/resources/attachments.d.ts +32 -0
  15. package/lib/resources/attachments.js +3 -3
  16. package/lib/resources/auth.d.ts +59 -0
  17. package/lib/resources/auth.js +3 -3
  18. package/lib/resources/bulk-submits.d.ts +17 -0
  19. package/lib/resources/bulk-submits.js +3 -3
  20. package/lib/resources/bulk-uploads.d.ts +26 -0
  21. package/lib/resources/bulk-uploads.js +3 -3
  22. package/lib/resources/business-profiles.d.ts +18 -0
  23. package/lib/resources/business-profiles.js +3 -3
  24. package/lib/resources/businesses.d.ts +132 -0
  25. package/lib/resources/businesses.js +3 -3
  26. package/lib/resources/claim-items.d.ts +31 -0
  27. package/lib/resources/claim-items.js +3 -3
  28. package/lib/resources/devices.d.ts +11 -0
  29. package/lib/resources/devices.js +3 -3
  30. package/lib/resources/doc-accounts.d.ts +32 -0
  31. package/lib/resources/doc-accounts.js +3 -3
  32. package/lib/resources/documents.d.ts +90 -0
  33. package/lib/resources/documents.js +3 -3
  34. package/lib/resources/emails.d.ts +14 -0
  35. package/lib/resources/emails.js +3 -3
  36. package/lib/resources/form-application-templates.d.ts +20 -0
  37. package/lib/resources/form-application-templates.js +3 -3
  38. package/lib/resources/form-applications.d.ts +27 -0
  39. package/lib/resources/form-applications.js +3 -3
  40. package/lib/resources/forms.d.ts +100 -0
  41. package/lib/resources/forms.js +3 -3
  42. package/lib/resources/funder-services.d.ts +8 -0
  43. package/lib/resources/funder-services.js +3 -3
  44. package/lib/resources/funder-settings.d.ts +8 -0
  45. package/lib/resources/funder-settings.js +3 -3
  46. package/lib/resources/funders.d.ts +5 -0
  47. package/lib/resources/funders.js +3 -3
  48. package/lib/resources/futures.d.ts +85 -0
  49. package/lib/resources/futures.js +3 -3
  50. package/lib/resources/health-fund-accounts.d.ts +78 -0
  51. package/lib/resources/health-fund-accounts.js +3 -3
  52. package/lib/resources/health-fund-settings.d.ts +39 -0
  53. package/lib/resources/health-fund-settings.js +3 -3
  54. package/lib/resources/healthfunds.d.ts +64 -0
  55. package/lib/resources/healthfunds.js +3 -3
  56. package/lib/resources/icditems.d.ts +14 -0
  57. package/lib/resources/icditems.js +3 -3
  58. package/lib/resources/invoice-scans.d.ts +26 -0
  59. package/lib/resources/invoice-scans.js +3 -3
  60. package/lib/resources/jhcs.d.ts +7 -0
  61. package/lib/resources/jhcs.js +3 -3
  62. package/lib/resources/kyc.d.ts +109 -0
  63. package/lib/resources/kyc.js +3 -3
  64. package/lib/resources/logs.d.ts +16 -0
  65. package/lib/resources/logs.js +3 -3
  66. package/lib/resources/members.d.ts +92 -0
  67. package/lib/resources/members.js +3 -3
  68. package/lib/resources/message-mappings.d.ts +9 -0
  69. package/lib/resources/message-mappings.js +3 -3
  70. package/lib/resources/minions.d.ts +40 -0
  71. package/lib/resources/minions.js +3 -3
  72. package/lib/resources/modalities.d.ts +19 -0
  73. package/lib/resources/modalities.js +3 -3
  74. package/lib/resources/notes.d.ts +17 -0
  75. package/lib/resources/notes.js +3 -3
  76. package/lib/resources/onboarding-applications.d.ts +52 -0
  77. package/lib/resources/onboarding-applications.js +3 -3
  78. package/lib/resources/onboarding-requests.d.ts +39 -0
  79. package/lib/resources/onboarding-requests.js +3 -3
  80. package/lib/resources/ops.d.ts +60 -0
  81. package/lib/resources/ops.js +3 -3
  82. package/lib/resources/organisations.d.ts +7 -0
  83. package/lib/resources/organisations.js +3 -3
  84. package/lib/resources/partners.d.ts +50 -0
  85. package/lib/resources/partners.js +3 -3
  86. package/lib/resources/patients.d.ts +44 -0
  87. package/lib/resources/patients.js +3 -3
  88. package/lib/resources/payments.d.ts +155 -0
  89. package/lib/resources/payments.js +3 -3
  90. package/lib/resources/pms.d.ts +43 -0
  91. package/lib/resources/pms.js +3 -3
  92. package/lib/resources/practice-profiles.d.ts +20 -0
  93. package/lib/resources/practice-profiles.js +3 -3
  94. package/lib/resources/practice-types.d.ts +6 -0
  95. package/lib/resources/practice-types.js +3 -3
  96. package/lib/resources/practices.d.ts +137 -0
  97. package/lib/resources/practices.js +3 -3
  98. package/lib/resources/products.d.ts +23 -0
  99. package/lib/resources/products.js +3 -3
  100. package/lib/resources/professional-categories.d.ts +23 -0
  101. package/lib/resources/professional-categories.js +3 -3
  102. package/lib/resources/provider-number-types.d.ts +16 -0
  103. package/lib/resources/provider-number-types.js +3 -3
  104. package/lib/resources/provider-registration-types.d.ts +15 -0
  105. package/lib/resources/provider-registration-types.js +3 -3
  106. package/lib/resources/provider-requests.d.ts +17 -0
  107. package/lib/resources/provider-requests.js +3 -3
  108. package/lib/resources/provider-types.d.ts +6 -0
  109. package/lib/resources/provider-types.js +3 -3
  110. package/lib/resources/ref-sources.d.ts +6 -0
  111. package/lib/resources/ref-sources.js +3 -3
  112. package/lib/resources/risk.d.ts +13 -0
  113. package/lib/resources/risk.js +3 -3
  114. package/lib/resources/rnas.d.ts +43 -0
  115. package/lib/resources/rnas.js +3 -3
  116. package/lib/resources/roles.d.ts +7 -0
  117. package/lib/resources/roles.js +3 -3
  118. package/lib/resources/self-checkout-sessions.d.ts +134 -0
  119. package/lib/resources/self-checkout-sessions.js +3 -3
  120. package/lib/resources/services.d.ts +88 -0
  121. package/lib/resources/services.js +3 -3
  122. package/lib/resources/settlements.d.ts +37 -0
  123. package/lib/resources/settlements.js +3 -3
  124. package/lib/resources/sign-up.d.ts +5 -0
  125. package/lib/resources/sign-up.js +3 -3
  126. package/lib/resources/specialties.d.ts +23 -0
  127. package/lib/resources/specialties.js +3 -3
  128. package/lib/resources/staff-profiles.d.ts +20 -0
  129. package/lib/resources/staff-profiles.js +3 -3
  130. package/lib/resources/staff.d.ts +242 -0
  131. package/lib/resources/staff.js +3 -3
  132. package/lib/resources/statistics.d.ts +56 -0
  133. package/lib/resources/statistics.js +3 -3
  134. package/lib/resources/subscriptions.d.ts +32 -0
  135. package/lib/resources/subscriptions.js +3 -3
  136. package/lib/resources/terminals.d.ts +71 -0
  137. package/lib/resources/terminals.js +3 -3
  138. package/lib/resources/transaction-export.d.ts +18 -0
  139. package/lib/resources/transaction-export.js +3 -3
  140. package/lib/resources/transactions.d.ts +466 -0
  141. package/lib/resources/transactions.js +3 -3
  142. package/lib/resources/triggers.d.ts +20 -0
  143. package/lib/resources/triggers.js +3 -3
  144. package/lib/resources/vendors.d.ts +9 -0
  145. package/lib/resources/vendors.js +3 -3
  146. package/lib/resources/verify.d.ts +9 -0
  147. package/lib/resources/verify.js +3 -3
  148. package/lib/resources/workers.d.ts +3 -0
  149. package/lib/resources/workers.js +3 -3
  150. package/lib/resources/workflow-exceptions.d.ts +5 -0
  151. package/lib/resources/workflow-exceptions.js +3 -3
  152. package/lib/services/aws.d.ts +54 -0
  153. package/lib/services/aws.js +3 -3
  154. package/lib/services/storage.d.ts +28 -0
  155. package/lib/services/storage.js +126 -18
  156. package/lib/services/version.d.ts +21 -0
  157. package/lib/services/version.js +3 -3
  158. package/lib/{staff-1ec3d500.js → staff-96febcd8.js} +345 -738
  159. package/lib/types/documents.d.ts +115 -0
  160. package/lib/types/documents.js +2 -0
  161. package/lib/types/forms.d.ts +67 -0
  162. package/lib/types/forms.js +2 -0
  163. package/lib/types/index.d.ts +42 -0
  164. package/lib/types/index.js +2 -0
  165. package/lib/types/message-mappings.d.ts +18 -0
  166. package/lib/types/message-mappings.js +2 -0
  167. package/lib/types/notes.d.ts +5 -0
  168. package/lib/types/notes.js +2 -0
  169. package/lib/types/products.d.ts +34 -0
  170. package/lib/types/products.js +2 -0
  171. package/lib/types/professional-categories.d.ts +20 -0
  172. package/lib/types/professional-categories.js +2 -0
  173. package/lib/types/specialties.d.ts +22 -0
  174. package/lib/types/specialties.js +2 -0
  175. package/lib/types/subscriptions.d.ts +52 -0
  176. package/lib/types/subscriptions.js +2 -0
  177. package/lib/utils/application.d.ts +1 -0
  178. package/lib/utils/application.js +3 -3
  179. package/lib/utils/base-urls/core.d.ts +19 -0
  180. package/lib/utils/base-urls/index.d.ts +37 -0
  181. package/lib/utils/base-urls/risk.d.ts +17 -0
  182. package/lib/utils/does-param-exist.d.ts +2 -0
  183. package/lib/utils/get-axios-error.d.ts +2 -0
  184. package/lib/utils/param-error.d.ts +3 -0
  185. package/lib/utils/professions.d.ts +3 -0
  186. package/lib/utils/professions.js +3 -3
  187. package/lib/utils/regions.d.ts +1 -0
  188. package/lib/utils/regions.js +2 -2
  189. package/lib/utils/request.d.ts +3 -0
  190. package/lib/utils/request.js +3 -3
  191. package/lib/utils/staff.d.ts +8 -0
  192. package/lib/utils/staff.js +3 -3
  193. package/package.json +19 -9
  194. package/tsconfig.json +33 -0
  195. package/.eslintrc +0 -3
  196. package/lib/_types/documents.js.flow +0 -118
  197. package/lib/_types/forms.js.flow +0 -57
  198. package/lib/_types/index.js.flow +0 -47
  199. package/lib/_types/message-mappings.js.flow +0 -22
  200. package/lib/_types/notes.js.flow +0 -7
  201. package/lib/_types/products.js.flow +0 -40
  202. package/lib/_types/professional-categories.js.flow +0 -25
  203. package/lib/_types/specialties.js.flow +0 -27
  204. package/lib/_types/subscriptions.js.flow +0 -58
  205. package/lib/index.js.flow +0 -438
  206. package/lib/resources/accounts.js.flow +0 -445
  207. package/lib/resources/actions.js.flow +0 -25
  208. package/lib/resources/api-keys.js.flow +0 -54
  209. package/lib/resources/applications.js.flow +0 -60
  210. package/lib/resources/attachments.js.flow +0 -75
  211. package/lib/resources/auth.js.flow +0 -185
  212. package/lib/resources/bulk-submits.js.flow +0 -43
  213. package/lib/resources/bulk-uploads.js.flow +0 -56
  214. package/lib/resources/business-profiles.js.flow +0 -45
  215. package/lib/resources/businesses.js.flow +0 -267
  216. package/lib/resources/claim-items.js.flow +0 -76
  217. package/lib/resources/devices.js.flow +0 -64
  218. package/lib/resources/doc-accounts.js.flow +0 -61
  219. package/lib/resources/documents.js.flow +0 -216
  220. package/lib/resources/emails.js.flow +0 -96
  221. package/lib/resources/form-application-templates.js.flow +0 -52
  222. package/lib/resources/form-applications.js.flow +0 -62
  223. package/lib/resources/forms.js.flow +0 -222
  224. package/lib/resources/funder-services.js.flow +0 -17
  225. package/lib/resources/funder-settings.js.flow +0 -58
  226. package/lib/resources/funders.js.flow +0 -15
  227. package/lib/resources/futures.js.flow +0 -154
  228. package/lib/resources/health-fund-accounts.js.flow +0 -198
  229. package/lib/resources/health-fund-settings.js.flow +0 -104
  230. package/lib/resources/healthfunds.js.flow +0 -139
  231. package/lib/resources/icditems.js.flow +0 -36
  232. package/lib/resources/invoice-scans.js.flow +0 -56
  233. package/lib/resources/jhcs.js.flow +0 -20
  234. package/lib/resources/kyc.js.flow +0 -216
  235. package/lib/resources/logs.js.flow +0 -32
  236. package/lib/resources/members.js.flow +0 -196
  237. package/lib/resources/message-mappings.js.flow +0 -25
  238. package/lib/resources/minions.js.flow +0 -96
  239. package/lib/resources/modalities.js.flow +0 -46
  240. package/lib/resources/notes.js.flow +0 -112
  241. package/lib/resources/onboarding-applications.js.flow +0 -142
  242. package/lib/resources/onboarding-requests.js.flow +0 -97
  243. package/lib/resources/ops.js.flow +0 -116
  244. package/lib/resources/organisations.js.flow +0 -15
  245. package/lib/resources/partners.js.flow +0 -118
  246. package/lib/resources/patients.js.flow +0 -102
  247. package/lib/resources/payments.js.flow +0 -523
  248. package/lib/resources/pms.js.flow +0 -102
  249. package/lib/resources/practice-profiles.js.flow +0 -51
  250. package/lib/resources/practice-types.js.flow +0 -14
  251. package/lib/resources/practices.js.flow +0 -314
  252. package/lib/resources/products.js.flow +0 -48
  253. package/lib/resources/professional-categories.js.flow +0 -56
  254. package/lib/resources/provider-number-types.js.flow +0 -32
  255. package/lib/resources/provider-registration-types.js.flow +0 -32
  256. package/lib/resources/provider-requests.js.flow +0 -46
  257. package/lib/resources/provider-types.js.flow +0 -14
  258. package/lib/resources/ref-sources.js.flow +0 -16
  259. package/lib/resources/risk.js.flow +0 -29
  260. package/lib/resources/rnas.js.flow +0 -108
  261. package/lib/resources/roles.js.flow +0 -12
  262. package/lib/resources/self-checkout-sessions.js.flow +0 -382
  263. package/lib/resources/services.js.flow +0 -219
  264. package/lib/resources/settlements.js.flow +0 -97
  265. package/lib/resources/sign-up.js.flow +0 -15
  266. package/lib/resources/specialties.js.flow +0 -46
  267. package/lib/resources/staff-profiles.js.flow +0 -51
  268. package/lib/resources/staff.js.flow +0 -583
  269. package/lib/resources/statistics.js.flow +0 -147
  270. package/lib/resources/subscriptions.js.flow +0 -81
  271. package/lib/resources/terminals.js.flow +0 -161
  272. package/lib/resources/transaction-export.js.flow +0 -48
  273. package/lib/resources/transactions.js.flow +0 -1097
  274. package/lib/resources/triggers.js.flow +0 -36
  275. package/lib/resources/vendors.js.flow +0 -28
  276. package/lib/resources/verify.js.flow +0 -14
  277. package/lib/resources/workers.js.flow +0 -10
  278. package/lib/resources/workflow-exceptions.js.flow +0 -17
  279. package/lib/services/__mocks__/storage.js.flow +0 -30
  280. package/lib/services/aws.js.flow +0 -339
  281. package/lib/services/storage.js.flow +0 -92
  282. package/lib/services/version.js.flow +0 -73
  283. package/lib/storage-4b403caa.js +0 -1300
  284. package/lib/utils/application.js.flow +0 -23
  285. package/lib/utils/base-urls/core.js.flow +0 -18
  286. package/lib/utils/base-urls/index.js.flow +0 -7
  287. package/lib/utils/base-urls/risk.js.flow +0 -16
  288. package/lib/utils/does-param-exist.js.flow +0 -23
  289. package/lib/utils/get-axios-error.js.flow +0 -8
  290. package/lib/utils/param-error.js.flow +0 -8
  291. package/lib/utils/professions.js.flow +0 -66
  292. package/lib/utils/regions.js.flow +0 -21
  293. package/lib/utils/request.js.flow +0 -36
  294. package/lib/utils/staff.js.flow +0 -81
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.38.1-feature-eclipse-reporting.0",
3
+ "version": "11.38.1-feature-typescript-claudia.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
6
7
  "scripts": {
7
- "build": "BABEL_RUNTIME=true node ../../scripts/build.js && flow-copy-source src/ lib/ --ignore **/*.test.js --ignore **/*.mock.js",
8
+ "build": "BABEL_RUNTIME=true node ../../scripts/build.js",
8
9
  "clean": "node ../../scripts/clean.js",
9
10
  "develop": "BABEL_RUNTIME=true node ../../scripts/build.js --watch",
10
- "lint": "eslint src/",
11
- "lint:fix": "eslint src/ --fix",
11
+ "lint": "eslint \"**/*.{ts,tsx}\"",
12
+ "lint:fix": "eslint \"**/*.{ts,tsx}\" --fix",
12
13
  "prepare": "yarn build",
13
14
  "postpublish": "yarn clean",
14
15
  "start": "serve -s docs --auth",
15
16
  "test": "yarn lint && rm -rf ./node_modules/jest-cli/.haste_cache && jest",
16
17
  "test-ci": "yarn lint && rm -rf ./node_modules/jest-cli/.haste_cache && jest --silent",
17
- "test:watch": "yarn test -- --watch"
18
+ "test:watch": "yarn test -- --watch",
19
+ "check-types": "tsc --noEmit --project tsconfig.json"
18
20
  },
19
21
  "repository": {
20
22
  "type": "git",
@@ -43,11 +45,19 @@
43
45
  },
44
46
  "devDependencies": {
45
47
  "@babel/plugin-transform-runtime": "7.8.3",
46
- "@medipass/utils": "^11.66.7-feature-eclipse-reporting.0",
48
+ "@medipass/utils": "^11.66.7-feature-typescript-claudia.0",
49
+ "@types/jest": "28.1.6",
50
+ "@types/mocha": "9.1.1",
51
+ "@types/node": "18.7.1",
47
52
  "axios-mock-adapter": "1.19.0",
48
- "flow-copy-source": "2.0.2",
49
53
  "query-string": "7.0.0",
50
- "rimraf": "^2.6.2"
54
+ "rimraf": "^2.6.2",
55
+ "ts-migrate": "^0.1.31",
56
+ "ts-migrate-plugins": "^0.1.31",
57
+ "typescript": "4.7.4"
51
58
  },
52
- "gitHead": "c6660556b6593cbdf847588a319c834e68dce232"
59
+ "resolutions": {
60
+ "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
61
+ },
62
+ "gitHead": "789e320bece0383354e4dc2cbdf1082702192ba9"
53
63
  }
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2019",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Node",
6
+ "lib": [
7
+ "ESNext",
8
+ "ESNext.AsyncIterable",
9
+ "DOM"
10
+ ],
11
+ "allowJs": true,
12
+ "skipLibCheck": true,
13
+ "esModuleInterop": true,
14
+ "allowSyntheticDefaultImports": true,
15
+ "experimentalDecorators": true,
16
+ "strict": false,
17
+ "resolveJsonModule": true,
18
+ "isolatedModules": true,
19
+ "jsx": "react",
20
+ "rootDir": "src",
21
+ "baseUrl": "src",
22
+ "outDir": "lib",
23
+ "typeRoots" : ["node_modules/@types", "types"],
24
+ "forceConsistentCasingInFileNames": true,
25
+ "declaration": true
26
+ },
27
+ "include": ["src", "types"],
28
+ "exclude": [
29
+ "node_modules",
30
+ "src/**/__mocks__",
31
+ "src/**/__tests__"
32
+ ]
33
+ }
package/.eslintrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": ["../../.eslintrc.json"]
3
- }
@@ -1,118 +0,0 @@
1
- // @flow
2
- import type { PaginationMeta, PaginatedQuery } from './index';
3
-
4
- /** START: Query */
5
- export type BusinessDocumentsQuery = {
6
- ...PaginatedQuery,
7
- isPublished?: boolean,
8
- practiceId?: string,
9
- sort?: string
10
- };
11
-
12
- export type HealthFundDocumentsQuery = {
13
- ...PaginatedQuery,
14
- excludeDocumentIds?: string
15
- };
16
- /** END: Query */
17
-
18
- /** START: Requests */
19
- export type DeclineHealthFundDocumentBody = {
20
- formApplicationDeclineReasonId: string,
21
- note?: string
22
- };
23
- export type CeaseHealthFundDocumentBody = {
24
- formApplicationCeaseReasonId: string,
25
- note?: string
26
- };
27
- export type ParkHealthFundDocumentBody = {
28
- workflowExceptionId: string,
29
- note?: string
30
- };
31
- /** END: Requests */
32
-
33
- /** START: Responses */
34
- export type BusinessDocumentResponse = {
35
- _id: string,
36
- organisationId: string,
37
- healthFund: {
38
- _id: string,
39
- displayName: string
40
- },
41
- documentType: string,
42
- documentId: string,
43
- fullName: string,
44
- displayName: string,
45
- description: string,
46
- visibilityRules: {
47
- businessRules: {
48
- modalityIds: Array<string>,
49
- states: Array<string>
50
- }
51
- },
52
- status: string,
53
- isPublished?: boolean,
54
- created: string,
55
- modified: string
56
- };
57
- export type BusinessDocumentsResponse = {
58
- meta: PaginationMeta,
59
- items: Array<BusinessDocumentResponse>
60
- };
61
-
62
- export type HealthFundDocumentResponse = {
63
- _id: string,
64
- businessId: string,
65
- organisationId: string,
66
- healthFund: {
67
- _id: string,
68
- displayName: string
69
- },
70
- funderId: string,
71
- createdByStaffName: string,
72
- documentNumber: string,
73
- documentType: string,
74
- documentId: string,
75
- fullName: string,
76
- displayName: string,
77
- description: string,
78
- visibilityRules: {
79
- businessRules: {
80
- modalityIds: Array<string>,
81
- states: Array<string>
82
- }
83
- },
84
- practice: {
85
- _id: string,
86
- displayName: string,
87
- abn?: string,
88
- address?: string,
89
- city?: string,
90
- state?: string,
91
- country?: string
92
- },
93
- workflowState: string,
94
- assignedToAccountId: string,
95
- assignedToUsername: string,
96
- approvedByAccountId: string,
97
- approvedByUsername: string,
98
- approvedDate: string,
99
- createdByAccountId: string,
100
- createdByAccountUsername: string,
101
- declinedDate: string,
102
- status: string,
103
- tags: Array<{
104
- _id: string,
105
- workflowException: { _id: string, code: string, displayName: string, description: string },
106
- assignedByAccountId: string,
107
- assignedByUsername: string,
108
- notes: string
109
- }>,
110
- isPublished?: boolean,
111
- created: string,
112
- modified: string
113
- };
114
- export type HealthFundDocumentsResponse = {
115
- meta: PaginationMeta,
116
- items: Array<HealthFundDocumentResponse>
117
- };
118
- /** END: Responses */
@@ -1,57 +0,0 @@
1
- // @flow
2
- import type { PaginatedQuery } from './index';
3
-
4
- export type ApplyForBusinessFormRequestBody = {
5
- practiceIds: Array<?string>,
6
- subsections?: Array<?{ _id: string, value: string }>,
7
- files?: Array<Object>
8
- };
9
-
10
- export type CreateHealthFundFormRequestBody = {
11
- fullName: string,
12
- displayName: string,
13
- description?: string,
14
- logoUrl?: string,
15
- visibilityRules: Array<{
16
- businessRules: {
17
- modalityIds: Array<string>,
18
- states: Array<string>
19
- }
20
- }>,
21
- sections: Array<{
22
- heading: string,
23
- description?: string,
24
- links?: Array<{ displayName: string, url: string }>,
25
- files?: Array<{ displayName: string, url: string, contentType: string }>
26
- }>,
27
- scannedApplication: boolean
28
- };
29
-
30
- export type GetHealthFundFormsQuery = {
31
- ...PaginatedQuery,
32
- hasApplicationTemplate?: Boolean
33
- };
34
-
35
- export type GetHealthFundFormUploadUrlQuery = {
36
- contentType: string,
37
- fileName: string
38
- };
39
-
40
- export type UpdateHealthFundFormRequestBody = {
41
- fullName?: string,
42
- displayName?: string,
43
- description?: string,
44
- logoUrl?: ?string,
45
- visibilityRules?: {
46
- businessRules?: {
47
- modalityIds?: Array<string>,
48
- states?: Array<string>
49
- }
50
- },
51
- sections?: Array<{
52
- heading?: string,
53
- description?: string,
54
- links?: Array<{ displayName: string, url: string }>,
55
- files?: Array<{ displayName: string, url: string, contentType: string }>
56
- }>
57
- };
@@ -1,47 +0,0 @@
1
- // @flow
2
- export * from './documents';
3
- export * from './forms';
4
- export * from './message-mappings';
5
- export * from './notes';
6
- export * from './products';
7
- export * from './professional-categories';
8
- export * from './specialties';
9
- export * from './subscriptions';
10
-
11
- export type MedipassRequestOpts = {
12
- baseUrl?: string,
13
- hyperMediaEndpoint?: ?string,
14
- path?: string,
15
- requestConfig?: Object,
16
- apiName?: string,
17
- asSuperAdmin?: boolean,
18
- getFullError?: boolean,
19
- getFullResponse?: boolean,
20
- tokenType?: string,
21
- ver?: string
22
- };
23
-
24
- export type PaginationMeta = {
25
- count: number,
26
- totalCount: number,
27
- pageCount: number,
28
- self?: ?string,
29
- previous?: ?string,
30
- next?: ?string,
31
- previous?: ?string,
32
- first?: ?string,
33
- last?: ?string
34
- };
35
- export type PaginatedQuery = {
36
- limit?: number,
37
- page?: number
38
- };
39
-
40
- export type SetupOpts = {
41
- baseUrls?: Object,
42
- defaultVersion?: string,
43
- appId?: string,
44
- apiVer?: string,
45
- apiVersions?: Object,
46
- env?: string
47
- };
@@ -1,22 +0,0 @@
1
- // @flow
2
- import type { PaginationMeta, PaginatedQuery } from './index';
3
-
4
- /** START: Query */
5
- export type GetBusinessMessageMappingsQuery = {
6
- ...PaginatedQuery,
7
- type?: string
8
- };
9
- /** END: Query */
10
-
11
- /** START: Responses */
12
- export type GetBusinessMessageMappingsResponse = {
13
- meta: PaginationMeta,
14
- items: Array<{
15
- _id: string,
16
- refId: string,
17
- refMessage: string,
18
- created: string,
19
- modified: string
20
- }>
21
- };
22
- /** END: Responses */
@@ -1,7 +0,0 @@
1
- // @flow
2
-
3
- /** START: Requests */
4
- export type CreateNoteRequestBody = {
5
- note: string
6
- };
7
- /** END: Requests */
@@ -1,40 +0,0 @@
1
- // @flow
2
- import type { PaginationMeta, PaginatedQuery } from './index';
3
-
4
- /** START: Requests */
5
- export type GetBusinessProductsQuery = {
6
- ...PaginatedQuery
7
- };
8
- /** START: Requests */
9
-
10
- /** START: Responses */
11
- export type ProductResponse = {
12
- _id: string,
13
- organisationId: string,
14
- fullName: string,
15
- displayName: string,
16
- description: string,
17
- defaultBilling: {
18
- currencyCode: string,
19
- frequency: string,
20
- amountFee: number,
21
- amountFeeString: string,
22
- amountCharged: number,
23
- amountChargedString: string,
24
- strategy: string
25
- },
26
- features: Array<{
27
- fullName: string,
28
- displayName: string,
29
- description: string
30
- }>,
31
- phasedOut: string,
32
- created: string,
33
- modified: string
34
- };
35
-
36
- export type ProductsResponse = {
37
- meta: PaginationMeta,
38
- items: Array<ProductResponse>
39
- };
40
- /** END: Responses */
@@ -1,25 +0,0 @@
1
- // @flow
2
- import type { PaginationMeta, PaginatedQuery } from './index';
3
-
4
- /** START: Requests */
5
- export type GetProfessionalCategoriesQuery = {
6
- ...PaginatedQuery,
7
- searchText?: string
8
- };
9
- /** START: Requests */
10
-
11
- /** START: Responses */
12
- export type ProfessionalCategoryResponse = {
13
- _id: string,
14
- fullName: string,
15
- displayName: string,
16
- description: string,
17
- created: string,
18
- modified: string
19
- };
20
-
21
- export type ProfessionalCategoriesResponse = {
22
- meta: PaginationMeta,
23
- items: Array<ProfessionalCategoryResponse>
24
- };
25
- /** END: Responses */
@@ -1,27 +0,0 @@
1
- // @flow
2
- import type { PaginationMeta, PaginatedQuery } from './index';
3
-
4
- /** START: Requests */
5
- export type GetSpecialtiesQuery = {
6
- ...PaginatedQuery,
7
- professionalCategoryId?: string,
8
- searchText?: string
9
- };
10
- /** START: Requests */
11
-
12
- /** START: Responses */
13
- export type SpecialtyResponse = {
14
- _id: string,
15
- professionalCategoryId: string,
16
- fullName: string,
17
- displayName: string,
18
- description: string,
19
- created: string,
20
- modified: string
21
- };
22
-
23
- export type SpecialtiesResponse = {
24
- meta: PaginationMeta,
25
- items: Array<SpecialtyResponse>
26
- };
27
- /** END: Responses */
@@ -1,58 +0,0 @@
1
- // @flow
2
- import type { PaginationMeta, PaginatedQuery } from './index';
3
-
4
- /** START: Requests */
5
- export type CreateBusinessSubscriptionBody = {
6
- productId: string,
7
- paymentMethodId: string
8
- };
9
- export type UpdateBusinessSubscriptionBody = {
10
- paymentMethodId?: string,
11
- promotionCode?: string
12
- };
13
- export type GetBusinessSubscriptionsQuery = {
14
- ...PaginatedQuery
15
- };
16
- /** START: Requests */
17
-
18
- /** START: Responses */
19
- export type SubscriptionResponse = {
20
- _id: string,
21
- organisationId: string,
22
- businessId: string,
23
- product: {
24
- _id: string,
25
- fullName: string,
26
- displayName: string
27
- },
28
- paymentMethod: {
29
- _id: string,
30
- methodType: string,
31
- source: string,
32
- cardType: string,
33
- lastFour: string
34
- },
35
- startDate: string,
36
- endDate: string,
37
- nextBillingDate: string,
38
- status: string,
39
- billing: {
40
- currencyCode: string,
41
- frequency: string,
42
- amountFee: number,
43
- amountFeeString: string,
44
- amountCharged: number,
45
- amountChargedString: string,
46
- amountDiscount: number,
47
- amountDiscountString: string,
48
- strategy: string
49
- },
50
- created: string,
51
- modified: string
52
- };
53
-
54
- export type SubscriptionsResponse = {
55
- meta: PaginationMeta,
56
- items: Array<SubscriptionResponse>
57
- };
58
- /** END: Responses */