ch-api-client-typescript2 5.2.8 → 5.3.0

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 (87) hide show
  1. package/lib/api/vonage-users-api.d.ts +143 -0
  2. package/lib/api/vonage-users-api.d.ts.map +1 -0
  3. package/lib/api/vonage-users-api.js +356 -0
  4. package/lib/api/vonage-webhooks-api.d.ts +116 -0
  5. package/lib/api/vonage-webhooks-api.d.ts.map +1 -0
  6. package/lib/api/vonage-webhooks-api.js +323 -0
  7. package/lib/api.d.ts +2 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +2 -0
  10. package/lib/models/deal-document-model.d.ts +7 -0
  11. package/lib/models/deal-document-model.d.ts.map +1 -1
  12. package/lib/models/deal-item-model.d.ts +7 -0
  13. package/lib/models/deal-item-model.d.ts.map +1 -1
  14. package/lib/models/deal-model.d.ts +7 -0
  15. package/lib/models/deal-model.d.ts.map +1 -1
  16. package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
  17. package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
  18. package/lib/models/doctor-affiliation-model.d.ts +7 -0
  19. package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
  20. package/lib/models/doctor-document-model.d.ts +8 -1
  21. package/lib/models/doctor-document-model.d.ts.map +1 -1
  22. package/lib/models/doctor-item-model.d.ts +7 -0
  23. package/lib/models/doctor-item-model.d.ts.map +1 -1
  24. package/lib/models/doctor-model.d.ts +7 -0
  25. package/lib/models/doctor-model.d.ts.map +1 -1
  26. package/lib/models/feature-document-model.d.ts +37 -0
  27. package/lib/models/feature-document-model.d.ts.map +1 -0
  28. package/lib/models/feature-document-model.js +15 -0
  29. package/lib/models/feature-model.d.ts +37 -0
  30. package/lib/models/feature-model.d.ts.map +1 -0
  31. package/lib/models/feature-model.js +15 -0
  32. package/lib/models/first.d.ts +25 -0
  33. package/lib/models/first.d.ts.map +1 -0
  34. package/lib/models/first.js +15 -0
  35. package/lib/models/get-users-result-embedded.d.ts +26 -0
  36. package/lib/models/get-users-result-embedded.d.ts.map +1 -0
  37. package/lib/models/get-users-result-embedded.js +15 -0
  38. package/lib/models/get-users-result.d.ts +45 -0
  39. package/lib/models/get-users-result.d.ts.map +1 -0
  40. package/lib/models/get-users-result.js +15 -0
  41. package/lib/models/hospital-document-model.d.ts +8 -1
  42. package/lib/models/hospital-document-model.d.ts.map +1 -1
  43. package/lib/models/hospital-item-model.d.ts +7 -0
  44. package/lib/models/hospital-item-model.d.ts.map +1 -1
  45. package/lib/models/hospital-model.d.ts +7 -0
  46. package/lib/models/hospital-model.d.ts.map +1 -1
  47. package/lib/models/index.d.ts +9 -0
  48. package/lib/models/index.d.ts.map +1 -1
  49. package/lib/models/index.js +9 -0
  50. package/lib/models/last.d.ts +25 -0
  51. package/lib/models/last.d.ts.map +1 -0
  52. package/lib/models/last.js +15 -0
  53. package/lib/models/links.d.ts +40 -0
  54. package/lib/models/links.d.ts.map +1 -0
  55. package/lib/models/links.js +15 -0
  56. package/lib/models/self.d.ts +25 -0
  57. package/lib/models/self.d.ts.map +1 -0
  58. package/lib/models/self.js +15 -0
  59. package/lib/models/user.d.ts +44 -0
  60. package/lib/models/user.d.ts.map +1 -0
  61. package/lib/models/user.js +15 -0
  62. package/package.json +1 -1
  63. package/src/.openapi-generator/FILES +11 -0
  64. package/src/api/vonage-users-api.ts +270 -0
  65. package/src/api/vonage-webhooks-api.ts +226 -0
  66. package/src/api.ts +2 -0
  67. package/src/models/deal-document-model.ts +9 -0
  68. package/src/models/deal-item-model.ts +9 -0
  69. package/src/models/deal-model.ts +9 -0
  70. package/src/models/doctor-affiliation-item-model.ts +9 -0
  71. package/src/models/doctor-affiliation-model.ts +9 -0
  72. package/src/models/doctor-document-model.ts +10 -1
  73. package/src/models/doctor-item-model.ts +9 -0
  74. package/src/models/doctor-model.ts +9 -0
  75. package/src/models/feature-document-model.ts +42 -0
  76. package/src/models/feature-model.ts +42 -0
  77. package/src/models/first.ts +30 -0
  78. package/src/models/get-users-result-embedded.ts +33 -0
  79. package/src/models/get-users-result.ts +54 -0
  80. package/src/models/hospital-document-model.ts +10 -1
  81. package/src/models/hospital-item-model.ts +9 -0
  82. package/src/models/hospital-model.ts +9 -0
  83. package/src/models/index.ts +9 -0
  84. package/src/models/last.ts +30 -0
  85. package/src/models/links.ts +51 -0
  86. package/src/models/self.ts +30 -0
  87. package/src/models/user.ts +51 -0
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Swagger UI - Cloud Hospital Api-INT
3
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: hyounoosung@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { Links } from './links';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface User
17
+ */
18
+ export interface User {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof User
23
+ */
24
+ 'id'?: string | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof User
29
+ */
30
+ 'name'?: string | null;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof User
35
+ */
36
+ 'displayName'?: string | null;
37
+ /**
38
+ *
39
+ * @type {Links}
40
+ * @memberof User
41
+ */
42
+ 'links'?: Links;
43
+ }
44
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;CACnB"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "5.2.8",
3
+ "version": "5.3.0",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,6 +41,8 @@ api/specialty-types-api.ts
41
41
  api/survey-forms-api.ts
