@medipass/web-sdk 11.64.16-feature-create-support-user.4 → 11.64.16-feature-create-support-user.5

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.
@@ -1,5 +1,5 @@
1
- import type { MedipassRequestOpts } from '../types';
2
- import type { ApplicationResponse, ApplicationsResponse } from 'types/application';
1
+ import type { MedipassRequestOpts, PaginatedResponse } from '../types';
2
+ import type { Application } from 'types/application';
3
3
  /**
4
4
  * Get self application
5
5
  * @param {Object} opts - Additional options
@@ -10,23 +10,23 @@ export declare const getSelfApplication: (opts?: MedipassRequestOpts) => Promise
10
10
  * @param {Object} query - Query parameters
11
11
  * @param {Object} opts - Additional options
12
12
  */
13
- export declare const getApplications: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<ApplicationsResponse>;
13
+ export declare const getApplications: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<PaginatedResponse<Application>>;
14
14
  /**
15
15
  * Get application
16
16
  * @param {String} applicationId - Application ID
17
17
  * @param {Object} opts - Additional options
18
18
  */
19
- export declare const getApplication: (applicationId: string, opts?: MedipassRequestOpts) => Promise<ApplicationResponse>;
19
+ export declare const getApplication: (applicationId: string, opts?: MedipassRequestOpts) => Promise<Application>;
20
20
  /**
21
21
  * Update application
22
22
  * @param {String} applicationId - Application ID
23
23
  * @param {Object} body - Request body
24
24
  * @param {Object} opts - Additional options
25
25
  */
26
- export declare const updateApplication: (applicationId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<ApplicationResponse>;
26
+ export declare const updateApplication: (applicationId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Application>;
27
27
  /**
28
28
  * Create application
29
29
  * @param {Object} body - Request body
30
30
  * @param {Object} opts - Additional options
31
31
  */
32
- export declare const createApplication: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<ApplicationResponse>;
32
+ export declare const createApplication: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Application>;
@@ -1,8 +1,8 @@
1
- import type { MedipassRequestOpts } from '../types';
2
- import type { OrganisationsResponse } from 'types/organisation';
1
+ import type { MedipassRequestOpts, PaginatedResponse } from '../types';
2
+ import type { Organisation } from 'types/organisation';
3
3
  /**
4
4
  * Get organisations
5
5
  * @param {Object} query - Query parameters
6
6
  * @param {Object} opts - Additional options
7
7
  */
8
- export declare const getOrganisations: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<OrganisationsResponse>;
8
+ export declare const getOrganisations: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<PaginatedResponse<Organisation>>;
@@ -1,5 +1,4 @@
1
- import type { PaginationMeta } from 'types';
2
- export interface ApplicationResponse {
1
+ export interface Application {
3
2
  _id: string;
4
3
  applicationId: string;
5
4
  channel: string;
@@ -11,7 +10,3 @@ export interface ApplicationResponse {
11
10
  refSource: string;
12
11
  status: string;
13
12
  }
14
- export interface ApplicationsResponse {
15
- meta: PaginationMeta;
16
- items: Array<ApplicationResponse>;
17
- }
@@ -1,5 +1,4 @@
1
- import type { PaginationMeta } from 'types';
2
- export interface OrganisationResponse {
1
+ export interface Organisation {
3
2
  _id: string;
4
3
  fullName: string;
5
4
  displayName: string;
@@ -28,7 +27,3 @@ export interface OrganisationResponse {
28
27
  };
29
28
  status: string;
30
29
  }
31
- export interface OrganisationsResponse {
32
- meta: PaginationMeta;
33
- items: Array<OrganisationResponse>;
34
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.64.16-feature-create-support-user.4",
3
+ "version": "11.64.16-feature-create-support-user.5",
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": "c19600f0110fa303153b4aa57d8c2443bc0b6ae3"
60
+ "gitHead": "6f2a80570feab1b1cd5441aa60f82a793285751c"
61
61
  }