@medipass/web-sdk 12.0.11 → 12.1.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { MedipassRequestOpts } from '../types';
2
+ import type { GetCareRecipientDetailsQuery, CareRecipientDetailsResponse, GetServiceProviderDetailsQuery, ServiceProviderDetailsResponse, SearchCareRecipientsQuery, SearchCareRecipientsResponse } from 'types/aged-care';
3
+ export declare const pathGetCareRecipientDetails: (careRecipientId: string) => string;
4
+ export declare const pathSearchCareRecipients: () => string;
5
+ export declare const pathGetServiceProviderDetails: (serviceProviderId: string) => string;
6
+ export declare const getCareRecipientDetails: (careRecipientId: string, query?: GetCareRecipientDetailsQuery, opts?: MedipassRequestOpts) => Promise<CareRecipientDetailsResponse>;
7
+ export declare const searchCareRecipients: (query?: SearchCareRecipientsQuery, opts?: MedipassRequestOpts) => Promise<SearchCareRecipientsResponse>;
8
+ export declare const getServiceProviderDetails: (serviceProviderId: string, query?: GetServiceProviderDetailsQuery, opts?: MedipassRequestOpts) => Promise<ServiceProviderDetailsResponse>;
@@ -0,0 +1,112 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ var utils_request = require('../staff-99788f34.js');
7
+ require('@babel/runtime/regenerator');
8
+ require('@babel/runtime/helpers/asyncToGenerator');
9
+ require('lodash/merge');
10
+ require('lodash/uniq');
11
+ require('axios');
12
+ require('date-fns/differenceInSeconds');
13
+ require('jwt-decode');
14
+ require('lodash/forOwn');
15
+ require('lodash/get');
16
+ require('../utils/get-axios-error.js');
17
+ require('../utils/does-param-exist.js');
18
+ require('../utils/param-error.js');
19
+ require('@babel/runtime/helpers/inheritsLoose');
20
+ require('@babel/runtime/helpers/wrapNativeSuper');
21
+ require('lodash/omitBy');
22
+ require('lodash/isEmpty');
23
+ require('../services/storage.js');
24
+ require('store/src/store-engine');
25
+ require('store/storages/localStorage');
26
+ require('store/storages/sessionStorage');
27
+ require('@medipass/utils/masked');
28
+ require('@medipass/utils/sensitive-keys');
29
+ require('platform');
30
+ require('@medipass/utils/constants');
31
+ require('pify');
32
+ require('@medipass/utils/get-env');
33
+ require('@medipass/utils/funders');
34
+ require('compare-versions');
35
+ require('../utils/base-urls/index.js');
36
+ require('../utils/base-urls/core.js');
37
+ require('../utils/base-urls/risk.js');
38
+ require('lodash/flatten');
39
+ require('../types/documents.js');
40
+ require('../types/filter-option.js');
41
+
42
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
43
+
44
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
45
+
46
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
47
+
48
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
49
+ var pathGetCareRecipientDetails = function pathGetCareRecipientDetails(careRecipientId) {
50
+ return "/agedcare/carerecipients/" + careRecipientId;
51
+ };
52
+ var pathSearchCareRecipients = function pathSearchCareRecipients() {
53
+ return '/agedcare/carerecipients';
54
+ };
55
+ var pathGetServiceProviderDetails = function pathGetServiceProviderDetails(serviceProviderId) {
56
+ return "/agedcare/serviceproviders/" + serviceProviderId;
57
+ };
58
+ var getCareRecipientDetails = function getCareRecipientDetails(careRecipientId, query, opts) {
59
+ if (query === void 0) {
60
+ query = {};
61
+ }
62
+
63
+ if (opts === void 0) {
64
+ opts = {};
65
+ }
66
+
67
+ return utils_request.request(_objectSpread({}, opts, {
68
+ path: pathGetCareRecipientDetails(careRecipientId)
69
+ }), {
70
+ method: 'get',
71
+ params: query
72
+ });
73
+ };
74
+ var searchCareRecipients = function searchCareRecipients(query, opts) {
75
+ if (query === void 0) {
76
+ query = {};
77
+ }
78
+
79
+ if (opts === void 0) {
80
+ opts = {};
81
+ }
82
+
83
+ return utils_request.request(_objectSpread({}, opts, {
84
+ path: pathSearchCareRecipients()
85
+ }), {
86
+ method: 'get',
87
+ params: query
88
+ });
89
+ };
90
+ var getServiceProviderDetails = function getServiceProviderDetails(serviceProviderId, query, opts) {
91
+ if (query === void 0) {
92
+ query = {};
93
+ }
94
+
95
+ if (opts === void 0) {
96
+ opts = {};
97
+ }
98
+
99
+ return utils_request.request(_objectSpread({}, opts, {
100
+ path: pathGetServiceProviderDetails(serviceProviderId)
101
+ }), {
102
+ method: 'get',
103
+ params: query
104
+ });
105
+ };
106
+
107
+ exports.getCareRecipientDetails = getCareRecipientDetails;
108
+ exports.getServiceProviderDetails = getServiceProviderDetails;
109
+ exports.pathGetCareRecipientDetails = pathGetCareRecipientDetails;
110
+ exports.pathGetServiceProviderDetails = pathGetServiceProviderDetails;
111
+ exports.pathSearchCareRecipients = pathSearchCareRecipients;
112
+ exports.searchCareRecipients = searchCareRecipients;
@@ -0,0 +1,138 @@
1
+ export interface GetCareRecipientDetailsQuery {
2
+ registeredProviderId?: string;
3
+ }
4
+ export interface CareRecipientDetailsResponse {
5
+ careRecipientId: string;
6
+ firstName: string;
7
+ middleName: string;
8
+ lastName: string;
9
+ birthDate: string;
10
+ gender: string;
11
+ myAgedCareGatewayId: string;
12
+ sparcId: string;
13
+ firstNations: string;
14
+ homeless: string;
15
+ careLeavers: string;
16
+ careFindersProgram: string;
17
+ modifiedMonashModelRating: string;
18
+ anaccClassifications: Array<{
19
+ classification: string;
20
+ classificationText: string;
21
+ classificationTypeText: string;
22
+ careType: string;
23
+ careSubType: string;
24
+ startDate: string;
25
+ endDate: string;
26
+ updatedAtDateTime: string;
27
+ }>;
28
+ packages: Array<{
29
+ assignedLevel: string;
30
+ startDate: string;
31
+ endDate: string;
32
+ }>;
33
+ assessments: Array<{
34
+ assessmentId: string;
35
+ thirdPartyId: string;
36
+ acatId: string;
37
+ status: string;
38
+ approvalDate: string;
39
+ careDetails: [];
40
+ }>;
41
+ careExtensions: Array<{
42
+ careType: string;
43
+ careSubType: string;
44
+ numberOfDaysExtended: number;
45
+ dateExtensionCommences: string;
46
+ }>;
47
+ placeAllocations: Array<{
48
+ placeIdentifier: string;
49
+ effectiveStartDate: string;
50
+ effectiveEndDate: string;
51
+ status: string;
52
+ statusReason: string;
53
+ currentPlaceIndicator: string;
54
+ updatedAtDateTime: string;
55
+ }>;
56
+ classifications: Array<{
57
+ classificationType: string;
58
+ classificationCode: string;
59
+ classificationText: string;
60
+ effectiveStartDate: string;
61
+ effectiveEndDate: string;
62
+ updatedAtDateTime: string;
63
+ }>;
64
+ approvedServices: Array<{
65
+ serviceGroupId: string;
66
+ serviceGroupText: string;
67
+ serviceTypeId: string;
68
+ serviceTypeText: string;
69
+ serviceId: string;
70
+ serviceText: string;
71
+ effectiveStartDate: string;
72
+ effectiveEndDate: string;
73
+ updatedAtDateTime: string;
74
+ }>;
75
+ supplements: Array<{
76
+ supplementType: string;
77
+ startDate: string;
78
+ endDate: string;
79
+ rate: string;
80
+ updatedAtDateTime: string;
81
+ }>;
82
+ messages: Array<{
83
+ type: string;
84
+ message: string;
85
+ }>;
86
+ }
87
+ export interface GetServiceProviderDetailsQuery {
88
+ registeredProviderId?: string;
89
+ }
90
+ export interface ServiceProviderDetailsResponse {
91
+ serviceProviderId: string;
92
+ serviceNapsId: string;
93
+ serviceProviderName: string;
94
+ registeredProviderId: string;
95
+ programCode: string;
96
+ status: string;
97
+ statusEffectiveDate: string;
98
+ addresses: Array<{
99
+ type: string;
100
+ streetLine1: string;
101
+ streetLine2: string;
102
+ city: string;
103
+ state: string;
104
+ country: string;
105
+ postcode: string;
106
+ validFrom: string;
107
+ validTo: string;
108
+ }>;
109
+ registrationCategories: Array<{
110
+ categoryCode: string;
111
+ categoryText: string;
112
+ startDate: string;
113
+ endDate: string;
114
+ updatedAtDateTime: string;
115
+ }>;
116
+ registeredServiceTypes: Array<{
117
+ serviceGroupId: string;
118
+ serviceGroupText: string;
119
+ serviceTypeId: string;
120
+ serviceTypeText: string;
121
+ serviceTypeStartDate: string;
122
+ serviceTypeEndDate: string;
123
+ updatedAtDateTime: string;
124
+ }>;
125
+ }
126
+ export interface SearchCareRecipientsQuery {
127
+ registeredProviderId?: string;
128
+ }
129
+ export declare type SearchCareRecipientsResponse = Array<{
130
+ careRecipientId: string;
131
+ firstName: string;
132
+ middleName: string;
133
+ lastName: string;
134
+ birthDate: string;
135
+ gender: string;
136
+ myAgedCareGatewayId: string;
137
+ sparcId: string;
138
+ }>;
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "12.0.11",
3
+ "version": "12.1.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -58,5 +58,5 @@
58
58
  "resolutions": {
59
59
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
60
60
  },
61
- "gitHead": "cf998e15c67bafb6fcde138749810e78d6d019ab"
61
+ "gitHead": "f5a11c7723cebfe11b958970b36b50b574224ece"
62
62
  }