42
42
  api/survey-results-api.ts
43
43
  api/tags-api.ts
44
+ api/vonage-users-api.ts
45
+ api/vonage-webhooks-api.ts
44
46
  base.ts
45
47
  common.ts
46
48
  configuration.ts
@@ -189,9 +191,14 @@ models/faq-tag-item-model.ts
189
191
  models/faq-tag-model.ts
190
192
  models/faq-tags-model.ts
191
193
  models/faqs-model.ts
194
+ models/feature-document-model.ts
195
+ models/feature-model.ts
196
+ models/first.ts
192
197
  models/footer-navigation-item-model.ts
193
198
  models/gender.ts
194
199
  models/geography-point.ts
200
+ models/get-users-result-embedded.ts
201
+ models/get-users-result.ts
195
202
  models/header-navigation-item-model.ts
196
203
  models/hospital-accreditation-item-model.ts
197
204
  models/hospital-accreditation-model.ts
@@ -234,6 +241,8 @@ models/landings-model.ts
234
241
  models/language-item-model.ts
235
242
  models/language-model.ts
236
243
  models/languages-model.ts
244
+ models/last.ts
245
+ models/links.ts
237
246
  models/localized-url-model.ts
238
247
  models/location-document-model.ts
239
248
  models/location-model.ts
@@ -275,6 +284,7 @@ models/secure-container-model.ts
275
284
  models/secure-containers-model.ts
276
285
  models/secure-file-item-input-model.ts
277
286
  models/secure-file-model.ts
287
+ models/self.ts
278
288
  models/send-bird-group-channel-member.ts
279
289
  models/send-bird-group-channel-model.ts
280
290
  models/send-bird-group-channelr-operator.ts
@@ -335,6 +345,7 @@ models/user-location-document-model.ts
335
345
  models/user-location-model.ts
336
346
  models/user-location-type.ts
337
347
  models/user-model.ts
348
+ models/user.ts
338
349
  models/working-day-item-model.ts
339
350
  models/working-day-model.ts
340
351
  models/working-days-model.ts
