@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
package/dist/cjs/index.cjs
CHANGED
|
@@ -34,12 +34,12 @@ __export(index_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(index_exports);
|
|
35
35
|
|
|
36
36
|
// src/errors/index.ts
|
|
37
|
-
var
|
|
37
|
+
var SijilSdkError = class _SijilSdkError extends Error {
|
|
38
38
|
constructor({ message, code, cause }) {
|
|
39
39
|
super(message, { cause });
|
|
40
|
-
Object.setPrototypeOf(this,
|
|
40
|
+
Object.setPrototypeOf(this, _SijilSdkError.prototype);
|
|
41
41
|
this.code = code;
|
|
42
|
-
this.name = "
|
|
42
|
+
this.name = "SijilSdkError";
|
|
43
43
|
}
|
|
44
44
|
toString() {
|
|
45
45
|
return `${this.name}: ${this.message} (code: ${this.code})`;
|
|
@@ -65,15 +65,15 @@ function transformOperationOutcomeToErrorMessage(cause) {
|
|
|
65
65
|
}
|
|
66
66
|
return causes.join(",");
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var SijilFHIRError = class _SijilFHIRError extends SijilSdkError {
|
|
69
69
|
constructor({ error, code }) {
|
|
70
70
|
super({
|
|
71
71
|
message: transformOperationOutcomeToErrorMessage(error),
|
|
72
72
|
code
|
|
73
73
|
});
|
|
74
|
-
Object.setPrototypeOf(this,
|
|
74
|
+
Object.setPrototypeOf(this, _SijilFHIRError.prototype);
|
|
75
75
|
this.cause = error;
|
|
76
|
-
this.name = "
|
|
76
|
+
this.name = "SijilFHIRError";
|
|
77
77
|
}
|
|
78
78
|
toJSON() {
|
|
79
79
|
return {
|
|
@@ -150,7 +150,7 @@ var SDKResource = class {
|
|
|
150
150
|
} catch (err) {
|
|
151
151
|
const error = err;
|
|
152
152
|
this.logger.error(error.message, { code: error.code, cause: error.cause });
|
|
153
|
-
throw new
|
|
153
|
+
throw new SijilSdkError({ message: error.message, code: error.code, cause: error.cause });
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
}
|
|
@@ -164,13 +164,13 @@ var SDKResource = class {
|
|
|
164
164
|
} catch (err) {
|
|
165
165
|
const fullError = err;
|
|
166
166
|
if (typeof fullError.message === "string") {
|
|
167
|
-
throw new
|
|
167
|
+
throw new SijilSdkError({
|
|
168
168
|
message: fullError.message,
|
|
169
169
|
code: fullError.code,
|
|
170
170
|
cause: fullError.cause
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
throw new
|
|
173
|
+
throw new SijilFHIRError({
|
|
174
174
|
error: fullError.message,
|
|
175
175
|
code: fullError.code
|
|
176
176
|
});
|
|
@@ -189,21 +189,21 @@ var SDKResource = class {
|
|
|
189
189
|
requestMode
|
|
190
190
|
);
|
|
191
191
|
if (raw.status !== 202) {
|
|
192
|
-
throw new
|
|
192
|
+
throw new SijilSdkError({
|
|
193
193
|
message: `Expected start async job to return 202 Accepted, received ${raw.status}`,
|
|
194
194
|
code: raw.status
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
const contentLocation = this.readHeader(raw.headers, "content-location");
|
|
198
198
|
if (!contentLocation) {
|
|
199
|
-
throw new
|
|
199
|
+
throw new SijilSdkError({
|
|
200
200
|
message: "Start Async job response missing Content-Location header",
|
|
201
201
|
code: 500
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
const jobId = this.parseAsyncJobId(contentLocation);
|
|
205
205
|
if (!jobId) {
|
|
206
|
-
throw new
|
|
206
|
+
throw new SijilSdkError({
|
|
207
207
|
message: `Could not parse async job id from Content-Location: ${contentLocation}`,
|
|
208
208
|
code: 500
|
|
209
209
|
});
|
|
@@ -375,7 +375,7 @@ function fetcher(baseUrlThunk4, configThunk, loggerThunk, path, methodParam) {
|
|
|
375
375
|
const headers = Object.assign(
|
|
376
376
|
projectId ? {
|
|
377
377
|
"x-zapehr-project-id": projectId,
|
|
378
|
-
"x-
|
|
378
|
+
"x-sijil-project-id": projectId
|
|
379
379
|
} : {},
|
|
380
380
|
{
|
|
381
381
|
"content-type": requestCtx?.contentType ?? "application/json"
|
|
@@ -383,7 +383,7 @@ function fetcher(baseUrlThunk4, configThunk, loggerThunk, path, methodParam) {
|
|
|
383
383
|
preferHeader ? { Prefer: preferHeader } : {},
|
|
384
384
|
accessToken ? { Authorization: `Bearer ${accessToken}` } : {},
|
|
385
385
|
requestCtx?.ifMatch ? { "If-Match": requestCtx.ifMatch } : {},
|
|
386
|
-
{ "x-
|
|
386
|
+
{ "x-sijil-request-id": requestCtx?.requestId }
|
|
387
387
|
);
|
|
388
388
|
const retryConfig = {
|
|
389
389
|
retries: config.retry?.retries ?? 3,
|
|
@@ -523,7 +523,7 @@ function subParamsInPath(path, params) {
|
|
|
523
523
|
return params[paramName] + "";
|
|
524
524
|
}
|
|
525
525
|
if (!params[paramName] || params[paramName] === "") {
|
|
526
|
-
throw new
|
|
526
|
+
throw new SijilSdkError({ message: `Required path parameter is an empty string: ${paramName}`, code: 400 });
|
|
527
527
|
}
|
|
528
528
|
if (params[paramName]) {
|
|
529
529
|
return encodeURIComponent(params[paramName] + "");
|
|
@@ -559,7 +559,7 @@ var Application = class extends SDKResource {
|
|
|
559
559
|
__privateAdd(this, _Application_instances);
|
|
560
560
|
}
|
|
561
561
|
/**
|
|
562
|
-
* Get a list of Applications. [Applications](https://docs.
|
|
562
|
+
* 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.
|
|
563
563
|
*
|
|
564
564
|
* Access Policy Action: `App:ListAllApplications`
|
|
565
565
|
* Access Policy Resource: `App:Application`
|
|
@@ -568,7 +568,7 @@ var Application = class extends SDKResource {
|
|
|
568
568
|
return this.request("/application", "get", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(request);
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
|
-
* Create a new Application. [Applications](https://docs.
|
|
571
|
+
* 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.
|
|
572
572
|
*
|
|
573
573
|
* Access Policy Action: `App:CreateApplication`
|
|
574
574
|
* Access Policy Resource: `App:Application`
|
|
@@ -577,7 +577,7 @@ var Application = class extends SDKResource {
|
|
|
577
577
|
return this.request("/application", "post", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(params, request);
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
|
-
* Get the Application with the provided ID. [Applications](https://docs.
|
|
580
|
+
* 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.
|
|
581
581
|
*
|
|
582
582
|
* Access Policy Action: `App:GetApplication`
|
|
583
583
|
* Access Policy Resource: `App:Application`
|
|
@@ -586,7 +586,7 @@ var Application = class extends SDKResource {
|
|
|
586
586
|
return this.request("/application/{id}", "get", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(params, request);
|
|
587
587
|
}
|
|
588
588
|
/**
|
|
589
|
-
* Update the Application with the provided ID. [Applications](https://docs.
|
|
589
|
+
* 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.
|
|
590
590
|
*
|
|
591
591
|
* Access Policy Action: `App:UpdateApplication`
|
|
592
592
|
* Access Policy Resource: `App:Application`
|
|
@@ -595,7 +595,7 @@ var Application = class extends SDKResource {
|
|
|
595
595
|
return this.request("/application/{id}", "patch", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(params, request);
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
598
|
-
* Delete the Application with the provided ID. [Applications](https://docs.
|
|
598
|
+
* 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.
|
|
599
599
|
*
|
|
600
600
|
* Access Policy Action: `App:DeleteApplication`
|
|
601
601
|
* Access Policy Resource: `App:Application`
|
|
@@ -717,14 +717,14 @@ var Conversation = class extends SDKResource {
|
|
|
717
717
|
this.ENCOUNTER_VS_EXTENSION_URL = ENCOUNTER_VS_EXTENSION_URL;
|
|
718
718
|
this.ENCOUNTER_VS_EXTENSION_RELATIVE_URL = ENCOUNTER_VS_EXTENSION_RELATIVE_URL;
|
|
719
719
|
/**
|
|
720
|
-
* Helper function to get a conversationId from an encounter created as an
|
|
720
|
+
* Helper function to get a conversationId from an encounter created as an Sijil Conversation
|
|
721
721
|
* @param encounter well-formed FHIR R4B or R5 Encounter
|
|
722
722
|
* @returns conversationId
|
|
723
723
|
*/
|
|
724
724
|
this.getConversationIdFromEncounter = getConversationIdFromEncounter;
|
|
725
725
|
}
|
|
726
726
|
/**
|
|
727
|
-
* Create a new Conversation. [Conversations](https://docs.
|
|
727
|
+
* 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.
|
|
728
728
|
*
|
|
729
729
|
* Access Policy Requirements:
|
|
730
730
|
* Action: `Messaging:CreateConversation`
|
|
@@ -738,7 +738,7 @@ var Conversation = class extends SDKResource {
|
|
|
738
738
|
return this.request("/messaging/conversation", "post", __privateMethod(this, _Conversation_instances, baseUrlThunk_fn3).bind(this))(params, request);
|
|
739
739
|
}
|
|
740
740
|
/**
|
|
741
|
-
* Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.
|
|
741
|
+
* 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.
|
|
742
742
|
*
|
|
743
743
|
* Access Policy Action: `Messaging:GetConversationToken`
|
|
744
744
|
* Access Policy Resource: `Messaging:Conversation`.
|
|
@@ -747,7 +747,7 @@ var Conversation = class extends SDKResource {
|
|
|
747
747
|
return this.request("/messaging/conversation/token", "get", __privateMethod(this, _Conversation_instances, baseUrlThunk_fn3).bind(this))(request);
|
|
748
748
|
}
|
|
749
749
|
/**
|
|
750
|
-
* Add a participant to a Conversation. [Conversations](https://docs.
|
|
750
|
+
* 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.
|
|
751
751
|
*
|
|
752
752
|
* Access Policy Requirements:
|
|
753
753
|
* Action: `Messaging:ConversationAddParticipant`
|
|
@@ -765,7 +765,7 @@ var Conversation = class extends SDKResource {
|
|
|
765
765
|
)(params, request);
|
|
766
766
|
}
|
|
767
767
|
/**
|
|
768
|
-
* Remove a participant from a Conversation. [Conversations](https://docs.
|
|
768
|
+
* 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.
|
|
769
769
|
*
|
|
770
770
|
* Access Policy Requirements:
|
|
771
771
|
* Action: `Messaging:ConversationRemoveParticipant`
|
|
@@ -781,7 +781,7 @@ var Conversation = class extends SDKResource {
|
|
|
781
781
|
)(params, request);
|
|
782
782
|
}
|
|
783
783
|
/**
|
|
784
|
-
* Send a message to a Conversation. [Conversations](https://docs.
|
|
784
|
+
* 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.
|
|
785
785
|
*
|
|
786
786
|
* Access Policy Requirements:
|
|
787
787
|
* Action: `Messaging:ConversationSendMessage`
|
|
@@ -808,7 +808,7 @@ var Developer = class extends SDKResource {
|
|
|
808
808
|
__privateAdd(this, _Developer_instances);
|
|
809
809
|
}
|
|
810
810
|
/**
|
|
811
|
-
* Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.
|
|
811
|
+
* 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.
|
|
812
812
|
*
|
|
813
813
|
* Access Policy Action: `IAM:GetDeveloper`
|
|
814
814
|
* Access Policy Resource: `IAM:Developer`
|
|
@@ -817,7 +817,7 @@ var Developer = class extends SDKResource {
|
|
|
817
817
|
return this.request("/developer/{id}", "get", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
|
|
818
818
|
}
|
|
819
819
|
/**
|
|
820
|
-
* Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.
|
|
820
|
+
* 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.
|
|
821
821
|
*
|
|
822
822
|
* Access Policy Action: `IAM:UpdateDeveloper`
|
|
823
823
|
* Access Policy Resource: `IAM:Developer`
|
|
@@ -826,7 +826,7 @@ var Developer = class extends SDKResource {
|
|
|
826
826
|
return this.request("/developer/{id}", "patch", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
|
|
827
827
|
}
|
|
828
828
|
/**
|
|
829
|
-
* Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.
|
|
829
|
+
* 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.
|
|
830
830
|
*
|
|
831
831
|
* Access Policy Action: `IAM:RemoveDeveloper`
|
|
832
832
|
* Access Policy Resource: `IAM:Developer`
|
|
@@ -835,7 +835,7 @@ var Developer = class extends SDKResource {
|
|
|
835
835
|
return this.request("/developer/{id}", "delete", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
|
|
836
836
|
}
|
|
837
837
|
/**
|
|
838
|
-
* Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.
|
|
838
|
+
* 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.
|
|
839
839
|
*
|
|
840
840
|
* Access Policy Action: `IAM:InviteDeveloper`
|
|
841
841
|
* Access Policy Resource: `IAM:Developer`
|
|
@@ -844,9 +844,9 @@ var Developer = class extends SDKResource {
|
|
|
844
844
|
return this.request("/developer/invite", "post", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
|
|
845
845
|
}
|
|
846
846
|
/**
|
|
847
|
-
* DEPRECATED. Please use [v2/list](https://api-reference.
|
|
847
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_developer-v2-list) instead.
|
|
848
848
|
*
|
|
849
|
-
* Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.
|
|
849
|
+
* 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.
|
|
850
850
|
*
|
|
851
851
|
* Access Policy Action: `IAM:ListAllDevelopers`
|
|
852
852
|
* Access Policy Resource: `IAM:Developer`
|
|
@@ -855,7 +855,7 @@ var Developer = class extends SDKResource {
|
|
|
855
855
|
return this.request("/developer", "get", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(request);
|
|
856
856
|
}
|
|
857
857
|
/**
|
|
858
|
-
* Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.
|
|
858
|
+
* 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.
|
|
859
859
|
*
|
|
860
860
|
* Access Policy Action: `Project:ListAllUsers`
|
|
861
861
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -1038,7 +1038,7 @@ var Fax = class extends SDKResource {
|
|
|
1038
1038
|
__privateAdd(this, _Fax_instances);
|
|
1039
1039
|
}
|
|
1040
1040
|
/**
|
|
1041
|
-
* Offboard a fax number.
|
|
1041
|
+
* Offboard a fax number. Sijil's [offboard](https://docs.sijil.com/sijil/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
|
|
1042
1042
|
*
|
|
1043
1043
|
* Access Policy Requirements:
|
|
1044
1044
|
* Action: `Fax:Offboard`
|
|
@@ -1048,7 +1048,7 @@ var Fax = class extends SDKResource {
|
|
|
1048
1048
|
return this.request("/offboard", "post", __privateMethod(this, _Fax_instances, baseUrlThunk_fn6).bind(this))(request);
|
|
1049
1049
|
}
|
|
1050
1050
|
/**
|
|
1051
|
-
* Onboard a fax number.
|
|
1051
|
+
* Onboard a fax number. Sijil's [onboard](https://docs.sijil.com/sijil/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
|
|
1052
1052
|
*
|
|
1053
1053
|
* Access Policy Requirements:
|
|
1054
1054
|
* Action: `Fax:Onboard`
|
|
@@ -1068,7 +1068,7 @@ var Fax = class extends SDKResource {
|
|
|
1068
1068
|
return this.request("/config", "get", __privateMethod(this, _Fax_instances, baseUrlThunk_fn6).bind(this))(request);
|
|
1069
1069
|
}
|
|
1070
1070
|
/**
|
|
1071
|
-
* Send a fax.
|
|
1071
|
+
* Send a fax. Sijil's [fax sending](https://docs.sijil.com/sijil/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
|
|
1072
1072
|
*
|
|
1073
1073
|
* Access Policy Requirements:
|
|
1074
1074
|
* Action: `Fax:Send`
|
|
@@ -1125,7 +1125,7 @@ function applyTagToResource(config, resource) {
|
|
|
1125
1125
|
const resourceTags = resourceLike.meta?.tag ?? [];
|
|
1126
1126
|
for (const ignored of config.ignoreTags) {
|
|
1127
1127
|
if (resourceTags.some((t) => codingMatches(t, ignored))) {
|
|
1128
|
-
throw new
|
|
1128
|
+
throw new SijilSdkError({
|
|
1129
1129
|
message: `Resource has an ignored tag (system: "${ignored.system ?? ""}", code: "${ignored.code ?? ""}") and cannot be mutated in ignoreTags mode`,
|
|
1130
1130
|
code: 400
|
|
1131
1131
|
});
|
|
@@ -1158,7 +1158,7 @@ function applyTagToPatchOperations(config, operations) {
|
|
|
1158
1158
|
if (v.code !== void 0) {
|
|
1159
1159
|
for (const ignored of config.ignoreTags) {
|
|
1160
1160
|
if (codingMatches(v, ignored)) {
|
|
1161
|
-
throw new
|
|
1161
|
+
throw new SijilSdkError({
|
|
1162
1162
|
message: `Patch operation contains an ignored tag (system: "${ignored.system ?? ""}", code: "${ignored.code ?? ""}") and cannot be applied in ignoreTags mode`,
|
|
1163
1163
|
code: 400
|
|
1164
1164
|
});
|
|
@@ -1214,7 +1214,7 @@ function assertRetrievedResource(config, resource) {
|
|
|
1214
1214
|
if (config.workspaceTag) {
|
|
1215
1215
|
const tag = config.workspaceTag;
|
|
1216
1216
|
if (!resourceTags.some((t) => codingMatches(t, tag))) {
|
|
1217
|
-
throw new
|
|
1217
|
+
throw new SijilFHIRError({
|
|
1218
1218
|
error: {
|
|
1219
1219
|
resourceType: "OperationOutcome",
|
|
1220
1220
|
id: "not-found",
|
|
@@ -1228,7 +1228,7 @@ function assertRetrievedResource(config, resource) {
|
|
|
1228
1228
|
if (config.ignoreTags?.length) {
|
|
1229
1229
|
for (const ignored of config.ignoreTags) {
|
|
1230
1230
|
if (resourceTags.some((t) => codingMatches(t, ignored))) {
|
|
1231
|
-
throw new
|
|
1231
|
+
throw new SijilFHIRError({
|
|
1232
1232
|
error: {
|
|
1233
1233
|
resourceType: "OperationOutcome",
|
|
1234
1234
|
id: "not-found",
|
|
@@ -1387,7 +1387,7 @@ async function waitForAsyncJob(jobId, options, request) {
|
|
|
1387
1387
|
await new Promise((resolve) => setTimeout(resolve, getRetryDelayMs(retryAfter, pollIntervalMs)));
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
throw new
|
|
1390
|
+
throw new SijilSdkError({
|
|
1391
1391
|
message: `Async job ${jobId} did not complete within ${timeoutMs} ms`,
|
|
1392
1392
|
code: 408
|
|
1393
1393
|
});
|
|
@@ -1542,7 +1542,7 @@ async function batch(input, request) {
|
|
|
1542
1542
|
try {
|
|
1543
1543
|
assertRetrievedResource(this.config, entry.resource);
|
|
1544
1544
|
} catch (err) {
|
|
1545
|
-
if (!(err instanceof
|
|
1545
|
+
if (!(err instanceof SijilFHIRError)) throw err;
|
|
1546
1546
|
return {
|
|
1547
1547
|
request: entry.request,
|
|
1548
1548
|
response: { status: "404", outcome: err.cause }
|
|
@@ -1647,7 +1647,7 @@ var Fhir = class extends SDKResource {
|
|
|
1647
1647
|
/**
|
|
1648
1648
|
* Performs a FHIR search and returns the results as a Bundle resource
|
|
1649
1649
|
* @param options FHIR resource type and FHIR search parameters
|
|
1650
|
-
* @param request optional
|
|
1650
|
+
* @param request optional SijilClientRequest object
|
|
1651
1651
|
* @returns FHIR Bundle resource
|
|
1652
1652
|
*/
|
|
1653
1653
|
this.search = search;
|
|
@@ -1690,7 +1690,7 @@ var Lab = class extends SDKResource {
|
|
|
1690
1690
|
return this.request("/route", "get", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(request);
|
|
1691
1691
|
}
|
|
1692
1692
|
/**
|
|
1693
|
-
* Create a route. A Route represents that a lab and particular customer have a relationship, and a Route is necessary to submit an order to a lab. See [Route](https://docs.
|
|
1693
|
+
* Create a route. A Route represents that a lab and particular customer have a relationship, and a Route is necessary to submit an order to a lab. See [Route](https://docs.sijil.com/sijil/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
1694
1694
|
*
|
|
1695
1695
|
* Access Policy Requirements:
|
|
1696
1696
|
* Action: `Lab:CreateRoute`
|
|
@@ -1710,7 +1710,7 @@ var Lab = class extends SDKResource {
|
|
|
1710
1710
|
return this.request("/route/{routeGuid}", "get", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(params, request);
|
|
1711
1711
|
}
|
|
1712
1712
|
/**
|
|
1713
|
-
* Delete a route. Deleting a Route will permanently remove the `routeGuid`. Orders can no longer be submitted to this lab until a new Route is created. See [Route](https://docs.
|
|
1713
|
+
* Delete a route. Deleting a Route will permanently remove the `routeGuid`. Orders can no longer be submitted to this lab until a new Route is created. See [Route](https://docs.sijil.com/sijil/services/lab/onboarding-a-lab/#delete-route) for more details.
|
|
1714
1714
|
*
|
|
1715
1715
|
* Access Policy Requirements:
|
|
1716
1716
|
* Action: `Lab:DeleteRoute`
|
|
@@ -1720,7 +1720,7 @@ var Lab = class extends SDKResource {
|
|
|
1720
1720
|
return this.request("/route/{routeGuid}", "delete", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(params, request);
|
|
1721
1721
|
}
|
|
1722
1722
|
/**
|
|
1723
|
-
* Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.
|
|
1723
|
+
* Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.sijil.com/sijil/services/lab/explore-the-compendium/#orderable-item-search) for more details.
|
|
1724
1724
|
*
|
|
1725
1725
|
* Access Policy Requirements:
|
|
1726
1726
|
* Action: `Lab:SearchOrderableItems`
|
|
@@ -1730,7 +1730,7 @@ var Lab = class extends SDKResource {
|
|
|
1730
1730
|
return this.request("/orderableItem", "get", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(params, request);
|
|
1731
1731
|
}
|
|
1732
1732
|
/**
|
|
1733
|
-
* Retrieve the AOE (Answer on Entry) Questionnaire for the given orderable item. The orderable item is defined by its labGuid, compendiumVersion, and itemCode. See [AOE](https://docs.
|
|
1733
|
+
* Retrieve the AOE (Answer on Entry) Questionnaire for the given orderable item. The orderable item is defined by its labGuid, compendiumVersion, and itemCode. See [AOE](https://docs.sijil.com/sijil/services/lab/explore-the-compendium/#AOE) for more details.
|
|
1734
1734
|
*
|
|
1735
1735
|
* Access Policy Requirements:
|
|
1736
1736
|
* Action: `Lab:SearchOrderableItems`
|
|
@@ -1744,7 +1744,7 @@ var Lab = class extends SDKResource {
|
|
|
1744
1744
|
)(params, request);
|
|
1745
1745
|
}
|
|
1746
1746
|
/**
|
|
1747
|
-
* Submit a lab order.
|
|
1747
|
+
* Submit a lab order. Sijil's [Submit Lab](https://docs.sijil.com/sijil/services/lab/submit-an-order/) feature allows users to submit an order consisting of one or more well-configured ServiceRequests to an external lab. In order to successfully submit an order, a [Route](https://docs.sijil.com/sijil/services/lab/onboarding-a-lab/#create-route) to and Organization representing that lab must exist. If the lab requires its own requisition document (eReq) or an Advance Beneficiary Notice (ABN), the appropriate DocumentReferences will be included in the response.
|
|
1748
1748
|
*
|
|
1749
1749
|
* Access Policy Requirements:
|
|
1750
1750
|
* Action: `Lab:SubmitOrder`
|
|
@@ -1767,9 +1767,9 @@ var M2m = class extends SDKResource {
|
|
|
1767
1767
|
__privateAdd(this, _M2m_instances);
|
|
1768
1768
|
}
|
|
1769
1769
|
/**
|
|
1770
|
-
* DEPRECATED. Please use [v2/list](https://api-reference.
|
|
1770
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_m2m-v2-list) instead.
|
|
1771
1771
|
*
|
|
1772
|
-
* Get a list of all M2M Clients. [M2M Clients](https://docs.
|
|
1772
|
+
* Get a list of all M2M Clients. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1773
1773
|
*
|
|
1774
1774
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
1775
1775
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1778,7 +1778,7 @@ var M2m = class extends SDKResource {
|
|
|
1778
1778
|
return this.request("/m2m", "get", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(request);
|
|
1779
1779
|
}
|
|
1780
1780
|
/**
|
|
1781
|
-
* Create a new M2M Client. [M2M Clients](https://docs.
|
|
1781
|
+
* Create a new M2M Client. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1782
1782
|
*
|
|
1783
1783
|
* Access Policy Action: `App:CreateM2MClient`
|
|
1784
1784
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1787,7 +1787,7 @@ var M2m = class extends SDKResource {
|
|
|
1787
1787
|
return this.request("/m2m", "post", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
|
-
* Get information about the calling M2M Client. [M2M Clients](https://docs.
|
|
1790
|
+
* Get information about the calling M2M Client. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1791
1791
|
*
|
|
1792
1792
|
* Access Policy Action: `App:GetM2MClient`
|
|
1793
1793
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1796,7 +1796,7 @@ var M2m = class extends SDKResource {
|
|
|
1796
1796
|
return this.request("/m2m/me", "get", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(request);
|
|
1797
1797
|
}
|
|
1798
1798
|
/**
|
|
1799
|
-
* Get the M2M Client with the provided ID. [M2M Clients](https://docs.
|
|
1799
|
+
* Get the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1800
1800
|
*
|
|
1801
1801
|
* Access Policy Action: `App:GetM2MClient`
|
|
1802
1802
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1805,7 +1805,7 @@ var M2m = class extends SDKResource {
|
|
|
1805
1805
|
return this.request("/m2m/{id}", "get", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
|
|
1806
1806
|
}
|
|
1807
1807
|
/**
|
|
1808
|
-
* Update the M2M Client with the provided ID. [M2M Clients](https://docs.
|
|
1808
|
+
* Update the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1809
1809
|
*
|
|
1810
1810
|
* Access Policy Action: `App:UpdateM2MClient`
|
|
1811
1811
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1814,7 +1814,7 @@ var M2m = class extends SDKResource {
|
|
|
1814
1814
|
return this.request("/m2m/{id}", "patch", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
|
|
1815
1815
|
}
|
|
1816
1816
|
/**
|
|
1817
|
-
* Delete the M2M Client with the provided ID. [M2M Clients](https://docs.
|
|
1817
|
+
* Delete the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1818
1818
|
*
|
|
1819
1819
|
* Access Policy Action: `App:DeleteM2MClient`
|
|
1820
1820
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1823,7 +1823,7 @@ var M2m = class extends SDKResource {
|
|
|
1823
1823
|
return this.request("/m2m/{id}", "delete", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
|
|
1824
1824
|
}
|
|
1825
1825
|
/**
|
|
1826
|
-
* Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.
|
|
1826
|
+
* Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1827
1827
|
*
|
|
1828
1828
|
* Access Policy Action: `App:RotateM2MClientSecret`
|
|
1829
1829
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1832,7 +1832,7 @@ var M2m = class extends SDKResource {
|
|
|
1832
1832
|
return this.request("/m2m/{id}/rotate-secret", "post", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
|
|
1833
1833
|
}
|
|
1834
1834
|
/**
|
|
1835
|
-
* Get M2M clients in the Project with pagination, sort, sort order and filtering. [M2M Clients](https://docs.
|
|
1835
|
+
* Get M2M clients in the Project with pagination, sort, sort order and filtering. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
|
|
1836
1836
|
*
|
|
1837
1837
|
* Access Policy Action: `App:ListAllM2MClients`
|
|
1838
1838
|
* Access Policy Resource: `IAM:M2MClient`
|
|
@@ -1958,7 +1958,7 @@ var Project = class extends SDKResource {
|
|
|
1958
1958
|
__privateAdd(this, _Project_instances);
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
1961
|
-
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.
|
|
1961
|
+
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.sijil.com/sijil/core-documentation/authenticating-api-requests/#x-sijil-project-id-header) in the header. A Project is the logically-isolated instance of Sijil that segments your data from other Projects. [Projects](https://docs.sijil.com/sijil/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.sijil.com/sijil/services/fhir/basics/), [Applications](https://docs.sijil.com/sijil/services/app/applications/), [Users](https://docs.sijil.com/sijil/services/app/users/), etc .
|
|
1962
1962
|
*
|
|
1963
1963
|
* Access Policy Action: `Project:GetProjectInfo`
|
|
1964
1964
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -1967,7 +1967,7 @@ var Project = class extends SDKResource {
|
|
|
1967
1967
|
return this.request("/project", "get", __privateMethod(this, _Project_instances, baseUrlThunk_fn12).bind(this))(request);
|
|
1968
1968
|
}
|
|
1969
1969
|
/**
|
|
1970
|
-
* Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.
|
|
1970
|
+
* Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.sijil.com/sijil/services/project/) is the logically-isolated instance of Sijil that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.sijil.com/sijil/services/fhir/basics/), [Applications](https://docs.sijil.com/sijil/services/app/applications/), [Users](https://docs.sijil.com/sijil/services/app/users/), etc .
|
|
1971
1971
|
*
|
|
1972
1972
|
* Access Policy Action: `Project:UpdateProjectInfo`
|
|
1973
1973
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -1992,7 +1992,7 @@ function constructPayerUrl({
|
|
|
1992
1992
|
}
|
|
1993
1993
|
async function getPayerByUrl({ url }, request) {
|
|
1994
1994
|
if (!url.startsWith(constructPayerUrl.call(this, { id: "" }))) {
|
|
1995
|
-
throw new
|
|
1995
|
+
throw new SijilSdkError({ code: 400, message: "Invalid payer URL." });
|
|
1996
1996
|
}
|
|
1997
1997
|
const urlObj = new URL(url);
|
|
1998
1998
|
const pathParts = urlObj.pathname.split("/").filter(Boolean);
|
|
@@ -2010,7 +2010,7 @@ var Rcm = class extends SDKResource {
|
|
|
2010
2010
|
this.getPayerByUrl = getPayerByUrl;
|
|
2011
2011
|
}
|
|
2012
2012
|
/**
|
|
2013
|
-
* Check [Insurance Eligibility](https://docs.
|
|
2013
|
+
* Check [Insurance Eligibility](https://docs.sijil.com/sijil/services/rcm/eligibility/).
|
|
2014
2014
|
*
|
|
2015
2015
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
2016
2016
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
@@ -2077,7 +2077,7 @@ var Role = class extends SDKResource {
|
|
|
2077
2077
|
__privateAdd(this, _Role_instances);
|
|
2078
2078
|
}
|
|
2079
2079
|
/**
|
|
2080
|
-
* Get a list of all Roles. A [Role](https://docs.
|
|
2080
|
+
* Get a list of all Roles. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
|
|
2081
2081
|
*
|
|
2082
2082
|
* Access Policy Action: `IAM:ListAllRoles`
|
|
2083
2083
|
* Access Policy Resource: `IAM:Role`
|
|
@@ -2086,7 +2086,7 @@ var Role = class extends SDKResource {
|
|
|
2086
2086
|
return this.request("/iam/role", "get", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(request);
|
|
2087
2087
|
}
|
|
2088
2088
|
/**
|
|
2089
|
-
* Create a new Role. A [Role](https://docs.
|
|
2089
|
+
* Create a new Role. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
|
|
2090
2090
|
*
|
|
2091
2091
|
* Access Policy Action: `IAM:CreateRole`
|
|
2092
2092
|
* Access Policy Resource: `IAM:Role`
|
|
@@ -2095,7 +2095,7 @@ var Role = class extends SDKResource {
|
|
|
2095
2095
|
return this.request("/iam/role", "post", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(params, request);
|
|
2096
2096
|
}
|
|
2097
2097
|
/**
|
|
2098
|
-
* Get the Role with the provided ID. A [Role](https://docs.
|
|
2098
|
+
* Get the Role with the provided ID. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
|
|
2099
2099
|
*
|
|
2100
2100
|
* Access Policy Action: `IAM:GetRole`
|
|
2101
2101
|
* Access Policy Resource: `IAM:Role`
|
|
@@ -2104,7 +2104,7 @@ var Role = class extends SDKResource {
|
|
|
2104
2104
|
return this.request("/iam/role/{roleId}", "get", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(params, request);
|
|
2105
2105
|
}
|
|
2106
2106
|
/**
|
|
2107
|
-
* Update the Role with the provided ID. A [Role](https://docs.
|
|
2107
|
+
* Update the Role with the provided ID. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
|
|
2108
2108
|
*
|
|
2109
2109
|
* Access Policy Action: `IAM:UpdateRole`
|
|
2110
2110
|
* Access Policy Resource: `IAM:Role`
|
|
@@ -2113,7 +2113,7 @@ var Role = class extends SDKResource {
|
|
|
2113
2113
|
return this.request("/iam/role/{roleId}", "patch", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(params, request);
|
|
2114
2114
|
}
|
|
2115
2115
|
/**
|
|
2116
|
-
* Delete the Role with the provided ID. A [Role](https://docs.
|
|
2116
|
+
* Delete the Role with the provided ID. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
|
|
2117
2117
|
*
|
|
2118
2118
|
* Access Policy Action: `IAM:DeleteRole`
|
|
2119
2119
|
* Access Policy Resource: `IAM:Role`
|
|
@@ -2185,7 +2185,7 @@ var Telemed = class extends SDKResource {
|
|
|
2185
2185
|
__privateAdd(this, _Telemed_instances);
|
|
2186
2186
|
}
|
|
2187
2187
|
/**
|
|
2188
|
-
* Create a [telemedicine video meeting](https://docs.
|
|
2188
|
+
* Create a [telemedicine video meeting](https://docs.sijil.com/sijil/services/telemed/).
|
|
2189
2189
|
*
|
|
2190
2190
|
* Access Policy Requirements:
|
|
2191
2191
|
* Action: `Telemed:CreateMeeting`
|
|
@@ -2260,7 +2260,7 @@ var TransactionalSMS = class extends SDKResource {
|
|
|
2260
2260
|
__privateAdd(this, _TransactionalSMS_instances);
|
|
2261
2261
|
}
|
|
2262
2262
|
/**
|
|
2263
|
-
* Send an SMS to any phone number.
|
|
2263
|
+
* Send an SMS to any phone number. Sijil's [Transactional SMS](https://docs.sijil.com/sijil/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.sijil.com/sijil/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
|
|
2264
2264
|
*
|
|
2265
2265
|
* Access Policy Requirements:
|
|
2266
2266
|
* Action: `Messaging:SendTransactionalSMS`
|
|
@@ -2291,7 +2291,7 @@ var User = class extends SDKResource {
|
|
|
2291
2291
|
__privateAdd(this, _User_instances);
|
|
2292
2292
|
}
|
|
2293
2293
|
/**
|
|
2294
|
-
* Get your own User details. [Users](https://docs.
|
|
2294
|
+
* Get your own User details. [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.
|
|
2295
2295
|
*
|
|
2296
2296
|
* Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
|
|
2297
2297
|
*/
|
|
@@ -2299,7 +2299,7 @@ var User = class extends SDKResource {
|
|
|
2299
2299
|
return this.request("/user/me", "get", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(request);
|
|
2300
2300
|
}
|
|
2301
2301
|
/**
|
|
2302
|
-
* Get the User with the provided ID. [Users](https://docs.
|
|
2302
|
+
* Get the User with the provided ID. [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.
|
|
2303
2303
|
*
|
|
2304
2304
|
* Access Policy Action: `App:GetUser`
|
|
2305
2305
|
* Access Policy Resource: `App:User`
|
|
@@ -2308,7 +2308,7 @@ var User = class extends SDKResource {
|
|
|
2308
2308
|
return this.request("/user/{id}", "get", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2309
2309
|
}
|
|
2310
2310
|
/**
|
|
2311
|
-
* Update the User with the provided ID. [Users](https://docs.
|
|
2311
|
+
* Update the User with the provided ID. [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.
|
|
2312
2312
|
*
|
|
2313
2313
|
* Access Policy Action: `App:UpdateUser`
|
|
2314
2314
|
* Access Policy Resource: `App:User`
|
|
@@ -2317,7 +2317,7 @@ var User = class extends SDKResource {
|
|
|
2317
2317
|
return this.request("/user/{id}", "patch", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2318
2318
|
}
|
|
2319
2319
|
/**
|
|
2320
|
-
* Delete the User with the provided ID. [Users](https://docs.
|
|
2320
|
+
* Delete the User with the provided ID. [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.
|
|
2321
2321
|
*
|
|
2322
2322
|
* Access Policy Action: `App:DeleteUser`
|
|
2323
2323
|
* Access Policy Resource: `App:User`
|
|
@@ -2326,7 +2326,7 @@ var User = class extends SDKResource {
|
|
|
2326
2326
|
return this.request("/user/{id}", "delete", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2327
2327
|
}
|
|
2328
2328
|
/**
|
|
2329
|
-
* Reset MFA for the User with the provided ID. [Users](https://docs.
|
|
2329
|
+
* Reset MFA for the User with the provided ID. [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.
|
|
2330
2330
|
*
|
|
2331
2331
|
* Access Policy Action: `App:ResetUserMFA`
|
|
2332
2332
|
* Access Policy Resource: `App:User`
|
|
@@ -2335,7 +2335,7 @@ var User = class extends SDKResource {
|
|
|
2335
2335
|
return this.request("/user/{id}/reset-mfa", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2336
2336
|
}
|
|
2337
2337
|
/**
|
|
2338
|
-
* Creates a password reset link for the User with the provided ID. [Users](https://docs.
|
|
2338
|
+
* Creates a password reset link for the User with the provided ID. [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.
|
|
2339
2339
|
*
|
|
2340
2340
|
* Access Policy Action: `App:GetUserPasswordResetLink`
|
|
2341
2341
|
* Access Policy Resource: `App:User`
|
|
@@ -2344,7 +2344,7 @@ var User = class extends SDKResource {
|
|
|
2344
2344
|
return this.request("/user/{id}/reset-password-link", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2345
2345
|
}
|
|
2346
2346
|
/**
|
|
2347
|
-
* Automatically changes the password for the User with the provided ID. [Users](https://docs.
|
|
2347
|
+
* Automatically changes the password for the User with the provided ID. [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.
|
|
2348
2348
|
*
|
|
2349
2349
|
* Access Policy Action: `App:ChangeUserPassword`
|
|
2350
2350
|
* Access Policy Resource: `App:User`
|
|
@@ -2353,7 +2353,7 @@ var User = class extends SDKResource {
|
|
|
2353
2353
|
return this.request("/user/{id}/change-password", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2354
2354
|
}
|
|
2355
2355
|
/**
|
|
2356
|
-
* Invite a User to the Project. [Users](https://docs.
|
|
2356
|
+
* Invite a User to the Project. [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.
|
|
2357
2357
|
*
|
|
2358
2358
|
* Access Policy Action: `App:CreateUser`
|
|
2359
2359
|
* Access Policy Resource: `App:User`
|
|
@@ -2362,9 +2362,9 @@ var User = class extends SDKResource {
|
|
|
2362
2362
|
return this.request("/user/invite", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
|
|
2363
2363
|
}
|
|
2364
2364
|
/**
|
|
2365
|
-
* DEPRECATED. Please use [v2/list](https://api-reference.
|
|
2365
|
+
* DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_user-v2-list) instead.
|
|
2366
2366
|
*
|
|
2367
|
-
* Get all Users in the Project. [Users](https://docs.
|
|
2367
|
+
* Get all Users in the Project. [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.
|
|
2368
2368
|
*
|
|
2369
2369
|
* Access Policy Action: `App:ListAllUsers`
|
|
2370
2370
|
* Access Policy Resource: `App:User`
|
|
@@ -2373,7 +2373,7 @@ var User = class extends SDKResource {
|
|
|
2373
2373
|
return this.request("/user", "get", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(request);
|
|
2374
2374
|
}
|
|
2375
2375
|
/**
|
|
2376
|
-
* Get Users in the Project with pagination, sort, sort order and filtering. [Users](https://docs.
|
|
2376
|
+
* Get Users 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.
|
|
2377
2377
|
*
|
|
2378
2378
|
* Access Policy Action: `Project:ListAllUsers`
|
|
2379
2379
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -2463,7 +2463,7 @@ async function getPresignedUrlForZ3Url(params) {
|
|
|
2463
2463
|
bucket = httpsPathParts[0];
|
|
2464
2464
|
key = httpsPathParts.slice(1).join("/");
|
|
2465
2465
|
} else {
|
|
2466
|
-
throw new
|
|
2466
|
+
throw new SijilSdkError({ message: "Invalid Z3 URL", code: 400 });
|
|
2467
2467
|
}
|
|
2468
2468
|
const requestParams = {
|
|
2469
2469
|
action: "upload",
|
|
@@ -2491,14 +2491,14 @@ var Z3 = class extends SDKResource {
|
|
|
2491
2491
|
this.downloadFile = downloadFile;
|
|
2492
2492
|
/**
|
|
2493
2493
|
* This helper performs a `getPresignedUrl` request for Z3 URLs of the forms
|
|
2494
|
-
* `https://projects-api.
|
|
2494
|
+
* `https://projects-api.sijil.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`
|
|
2495
2495
|
* instead of the standard SDK `Z3GetPresignedUrlParams`.
|
|
2496
2496
|
* @param params url and action
|
|
2497
2497
|
*/
|
|
2498
2498
|
this.getPresignedUrlForZ3Url = getPresignedUrlForZ3Url;
|
|
2499
2499
|
}
|
|
2500
2500
|
/**
|
|
2501
|
-
* List all Z3 Buckets. [Z3](https://docs.
|
|
2501
|
+
* List all Z3 Buckets. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
|
|
2502
2502
|
*
|
|
2503
2503
|
* Access Policy Action: `Z3:ListBuckets`
|
|
2504
2504
|
* Access Policy Resource: `Z3:BucketName`
|
|
@@ -2507,7 +2507,7 @@ var Z3 = class extends SDKResource {
|
|
|
2507
2507
|
return this.request("/z3", "get", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(request);
|
|
2508
2508
|
}
|
|
2509
2509
|
/**
|
|
2510
|
-
* Create a Z3 Bucket with the provided name. [Z3](https://docs.
|
|
2510
|
+
* Create a Z3 Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
|
|
2511
2511
|
*
|
|
2512
2512
|
* Access Policy Action: `Z3:CreateBucket`
|
|
2513
2513
|
* Access Policy Resource: `Z3:*`
|
|
@@ -2516,7 +2516,7 @@ var Z3 = class extends SDKResource {
|
|
|
2516
2516
|
return this.request("/z3/{bucketName}", "put", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
|
|
2517
2517
|
}
|
|
2518
2518
|
/**
|
|
2519
|
-
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.
|
|
2519
|
+
* Delete the Z3 Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
|
|
2520
2520
|
*
|
|
2521
2521
|
* Access Policy Action: `Z3:DeleteBucket`
|
|
2522
2522
|
* Access Policy Resource: `Z3:BucketName`
|
|
@@ -2525,7 +2525,7 @@ var Z3 = class extends SDKResource {
|
|
|
2525
2525
|
return this.request("/z3/{bucketName}", "delete", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
|
|
2526
2526
|
}
|
|
2527
2527
|
/**
|
|
2528
|
-
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.
|
|
2528
|
+
* List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
|
|
2529
2529
|
*
|
|
2530
2530
|
* Access Policy Action: `Z3:ListObjects`
|
|
2531
2531
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
@@ -2534,7 +2534,7 @@ var Z3 = class extends SDKResource {
|
|
|
2534
2534
|
return this.request("/z3/{bucketName}/{objectPath+}", "get", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
|
|
2535
2535
|
}
|
|
2536
2536
|
/**
|
|
2537
|
-
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.
|
|
2537
|
+
* Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
|
|
2538
2538
|
*
|
|
2539
2539
|
* Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
|
|
2540
2540
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
@@ -2543,7 +2543,7 @@ var Z3 = class extends SDKResource {
|
|
|
2543
2543
|
return this.request("/z3/{bucketName}/{objectPath+}", "post", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
|
|
2544
2544
|
}
|
|
2545
2545
|
/**
|
|
2546
|
-
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.
|
|
2546
|
+
* Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
|
|
2547
2547
|
*
|
|
2548
2548
|
* Access Policy Action: `Z3:DeleteObject`
|
|
2549
2549
|
* Access Policy Resource: `Z3:BucketName:ObjectPath`
|
|
@@ -2576,7 +2576,7 @@ async function uploadFile2({
|
|
|
2576
2576
|
body: file
|
|
2577
2577
|
});
|
|
2578
2578
|
if (!response.ok) {
|
|
2579
|
-
throw new
|
|
2579
|
+
throw new SijilSdkError({ message: "Failed to upload file", code: response.status, cause: response.statusText });
|
|
2580
2580
|
}
|
|
2581
2581
|
}
|
|
2582
2582
|
async function downloadFile2({ id }) {
|
|
@@ -2589,7 +2589,7 @@ async function downloadFile2({ id }) {
|
|
|
2589
2589
|
method: "GET"
|
|
2590
2590
|
});
|
|
2591
2591
|
if (!response.ok) {
|
|
2592
|
-
throw new
|
|
2592
|
+
throw new SijilSdkError({
|
|
2593
2593
|
message: "Failed to download file",
|
|
2594
2594
|
code: response.status,
|
|
2595
2595
|
cause: response.statusText
|
|
@@ -2608,7 +2608,7 @@ var Zambda = class extends SDKResource {
|
|
|
2608
2608
|
this.downloadFile = downloadFile2;
|
|
2609
2609
|
}
|
|
2610
2610
|
/**
|
|
2611
|
-
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.
|
|
2611
|
+
* Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2612
2612
|
*
|
|
2613
2613
|
* Access Policy Action: `Zambda:ListAllFunctions`
|
|
2614
2614
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2617,7 +2617,7 @@ var Zambda = class extends SDKResource {
|
|
|
2617
2617
|
return this.request("/zambda", "get", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(request);
|
|
2618
2618
|
}
|
|
2619
2619
|
/**
|
|
2620
|
-
* Create a new Zambda Function. [Zambdas](https://docs.
|
|
2620
|
+
* Create a new Zambda Function. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2621
2621
|
*
|
|
2622
2622
|
* Access Policy Action: `Zambda:CreateFunction`
|
|
2623
2623
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2626,7 +2626,7 @@ var Zambda = class extends SDKResource {
|
|
|
2626
2626
|
return this.request("/zambda", "post", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
|
|
2627
2627
|
}
|
|
2628
2628
|
/**
|
|
2629
|
-
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.
|
|
2629
|
+
* Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2630
2630
|
*
|
|
2631
2631
|
* Access Policy Action: `Zambda:GetFunction`
|
|
2632
2632
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2635,7 +2635,7 @@ var Zambda = class extends SDKResource {
|
|
|
2635
2635
|
return this.request("/zambda/{id}", "get", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
|
|
2636
2636
|
}
|
|
2637
2637
|
/**
|
|
2638
|
-
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.
|
|
2638
|
+
* Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2639
2639
|
*
|
|
2640
2640
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
2641
2641
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2644,7 +2644,7 @@ var Zambda = class extends SDKResource {
|
|
|
2644
2644
|
return this.request("/zambda/{id}", "patch", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
|
|
2645
2645
|
}
|
|
2646
2646
|
/**
|
|
2647
|
-
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.
|
|
2647
|
+
* Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2648
2648
|
*
|
|
2649
2649
|
* Access Policy Action: `Zambda:DeleteFunction`
|
|
2650
2650
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2653,7 +2653,7 @@ var Zambda = class extends SDKResource {
|
|
|
2653
2653
|
return this.request("/zambda/{id}", "delete", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
|
|
2654
2654
|
}
|
|
2655
2655
|
/**
|
|
2656
|
-
* Execute the [Authenticated Zambda Function](https://docs.
|
|
2656
|
+
* Execute the [Authenticated Zambda Function](https://docs.sijil.com/sijil/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2657
2657
|
*
|
|
2658
2658
|
* Access Policy Action: `Zambda:InvokeFunction`
|
|
2659
2659
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2662,7 +2662,7 @@ var Zambda = class extends SDKResource {
|
|
|
2662
2662
|
return this.request("/zambda/{id}/execute", "post", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
|
|
2663
2663
|
}
|
|
2664
2664
|
/**
|
|
2665
|
-
* Execute the [Public Zambda Function](https://docs.
|
|
2665
|
+
* Execute the [Public Zambda Function](https://docs.sijil.com/sijil/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2666
2666
|
*
|
|
2667
2667
|
* Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
|
|
2668
2668
|
*/
|
|
@@ -2672,7 +2672,7 @@ var Zambda = class extends SDKResource {
|
|
|
2672
2672
|
/**
|
|
2673
2673
|
* **Deprecated.** Use `POST /zambda/{id}/presigned-url` with `action: "upload"` instead. This endpoint will be removed in future releases.
|
|
2674
2674
|
*
|
|
2675
|
-
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.
|
|
2675
|
+
* Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2676
2676
|
*
|
|
2677
2677
|
* Access Policy Action: `Zambda:UpdateFunction`
|
|
2678
2678
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2681,7 +2681,7 @@ var Zambda = class extends SDKResource {
|
|
|
2681
2681
|
return this.request("/zambda/{id}/s3-upload", "post", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
|
|
2682
2682
|
}
|
|
2683
2683
|
/**
|
|
2684
|
-
* Returns a presigned URL to upload or download code for the Zambda Function with the provided ID. Pass `action: "upload"` to get a URL for deploying a new code zip, or `action: "download"` to get a URL for retrieving the currently deployed zip. [Zambdas](https://docs.
|
|
2684
|
+
* Returns a presigned URL to upload or download code for the Zambda Function with the provided ID. Pass `action: "upload"` to get a URL for deploying a new code zip, or `action: "download"` to get a URL for retrieving the currently deployed zip. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2685
2685
|
*
|
|
2686
2686
|
* Upload: Access Policy Action: `Zambda:UpdateFunction`
|
|
2687
2687
|
* Download: Access Policy Action: `Zambda:GetFunctionSource`
|
|
@@ -2704,7 +2704,7 @@ var ZambdaLogStream = class extends SDKResource {
|
|
|
2704
2704
|
__privateAdd(this, _ZambdaLogStream_instances);
|
|
2705
2705
|
}
|
|
2706
2706
|
/**
|
|
2707
|
-
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.
|
|
2707
|
+
* Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2708
2708
|
*
|
|
2709
2709
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
2710
2710
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2713,7 +2713,7 @@ var ZambdaLogStream = class extends SDKResource {
|
|
|
2713
2713
|
return this.request("/zambda/{id}/logStream", "post", __privateMethod(this, _ZambdaLogStream_instances, baseUrlThunk_fn23).bind(this))(params, request);
|
|
2714
2714
|
}
|
|
2715
2715
|
/**
|
|
2716
|
-
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.
|
|
2716
|
+
* Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2717
2717
|
*
|
|
2718
2718
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
2719
2719
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2722,7 +2722,7 @@ var ZambdaLogStream = class extends SDKResource {
|
|
|
2722
2722
|
return this.request("/zambda/{id}/logStream/search", "post", __privateMethod(this, _ZambdaLogStream_instances, baseUrlThunk_fn23).bind(this))(params, request);
|
|
2723
2723
|
}
|
|
2724
2724
|
/**
|
|
2725
|
-
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.
|
|
2725
|
+
* Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
|
|
2726
2726
|
*
|
|
2727
2727
|
* Access Policy Action: `Zambda:ReadLogs`
|
|
2728
2728
|
* Access Policy Resource: `Zambda:Function`
|
|
@@ -2741,11 +2741,11 @@ baseUrlThunk_fn23 = function() {
|
|
|
2741
2741
|
};
|
|
2742
2742
|
|
|
2743
2743
|
// src/resources/classes/index.ts
|
|
2744
|
-
var
|
|
2744
|
+
var Sijil = class {
|
|
2745
2745
|
constructor(config) {
|
|
2746
2746
|
var _a, _b, _c;
|
|
2747
2747
|
if (config.workspaceTag && config.ignoreTags) {
|
|
2748
|
-
throw new
|
|
2748
|
+
throw new SijilSdkError({
|
|
2749
2749
|
message: "workspaceTag and ignoreTags are mutually exclusive and cannot both be set in config",
|
|
2750
2750
|
code: 400
|
|
2751
2751
|
});
|
|
@@ -2793,7 +2793,7 @@ function sijilServiceUrls(apiBaseUrl, fhirPath = "/fhir/r4") {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
function createSijilClient(config) {
|
|
2795
2795
|
const services = sijilServiceUrls(config.apiBaseUrl, config.fhirPath);
|
|
2796
|
-
return new
|
|
2796
|
+
return new Sijil({
|
|
2797
2797
|
accessToken: config.accessToken,
|
|
2798
2798
|
projectId: config.projectId,
|
|
2799
2799
|
logLevel: config.logLevel,
|
|
@@ -2816,9 +2816,9 @@ function apiBaseFromViteEnv(fallback = "http://localhost:8080") {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
|
|
2818
2818
|
// src/index.ts
|
|
2819
|
-
var
|
|
2819
|
+
var Sijil2 = class extends Sijil {
|
|
2820
2820
|
};
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
var index_default =
|
|
2821
|
+
Sijil2.SijilFHIRError = SijilFHIRError;
|
|
2822
|
+
Sijil2.SijilSdkError = SijilSdkError;
|
|
2823
|
+
var index_default = Sijil2;
|
|
2824
2824
|
//# sourceMappingURL=index.cjs.map
|