ch-admin-api-client-typescript 5.1.9 → 5.2.1

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.
Files changed (99) hide show
  1. package/lib/api/grades-api.d.ts +339 -0
  2. package/lib/api/grades-api.d.ts.map +1 -0
  3. package/lib/api/grades-api.js +600 -0
  4. package/lib/api/hospitals-api.d.ts +343 -0
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +497 -0
  7. package/lib/api/survey-results-api.d.ts +12 -3
  8. package/lib/api/survey-results-api.d.ts.map +1 -1
  9. package/lib/api/survey-results-api.js +12 -6
  10. package/lib/api.d.ts +1 -0
  11. package/lib/api.d.ts.map +1 -1
  12. package/lib/api.js +1 -0
  13. package/lib/models/contact-scope.d.ts +22 -0
  14. package/lib/models/contact-scope.d.ts.map +1 -0
  15. package/lib/models/contact-scope.js +25 -0
  16. package/lib/models/create-grade-command.d.ts +44 -0
  17. package/lib/models/create-grade-command.d.ts.map +1 -0
  18. package/lib/models/create-hospital-command.d.ts +6 -0
  19. package/lib/models/create-hospital-command.d.ts.map +1 -1
  20. package/lib/models/create-hospital-contact-command.d.ts +62 -0
  21. package/lib/models/create-hospital-contact-command.d.ts.map +1 -0
  22. package/lib/models/create-hospital-contact-command.js +15 -0
  23. package/lib/models/create-survey-form-command.d.ts +6 -0
  24. package/lib/models/create-survey-form-command.d.ts.map +1 -1
  25. package/lib/models/grade-item-model.d.ts +57 -0
  26. package/lib/models/grade-item-model.d.ts.map +1 -0
  27. package/lib/models/grade-item-model.js +15 -0
  28. package/lib/models/grade-model.d.ts +57 -0
  29. package/lib/models/grade-model.d.ts.map +1 -0
  30. package/lib/models/grade-model.js +15 -0
  31. package/lib/models/grade-targets.d.ts +22 -0
  32. package/lib/models/grade-targets.d.ts.map +1 -0
  33. package/lib/models/grade-targets.js +25 -0
  34. package/lib/models/grades-model.d.ts +33 -0
  35. package/lib/models/grades-model.d.ts.map +1 -0
  36. package/lib/models/grades-model.js +15 -0
  37. package/lib/models/hospital-contact-item-model.d.ts +80 -0
  38. package/lib/models/hospital-contact-item-model.d.ts.map +1 -0
  39. package/lib/models/hospital-contact-item-model.js +15 -0
  40. package/lib/models/hospital-contact-model.d.ts +80 -0
  41. package/lib/models/hospital-contact-model.d.ts.map +1 -0
  42. package/lib/models/hospital-contact-model.js +15 -0
  43. package/lib/models/hospital-contacts-model.d.ts +33 -0
  44. package/lib/models/hospital-contacts-model.d.ts.map +1 -0
  45. package/lib/models/hospital-contacts-model.js +15 -0
  46. package/lib/models/hospital-item-model.d.ts +13 -0
  47. package/lib/models/hospital-item-model.d.ts.map +1 -1
  48. package/lib/models/hospital-model.d.ts +13 -0
  49. package/lib/models/hospital-model.d.ts.map +1 -1
  50. package/lib/models/index.d.ts +12 -1
  51. package/lib/models/index.d.ts.map +1 -1
  52. package/lib/models/index.js +12 -1
  53. package/lib/models/survey-form-item-model.d.ts +6 -0
  54. package/lib/models/survey-form-item-model.d.ts.map +1 -1
  55. package/lib/models/survey-form-model.d.ts +6 -0
  56. package/lib/models/survey-form-model.d.ts.map +1 -1
  57. package/lib/models/survey-results-model.d.ts +3 -3
  58. package/lib/models/survey-results-model.d.ts.map +1 -1
  59. package/lib/models/update-grade-command.d.ts +37 -0
  60. package/lib/models/update-grade-command.d.ts.map +1 -0
  61. package/lib/models/update-grade-command.js +15 -0
  62. package/lib/models/update-hospital-command.d.ts +6 -0
  63. package/lib/models/update-hospital-command.d.ts.map +1 -1
  64. package/lib/models/update-hospital-contact-command.d.ts +62 -0
  65. package/lib/models/update-hospital-contact-command.d.ts.map +1 -0
  66. package/lib/models/update-hospital-contact-command.js +15 -0
  67. package/lib/models/update-survey-form-command.d.ts +6 -0
  68. package/lib/models/update-survey-form-command.d.ts.map +1 -1
  69. package/package.json +1 -1
  70. package/src/.openapi-generator/FILES +13 -1
  71. package/src/api/grades-api.ts +595 -0
  72. package/src/api/hospitals-api.ts +600 -0
  73. package/src/api/survey-results-api.ts +20 -6
  74. package/src/api.ts +1 -0
  75. package/src/models/contact-scope.ts +31 -0
  76. package/src/models/create-grade-command.ts +51 -0
  77. package/src/models/create-hospital-command.ts +6 -0
  78. package/src/models/create-hospital-contact-command.ts +69 -0
  79. package/src/models/create-survey-form-command.ts +6 -0
  80. package/src/models/grade-item-model.ts +66 -0
  81. package/src/models/grade-model.ts +66 -0
  82. package/src/models/grade-targets.ts +31 -0
  83. package/src/models/grades-model.ts +42 -0
  84. package/src/models/hospital-contact-item-model.ts +87 -0
  85. package/src/models/{survey-result-item-model.ts → hospital-contact-model.ts} +27 -21
  86. package/src/models/hospital-contacts-model.ts +42 -0
  87. package/src/models/hospital-item-model.ts +15 -0
  88. package/src/models/hospital-model.ts +15 -0
  89. package/src/models/index.ts +12 -1
  90. package/src/models/survey-form-item-model.ts +6 -0
  91. package/src/models/survey-form-model.ts +6 -0
  92. package/src/models/survey-results-model.ts +3 -3
  93. package/src/models/update-grade-command.ts +42 -0
  94. package/src/models/update-hospital-command.ts +6 -0
  95. package/src/models/update-hospital-contact-command.ts +69 -0
  96. package/src/models/update-survey-form-command.ts +6 -0
  97. package/lib/models/survey-result-item-model.d.ts +0 -74
  98. package/lib/models/survey-result-item-model.d.ts.map +0 -1
  99. /package/lib/models/{survey-result-item-model.js → create-grade-command.js} +0 -0