@@ -0,0 +1,270 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetUsersResult } from '../models';
25
+ /**
26
+ * VonageUsersApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export const VonageUsersApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ *
33
+ * @param {string} sub
34
+ * @param {string} userId
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ apiV2VonageusersDeleteuserUserIdDelete: async (sub: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ // verify required parameter 'sub' is not null or undefined
40
+ assertParamExists('apiV2VonageusersDeleteuserUserIdDelete', 'sub', sub)
41
+ // verify required parameter 'userId' is not null or undefined
42
+ assertParamExists('apiV2VonageusersDeleteuserUserIdDelete', 'userId', userId)
43
+ const localVarPath = `/api/v2/vonageusers/deleteuser/{userId}`
44
+ .replace(`{${"sub"}}`, encodeURIComponent(String(sub)))
45
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+
58
+
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
62
+
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ },
68
+ /**
69
+ *
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ apiV2VonageusersGettokenGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
74
+ const localVarPath = `/api/v2/vonageusers/gettoken`;
75
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
76
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
77
+ let baseOptions;
78
+ if (configuration) {
79
+ baseOptions = configuration.baseOptions;
80
+ }
81
+
82
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
83
+ const localVarHeaderParameter = {} as any;
84
+ const localVarQueryParameter = {} as any;
85
+
86
+ // authentication oauth2 required
87
+ // oauth required
88
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
89
+
90
+
91
+
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
95
+
96
+ return {
97
+ url: toPathString(localVarUrlObj),
98
+ options: localVarRequestOptions,
99
+ };
100
+ },
101
+ /**
102
+ *
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ apiV2VonageusersGetusersGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ const localVarPath = `/api/v2/vonageusers/getusers`;
108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
+ let baseOptions;
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ }
114
+
115
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
116
+ const localVarHeaderParameter = {} as any;
117
+ const localVarQueryParameter = {} as any;
118
+
119
+ // authentication oauth2 required
120
+ // oauth required
121
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
122
+
123
+
124
+
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ }
135
+ };
136
+
137
+ /**
138
+ * VonageUsersApi - functional programming interface
139
+ * @export
140
+ */
141
+ export const VonageUsersApiFp = function(configuration?: Configuration) {
142
+ const localVarAxiosParamCreator = VonageUsersApiAxiosParamCreator(configuration)
143
+ return {
144
+ /**
145
+ *
146
+ * @param {string} sub
147
+ * @param {string} userId
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ async apiV2VonageusersDeleteuserUserIdDelete(sub: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
152
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2VonageusersDeleteuserUserIdDelete(sub, userId, options);
153
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
154
+ },
155
+ /**
156
+ *
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ async apiV2VonageusersGettokenGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
161
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2VonageusersGettokenGet(options);
162
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
163
+ },
164
+ /**
165
+ *
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ async apiV2VonageusersGetusersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUsersResult>> {
170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2VonageusersGetusersGet(options);
171
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
172
+ },
173
+ }
174
+ };
175
+
176
+ /**
177
+ * VonageUsersApi - factory interface
178
+ * @export
179
+ */
180
+ export const VonageUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
181
+ const localVarFp = VonageUsersApiFp(configuration)
182
+ return {
183
+ /**
184
+ *
185
+ * @param {string} sub
186
+ * @param {string} userId
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ apiV2VonageusersDeleteuserUserIdDelete(sub: string, userId: string, options?: any): AxiosPromise<boolean> {
191
+ return localVarFp.apiV2VonageusersDeleteuserUserIdDelete(sub, userId, options).then((request) => request(axios, basePath));
192
+ },
193
+ /**
194
+ *
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ apiV2VonageusersGettokenGet(options?: any): AxiosPromise<string> {
199
+ return localVarFp.apiV2VonageusersGettokenGet(options).then((request) => request(axios, basePath));
200
+ },
201
+ /**
202
+ *
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ apiV2VonageusersGetusersGet(options?: any): AxiosPromise<GetUsersResult> {
207
+ return localVarFp.apiV2VonageusersGetusersGet(options).then((request) => request(axios, basePath));
208
+ },
209
+ };
210
+ };
211
+
212
+ /**
213
+ * Request parameters for apiV2VonageusersDeleteuserUserIdDelete operation in VonageUsersApi.
214
+ * @export
215
+ * @interface VonageUsersApiApiV2VonageusersDeleteuserUserIdDeleteRequest
216
+ */
217
+ export interface VonageUsersApiApiV2VonageusersDeleteuserUserIdDeleteRequest {
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof VonageUsersApiApiV2VonageusersDeleteuserUserIdDelete
222
+ */
223
+ readonly sub: string
224
+
225
+ /**
226
+ *
227
+ * @type {string}
228
+ * @memberof VonageUsersApiApiV2VonageusersDeleteuserUserIdDelete
229
+ */
230
+ readonly userId: string
231
+ }
232
+
233
+ /**
234
+ * VonageUsersApi - object-oriented interface
235
+ * @export
236
+ * @class VonageUsersApi
237
+ * @extends {BaseAPI}
238
+ */
239
+ export class VonageUsersApi extends BaseAPI {
240
+ /**
241
+ *
242
+ * @param {VonageUsersApiApiV2VonageusersDeleteuserUserIdDeleteRequest} requestParameters Request parameters.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof VonageUsersApi
246
+ */
247
+ public apiV2VonageusersDeleteuserUserIdDelete(requestParameters: VonageUsersApiApiV2VonageusersDeleteuserUserIdDeleteRequest, options?: AxiosRequestConfig) {
248
+ return VonageUsersApiFp(this.configuration).apiV2VonageusersDeleteuserUserIdDelete(requestParameters.sub, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
249
+ }
250
+
251
+ /**
252
+ *
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ * @memberof VonageUsersApi
256
+ */
257
+ public apiV2VonageusersGettokenGet(options?: AxiosRequestConfig) {
258
+ return VonageUsersApiFp(this.configuration).apiV2VonageusersGettokenGet(options).then((request) => request(this.axios, this.basePath));
259
+ }
260
+
261
+ /**
262
+ *
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ * @memberof VonageUsersApi
266
+ */
267
+ public apiV2VonageusersGetusersGet(options?: AxiosRequestConfig) {
268
+ return VonageUsersApiFp(this.configuration).apiV2VonageusersGetusersGet(options).then((request) => request(this.axios, this.basePath));
269
+ }
270
+ }
@@ -0,0 +1,226 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ /**
24
+ * VonageWebhooksApi - axios parameter creator
25
+ * @export
26
+ */
27
+ export const VonageWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
28
+ return {
29
+ /**
30
+ *
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ apiV2VonagewebhooksAnswerGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35
+ const localVarPath = `/api/v2/vonagewebhooks/answer`;
36
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
+ let baseOptions;
39
+ if (configuration) {
40
+ baseOptions = configuration.baseOptions;
41
+ }
42
+
43
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
44
+ const localVarHeaderParameter = {} as any;
45
+ const localVarQueryParameter = {} as any;
46
+
47
+
48
+
49
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
50
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
52
+
53
+ return {
54
+ url: toPathString(localVarUrlObj),
55
+ options: localVarRequestOptions,
56
+ };
57
+ },
58
+ /**
59
+ *
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ apiV2VonagewebhooksRecordGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
64
+ const localVarPath = `/api/v2/vonagewebhooks/record`;
65
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
+ let baseOptions;
68
+ if (configuration) {
69
+ baseOptions = configuration.baseOptions;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+
82
+ return {
83
+ url: toPathString(localVarUrlObj),
84
+ options: localVarRequestOptions,
85
+ };
86
+ },
87
+ /**
88
+ *
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ apiV2VonagewebhooksRecordingPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ const localVarPath = `/api/v2/vonagewebhooks/recording`;
94
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
96
+ let baseOptions;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ }
100
+
101
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
102
+ const localVarHeaderParameter = {} as any;
103
+ const localVarQueryParameter = {} as any;
104
+
105
+
106
+
107
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
110
+
111
+ return {
112
+ url: toPathString(localVarUrlObj),
113
+ options: localVarRequestOptions,
114
+ };
115
+ },
116
+ }
117
+ };
118
+
119
+ /**
120
+ * VonageWebhooksApi - functional programming interface
121
+ * @export
122
+ */
123
+ export const VonageWebhooksApiFp = function(configuration?: Configuration) {
124
+ const localVarAxiosParamCreator = VonageWebhooksApiAxiosParamCreator(configuration)
125
+ return {
126
+ /**
127
+ *
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ async apiV2VonagewebhooksAnswerGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2VonagewebhooksAnswerGet(options);
133
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
134
+ },
135
+ /**
136
+ *
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ async apiV2VonagewebhooksRecordGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
141
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2VonagewebhooksRecordGet(options);
142
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
143
+ },
144
+ /**
145
+ *
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ async apiV2VonagewebhooksRecordingPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2VonagewebhooksRecordingPost(options);
151
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
+ },
153
+ }
154
+ };
155
+
156
+ /**
157
+ * VonageWebhooksApi - factory interface
158
+ * @export
159
+ */
160
+ export const VonageWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
161
+ const localVarFp = VonageWebhooksApiFp(configuration)
162
+ return {
163
+ /**
164
+ *
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ apiV2VonagewebhooksAnswerGet(options?: any): AxiosPromise<string> {
169
+ return localVarFp.apiV2VonagewebhooksAnswerGet(options).then((request) => request(axios, basePath));
170
+ },
171
+ /**
172
+ *
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ apiV2VonagewebhooksRecordGet(options?: any): AxiosPromise<void> {
177
+ return localVarFp.apiV2VonagewebhooksRecordGet(options).then((request) => request(axios, basePath));
178
+ },
179
+ /**
180
+ *
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ apiV2VonagewebhooksRecordingPost(options?: any): AxiosPromise<void> {
185
+ return localVarFp.apiV2VonagewebhooksRecordingPost(options).then((request) => request(axios, basePath));
186
+ },
187
+ };
188
+ };
189
+
190
+ /**
191
+ * VonageWebhooksApi - object-oriented interface
192
+ * @export
193
+ * @class VonageWebhooksApi
194
+ * @extends {BaseAPI}
195
+ */
196
+ export class VonageWebhooksApi extends BaseAPI {
197
+ /**
198
+ *
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ * @memberof VonageWebhooksApi
202
+ */
203
+ public apiV2VonagewebhooksAnswerGet(options?: AxiosRequestConfig) {
204
+ return VonageWebhooksApiFp(this.configuration).apiV2VonagewebhooksAnswerGet(options).then((request) => request(this.axios, this.basePath));
205
+ }
206
+
207
+ /**
208
+ *
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ * @memberof VonageWebhooksApi
212
+ */
213
+ public apiV2VonagewebhooksRecordGet(options?: AxiosRequestConfig) {
214
+ return VonageWebhooksApiFp(this.configuration).apiV2VonagewebhooksRecordGet(options).then((request) => request(this.axios, this.basePath));
215
+ }
216
+
217
+ /**
218
+ *
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ * @memberof VonageWebhooksApi
222
+ */
223
+ public apiV2VonagewebhooksRecordingPost(options?: AxiosRequestConfig) {
224
+ return VonageWebhooksApiFp(this.configuration).apiV2VonagewebhooksRecordingPost(options).then((request) => request(this.axios, this.basePath));
225
+ }
226
+ }
package/src/api.ts CHANGED
@@ -53,4 +53,6 @@ export * from './api/specialty-types-api';
53
53
  export * from './api/survey-forms-api';
54
54
  export * from './api/survey-results-api';
55
55
  export * from './api/tags-api';
56
+ export * from './api/vonage-users-api';
57
+ export * from './api/vonage-webhooks-api';
56
58
 
@@ -21,6 +21,9 @@ import { AppointmentOptionDocumentModel } from './appointment-option-document-mo
21
21
  import { DealServiceSubDocumentModel } from './deal-service-sub-document-model';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
+ import { FeatureDocumentModel } from './feature-document-model';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
24
27
  import { HospitalSubDocumentModel } from './hospital-sub-document-model';
25
28
  // May contain unused imports in some cases
26
29
  // @ts-ignore
@@ -362,5 +365,11 @@ export interface DealDocumentModel {
362
365
  * @memberof DealDocumentModel
363
366
  */
364
367
  'Services'?: Array<DealServiceSubDocumentModel> | null;
368
+ /**
369
+ *
370
+ * @type {FeatureDocumentModel}
371
+ * @memberof DealDocumentModel
372
+ */
373
+ 'Feature'?: FeatureDocumentModel;
365
374
  }
366
375
 
@@ -27,6 +27,9 @@ import { DealPackageMappingModel } from './deal-package-mapping-model';
27
27
  import { DealServiceMappingModel } from './deal-service-mapping-model';
28
28
  // May contain unused imports in some cases
29
29
  // @ts-ignore
30
+ import { FeatureModel } from './feature-model';
31
+ // May contain unused imports in some cases
32
+ // @ts-ignore
30
33
  import { LocationModel } from './location-model';
31
34
  // May contain unused imports in some cases
32
35
  // @ts-ignore
@@ -200,6 +203,12 @@ export interface DealItemModel {
200
203
  * @memberof DealItemModel
201
204
  */
202
205
  'appointmentOption'?: AppointmentOptionModel;
206
+ /**
207
+ *
208
+ * @type {FeatureModel}
209
+ * @memberof DealItemModel
210
+ */
211
+ 'feature'?: FeatureModel;
203
212
  /**
204
213
  *
205
214
  * @type {AuditableEntity}