@sijilaty/ehr-sdk 1.0.1 → 1.0.2
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/LICENSE.md +1 -1
- package/README.md +6 -6
- package/dist/cjs/index.cjs +108 -108
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/esm/index.js +108 -108
- package/dist/esm/index.js.map +3 -3
- package/dist/types/client/client.d.ts +8 -8
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/config.d.ts +6 -6
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/errors/index.d.ts +2 -2
- package/dist/types/errors/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +12 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/classes/application.d.ts +16 -16
- package/dist/types/resources/classes/application.d.ts.map +1 -1
- package/dist/types/resources/classes/charge.d.ts +5 -5
- package/dist/types/resources/classes/charge.d.ts.map +1 -1
- package/dist/types/resources/classes/conversation-ext.d.ts +1 -1
- package/dist/types/resources/classes/conversation.d.ts +14 -14
- package/dist/types/resources/classes/conversation.d.ts.map +1 -1
- package/dist/types/resources/classes/developer.d.ts +18 -18
- package/dist/types/resources/classes/developer.d.ts.map +1 -1
- package/dist/types/resources/classes/erx.d.ts +22 -22
- package/dist/types/resources/classes/erx.d.ts.map +1 -1
- package/dist/types/resources/classes/fax.d.ts +10 -10
- package/dist/types/resources/classes/fax.d.ts.map +1 -1
- package/dist/types/resources/classes/fhir-ext.d.ts +28 -28
- package/dist/types/resources/classes/fhir-ext.d.ts.map +1 -1
- package/dist/types/resources/classes/fhir.d.ts +3 -3
- package/dist/types/resources/classes/fhir.d.ts.map +1 -1
- package/dist/types/resources/classes/index.d.ts +4 -4
- package/dist/types/resources/classes/index.d.ts.map +1 -1
- package/dist/types/resources/classes/lab.d.ts +17 -17
- package/dist/types/resources/classes/lab.d.ts.map +1 -1
- package/dist/types/resources/classes/m2m.d.ts +22 -22
- package/dist/types/resources/classes/m2m.d.ts.map +1 -1
- package/dist/types/resources/classes/messaging.d.ts +4 -4
- package/dist/types/resources/classes/messaging.d.ts.map +1 -1
- package/dist/types/resources/classes/paymentMethod.d.ts +7 -7
- package/dist/types/resources/classes/paymentMethod.d.ts.map +1 -1
- package/dist/types/resources/classes/project.d.ts +9 -9
- package/dist/types/resources/classes/project.d.ts.map +1 -1
- package/dist/types/resources/classes/rcm-ext.d.ts +2 -2
- package/dist/types/resources/classes/rcm-ext.d.ts.map +1 -1
- package/dist/types/resources/classes/rcm.d.ts +10 -10
- package/dist/types/resources/classes/rcm.d.ts.map +1 -1
- package/dist/types/resources/classes/role.d.ts +13 -13
- package/dist/types/resources/classes/role.d.ts.map +1 -1
- package/dist/types/resources/classes/secret.d.ts +7 -7
- package/dist/types/resources/classes/secret.d.ts.map +1 -1
- package/dist/types/resources/classes/telemed.d.ts +6 -6
- package/dist/types/resources/classes/telemed.d.ts.map +1 -1
- package/dist/types/resources/classes/terminology.d.ts +5 -5
- package/dist/types/resources/classes/terminology.d.ts.map +1 -1
- package/dist/types/resources/classes/transactionalSMS.d.ts +5 -5
- package/dist/types/resources/classes/transactionalSMS.d.ts.map +1 -1
- package/dist/types/resources/classes/user.d.ts +26 -26
- package/dist/types/resources/classes/user.d.ts.map +1 -1
- package/dist/types/resources/classes/version.d.ts +4 -4
- package/dist/types/resources/classes/version.d.ts.map +1 -1
- package/dist/types/resources/classes/z3-ext.d.ts +1 -1
- package/dist/types/resources/classes/z3.d.ts +16 -16
- package/dist/types/resources/classes/z3.d.ts.map +1 -1
- package/dist/types/resources/classes/zambda.d.ts +21 -21
- package/dist/types/resources/classes/zambda.d.ts.map +1 -1
- package/dist/types/resources/classes/zambdaLogStream.d.ts +9 -9
- package/dist/types/resources/classes/zambdaLogStream.d.ts.map +1 -1
- package/dist/types/resources/types/Application.d.ts +6 -6
- package/dist/types/resources/types/ApplicationCreateParams.d.ts +6 -6
- package/dist/types/resources/types/ApplicationUpdateParams.d.ts +6 -6
- package/dist/types/resources/types/ConversationAddParticipantParams.d.ts +1 -1
- package/dist/types/resources/types/ConversationCreateResponse.d.ts +1 -1
- package/dist/types/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
- package/dist/types/resources/types/FaxSendParams.d.ts +1 -1
- package/dist/types/resources/types/FaxSendResponse.d.ts +1 -1
- package/dist/types/resources/types/LabOrderSubmitParams.d.ts +2 -2
- package/dist/types/resources/types/LabRoute.d.ts +5 -5
- package/dist/types/resources/types/LabRouteCreateParams.d.ts +6 -6
- package/dist/types/resources/types/Secret.d.ts +1 -1
- package/dist/types/resources/types/SecretSetParams.d.ts +1 -1
- package/dist/types/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
- package/dist/types/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
- package/dist/types/resources/types/ZambdaCreateParams.d.ts +1 -1
- package/dist/types/resources/types/ZambdaFunction.d.ts +1 -1
- package/dist/types/resources/types/ZambdaUpdateParams.d.ts +1 -1
- package/dist/types/sijil/config.d.ts +7 -7
- package/dist/types/sijil/config.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SijilConfig } from '../config';
|
|
2
2
|
import { Logger } from '../logger';
|
|
3
3
|
import { FhirAsyncJobHandle, FhirAsyncJobStatus, FhirBundle, FhirResource, FhirResponseMode } from '../resources/types';
|
|
4
4
|
export declare const defaultProjectApiUrl = "https://project-api.zapehr.com/v1";
|
|
@@ -7,13 +7,13 @@ export declare const defaultProjectApiUrl = "https://project-api.zapehr.com/v1";
|
|
|
7
7
|
* overriding the access token or project ID, and setting various headers,
|
|
8
8
|
* such as 'Content-Type'.
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface SijilClientRequest {
|
|
11
11
|
/**
|
|
12
|
-
* The access token to use for the request. If not provided, the access token from `
|
|
12
|
+
* The access token to use for the request. If not provided, the access token from `sijil.init()` will be used.
|
|
13
13
|
*/
|
|
14
14
|
accessToken?: string;
|
|
15
15
|
/**
|
|
16
|
-
* The project ID to use for the request. If not provided, the project ID from `
|
|
16
|
+
* The project ID to use for the request. If not provided, the project ID from `sijil.init()` will be used.
|
|
17
17
|
*/
|
|
18
18
|
projectId?: string;
|
|
19
19
|
/**
|
|
@@ -30,7 +30,7 @@ export interface OystehrClientRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
mode?: FhirResponseMode;
|
|
32
32
|
}
|
|
33
|
-
interface InternalClientRequest extends
|
|
33
|
+
interface InternalClientRequest extends SijilClientRequest {
|
|
34
34
|
ifMatch?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Internal-only: returns raw response metadata ({ status, headers, body }) instead of throwing on non-2xx statuses.
|
|
@@ -40,9 +40,9 @@ interface InternalClientRequest extends OystehrClientRequest {
|
|
|
40
40
|
type FhirData<T extends FhirResource> = T | T[] | FhirBundle<T>;
|
|
41
41
|
export type FhirFetcherResponse<T extends FhirData<FhirResource> = any> = T;
|
|
42
42
|
export declare class SDKResource {
|
|
43
|
-
protected readonly config:
|
|
43
|
+
protected readonly config: SijilConfig;
|
|
44
44
|
protected readonly logger: Logger;
|
|
45
|
-
constructor(config:
|
|
45
|
+
constructor(config: SijilConfig);
|
|
46
46
|
protected request(path: string, method: string, baseUrlThunk: () => string): FetcherFunction;
|
|
47
47
|
protected fhirRequest<T = FhirResource>(path: string, method: string): {
|
|
48
48
|
(params: any, request: InternalClientRequest & {
|
|
@@ -51,7 +51,7 @@ export declare class SDKResource {
|
|
|
51
51
|
(params: any, request?: InternalClientRequest, requestMode?: FhirResponseMode): Promise<T>;
|
|
52
52
|
};
|
|
53
53
|
protected startAsyncJob(path: string, method: string, params: Record<string, unknown>, requestMode: FhirResponseMode, request?: InternalClientRequest): Promise<FhirAsyncJobHandle>;
|
|
54
|
-
protected fetchAsyncJobStatus<T extends FhirResource>(jobId: string, request?:
|
|
54
|
+
protected fetchAsyncJobStatus<T extends FhirResource>(jobId: string, request?: SijilClientRequest): Promise<FhirAsyncJobStatus<T>>;
|
|
55
55
|
private readHeader;
|
|
56
56
|
private parseAsyncJobId;
|
|
57
57
|
private appendBulkOutputFormat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client/client.ts"],"names":[],"mappings":"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"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Coding } from './resources/types/fhir';
|
|
2
2
|
/**
|
|
3
|
-
* Configuration for the
|
|
3
|
+
* Configuration for the Sijil SDK client
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface SijilConfig {
|
|
6
6
|
/**
|
|
7
7
|
* Access token for your user, M2M, or developer account.
|
|
8
8
|
*/
|
|
9
9
|
accessToken?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Optional
|
|
11
|
+
* Optional Sijil Project ID. Required for developer accessTokens.
|
|
12
12
|
*/
|
|
13
13
|
projectId?: string;
|
|
14
14
|
/**
|
|
@@ -58,7 +58,7 @@ export interface OystehrConfig {
|
|
|
58
58
|
*/
|
|
59
59
|
onRetry?: (attempt: number) => void;
|
|
60
60
|
/**
|
|
61
|
-
* Optional list of additional errors to retry for. The
|
|
61
|
+
* Optional list of additional errors to retry for. The Sijil SDK will always
|
|
62
62
|
* retry for status codes 408, 429, 500, 502, 503, and 504.
|
|
63
63
|
*/
|
|
64
64
|
retryOn?: number[];
|
|
@@ -78,6 +78,6 @@ export interface OystehrConfig {
|
|
|
78
78
|
*/
|
|
79
79
|
ignoreTags?: Coding[];
|
|
80
80
|
}
|
|
81
|
-
export declare function getConfig():
|
|
82
|
-
export declare function setConfig(config:
|
|
81
|
+
export declare function getConfig(): SijilConfig;
|
|
82
|
+
export declare function setConfig(config: SijilConfig): void;
|
|
83
83
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF;;;;;OAKG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5C;;;OAGG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;;WAIG;QACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QACpC;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;IACF;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAID,wBAAgB,SAAS,IAAI,WAAW,CAKvC;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAEnD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OperationOutcome as OperationOutcomeR4B } from 'fhir/r4b';
|
|
2
2
|
import { OperationOutcome as OperationOutcomeR5 } from 'fhir/r5';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SijilSdkError extends Error {
|
|
4
4
|
code: number;
|
|
5
5
|
constructor({ message, code, cause }: {
|
|
6
6
|
message: string;
|
|
@@ -10,7 +10,7 @@ export declare class OystehrSdkError extends Error {
|
|
|
10
10
|
toString(): string;
|
|
11
11
|
toJSON(): any;
|
|
12
12
|
}
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class SijilFHIRError extends SijilSdkError {
|
|
14
14
|
cause: OperationOutcomeR4B | OperationOutcomeR5;
|
|
15
15
|
constructor({ error, code }: {
|
|
16
16
|
error: OperationOutcomeR4B | OperationOutcomeR5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,gBAAgB,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEjE,qBAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,gBAAgB,IAAI,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEjE,qBAAa,aAAc,SAAQ,KAAK;IACtC,IAAI,EAAE,MAAM,CAAC;gBACD,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;IAMxF,QAAQ,IAAI,MAAM;IAGlB,MAAM,IAAI,GAAG;CAQd;AAeD,qBAAa,cAAe,SAAQ,aAAa;IAC/C,KAAK,EAAE,mBAAmB,GAAG,kBAAkB,CAAC;gBACpC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QAAE,KAAK,EAAE,mBAAmB,GAAG,kBAAkB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAS9F,MAAM,IAAI,GAAG;CAQd"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { SijilClientRequest } from './client/client';
|
|
2
|
+
import { SijilConfig } from './config';
|
|
3
3
|
import * as errors from './errors';
|
|
4
|
-
import {
|
|
4
|
+
import { Sijil as SijilBase } from './resources/classes';
|
|
5
5
|
export * from './resources';
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
8
|
-
declare class
|
|
9
|
-
static
|
|
10
|
-
static
|
|
6
|
+
export type { SijilClientRequest };
|
|
7
|
+
export type { SijilConfig };
|
|
8
|
+
declare class Sijil extends SijilBase {
|
|
9
|
+
static SijilFHIRError: typeof errors.SijilFHIRError;
|
|
10
|
+
static SijilSdkError: typeof errors.SijilSdkError;
|
|
11
11
|
}
|
|
12
|
-
declare namespace
|
|
13
|
-
type
|
|
14
|
-
type
|
|
12
|
+
declare namespace Sijil {
|
|
13
|
+
type SijilFHIRError = errors.SijilFHIRError;
|
|
14
|
+
type SijilSdkError = errors.SijilSdkError;
|
|
15
15
|
}
|
|
16
16
|
export { createSijilClient, sijilServiceUrls, apiBaseFromViteEnv } from './sijil/config';
|
|
17
17
|
export type { SijilClientConfig } from './sijil/config';
|
|
18
|
-
export default
|
|
18
|
+
export default Sijil;
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEzD,cAAc,aAAa,CAAC;AAE5B,YAAY,EAAE,kBAAkB,EAAE,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,CAAC;AAO5B,cAAM,KAAM,SAAQ,SAAS;IAC3B,MAAM,CAAC,cAAc,+BAAyB;IAC9C,MAAM,CAAC,aAAa,8BAAwB;CAC7C;AAGD,kBAAU,KAAK,CAAC;IACd,KAAY,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;IACnD,KAAY,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;CAClD;AAED,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzF,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAe,KAAK,CAAC"}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { ApplicationCreateParams, ApplicationCreateResponse, ApplicationDeleteParams, ApplicationGetParams, ApplicationGetResponse, ApplicationListResponse, ApplicationRevokeAccessTokenParams, ApplicationRevokeAccessTokenResponse, ApplicationRevokeRefreshTokenParams, ApplicationRevokeRefreshTokenResponse, ApplicationRotateSecretParams, ApplicationRotateSecretResponse, ApplicationUpdateParams, ApplicationUpdateResponse,
|
|
1
|
+
import { ApplicationCreateParams, ApplicationCreateResponse, ApplicationDeleteParams, ApplicationGetParams, ApplicationGetResponse, ApplicationListResponse, ApplicationRevokeAccessTokenParams, ApplicationRevokeAccessTokenResponse, ApplicationRevokeRefreshTokenParams, ApplicationRevokeRefreshTokenResponse, ApplicationRotateSecretParams, ApplicationRotateSecretResponse, ApplicationUpdateParams, ApplicationUpdateResponse, SijilClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
|
-
import {
|
|
3
|
+
import { SijilConfig } from '../../config';
|
|
4
4
|
export declare class Application extends SDKResource {
|
|
5
5
|
#private;
|
|
6
|
-
constructor(config:
|
|
6
|
+
constructor(config: SijilConfig);
|
|
7
7
|
/**
|
|
8
|
-
* Get a list of Applications. [Applications](https://docs.
|
|
8
|
+
* Get a list of Applications. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
|
|
9
9
|
*
|
|
10
10
|
* Access Policy Action: `App:ListAllApplications`
|
|
11
11
|
* Access Policy Resource: `App:Application`
|
|
12
12
|
*/
|
|
13
|
-
list(request?:
|
|
13
|
+
list(request?: SijilClientRequest): Promise<ApplicationListResponse>;
|
|
14
14
|
/**
|
|
15
|
-
* Create a new Application. [Applications](https://docs.
|
|
15
|
+
* Create a new Application. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
|
|
16
16
|
*
|
|
17
17
|
* Access Policy Action: `App:CreateApplication`
|
|
18
18
|
* Access Policy Resource: `App:Application`
|
|
19
19
|
*/
|
|
20
|
-
create(params: ApplicationCreateParams, request?:
|
|
20
|
+
create(params: ApplicationCreateParams, request?: SijilClientRequest): Promise<ApplicationCreateResponse>;
|
|
21
21
|
/**
|
|
22
|
-
* Get the Application with the provided ID. [Applications](https://docs.
|
|
22
|
+
* Get the Application with the provided ID. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
|
|
23
23
|
*
|
|
24
24
|
* Access Policy Action: `App:GetApplication`
|
|
25
25
|
* Access Policy Resource: `App:Application`
|
|
26
26
|
*/
|
|
27
|
-
get(params: ApplicationGetParams, request?:
|
|
27
|
+
get(params: ApplicationGetParams, request?: SijilClientRequest): Promise<ApplicationGetResponse>;
|
|
28
28
|
/**
|
|
29
|
-
* Update the Application with the provided ID. [Applications](https://docs.
|
|
29
|
+
* Update the Application with the provided ID. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
|
|
30
30
|
*
|
|
31
31
|
* Access Policy Action: `App:UpdateApplication`
|
|
32
32
|
* Access Policy Resource: `App:Application`
|
|
33
33
|
*/
|
|
34
|
-
update(params: ApplicationUpdateParams, request?:
|
|
34
|
+
update(params: ApplicationUpdateParams, request?: SijilClientRequest): Promise<ApplicationUpdateResponse>;
|
|
35
35
|
/**
|
|
36
|
-
* Delete the Application with the provided ID. [Applications](https://docs.
|
|
36
|
+
* Delete the Application with the provided ID. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
|
|
37
37
|
*
|
|
38
38
|
* Access Policy Action: `App:DeleteApplication`
|
|
39
39
|
* Access Policy Resource: `App:Application`
|
|
40
40
|
*/
|
|
41
|
-
delete(params: ApplicationDeleteParams, request?:
|
|
41
|
+
delete(params: ApplicationDeleteParams, request?: SijilClientRequest): Promise<void>;
|
|
42
42
|
/**
|
|
43
43
|
* Rotate client's secrete associated with an application.
|
|
44
44
|
*
|
|
45
45
|
* Access Policy Action: `App:RotateApplicationSecret`
|
|
46
46
|
* Access Policy Resource: `App:Application`
|
|
47
47
|
*/
|
|
48
|
-
rotateSecret(params: ApplicationRotateSecretParams, request?:
|
|
48
|
+
rotateSecret(params: ApplicationRotateSecretParams, request?: SijilClientRequest): Promise<ApplicationRotateSecretResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Revokes user's refresh token issued for the application.
|
|
51
51
|
*
|
|
52
52
|
* Access Policy Action: `App:RevokeRefreshToken`
|
|
53
53
|
* Access Policy Resource: `App:Application`
|
|
54
54
|
*/
|
|
55
|
-
revokeRefreshToken(params: ApplicationRevokeRefreshTokenParams, request?:
|
|
55
|
+
revokeRefreshToken(params: ApplicationRevokeRefreshTokenParams, request?: SijilClientRequest): Promise<ApplicationRevokeRefreshTokenResponse>;
|
|
56
56
|
/**
|
|
57
57
|
* Revokes user's access token issued for the application.
|
|
58
58
|
*
|
|
59
59
|
* Access Policy Action: `App:RevokeAccessToken`
|
|
60
60
|
* Access Policy Resource: `App:Application`
|
|
61
61
|
*/
|
|
62
|
-
revokeAccessToken(params: ApplicationRevokeAccessTokenParams, request?:
|
|
62
|
+
revokeAccessToken(params: ApplicationRevokeAccessTokenParams, request?: SijilClientRequest): Promise<ApplicationRevokeAccessTokenResponse>;
|
|
63
63
|
}
|
|
64
64
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/application.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,kCAAkC,EAClC,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,yBAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/application.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,kCAAkC,EAClC,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,qBAAa,WAAY,SAAQ,WAAW;;gBAC9B,MAAM,EAAE,WAAW;IAM/B;;;;;OAKG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAGpE;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAGzG;;;;;OAKG;IACH,GAAG,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAGhG;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAGzG;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAGpF;;;;;OAKG;IACH,YAAY,CACV,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,+BAA+B,CAAC;IAG3C;;;;;OAKG;IACH,kBAAkB,CAChB,MAAM,EAAE,mCAAmC,EAC3C,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,qCAAqC,CAAC;IAOjD;;;;;OAKG;IACH,iBAAiB,CACf,MAAM,EAAE,kCAAkC,EAC1C,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,oCAAoC,CAAC;CAOjD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChargeIssueParams, ChargeStatusParams, ChargeStatusResponse,
|
|
1
|
+
import { ChargeIssueParams, ChargeStatusParams, ChargeStatusResponse, SijilClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
|
-
import {
|
|
3
|
+
import { SijilConfig } from '../../config';
|
|
4
4
|
export declare class Charge extends SDKResource {
|
|
5
5
|
#private;
|
|
6
|
-
constructor(config:
|
|
6
|
+
constructor(config: SijilConfig);
|
|
7
7
|
/**
|
|
8
8
|
* Charge patient's default payment method for a specified encounter or charge item.
|
|
9
9
|
*
|
|
@@ -15,7 +15,7 @@ export declare class Charge extends SDKResource {
|
|
|
15
15
|
* Action: `FHIR:Read`
|
|
16
16
|
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
17
17
|
*/
|
|
18
|
-
issue(params: ChargeIssueParams, request?:
|
|
18
|
+
issue(params: ChargeIssueParams, request?: SijilClientRequest): Promise<void>;
|
|
19
19
|
/**
|
|
20
20
|
* Retrieve charge status for a specified encounter or charge item.
|
|
21
21
|
*
|
|
@@ -27,6 +27,6 @@ export declare class Charge extends SDKResource {
|
|
|
27
27
|
* Action: `FHIR:Read`
|
|
28
28
|
* Access Policy Resources: `FHIR:Patient:*,FHIR:Encounter:*,FHIR:Coverage:*`
|
|
29
29
|
*/
|
|
30
|
-
status(params: ChargeStatusParams, request?:
|
|
30
|
+
status(params: ChargeStatusParams, request?: SijilClientRequest): Promise<ChargeStatusResponse>;
|
|
31
31
|
}
|
|
32
32
|
//# sourceMappingURL=charge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charge.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/charge.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"charge.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/charge.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,qBAAa,MAAO,SAAQ,WAAW;;gBACzB,MAAM,EAAE,WAAW;IAM/B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAG7E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAGhG"}
|
|
@@ -3,7 +3,7 @@ import { Encounter as EncounterR5 } from 'fhir/r5';
|
|
|
3
3
|
export declare const ENCOUNTER_VS_EXTENSION_URL = "https://extensions.fhir.zapehr.com/encounter-virtual-service-pre-release";
|
|
4
4
|
export declare const ENCOUNTER_VS_EXTENSION_RELATIVE_URL = "addressString";
|
|
5
5
|
/**
|
|
6
|
-
* Helper function to get a conversationId from an encounter created as an
|
|
6
|
+
* Helper function to get a conversationId from an encounter created as an Sijil Conversation
|
|
7
7
|
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
8
8
|
* @returns conversationId
|
|
9
9
|
*/
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ConversationAddParticipantParams, ConversationCreateParams, ConversationCreateResponse, ConversationGetTokenResponse, ConversationMessageParams, ConversationRemoveParticipantParams,
|
|
1
|
+
import { ConversationAddParticipantParams, ConversationCreateParams, ConversationCreateResponse, ConversationGetTokenResponse, ConversationMessageParams, ConversationRemoveParticipantParams, SijilClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
|
-
import {
|
|
3
|
+
import { SijilConfig } from '../../config';
|
|
4
4
|
import * as ext from './conversation-ext';
|
|
5
5
|
export declare class Conversation extends SDKResource {
|
|
6
6
|
#private;
|
|
7
|
-
constructor(config:
|
|
7
|
+
constructor(config: SijilConfig);
|
|
8
8
|
ENCOUNTER_VS_EXTENSION_URL: string;
|
|
9
9
|
ENCOUNTER_VS_EXTENSION_RELATIVE_URL: string;
|
|
10
10
|
/**
|
|
11
|
-
* Helper function to get a conversationId from an encounter created as an
|
|
11
|
+
* Helper function to get a conversationId from an encounter created as an Sijil Conversation
|
|
12
12
|
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
13
13
|
* @returns conversationId
|
|
14
14
|
*/
|
|
15
15
|
getConversationIdFromEncounter: typeof ext.getConversationIdFromEncounter;
|
|
16
16
|
/**
|
|
17
|
-
* Create a new Conversation. [Conversations](https://docs.
|
|
17
|
+
* Create a new Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
18
18
|
*
|
|
19
19
|
* Access Policy Requirements:
|
|
20
20
|
* Action: `Messaging:CreateConversation`
|
|
@@ -24,16 +24,16 @@ export declare class Conversation extends SDKResource {
|
|
|
24
24
|
* Action: `FHIR:Update`
|
|
25
25
|
* Access Policy Resource: `FHIR:Encounter`
|
|
26
26
|
*/
|
|
27
|
-
create(params: ConversationCreateParams, request?:
|
|
27
|
+
create(params: ConversationCreateParams, request?: SijilClientRequest): Promise<ConversationCreateResponse>;
|
|
28
28
|
/**
|
|
29
|
-
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.
|
|
29
|
+
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
30
30
|
*
|
|
31
31
|
* Access Policy Action: `Messaging:GetConversationToken`
|
|
32
32
|
* Access Policy Resource: `Messaging:Conversation`.
|
|
33
33
|
*/
|
|
34
|
-
getToken(request?:
|
|
34
|
+
getToken(request?: SijilClientRequest): Promise<ConversationGetTokenResponse>;
|
|
35
35
|
/**
|
|
36
|
-
* Add a participant to a Conversation. [Conversations](https://docs.
|
|
36
|
+
* Add a participant to a Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
37
37
|
*
|
|
38
38
|
* Access Policy Requirements:
|
|
39
39
|
* Action: `Messaging:ConversationAddParticipant`
|
|
@@ -43,9 +43,9 @@ export declare class Conversation extends SDKResource {
|
|
|
43
43
|
* Action: `FHIR:Update`
|
|
44
44
|
* Access Policy Resource: `FHIR:Encounter`
|
|
45
45
|
*/
|
|
46
|
-
addParticipant(params: ConversationAddParticipantParams, request?:
|
|
46
|
+
addParticipant(params: ConversationAddParticipantParams, request?: SijilClientRequest): Promise<void>;
|
|
47
47
|
/**
|
|
48
|
-
* Remove a participant from a Conversation. [Conversations](https://docs.
|
|
48
|
+
* Remove a participant from a Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
49
49
|
*
|
|
50
50
|
* Access Policy Requirements:
|
|
51
51
|
* Action: `Messaging:ConversationRemoveParticipant`
|
|
@@ -53,14 +53,14 @@ export declare class Conversation extends SDKResource {
|
|
|
53
53
|
* Action: `FHIR:Read`
|
|
54
54
|
* Access Policy Resource: `FHIR:Patient`, `FHIR:Practitioner`, or `FHIR:RelatedPerson`
|
|
55
55
|
*/
|
|
56
|
-
removeParticipant(params: ConversationRemoveParticipantParams, request?:
|
|
56
|
+
removeParticipant(params: ConversationRemoveParticipantParams, request?: SijilClientRequest): Promise<void>;
|
|
57
57
|
/**
|
|
58
|
-
* Send a message to a Conversation. [Conversations](https://docs.
|
|
58
|
+
* Send a message to a Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
|
|
59
59
|
*
|
|
60
60
|
* Access Policy Requirements:
|
|
61
61
|
* Action: `Messaging:ConversationSendMessage`
|
|
62
62
|
* Access Policy Resource: `Messaging:Conversation`
|
|
63
63
|
*/
|
|
64
|
-
message(params: ConversationMessageParams, request?:
|
|
64
|
+
message(params: ConversationMessageParams, request?: SijilClientRequest): Promise<void>;
|
|
65
65
|
}
|
|
66
66
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,mCAAmC,EACnC,
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,mCAAmC,EACnC,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,qBAAa,YAAa,SAAQ,WAAW;;gBAC/B,MAAM,EAAE,WAAW;IAM/B,0BAA0B,SAAkC;IAC5D,mCAAmC,SAA2C;IAC9E;;;;OAIG;IACH,8BAA8B,4CAAsC;IACpE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAG3G;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAG7E;;;;;;;;;;OAUG;IACH,cAAc,CAAC,MAAM,EAAE,gCAAgC,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrG;;;;;;;;OAQG;IACH,iBAAiB,CAAC,MAAM,EAAE,mCAAmC,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3G;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAOxF"}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { DeveloperDeleteParams, DeveloperGetParams, DeveloperGetResponse, DeveloperInviteParams, DeveloperInviteResponse, DeveloperListResponse, DeveloperListV2Params, DeveloperListV2Response, DeveloperUpdateParams, DeveloperUpdateResponse,
|
|
1
|
+
import { DeveloperDeleteParams, DeveloperGetParams, DeveloperGetResponse, DeveloperInviteParams, DeveloperInviteResponse, DeveloperListResponse, DeveloperListV2Params, DeveloperListV2Response, DeveloperUpdateParams, DeveloperUpdateResponse, SijilClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
|
-
import {
|
|
3
|
+
import { SijilConfig } from '../../config';
|
|
4
4
|
export declare class Developer extends SDKResource {
|
|
5
5
|
#private;
|
|
6
|
-
constructor(config:
|
|
6
|
+
constructor(config: SijilConfig);
|
|
7
7
|
/**
|
|
8
|
-
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.
|
|
8
|
+
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
9
9
|
*
|
|
10
10
|
* Access Policy Action: `IAM:GetDeveloper`
|
|
11
11
|
* Access Policy Resource: `IAM:Developer`
|
|
12
12
|
*/
|
|
13
|
-
get(params: DeveloperGetParams, request?:
|
|
13
|
+
get(params: DeveloperGetParams, request?: SijilClientRequest): Promise<DeveloperGetResponse>;
|
|
14
14
|
/**
|
|
15
|
-
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.
|
|
15
|
+
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
16
16
|
*
|
|
17
17
|
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
18
18
|
* Access Policy Resource: `IAM:Developer`
|
|
19
19
|
*/
|
|
20
|
-
update(params: DeveloperUpdateParams, request?:
|
|
20
|
+
update(params: DeveloperUpdateParams, request?: SijilClientRequest): Promise<DeveloperUpdateResponse>;
|
|
21
21
|
/**
|
|
22
|
-
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.
|
|
22
|
+
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
23
23
|
*
|
|
24
24
|
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
25
25
|
* Access Policy Resource: `IAM:Developer`
|
|
26
26
|
*/
|
|
27
|
-
delete(params: DeveloperDeleteParams, request?:
|
|
27
|
+
delete(params: DeveloperDeleteParams, request?: SijilClientRequest): Promise<void>;
|
|
28
28
|
/**
|
|
29
|
-
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.
|
|
29
|
+
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
30
30
|
*
|
|
31
31
|
* Access Policy Action: `IAM:InviteDeveloper`
|
|
32
32
|
* Access Policy Resource: `IAM:Developer`
|
|
33
33
|
*/
|
|
34
|
-
invite(params: DeveloperInviteParams, request?:
|
|
34
|
+
invite(params: DeveloperInviteParams, request?: SijilClientRequest): Promise<DeveloperInviteResponse>;
|
|
35
35
|
/**
|
|
36
|
-
* DEPRECATED. Please use [v2/list](https://api-reference.
|
|
36
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_developer-v2-list) instead.
|
|
37
37
|
*
|
|
38
|
-
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.
|
|
38
|
+
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
|
|
39
39
|
*
|
|
40
40
|
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
41
41
|
* Access Policy Resource: `IAM:Developer`
|
|
42
42
|
*/
|
|
43
|
-
list(request?:
|
|
43
|
+
list(request?: SijilClientRequest): Promise<DeveloperListResponse>;
|
|
44
44
|
/**
|
|
45
|
-
* Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.
|
|
45
|
+
* Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
|
|
46
46
|
*
|
|
47
47
|
* Access Policy Action: `Project:ListAllUsers`
|
|
48
48
|
* Access Policy Resource: `Project:Settings`
|
|
49
49
|
*/
|
|
50
|
-
listV2(params: DeveloperListV2Params, request?:
|
|
50
|
+
listV2(params: DeveloperListV2Params, request?: SijilClientRequest): Promise<DeveloperListV2Response>;
|
|
51
51
|
/**
|
|
52
|
-
* Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.
|
|
52
|
+
* Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
|
|
53
53
|
*
|
|
54
54
|
* Access Policy Action: `Project:ListAllUsers`
|
|
55
55
|
* Access Policy Resource: `Project:Settings`
|
|
56
56
|
*/
|
|
57
|
-
listV2(request?:
|
|
57
|
+
listV2(request?: SijilClientRequest): Promise<DeveloperListV2Response>;
|
|
58
58
|
}
|
|
59
59
|
//# sourceMappingURL=developer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/developer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../../../../src/resources/classes/developer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,qBAAa,SAAU,SAAQ,WAAW;;gBAC5B,MAAM,EAAE,WAAW;IAM/B;;;;;OAKG;IACH,GAAG,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAG5F;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAGrG;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAGlF;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAGrG;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAGlE;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IACrG;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAavE"}
|