@@ -33,10 +33,14 @@ import { BatchHospitalSpecialtyAppointmentTimetablesCommand } from '../models';
33
33
  // @ts-ignore
34
34
  import { BatchServiceAppointmentTimetablesCommand } from '../models';
35
35
  // @ts-ignore
36
+ import { ContactScope } from '../models';
37
+ // @ts-ignore
36
38
  import { CreateHospitalAccreditationCommand } from '../models';
37
39
  // @ts-ignore
38
40
  import { CreateHospitalCommand } from '../models';
39
41
  // @ts-ignore
42
+ import { CreateHospitalContactCommand } from '../models';
43
+ // @ts-ignore
40
44
  import { CreateHospitalEquipmentCommand } from '../models';
41
45
  // @ts-ignore
42
46
  import { CreateHospitalEvaluationCommand } from '../models';
@@ -61,6 +65,10 @@ import { HospitalAccreditationModel } from '../models';
61
65
  // @ts-ignore
62
66
  import { HospitalAccreditationsModel } from '../models';
63
67
  // @ts-ignore
68
+ import { HospitalContactModel } from '../models';
69
+ // @ts-ignore
70
+ import { HospitalContactsModel } from '../models';
71
+ // @ts-ignore
64
72
  import { HospitalEquipmentModel } from '../models';
65
73
  // @ts-ignore
66
74
  import { HospitalEquipmentsModel } from '../models';
@@ -121,6 +129,8 @@ import { TranslateHospitalCommand } from '../models';
121
129
  // @ts-ignore
122
130
  import { UpdateHospitalCommand } from '../models';
123
131
  // @ts-ignore
132
+ import { UpdateHospitalContactCommand } from '../models';
133
+ // @ts-ignore
124
134
  import { UpdateHospitalEquipmentCommand } from '../models';
125
135
  // @ts-ignore
126
136
  import { UpdateHospitalLanguageCommand } from '../models';
@@ -678,6 +688,253 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
678
688
  options: localVarRequestOptions,
679
689
  };
680
690
  },
