@medipass/web-sdk 11.50.1-feature-parse-provider-ts-support.0 → 11.51.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.
- package/CHANGELOG.md +16 -0
- package/lib/resources/professional-categories.d.ts +3 -3
- package/lib/resources/specialties.d.ts +3 -3
- package/lib/types/professional-category.d.ts +1 -7
- package/lib/types/specialty.d.ts +1 -7
- package/package.json +2 -2
- package/lib/types/specialties.d.ts +0 -23
- package/lib/types/specialties.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [11.51.0](https://github.com/medipass/medipass-web-sdk/compare/@medipass/web-sdk@11.50.0...@medipass/web-sdk@11.51.0) (2023-01-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove unused types ([f360611](https://github.com/medipass/medipass-web-sdk/commit/f360611))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **web-sdk:** add ts support to parseProviderSet and parseProfessions ([#736](https://github.com/medipass/medipass-web-sdk/issues/736)) ([c539068](https://github.com/medipass/medipass-web-sdk/commit/c539068))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [11.50.0](https://github.com/medipass/medipass-web-sdk/compare/@medipass/web-sdk@11.49.3...@medipass/web-sdk@11.50.0) (2023-01-23)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MedipassRequestOpts, GetProfessionalCategoriesQuery, ProfessionalCategory,
|
|
1
|
+
import type { MedipassRequestOpts, GetProfessionalCategoriesQuery, ProfessionalCategory, PaginatedResponse } from '../types';
|
|
2
2
|
export declare const pathBusinessProfessionalCategories: (businessId: string) => string;
|
|
3
3
|
export declare const pathProfessionalCategories = "/professionalcategories";
|
|
4
4
|
export declare const pathProfessionalCategory: (professionalCategoryId: string) => string;
|
|
@@ -7,14 +7,14 @@ export declare const pathProfessionalCategory: (professionalCategoryId: string)
|
|
|
7
7
|
* @param {Object} opts - Query parameters
|
|
8
8
|
* @param {Object} opts - Additional options
|
|
9
9
|
*/
|
|
10
|
-
export declare const getProfessionalCategories: (query?: GetProfessionalCategoriesQuery, opts?: MedipassRequestOpts) => Promise<
|
|
10
|
+
export declare const getProfessionalCategories: (query?: GetProfessionalCategoriesQuery, opts?: MedipassRequestOpts) => Promise<PaginatedResponse<ProfessionalCategory>>;
|
|
11
11
|
/**
|
|
12
12
|
* Get business professional categories
|
|
13
13
|
* @param {Object} businessId - Business ID
|
|
14
14
|
* @param {Object} opts - Query parameters
|
|
15
15
|
* @param {Object} opts - Additional options
|
|
16
16
|
*/
|
|
17
|
-
export declare const getBusinessProfessionalCategories: (businessId: string, query?: GetProfessionalCategoriesQuery, opts?: MedipassRequestOpts) => Promise<
|
|
17
|
+
export declare const getBusinessProfessionalCategories: (businessId: string, query?: GetProfessionalCategoriesQuery, opts?: MedipassRequestOpts) => Promise<PaginatedResponse<ProfessionalCategory>>;
|
|
18
18
|
/**
|
|
19
19
|
* Get professional category
|
|
20
20
|
* @param {Object} professionalCategoryId - Professional category ID
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MedipassRequestOpts, GetSpecialtiesQuery, Specialty,
|
|
1
|
+
import type { MedipassRequestOpts, GetSpecialtiesQuery, Specialty, PaginatedResponse } from '../types';
|
|
2
2
|
export declare const pathBusinessSpecialties: (businessId: string) => string;
|
|
3
3
|
export declare const pathSpecialties = "/specialties";
|
|
4
4
|
export declare const pathSpecialty: (specialtyId: string) => string;
|
|
@@ -7,14 +7,14 @@ export declare const pathSpecialty: (specialtyId: string) => string;
|
|
|
7
7
|
* @param {Object} query - Query parameters
|
|
8
8
|
* @param {Object} opts - Additional options
|
|
9
9
|
*/
|
|
10
|
-
export declare const getSpecialties: (query?: GetSpecialtiesQuery, opts?: MedipassRequestOpts) => Promise<
|
|
10
|
+
export declare const getSpecialties: (query?: GetSpecialtiesQuery, opts?: MedipassRequestOpts) => Promise<PaginatedResponse<Specialty>>;
|
|
11
11
|
/**
|
|
12
12
|
* Get business specialties
|
|
13
13
|
* @param {Object} businessId - Business ID
|
|
14
14
|
* @param {Object} query - Query parameters
|
|
15
15
|
* @param {Object} opts - Additional options
|
|
16
16
|
*/
|
|
17
|
-
export declare const getBusinessSpecialties: (businessId: string, query?: GetSpecialtiesQuery, opts?: MedipassRequestOpts) => Promise<
|
|
17
|
+
export declare const getBusinessSpecialties: (businessId: string, query?: GetSpecialtiesQuery, opts?: MedipassRequestOpts) => Promise<PaginatedResponse<Specialty>>;
|
|
18
18
|
/**
|
|
19
19
|
* Get specialty
|
|
20
20
|
* @param {Object} specialtyId - Specialty ID
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PaginatedQuery } from './index';
|
|
2
2
|
export interface ProfessionalCategory {
|
|
3
3
|
code: string;
|
|
4
4
|
displayName: string;
|
|
@@ -14,9 +14,3 @@ export declare type GetProfessionalCategoriesQuery = PaginatedQuery & {
|
|
|
14
14
|
professionalCategoryIds?: string;
|
|
15
15
|
};
|
|
16
16
|
/** END: Requests */
|
|
17
|
-
/** START: Responses */
|
|
18
|
-
export declare type ProfessionalCategoriesResponse = {
|
|
19
|
-
meta: PaginationMeta;
|
|
20
|
-
items: Array<ProfessionalCategory>;
|
|
21
|
-
};
|
|
22
|
-
/** END: Responses */
|
package/lib/types/specialty.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PaginatedQuery } from './index';
|
|
2
2
|
export interface Specialty {
|
|
3
3
|
code: string;
|
|
4
4
|
displayName: string;
|
|
@@ -16,9 +16,3 @@ export declare type GetSpecialtiesQuery = PaginatedQuery & {
|
|
|
16
16
|
specialtyIds?: string;
|
|
17
17
|
};
|
|
18
18
|
/** END: Requests */
|
|
19
|
-
/** START: Responses */
|
|
20
|
-
export declare type SpecialtiesResponse = {
|
|
21
|
-
meta: PaginationMeta;
|
|
22
|
-
items: Array<Specialty>;
|
|
23
|
-
};
|
|
24
|
-
/** END: Responses */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.51.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"resolutions": {
|
|
58
58
|
"react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1f60c9d186956eb616a46895e2ca00800b64cd37"
|
|
61
61
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
-
/** START: Requests */
|
|
3
|
-
export declare type GetSpecialtiesQuery = PaginatedQuery & {
|
|
4
|
-
professionalCategoryId?: string;
|
|
5
|
-
searchText?: string;
|
|
6
|
-
specialtyIds?: string;
|
|
7
|
-
};
|
|
8
|
-
/** START: Requests */
|
|
9
|
-
/** START: Responses */
|
|
10
|
-
export declare type SpecialtyResponse = {
|
|
11
|
-
_id: string;
|
|
12
|
-
professionalCategoryId: string;
|
|
13
|
-
fullName: string;
|
|
14
|
-
displayName: string;
|
|
15
|
-
description: string;
|
|
16
|
-
created: string;
|
|
17
|
-
modified: string;
|
|
18
|
-
};
|
|
19
|
-
export declare type SpecialtiesResponse = {
|
|
20
|
-
meta: PaginationMeta;
|
|
21
|
-
items: Array<SpecialtyResponse>;
|
|
22
|
-
};
|
|
23
|
-
/** END: Responses */
|
package/lib/types/specialties.js
DELETED