@ember-home/unbound-ts-client 0.0.2 → 0.0.3

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/index.js CHANGED
@@ -804,6 +804,698 @@ var TasksApi = class extends BaseAPI {
804
804
  return TasksApiFp(this.configuration).tasksUpdate(taskId, taskUpdate, options).then((request) => request(this.axios, this.basePath));
805
805
  }
806
806
  };
807
+ var UnboundApiAxiosParamCreator = function(configuration) {
808
+ return {
809
+ /**
810
+ * Create a new contact
811
+ * @summary Contacts Create
812
+ * @param {ContactCreate} contactCreate
813
+ * @param {*} [options] Override http request option.
814
+ * @throws {RequiredError}
815
+ */
816
+ contactsCreate: async (contactCreate, options = {}) => {
817
+ assertParamExists("contactsCreate", "contactCreate", contactCreate);
818
+ const localVarPath = `/contacts`;
819
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
820
+ let baseOptions;
821
+ if (configuration) {
822
+ baseOptions = configuration.baseOptions;
823
+ }
824
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
825
+ const localVarHeaderParameter = {};
826
+ const localVarQueryParameter = {};
827
+ localVarHeaderParameter["Content-Type"] = "application/json";
828
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
830
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
831
+ localVarRequestOptions.data = serializeDataIfNeeded(contactCreate, localVarRequestOptions, configuration);
832
+ return {
833
+ url: toPathString(localVarUrlObj),
834
+ options: localVarRequestOptions
835
+ };
836
+ },
837
+ /**
838
+ * Delete a contact
839
+ * @summary Contacts Delete
840
+ * @param {string} contactId
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ contactsDelete: async (contactId, options = {}) => {
845
+ assertParamExists("contactsDelete", "contactId", contactId);
846
+ const localVarPath = `/contacts/{contact_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
847
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
848
+ let baseOptions;
849
+ if (configuration) {
850
+ baseOptions = configuration.baseOptions;
851
+ }
852
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
853
+ const localVarHeaderParameter = {};
854
+ const localVarQueryParameter = {};
855
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
857
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
858
+ return {
859
+ url: toPathString(localVarUrlObj),
860
+ options: localVarRequestOptions
861
+ };
862
+ },
863
+ /**
864
+ * Get a contact by ID
865
+ * @summary Contacts Get
866
+ * @param {string} contactId
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ */
870
+ contactsGet: async (contactId, options = {}) => {
871
+ assertParamExists("contactsGet", "contactId", contactId);
872
+ const localVarPath = `/contacts/{contact_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
874
+ let baseOptions;
875
+ if (configuration) {
876
+ baseOptions = configuration.baseOptions;
877
+ }
878
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
879
+ const localVarHeaderParameter = {};
880
+ const localVarQueryParameter = {};
881
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
882
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
883
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
884
+ return {
885
+ url: toPathString(localVarUrlObj),
886
+ options: localVarRequestOptions
887
+ };
888
+ },
889
+ /**
890
+ * List all contacts
891
+ * @summary Contacts List
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ contactsList: async (options = {}) => {
896
+ const localVarPath = `/contacts`;
897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
898
+ let baseOptions;
899
+ if (configuration) {
900
+ baseOptions = configuration.baseOptions;
901
+ }
902
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
903
+ const localVarHeaderParameter = {};
904
+ const localVarQueryParameter = {};
905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
907
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
908
+ return {
909
+ url: toPathString(localVarUrlObj),
910
+ options: localVarRequestOptions
911
+ };
912
+ },
913
+ /**
914
+ * Update a contact
915
+ * @summary Contacts Update
916
+ * @param {string} contactId
917
+ * @param {ContactUpdate} contactUpdate
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ contactsUpdate: async (contactId, contactUpdate, options = {}) => {
922
+ assertParamExists("contactsUpdate", "contactId", contactId);
923
+ assertParamExists("contactsUpdate", "contactUpdate", contactUpdate);
924
+ const localVarPath = `/contacts/{contact_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId)));
925
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
926
+ let baseOptions;
927
+ if (configuration) {
928
+ baseOptions = configuration.baseOptions;
929
+ }
930
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
931
+ const localVarHeaderParameter = {};
932
+ const localVarQueryParameter = {};
933
+ localVarHeaderParameter["Content-Type"] = "application/json";
934
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
935
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
936
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
937
+ localVarRequestOptions.data = serializeDataIfNeeded(contactUpdate, localVarRequestOptions, configuration);
938
+ return {
939
+ url: toPathString(localVarUrlObj),
940
+ options: localVarRequestOptions
941
+ };
942
+ },
943
+ /**
944
+ *
945
+ * @summary Tasks Create
946
+ * @param {string} projectId
947
+ * @param {TaskCreate} taskCreate
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ tasksCreate: async (projectId, taskCreate, options = {}) => {
952
+ assertParamExists("tasksCreate", "projectId", projectId);
953
+ assertParamExists("tasksCreate", "taskCreate", taskCreate);
954
+ const localVarPath = `/projects/{project_id}/tasks`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
955
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
956
+ let baseOptions;
957
+ if (configuration) {
958
+ baseOptions = configuration.baseOptions;
959
+ }
960
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
961
+ const localVarHeaderParameter = {};
962
+ const localVarQueryParameter = {};
963
+ localVarHeaderParameter["Content-Type"] = "application/json";
964
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
965
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
966
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
967
+ localVarRequestOptions.data = serializeDataIfNeeded(taskCreate, localVarRequestOptions, configuration);
968
+ return {
969
+ url: toPathString(localVarUrlObj),
970
+ options: localVarRequestOptions
971
+ };
972
+ },
973
+ /**
974
+ *
975
+ * @summary Tasks Delete
976
+ * @param {string} taskId
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ tasksDelete: async (taskId, options = {}) => {
981
+ assertParamExists("tasksDelete", "taskId", taskId);
982
+ const localVarPath = `/tasks/{task_id}`.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
983
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
984
+ let baseOptions;
985
+ if (configuration) {
986
+ baseOptions = configuration.baseOptions;
987
+ }
988
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
989
+ const localVarHeaderParameter = {};
990
+ const localVarQueryParameter = {};
991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
993
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
994
+ return {
995
+ url: toPathString(localVarUrlObj),
996
+ options: localVarRequestOptions
997
+ };
998
+ },
999
+ /**
1000
+ *
1001
+ * @summary Tasks Get
1002
+ * @param {string} taskId
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ tasksGet: async (taskId, options = {}) => {
1007
+ assertParamExists("tasksGet", "taskId", taskId);
1008
+ const localVarPath = `/tasks/{task_id}`.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
1009
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1010
+ let baseOptions;
1011
+ if (configuration) {
1012
+ baseOptions = configuration.baseOptions;
1013
+ }
1014
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1015
+ const localVarHeaderParameter = {};
1016
+ const localVarQueryParameter = {};
1017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1019
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1020
+ return {
1021
+ url: toPathString(localVarUrlObj),
1022
+ options: localVarRequestOptions
1023
+ };
1024
+ },
1025
+ /**
1026
+ *
1027
+ * @summary Tasks List
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ tasksList: async (options = {}) => {
1032
+ const localVarPath = `/tasks`;
1033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1034
+ let baseOptions;
1035
+ if (configuration) {
1036
+ baseOptions = configuration.baseOptions;
1037
+ }
1038
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1039
+ const localVarHeaderParameter = {};
1040
+ const localVarQueryParameter = {};
1041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1043
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1044
+ return {
1045
+ url: toPathString(localVarUrlObj),
1046
+ options: localVarRequestOptions
1047
+ };
1048
+ },
1049
+ /**
1050
+ *
1051
+ * @summary Tasks Update
1052
+ * @param {string} taskId
1053
+ * @param {TaskUpdate} taskUpdate
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ */
1057
+ tasksUpdate: async (taskId, taskUpdate, options = {}) => {
1058
+ assertParamExists("tasksUpdate", "taskId", taskId);
1059
+ assertParamExists("tasksUpdate", "taskUpdate", taskUpdate);
1060
+ const localVarPath = `/tasks/{task_id}`.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
1061
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1062
+ let baseOptions;
1063
+ if (configuration) {
1064
+ baseOptions = configuration.baseOptions;
1065
+ }
1066
+ const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
1067
+ const localVarHeaderParameter = {};
1068
+ const localVarQueryParameter = {};
1069
+ localVarHeaderParameter["Content-Type"] = "application/json";
1070
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1072
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1073
+ localVarRequestOptions.data = serializeDataIfNeeded(taskUpdate, localVarRequestOptions, configuration);
1074
+ return {
1075
+ url: toPathString(localVarUrlObj),
1076
+ options: localVarRequestOptions
1077
+ };
1078
+ },
1079
+ /**
1080
+ *
1081
+ * @summary Unifiedwebhook
1082
+ * @param {object} body
1083
+ * @param {*} [options] Override http request option.
1084
+ * @throws {RequiredError}
1085
+ */
1086
+ webhook: async (body, options = {}) => {
1087
+ assertParamExists("webhook", "body", body);
1088
+ const localVarPath = `/hostawayUnifiedWebHooks`;
1089
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1090
+ let baseOptions;
1091
+ if (configuration) {
1092
+ baseOptions = configuration.baseOptions;
1093
+ }
1094
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1095
+ const localVarHeaderParameter = {};
1096
+ const localVarQueryParameter = {};
1097
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1098
+ localVarHeaderParameter["Content-Type"] = "application/json";
1099
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1101
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1102
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
1103
+ return {
1104
+ url: toPathString(localVarUrlObj),
1105
+ options: localVarRequestOptions
1106
+ };
1107
+ }
1108
+ };
1109
+ };
1110
+ var UnboundApiFp = function(configuration) {
1111
+ const localVarAxiosParamCreator = UnboundApiAxiosParamCreator(configuration);
1112
+ return {
1113
+ /**
1114
+ * Create a new contact
1115
+ * @summary Contacts Create
1116
+ * @param {ContactCreate} contactCreate
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ async contactsCreate(contactCreate, options) {
1121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
1122
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _46 => _46.serverIndex]), () => ( 0));
1123
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _47 => _47["UnboundApi.contactsCreate"], 'optionalAccess', _48 => _48[localVarOperationServerIndex], 'optionalAccess', _49 => _49.url]);
1124
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1125
+ },
1126
+ /**
1127
+ * Delete a contact
1128
+ * @summary Contacts Delete
1129
+ * @param {string} contactId
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ async contactsDelete(contactId, options) {
1134
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
1135
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _50 => _50.serverIndex]), () => ( 0));
1136
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _51 => _51["UnboundApi.contactsDelete"], 'optionalAccess', _52 => _52[localVarOperationServerIndex], 'optionalAccess', _53 => _53.url]);
1137
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1138
+ },
1139
+ /**
1140
+ * Get a contact by ID
1141
+ * @summary Contacts Get
1142
+ * @param {string} contactId
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ */
1146
+ async contactsGet(contactId, options) {
1147
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
1148
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _54 => _54.serverIndex]), () => ( 0));
1149
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _55 => _55["UnboundApi.contactsGet"], 'optionalAccess', _56 => _56[localVarOperationServerIndex], 'optionalAccess', _57 => _57.url]);
1150
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1151
+ },
1152
+ /**
1153
+ * List all contacts
1154
+ * @summary Contacts List
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ */
1158
+ async contactsList(options) {
1159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(options);
1160
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _58 => _58.serverIndex]), () => ( 0));
1161
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _59 => _59["UnboundApi.contactsList"], 'optionalAccess', _60 => _60[localVarOperationServerIndex], 'optionalAccess', _61 => _61.url]);
1162
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1163
+ },
1164
+ /**
1165
+ * Update a contact
1166
+ * @summary Contacts Update
1167
+ * @param {string} contactId
1168
+ * @param {ContactUpdate} contactUpdate
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ */
1172
+ async contactsUpdate(contactId, contactUpdate, options) {
1173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
1174
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _62 => _62.serverIndex]), () => ( 0));
1175
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _63 => _63["UnboundApi.contactsUpdate"], 'optionalAccess', _64 => _64[localVarOperationServerIndex], 'optionalAccess', _65 => _65.url]);
1176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1177
+ },
1178
+ /**
1179
+ *
1180
+ * @summary Tasks Create
1181
+ * @param {string} projectId
1182
+ * @param {TaskCreate} taskCreate
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ async tasksCreate(projectId, taskCreate, options) {
1187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tasksCreate(projectId, taskCreate, options);
1188
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _66 => _66.serverIndex]), () => ( 0));
1189
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _67 => _67["UnboundApi.tasksCreate"], 'optionalAccess', _68 => _68[localVarOperationServerIndex], 'optionalAccess', _69 => _69.url]);
1190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1191
+ },
1192
+ /**
1193
+ *
1194
+ * @summary Tasks Delete
1195
+ * @param {string} taskId
1196
+ * @param {*} [options] Override http request option.
1197
+ * @throws {RequiredError}
1198
+ */
1199
+ async tasksDelete(taskId, options) {
1200
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tasksDelete(taskId, options);
1201
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
1202
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["UnboundApi.tasksDelete"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
1203
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1204
+ },
1205
+ /**
1206
+ *
1207
+ * @summary Tasks Get
1208
+ * @param {string} taskId
1209
+ * @param {*} [options] Override http request option.
1210
+ * @throws {RequiredError}
1211
+ */
1212
+ async tasksGet(taskId, options) {
1213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tasksGet(taskId, options);
1214
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
1215
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["UnboundApi.tasksGet"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
1216
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1217
+ },
1218
+ /**
1219
+ *
1220
+ * @summary Tasks List
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ async tasksList(options) {
1225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tasksList(options);
1226
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
1227
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["UnboundApi.tasksList"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
1228
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1229
+ },
1230
+ /**
1231
+ *
1232
+ * @summary Tasks Update
1233
+ * @param {string} taskId
1234
+ * @param {TaskUpdate} taskUpdate
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ */
1238
+ async tasksUpdate(taskId, taskUpdate, options) {
1239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tasksUpdate(taskId, taskUpdate, options);
1240
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
1241
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["UnboundApi.tasksUpdate"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
1242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1243
+ },
1244
+ /**
1245
+ *
1246
+ * @summary Unifiedwebhook
1247
+ * @param {object} body
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ async webhook(body, options) {
1252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
1253
+ const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
1254
+ const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["UnboundApi.webhook"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
1255
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1256
+ }
1257
+ };
1258
+ };
1259
+ var UnboundApiFactory = function(configuration, basePath, axios) {
1260
+ const localVarFp = UnboundApiFp(configuration);
1261
+ return {
1262
+ /**
1263
+ * Create a new contact
1264
+ * @summary Contacts Create
1265
+ * @param {ContactCreate} contactCreate
1266
+ * @param {*} [options] Override http request option.
1267
+ * @throws {RequiredError}
1268
+ */
1269
+ contactsCreate(contactCreate, options) {
1270
+ return localVarFp.contactsCreate(contactCreate, options).then((request) => request(axios, basePath));
1271
+ },
1272
+ /**
1273
+ * Delete a contact
1274
+ * @summary Contacts Delete
1275
+ * @param {string} contactId
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ */
1279
+ contactsDelete(contactId, options) {
1280
+ return localVarFp.contactsDelete(contactId, options).then((request) => request(axios, basePath));
1281
+ },
1282
+ /**
1283
+ * Get a contact by ID
1284
+ * @summary Contacts Get
1285
+ * @param {string} contactId
1286
+ * @param {*} [options] Override http request option.
1287
+ * @throws {RequiredError}
1288
+ */
1289
+ contactsGet(contactId, options) {
1290
+ return localVarFp.contactsGet(contactId, options).then((request) => request(axios, basePath));
1291
+ },
1292
+ /**
1293
+ * List all contacts
1294
+ * @summary Contacts List
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ contactsList(options) {
1299
+ return localVarFp.contactsList(options).then((request) => request(axios, basePath));
1300
+ },
1301
+ /**
1302
+ * Update a contact
1303
+ * @summary Contacts Update
1304
+ * @param {string} contactId
1305
+ * @param {ContactUpdate} contactUpdate
1306
+ * @param {*} [options] Override http request option.
1307
+ * @throws {RequiredError}
1308
+ */
1309
+ contactsUpdate(contactId, contactUpdate, options) {
1310
+ return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
1311
+ },
1312
+ /**
1313
+ *
1314
+ * @summary Tasks Create
1315
+ * @param {string} projectId
1316
+ * @param {TaskCreate} taskCreate
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ */
1320
+ tasksCreate(projectId, taskCreate, options) {
1321
+ return localVarFp.tasksCreate(projectId, taskCreate, options).then((request) => request(axios, basePath));
1322
+ },
1323
+ /**
1324
+ *
1325
+ * @summary Tasks Delete
1326
+ * @param {string} taskId
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ tasksDelete(taskId, options) {
1331
+ return localVarFp.tasksDelete(taskId, options).then((request) => request(axios, basePath));
1332
+ },
1333
+ /**
1334
+ *
1335
+ * @summary Tasks Get
1336
+ * @param {string} taskId
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ */
1340
+ tasksGet(taskId, options) {
1341
+ return localVarFp.tasksGet(taskId, options).then((request) => request(axios, basePath));
1342
+ },
1343
+ /**
1344
+ *
1345
+ * @summary Tasks List
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ */
1349
+ tasksList(options) {
1350
+ return localVarFp.tasksList(options).then((request) => request(axios, basePath));
1351
+ },
1352
+ /**
1353
+ *
1354
+ * @summary Tasks Update
1355
+ * @param {string} taskId
1356
+ * @param {TaskUpdate} taskUpdate
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ tasksUpdate(taskId, taskUpdate, options) {
1361
+ return localVarFp.tasksUpdate(taskId, taskUpdate, options).then((request) => request(axios, basePath));
1362
+ },
1363
+ /**
1364
+ *
1365
+ * @summary Unifiedwebhook
1366
+ * @param {object} body
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ */
1370
+ webhook(body, options) {
1371
+ return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
1372
+ }
1373
+ };
1374
+ };
1375
+ var UnboundApi = class extends BaseAPI {
1376
+ /**
1377
+ * Create a new contact
1378
+ * @summary Contacts Create
1379
+ * @param {ContactCreate} contactCreate
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ * @memberof UnboundApi
1383
+ */
1384
+ contactsCreate(contactCreate, options) {
1385
+ return UnboundApiFp(this.configuration).contactsCreate(contactCreate, options).then((request) => request(this.axios, this.basePath));
1386
+ }
1387
+ /**
1388
+ * Delete a contact
1389
+ * @summary Contacts Delete
1390
+ * @param {string} contactId
1391
+ * @param {*} [options] Override http request option.
1392
+ * @throws {RequiredError}
1393
+ * @memberof UnboundApi
1394
+ */
1395
+ contactsDelete(contactId, options) {
1396
+ return UnboundApiFp(this.configuration).contactsDelete(contactId, options).then((request) => request(this.axios, this.basePath));
1397
+ }
1398
+ /**
1399
+ * Get a contact by ID
1400
+ * @summary Contacts Get
1401
+ * @param {string} contactId
1402
+ * @param {*} [options] Override http request option.
1403
+ * @throws {RequiredError}
1404
+ * @memberof UnboundApi
1405
+ */
1406
+ contactsGet(contactId, options) {
1407
+ return UnboundApiFp(this.configuration).contactsGet(contactId, options).then((request) => request(this.axios, this.basePath));
1408
+ }
1409
+ /**
1410
+ * List all contacts
1411
+ * @summary Contacts List
1412
+ * @param {*} [options] Override http request option.
1413
+ * @throws {RequiredError}
1414
+ * @memberof UnboundApi
1415
+ */
1416
+ contactsList(options) {
1417
+ return UnboundApiFp(this.configuration).contactsList(options).then((request) => request(this.axios, this.basePath));
1418
+ }
1419
+ /**
1420
+ * Update a contact
1421
+ * @summary Contacts Update
1422
+ * @param {string} contactId
1423
+ * @param {ContactUpdate} contactUpdate
1424
+ * @param {*} [options] Override http request option.
1425
+ * @throws {RequiredError}
1426
+ * @memberof UnboundApi
1427
+ */
1428
+ contactsUpdate(contactId, contactUpdate, options) {
1429
+ return UnboundApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
1430
+ }
1431
+ /**
1432
+ *
1433
+ * @summary Tasks Create
1434
+ * @param {string} projectId
1435
+ * @param {TaskCreate} taskCreate
1436
+ * @param {*} [options] Override http request option.
1437
+ * @throws {RequiredError}
1438
+ * @memberof UnboundApi
1439
+ */
1440
+ tasksCreate(projectId, taskCreate, options) {
1441
+ return UnboundApiFp(this.configuration).tasksCreate(projectId, taskCreate, options).then((request) => request(this.axios, this.basePath));
1442
+ }
1443
+ /**
1444
+ *
1445
+ * @summary Tasks Delete
1446
+ * @param {string} taskId
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ * @memberof UnboundApi
1450
+ */
1451
+ tasksDelete(taskId, options) {
1452
+ return UnboundApiFp(this.configuration).tasksDelete(taskId, options).then((request) => request(this.axios, this.basePath));
1453
+ }
1454
+ /**
1455
+ *
1456
+ * @summary Tasks Get
1457
+ * @param {string} taskId
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ * @memberof UnboundApi
1461
+ */
1462
+ tasksGet(taskId, options) {
1463
+ return UnboundApiFp(this.configuration).tasksGet(taskId, options).then((request) => request(this.axios, this.basePath));
1464
+ }
1465
+ /**
1466
+ *
1467
+ * @summary Tasks List
1468
+ * @param {*} [options] Override http request option.
1469
+ * @throws {RequiredError}
1470
+ * @memberof UnboundApi
1471
+ */
1472
+ tasksList(options) {
1473
+ return UnboundApiFp(this.configuration).tasksList(options).then((request) => request(this.axios, this.basePath));
1474
+ }
1475
+ /**
1476
+ *
1477
+ * @summary Tasks Update
1478
+ * @param {string} taskId
1479
+ * @param {TaskUpdate} taskUpdate
1480
+ * @param {*} [options] Override http request option.
1481
+ * @throws {RequiredError}
1482
+ * @memberof UnboundApi
1483
+ */
1484
+ tasksUpdate(taskId, taskUpdate, options) {
1485
+ return UnboundApiFp(this.configuration).tasksUpdate(taskId, taskUpdate, options).then((request) => request(this.axios, this.basePath));
1486
+ }
1487
+ /**
1488
+ *
1489
+ * @summary Unifiedwebhook
1490
+ * @param {object} body
1491
+ * @param {*} [options] Override http request option.
1492
+ * @throws {RequiredError}
1493
+ * @memberof UnboundApi
1494
+ */
1495
+ webhook(body, options) {
1496
+ return UnboundApiFp(this.configuration).webhook(body, options).then((request) => request(this.axios, this.basePath));
1497
+ }
1498
+ };
807
1499
 
808
1500
  // src/configuration.ts
809
1501
  var Configuration = class {
@@ -873,7 +1565,7 @@ var Configuration = class {
873
1565
  this.baseOptions = {
874
1566
  ...param.baseOptions,
875
1567
  headers: {
876
- ..._optionalChain([param, 'access', _46 => _46.baseOptions, 'optionalAccess', _47 => _47.headers])
1568
+ ..._optionalChain([param, 'access', _90 => _90.baseOptions, 'optionalAccess', _91 => _91.headers])
877
1569
  }
878
1570
  };
879
1571
  this.formDataCtor = param.formDataCtor;
@@ -908,5 +1600,9 @@ var Configuration = class {
908
1600
 
909
1601
 
910
1602
 
911
- exports.Configuration = Configuration; exports.ContactAvatarAvatarTypeEnum = ContactAvatarAvatarTypeEnum; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.TasksApi = TasksApi; exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator; exports.TasksApiFactory = TasksApiFactory; exports.TasksApiFp = TasksApiFp;
1603
+
1604
+
1605
+
1606
+
1607
+ exports.Configuration = Configuration; exports.ContactAvatarAvatarTypeEnum = ContactAvatarAvatarTypeEnum; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.TasksApi = TasksApi; exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator; exports.TasksApiFactory = TasksApiFactory; exports.TasksApiFp = TasksApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
912
1608
  //# sourceMappingURL=index.js.map