691
+ /**
692
+ *
693
+ * @summary Delete hospital contact
694
+ * @param {string} hospitalId
695
+ * @param {string} contactId
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ apiV1HospitalsHospitalIdContactsContactIdDelete: async (hospitalId: string, contactId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
700
+ // verify required parameter 'hospitalId' is not null or undefined
701
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdDelete', 'hospitalId', hospitalId)
702
+ // verify required parameter 'contactId' is not null or undefined
703
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdDelete', 'contactId', contactId)
704
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts/{contactId}`
705
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
706
+ .replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
709
+ let baseOptions;
710
+ if (configuration) {
711
+ baseOptions = configuration.baseOptions;
712
+ }
713
+
714
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
715
+ const localVarHeaderParameter = {} as any;
716
+ const localVarQueryParameter = {} as any;
717
+
718
+ // authentication oauth2 required
719
+ // oauth required
720
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
721
+
722
+
723
+
724
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
726
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
727
+
728
+ return {
729
+ url: toPathString(localVarUrlObj),
730
+ options: localVarRequestOptions,
731
+ };
732
+ },
733
+ /**
734
+ *
735
+ * @summary Get hospital contact
736
+ * @param {string} hospitalId
737
+ * @param {string} contactId
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ apiV1HospitalsHospitalIdContactsContactIdGet: async (hospitalId: string, contactId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
742
+ // verify required parameter 'hospitalId' is not null or undefined
743
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdGet', 'hospitalId', hospitalId)
744
+ // verify required parameter 'contactId' is not null or undefined
745
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdGet', 'contactId', contactId)
746
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts/{contactId}`
747
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
748
+ .replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
749
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
751
+ let baseOptions;
752
+ if (configuration) {
753
+ baseOptions = configuration.baseOptions;
754
+ }
755
+
756
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
757
+ const localVarHeaderParameter = {} as any;
758
+ const localVarQueryParameter = {} as any;
759
+
760
+ // authentication oauth2 required
761
+ // oauth required
762
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
763
+
764
+
765
+
766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
768
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
769
+
770
+ return {
771
+ url: toPathString(localVarUrlObj),
772
+ options: localVarRequestOptions,
773
+ };
774
+ },
775
+ /**
776
+ *
777
+ * @summary Update hospital contact
778
+ * @param {string} hospitalId
779
+ * @param {string} contactId
780
+ * @param {UpdateHospitalContactCommand} [updateHospitalContactCommand]
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ apiV1HospitalsHospitalIdContactsContactIdPut: async (hospitalId: string, contactId: string, updateHospitalContactCommand?: UpdateHospitalContactCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
785
+ // verify required parameter 'hospitalId' is not null or undefined
786
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdPut', 'hospitalId', hospitalId)
787
+ // verify required parameter 'contactId' is not null or undefined
788
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdPut', 'contactId', contactId)
789
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts/{contactId}`
790
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
791
+ .replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
792
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
793
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
794
+ let baseOptions;
795
+ if (configuration) {
796
+ baseOptions = configuration.baseOptions;
797
+ }
798
+
799
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
800
+ const localVarHeaderParameter = {} as any;
801
+ const localVarQueryParameter = {} as any;
802
+
803
+ // authentication oauth2 required
804
+ // oauth required
805
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
806
+
807
+
808
+
809
+ localVarHeaderParameter['Content-Type'] = 'application/json';
810
+
811
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
812
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
813
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
814
+ localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalContactCommand, localVarRequestOptions, configuration)
815
+
816
+ return {
817
+ url: toPathString(localVarUrlObj),
818
+ options: localVarRequestOptions,
819
+ };
820
+ },
821
+ /**
822
+ *
823
+ * @summary Get hospital contacts
824
+ * @param {string} hospitalId
825
+ * @param {string} [contactId]
826
+ * @param {ContactScope} [scope]
827
+ * @param {string} [name]
828
+ * @param {string} [languageCode]
829
+ * @param {number} [page]
830
+ * @param {number} [limit]
831
+ * @param {Date} [lastRetrieved]
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ apiV1HospitalsHospitalIdContactsGet: async (hospitalId: string, contactId?: string, scope?: ContactScope, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
836
+ // verify required parameter 'hospitalId' is not null or undefined
837
+ assertParamExists('apiV1HospitalsHospitalIdContactsGet', 'hospitalId', hospitalId)
838
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts`
839
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
840
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
841
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
842
+ let baseOptions;
843
+ if (configuration) {
844
+ baseOptions = configuration.baseOptions;
845
+ }
846
+
847
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
848
+ const localVarHeaderParameter = {} as any;
849
+ const localVarQueryParameter = {} as any;
850
+
851
+ // authentication oauth2 required
852
+ // oauth required
853
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
854
+
855
+ if (contactId !== undefined) {
856
+ localVarQueryParameter['ContactId'] = contactId;
857
+ }
858
+
859
+ if (scope !== undefined) {
860
+ localVarQueryParameter['Scope'] = scope;
861
+ }
862
+
863
+ if (name !== undefined) {
864
+ localVarQueryParameter['Name'] = name;
865
+ }
866
+
867
+ if (languageCode !== undefined) {
868
+ localVarQueryParameter['LanguageCode'] = languageCode;
869
+ }
870
+
871
+ if (page !== undefined) {
872
+ localVarQueryParameter['page'] = page;
873
+ }
874
+
875
+ if (limit !== undefined) {
876
+ localVarQueryParameter['limit'] = limit;
877
+ }
878
+
879
+ if (lastRetrieved !== undefined) {
880
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
881
+ (lastRetrieved as any).toISOString() :
882
+ lastRetrieved;
883
+ }
884
+
885
+
886
+
887
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
888
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
889
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
890
+
891
+ return {
892
+ url: toPathString(localVarUrlObj),
893
+ options: localVarRequestOptions,
894
+ };
895
+ },
896
+ /**
897
+ *
898
+ * @summary Create hospital contact
899
+ * @param {string} hospitalId
900
+ * @param {CreateHospitalContactCommand} [createHospitalContactCommand]
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ apiV1HospitalsHospitalIdContactsPost: async (hospitalId: string, createHospitalContactCommand?: CreateHospitalContactCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
905
+ // verify required parameter 'hospitalId' is not null or undefined
906
+ assertParamExists('apiV1HospitalsHospitalIdContactsPost', 'hospitalId', hospitalId)
907
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts`
908
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
909
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
910
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
911
+ let baseOptions;
912
+ if (configuration) {
913
+ baseOptions = configuration.baseOptions;
914
+ }
915
+
916
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
917
+ const localVarHeaderParameter = {} as any;
918
+ const localVarQueryParameter = {} as any;
919
+
920
+ // authentication oauth2 required
921
+ // oauth required
922
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
923
+
924
+
925
+
926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
927
+
928
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
929
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
930
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
931
+ localVarRequestOptions.data = serializeDataIfNeeded(createHospitalContactCommand, localVarRequestOptions, configuration)
932
+
933
+ return {
934
+ url: toPathString(localVarUrlObj),
935
+ options: localVarRequestOptions,
936
+ };
937
+ },
681
938
  /**
682
939
  *
683
940
  * @summary Delete Hospital.
@@ -5286,6 +5543,73 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
5286
5543
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, dayOfWeek, page, limit, lastRetrieved, options);
5287
5544
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5288
5545
  },
5546
+ /**
5547
+ *
5548
+ * @summary Delete hospital contact
5549
+ * @param {string} hospitalId
5550
+ * @param {string} contactId
5551
+ * @param {*} [options] Override http request option.
5552
+ * @throws {RequiredError}
5553
+ */
5554
+ async apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId: string, contactId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId, contactId, options);
5556
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5557
+ },
5558
+ /**
5559
+ *
5560
+ * @summary Get hospital contact
5561
+ * @param {string} hospitalId
5562
+ * @param {string} contactId
5563
+ * @param {*} [options] Override http request option.
5564
+ * @throws {RequiredError}
5565
+ */
5566
+ async apiV1HospitalsHospitalIdContactsContactIdGet(hospitalId: string, contactId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactModel>> {
5567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdGet(hospitalId, contactId, options);
5568
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5569
+ },
5570
+ /**
5571
+ *
5572
+ * @summary Update hospital contact
5573
+ * @param {string} hospitalId
5574
+ * @param {string} contactId
5575
+ * @param {UpdateHospitalContactCommand} [updateHospitalContactCommand]
5576
+ * @param {*} [options] Override http request option.
5577
+ * @throws {RequiredError}
5578
+ */
5579
+ async apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId: string, contactId: string, updateHospitalContactCommand?: UpdateHospitalContactCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactModel>> {
5580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId, contactId, updateHospitalContactCommand, options);
5581
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5582
+ },
5583
+ /**
5584
+ *
5585
+ * @summary Get hospital contacts
5586
+ * @param {string} hospitalId
5587
+ * @param {string} [contactId]
5588
+ * @param {ContactScope} [scope]
5589
+ * @param {string} [name]
5590
+ * @param {string} [languageCode]
5591
+ * @param {number} [page]
5592
+ * @param {number} [limit]
5593
+ * @param {Date} [lastRetrieved]
5594
+ * @param {*} [options] Override http request option.
5595
+ * @throws {RequiredError}
5596
+ */
5597
+ async apiV1HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, scope?: ContactScope, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactsModel>> {
5598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsGet(hospitalId, contactId, scope, name, languageCode, page, limit, lastRetrieved, options);
5599
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5600
+ },
5601
+ /**
5602
+ *
5603
+ * @summary Create hospital contact
5604
+ * @param {string} hospitalId
5605
+ * @param {CreateHospitalContactCommand} [createHospitalContactCommand]
5606
+ * @param {*} [options] Override http request option.
5607
+ * @throws {RequiredError}
5608
+ */
5609
+ async apiV1HospitalsHospitalIdContactsPost(hospitalId: string, createHospitalContactCommand?: CreateHospitalContactCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactModel>> {
5610
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsPost(hospitalId, createHospitalContactCommand, options);
5611
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5612
+ },
5289
5613
  /**
5290
5614
  *
5291
5615
  * @summary Delete Hospital.
@@ -6611,6 +6935,68 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
6611
6935
  apiV1HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetablesModel> {
6612
6936
  return localVarFp.apiV1HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
6613
6937
  },
6938
+ /**
6939
+ *
6940
+ * @summary Delete hospital contact
6941
+ * @param {string} hospitalId
6942
+ * @param {string} contactId
6943
+ * @param {*} [options] Override http request option.
6944
+ * @throws {RequiredError}
6945
+ */
6946
+ apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId: string, contactId: string, options?: any): AxiosPromise<boolean> {
6947
+ return localVarFp.apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId, contactId, options).then((request) => request(axios, basePath));
6948
+ },
6949
+ /**
6950
+ *
6951
+ * @summary Get hospital contact
6952
+ * @param {string} hospitalId
6953
+ * @param {string} contactId
6954
+ * @param {*} [options] Override http request option.
6955
+ * @throws {RequiredError}
6956
+ */
6957
+ apiV1HospitalsHospitalIdContactsContactIdGet(hospitalId: string, contactId: string, options?: any): AxiosPromise<HospitalContactModel> {
6958
+ return localVarFp.apiV1HospitalsHospitalIdContactsContactIdGet(hospitalId, contactId, options).then((request) => request(axios, basePath));
6959
+ },
6960
+ /**
6961
+ *
6962
+ * @summary Update hospital contact
6963
+ * @param {string} hospitalId
6964
+ * @param {string} contactId
6965
+ * @param {UpdateHospitalContactCommand} [updateHospitalContactCommand]
6966
+ * @param {*} [options] Override http request option.
6967
+ * @throws {RequiredError}
6968
+ */
6969
+ apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId: string, contactId: string, updateHospitalContactCommand?: UpdateHospitalContactCommand, options?: any): AxiosPromise<HospitalContactModel> {
6970
+ return localVarFp.apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId, contactId, updateHospitalContactCommand, options).then((request) => request(axios, basePath));
6971
+ },
6972
+ /**
6973
+ *
6974
+ * @summary Get hospital contacts
6975
+ * @param {string} hospitalId
6976
+ * @param {string} [contactId]
6977
+ * @param {ContactScope} [scope]
6978
+ * @param {string} [name]
6979
+ * @param {string} [languageCode]
6980
+ * @param {number} [page]
6981
+ * @param {number} [limit]
6982
+ * @param {Date} [lastRetrieved]
6983
+ * @param {*} [options] Override http request option.
6984
+ * @throws {RequiredError}
6985
+ */
6986
+ apiV1HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, scope?: ContactScope, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalContactsModel> {
6987
+ return localVarFp.apiV1HospitalsHospitalIdContactsGet(hospitalId, contactId, scope, name, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
6988
+ },
6989
+ /**
6990
+ *
6991
+ * @summary Create hospital contact
6992
+ * @param {string} hospitalId
6993
+ * @param {CreateHospitalContactCommand} [createHospitalContactCommand]
6994
+ * @param {*} [options] Override http request option.
6995
+ * @throws {RequiredError}
6996
+ */
6997
+ apiV1HospitalsHospitalIdContactsPost(hospitalId: string, createHospitalContactCommand?: CreateHospitalContactCommand, options?: any): AxiosPromise<HospitalContactModel> {
6998
+ return localVarFp.apiV1HospitalsHospitalIdContactsPost(hospitalId, createHospitalContactCommand, options).then((request) => request(axios, basePath));
6999
+ },
6614
7000
  /**
6615
7001
  *
6616
7002
  * @summary Delete Hospital.
@@ -8097,6 +8483,160 @@ export interface HospitalsApiApiV1HospitalsHospitalIdAppointmenttimetablesGetReq
8097
8483
  readonly lastRetrieved?: Date
8098
8484
  }
8099
8485
 
8486
+ /**
8487
+ * Request parameters for apiV1HospitalsHospitalIdContactsContactIdDelete operation in HospitalsApi.
8488
+ * @export
8489
+ * @interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDeleteRequest
8490
+ */
8491
+ export interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDeleteRequest {
8492
+ /**
8493
+ *
8494
+ * @type {string}
8495
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDelete
8496
+ */
8497
+ readonly hospitalId: string
8498
+
8499
+ /**
8500
+ *
8501
+ * @type {string}
8502
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDelete
8503
+ */
8504
+ readonly contactId: string
8505
+ }
8506
+
8507
+ /**
8508
+ * Request parameters for apiV1HospitalsHospitalIdContactsContactIdGet operation in HospitalsApi.
8509
+ * @export
8510
+ * @interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdGetRequest
8511
+ */
8512
+ export interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdGetRequest {
8513
+ /**
8514
+ *
8515
+ * @type {string}
8516
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdGet
8517
+ */
8518
+ readonly hospitalId: string
8519
+
8520
+ /**
8521
+ *
8522
+ * @type {string}
8523
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdGet
8524
+ */
8525
+ readonly contactId: string
8526
+ }
8527
+
8528
+ /**
8529
+ * Request parameters for apiV1HospitalsHospitalIdContactsContactIdPut operation in HospitalsApi.
8530
+ * @export
8531
+ * @interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPutRequest
8532
+ */
8533
+ export interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPutRequest {
8534
+ /**
8535
+ *
8536
+ * @type {string}
8537
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPut
8538
+ */
8539
+ readonly hospitalId: string
8540
+
8541
+ /**
8542
+ *
8543
+ * @type {string}
8544
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPut
8545
+ */
8546
+ readonly contactId: string
8547
+
8548
+ /**
8549
+ *
8550
+ * @type {UpdateHospitalContactCommand}
8551
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPut
8552
+ */
8553
+ readonly updateHospitalContactCommand?: UpdateHospitalContactCommand
8554
+ }
8555
+
8556
+ /**
8557
+ * Request parameters for apiV1HospitalsHospitalIdContactsGet operation in HospitalsApi.
8558
+ * @export
8559
+ * @interface HospitalsApiApiV1HospitalsHospitalIdContactsGetRequest
8560
+ */
8561
+ export interface HospitalsApiApiV1HospitalsHospitalIdContactsGetRequest {
8562
+ /**
8563
+ *
8564
+ * @type {string}
8565
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8566
+ */
8567
+ readonly hospitalId: string
8568
+
8569
+ /**
8570
+ *
8571
+ * @type {string}
8572
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8573
+ */
8574
+ readonly contactId?: string
8575
+
8576
+ /**
8577
+ *
8578
+ * @type {ContactScope}
8579
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8580
+ */
8581
+ readonly scope?: ContactScope
8582
+
8583
+ /**
8584
+ *
8585
+ * @type {string}
8586
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8587
+ */
8588
+ readonly name?: string
8589
+
8590
+ /**
8591
+ *
8592
+ * @type {string}
8593
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8594
+ */
8595
+ readonly languageCode?: string
8596
+
8597
+ /**
8598
+ *
8599
+ * @type {number}
8600
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8601
+ */
8602
+ readonly page?: number
8603
+
8604
+ /**
8605
+ *
8606
+ * @type {number}
8607
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8608
+ */
8609
+ readonly limit?: number
8610
+
8611
+ /**
8612
+ *
8613
+ * @type {Date}
8614
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
8615
+ */
8616
+ readonly lastRetrieved?: Date
8617
+ }
8618
+
8619
+ /**
8620
+ * Request parameters for apiV1HospitalsHospitalIdContactsPost operation in HospitalsApi.
8621
+ * @export
8622
+ * @interface HospitalsApiApiV1HospitalsHospitalIdContactsPostRequest
8623
+ */
8624
+ export interface HospitalsApiApiV1HospitalsHospitalIdContactsPostRequest {
8625
+ /**
8626
+ *
8627
+ * @type {string}
8628
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsPost
8629
+ */
8630
+ readonly hospitalId: string
8631
+
8632
+ /**
8633
+ *
8634
+ * @type {CreateHospitalContactCommand}
8635
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsPost
8636
+ */
8637
+ readonly createHospitalContactCommand?: CreateHospitalContactCommand
8638
+ }
8639
+
8100
8640
  /**
8101
8641
  * Request parameters for apiV1HospitalsHospitalIdDelete operation in HospitalsApi.
8102
8642
  * @export
@@ -11243,6 +11783,66 @@ export class HospitalsApi extends BaseAPI {
11243
11783
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAppointmenttimetablesGet(requestParameters.hospitalId, requestParameters.dayOfWeek, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
11244
11784
  }
11245
11785
 
11786
+ /**
11787
+ *
11788
+ * @summary Delete hospital contact
11789
+ * @param {HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDeleteRequest} requestParameters Request parameters.
11790
+ * @param {*} [options] Override http request option.
11791
+ * @throws {RequiredError}
11792
+ * @memberof HospitalsApi
11793
+ */
11794
+ public apiV1HospitalsHospitalIdContactsContactIdDelete(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDeleteRequest, options?: AxiosRequestConfig) {
11795
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdDelete(requestParameters.hospitalId, requestParameters.contactId, options).then((request) => request(this.axios, this.basePath));
11796
+ }
11797
+
11798
+ /**
11799
+ *
11800
+ * @summary Get hospital contact
11801
+ * @param {HospitalsApiApiV1HospitalsHospitalIdContactsContactIdGetRequest} requestParameters Request parameters.
11802
+ * @param {*} [options] Override http request option.
11803
+ * @throws {RequiredError}
11804
+ * @memberof HospitalsApi
11805
+ */
11806
+ public apiV1HospitalsHospitalIdContactsContactIdGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsContactIdGetRequest, options?: AxiosRequestConfig) {
11807
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdGet(requestParameters.hospitalId, requestParameters.contactId, options).then((request) => request(this.axios, this.basePath));
11808
+ }
11809
+
11810
+ /**
11811
+ *
11812
+ * @summary Update hospital contact
11813
+ * @param {HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPutRequest} requestParameters Request parameters.
11814
+ * @param {*} [options] Override http request option.
11815
+ * @throws {RequiredError}
11816
+ * @memberof HospitalsApi
11817
+ */
11818
+ public apiV1HospitalsHospitalIdContactsContactIdPut(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPutRequest, options?: AxiosRequestConfig) {
11819
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdPut(requestParameters.hospitalId, requestParameters.contactId, requestParameters.updateHospitalContactCommand, options).then((request) => request(this.axios, this.basePath));
11820
+ }
11821
+
11822
+ /**
11823
+ *
11824
+ * @summary Get hospital contacts
11825
+ * @param {HospitalsApiApiV1HospitalsHospitalIdContactsGetRequest} requestParameters Request parameters.
11826
+ * @param {*} [options] Override http request option.
11827
+ * @throws {RequiredError}
11828
+ * @memberof HospitalsApi
11829
+ */
11830
+ public apiV1HospitalsHospitalIdContactsGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsGetRequest, options?: AxiosRequestConfig) {
11831
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsGet(requestParameters.hospitalId, requestParameters.contactId, requestParameters.scope, requestParameters.name, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
11832
+ }
11833
+
11834
+ /**
11835
+ *
11836
+ * @summary Create hospital contact
11837
+ * @param {HospitalsApiApiV1HospitalsHospitalIdContactsPostRequest} requestParameters Request parameters.
11838
+ * @param {*} [options] Override http request option.
11839
+ * @throws {RequiredError}
11840
+ * @memberof HospitalsApi
11841
+ */
11842
+ public apiV1HospitalsHospitalIdContactsPost(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsPostRequest, options?: AxiosRequestConfig) {
11843
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsPost(requestParameters.hospitalId, requestParameters.createHospitalContactCommand, options).then((request) => request(this.axios, this.basePath));
11844
+ }
11845
+
11246
11846
  /**
11247
11847
  *
11248
11848
  * @summary Delete Hospital.