@liaisongroup/assist-api-js-client 1.5.77 → 1.5.79

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/dist/openapi.d.ts CHANGED
@@ -1528,6 +1528,9 @@ declare namespace Components {
1528
1528
  export interface SimpleError {
1529
1529
  error: string;
1530
1530
  }
1531
+ export interface SimpleErrors {
1532
+ errors: string[];
1533
+ }
1531
1534
  export interface SimpleTemplateName {
1532
1535
  /**
1533
1536
  * Key of the field which is used to determine name for instances which use this template.
@@ -2399,6 +2402,23 @@ declare namespace Paths {
2399
2402
  export type $422 = Components.Schemas.Errors;
2400
2403
  }
2401
2404
  }
2405
+ namespace CreatePasswordReset {
2406
+ export interface RequestBody {
2407
+ email: string; // email
2408
+ destination_url: string; // uri
2409
+ client_id: string;
2410
+ client_secret: string;
2411
+ }
2412
+ namespace Responses {
2413
+ export interface $200 {
2414
+ /**
2415
+ * A message indicating that the password reset email has been sent.
2416
+ */
2417
+ message?: string;
2418
+ }
2419
+ export type $422 = Components.Schemas.SimpleErrors;
2420
+ }
2421
+ }
2402
2422
  namespace CreatePushSubscription {
2403
2423
  export interface RequestBody {
2404
2424
  data: {
@@ -3642,6 +3662,30 @@ declare namespace Paths {
3642
3662
  export type $404 = Components.Schemas.Errors;
3643
3663
  }
3644
3664
  }
3665
+ namespace UpdatePasswordReset {
3666
+ namespace Parameters {
3667
+ export type Token = string; // uuid
3668
+ }
3669
+ export interface PathParameters {
3670
+ token: Parameters.Token /* uuid */;
3671
+ }
3672
+ export interface RequestBody {
3673
+ password: string;
3674
+ password_confirmation: string;
3675
+ client_id: string;
3676
+ client_secret: string;
3677
+ }
3678
+ namespace Responses {
3679
+ export interface $200 {
3680
+ /**
3681
+ * A message indicating that the password has been reset.
3682
+ */
3683
+ message?: string;
3684
+ }
3685
+ export type $410 = Components.Schemas.SimpleErrors;
3686
+ export type $422 = Components.Schemas.SimpleErrors;
3687
+ }
3688
+ }
3645
3689
  namespace UpdateRole {
3646
3690
  namespace Parameters {
3647
3691
  export type Id = string; // uuid
@@ -3916,6 +3960,37 @@ export interface OperationMethods {
3916
3960
  data?: any,
3917
3961
  config?: AxiosRequestConfig
3918
3962
  ): OperationResponse<Paths.ConsumeOidcResponse.Responses.$200>
3963
+ /**
3964
+ * create_password_reset - Create password reset
3965
+ *
3966
+ * Start the password reset journey. by sending an email to the user with a link to reset their password.
3967
+ * You must provide the user's email address, a destination URL, client ID and client secret.
3968
+ * The destination URL is where the email link will send the user too in order to complete the password reset journey.
3969
+ * The URL will have the token added as a query parameter (since it is needed in the next step of the journey).
3970
+ * The token will expire after 6 hours.
3971
+ * In order to not expose which email addresses are registered, we return a success status regardless of whether the user exists or not (and therefore if an email is sent or not).
3972
+ *
3973
+ */
3974
+ 'create_password_reset'(
3975
+ parameters?: Parameters<UnknownParamsObject> | null,
3976
+ data?: Paths.CreatePasswordReset.RequestBody,
3977
+ config?: AxiosRequestConfig
3978
+ ): OperationResponse<Paths.CreatePasswordReset.Responses.$200>
3979
+ /**
3980
+ * update_password_reset - Update password reset
3981
+ *
3982
+ * Complete the password reset journey.
3983
+ * You must provide the new password, password confirmation, client ID and client secret.
3984
+ * The client ID and client secret are used to authenticate the request.
3985
+ * The token is used to identify the user and the password reset request.
3986
+ * The token will expire after 6 hours.
3987
+ *
3988
+ */
3989
+ 'update_password_reset'(
3990
+ parameters?: Parameters<Paths.UpdatePasswordReset.PathParameters> | null,
3991
+ data?: Paths.UpdatePasswordReset.RequestBody,
3992
+ config?: AxiosRequestConfig
3993
+ ): OperationResponse<Paths.UpdatePasswordReset.Responses.$200>
3919
3994
  /**
3920
3995
  * get_actions - Get actions
3921
3996
  */
@@ -4892,6 +4967,41 @@ export interface PathsDictionary {
4892
4967
  config?: AxiosRequestConfig
4893
4968
  ): OperationResponse<Paths.ConsumeOidcResponse.Responses.$200>
4894
4969
  }
4970
+ ['/password_resets']: {
4971
+ /**
4972
+ * create_password_reset - Create password reset
4973
+ *
4974
+ * Start the password reset journey. by sending an email to the user with a link to reset their password.
4975
+ * You must provide the user's email address, a destination URL, client ID and client secret.
4976
+ * The destination URL is where the email link will send the user too in order to complete the password reset journey.
4977
+ * The URL will have the token added as a query parameter (since it is needed in the next step of the journey).
4978
+ * The token will expire after 6 hours.
4979
+ * In order to not expose which email addresses are registered, we return a success status regardless of whether the user exists or not (and therefore if an email is sent or not).
4980
+ *
4981
+ */
4982
+ 'post'(
4983
+ parameters?: Parameters<UnknownParamsObject> | null,
4984
+ data?: Paths.CreatePasswordReset.RequestBody,
4985
+ config?: AxiosRequestConfig
4986
+ ): OperationResponse<Paths.CreatePasswordReset.Responses.$200>
4987
+ }
4988
+ ['/password_resets/{token}']: {
4989
+ /**
4990
+ * update_password_reset - Update password reset
4991
+ *
4992
+ * Complete the password reset journey.
4993
+ * You must provide the new password, password confirmation, client ID and client secret.
4994
+ * The client ID and client secret are used to authenticate the request.
4995
+ * The token is used to identify the user and the password reset request.
4996
+ * The token will expire after 6 hours.
4997
+ *
4998
+ */
4999
+ 'put'(
5000
+ parameters?: Parameters<Paths.UpdatePasswordReset.PathParameters> | null,
5001
+ data?: Paths.UpdatePasswordReset.RequestBody,
5002
+ config?: AxiosRequestConfig
5003
+ ): OperationResponse<Paths.UpdatePasswordReset.Responses.$200>
5004
+ }
4895
5005
  ['/actions']: {
4896
5006
  /**
4897
5007
  * get_actions - Get actions
@@ -6097,6 +6207,7 @@ export type SavedFilterRelationships = Components.Schemas.SavedFilterRelationshi
6097
6207
  export type SavedFilters = Components.Schemas.SavedFilters;
6098
6208
  export type SavedFiltersRelationship = Components.Schemas.SavedFiltersRelationship;
6099
6209
  export type SimpleError = Components.Schemas.SimpleError;
6210
+ export type SimpleErrors = Components.Schemas.SimpleErrors;
6100
6211
  export type SimpleTemplateName = Components.Schemas.SimpleTemplateName;
6101
6212
  export type StructuredValues = Components.Schemas.StructuredValues;
6102
6213
  export type Tag = Components.Schemas.Tag;
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Liaison Assist API",
5
5
  "description": "![Hero](./hero.svg)\n",
6
- "version": "0.0.306",
6
+ "version": "0.0.308",
7
7
  "license": {
8
8
  "name": "MIT",
9
9
  "url": "https://opensource.org/licenses/MIT"
@@ -155,6 +155,10 @@
155
155
  {
156
156
  "name": "XSLT Maps",
157
157
  "description": "XSLT Maps are used to transform HL7 messages into a more usable format.\nIn a usual implementation PAS systems at trusts send messages to us via a Mirth Connect instance.\nThis Mirth Connect instance listens for messages on a specific port, transforms them into an XML format and then sends them to Liaison Assist.\nIn order to make sense of the messages (which are just XML-ified HL7) we use XSLT maps.\nXSLT maps transform XML into a more usable format - allowing you to pluck certain content, concatinate content and so on.\nXSLT maps are used in HL7 actions: you create an action, tell is what type of messages to watch out for and which XSLT map to use to transform the attributes which a subsequent action (like a create / update case action) can use.\nSee [general XSLT documentation](https://developer.mozilla.org/en-US/docs/Web/XML/XSLT) for more information about using XSLT.\n"
158
+ },
159
+ {
160
+ "name": "Password Resets",
161
+ "description": "Password resets are used to reset a user's password.\nA password reset journey can be started with via the POST `/password_resets` endpoint.\nThe journey can be completed by sending a PUT request to `/password_resets/{token}`.\n"
158
162
  }
159
163
  ],
160
164
  "paths": {
@@ -843,6 +847,165 @@
843
847
  }
844
848
  }
845
849
  },
850
+ "/password_resets": {
851
+ "post": {
852
+ "operationId": "create_password_reset",
853
+ "summary": "Create password reset",
854
+ "description": "Start the password reset journey. by sending an email to the user with a link to reset their password.\nYou must provide the user's email address, a destination URL, client ID and client secret.\nThe destination URL is where the email link will send the user too in order to complete the password reset journey.\nThe URL will have the token added as a query parameter (since it is needed in the next step of the journey).\nThe token will expire after 6 hours.\nIn order to not expose which email addresses are registered, we return a success status regardless of whether the user exists or not (and therefore if an email is sent or not).\n",
855
+ "tags": [
856
+ "Password Resets"
857
+ ],
858
+ "security": [],
859
+ "requestBody": {
860
+ "content": {
861
+ "application/json": {
862
+ "schema": {
863
+ "type": "object",
864
+ "required": [
865
+ "email",
866
+ "destination_url",
867
+ "client_id",
868
+ "client_secret"
869
+ ],
870
+ "properties": {
871
+ "email": {
872
+ "type": "string",
873
+ "format": "email"
874
+ },
875
+ "destination_url": {
876
+ "type": "string",
877
+ "format": "uri"
878
+ },
879
+ "client_id": {
880
+ "type": "string"
881
+ },
882
+ "client_secret": {
883
+ "type": "string"
884
+ }
885
+ }
886
+ }
887
+ }
888
+ }
889
+ },
890
+ "responses": {
891
+ "200": {
892
+ "description": "OK",
893
+ "content": {
894
+ "application/json": {
895
+ "schema": {
896
+ "type": "object",
897
+ "properties": {
898
+ "message": {
899
+ "type": "string",
900
+ "description": "A message indicating that the password reset email has been sent."
901
+ }
902
+ }
903
+ }
904
+ }
905
+ }
906
+ },
907
+ "422": {
908
+ "description": "Unprocessable Entity",
909
+ "content": {
910
+ "application/json": {
911
+ "schema": {
912
+ "$ref": "#/components/schemas/SimpleErrors"
913
+ }
914
+ }
915
+ }
916
+ }
917
+ }
918
+ }
919
+ },
920
+ "/password_resets/{token}": {
921
+ "put": {
922
+ "operationId": "update_password_reset",
923
+ "summary": "Update password reset",
924
+ "description": "Complete the password reset journey.\nYou must provide the new password, password confirmation, client ID and client secret.\nThe client ID and client secret are used to authenticate the request.\nThe token is used to identify the user and the password reset request.\nThe token will expire after 6 hours.\n",
925
+ "tags": [
926
+ "Password Resets"
927
+ ],
928
+ "security": [],
929
+ "parameters": [
930
+ {
931
+ "name": "token",
932
+ "in": "path",
933
+ "required": true,
934
+ "schema": {
935
+ "type": "string",
936
+ "format": "uuid"
937
+ }
938
+ }
939
+ ],
940
+ "requestBody": {
941
+ "content": {
942
+ "application/json": {
943
+ "schema": {
944
+ "type": "object",
945
+ "required": [
946
+ "password",
947
+ "password_confirmation",
948
+ "client_id",
949
+ "client_secret"
950
+ ],
951
+ "properties": {
952
+ "password": {
953
+ "type": "string"
954
+ },
955
+ "password_confirmation": {
956
+ "type": "string"
957
+ },
958
+ "client_id": {
959
+ "type": "string"
960
+ },
961
+ "client_secret": {
962
+ "type": "string"
963
+ }
964
+ }
965
+ }
966
+ }
967
+ }
968
+ },
969
+ "responses": {
970
+ "200": {
971
+ "description": "OK",
972
+ "content": {
973
+ "application/json": {
974
+ "schema": {
975
+ "type": "object",
976
+ "properties": {
977
+ "message": {
978
+ "type": "string",
979
+ "description": "A message indicating that the password has been reset."
980
+ }
981
+ }
982
+ }
983
+ }
984
+ }
985
+ },
986
+ "410": {
987
+ "description": "Gone",
988
+ "content": {
989
+ "application/json": {
990
+ "schema": {
991
+ "$ref": "#/components/schemas/SimpleErrors"
992
+ }
993
+ }
994
+ }
995
+ },
996
+ "422": {
997
+ "description": "Unprocessable Entity",
998
+ "content": {
999
+ "application/json": {
1000
+ "schema": {
1001
+ "$ref": "#/components/schemas/SimpleErrors"
1002
+ }
1003
+ }
1004
+ }
1005
+ }
1006
+ }
1007
+ }
1008
+ },
846
1009
  "/actions": {
847
1010
  "get": {
848
1011
  "operationId": "get_actions",
@@ -14661,6 +14824,20 @@
14661
14824
  }
14662
14825
  }
14663
14826
  },
14827
+ "SimpleErrors": {
14828
+ "type": "object",
14829
+ "required": [
14830
+ "errors"
14831
+ ],
14832
+ "properties": {
14833
+ "errors": {
14834
+ "type": "array",
14835
+ "items": {
14836
+ "type": "string"
14837
+ }
14838
+ }
14839
+ }
14840
+ },
14664
14841
  "Errors": {
14665
14842
  "type": "object",
14666
14843
  "additionalProperties": false,