ch-api-client-typescript2 5.2.9 → 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 (46) 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/first.d.ts +25 -0
  11. package/lib/models/first.d.ts.map +1 -0
  12. package/lib/models/first.js +15 -0
  13. package/lib/models/get-users-result-embedded.d.ts +26 -0
  14. package/lib/models/get-users-result-embedded.d.ts.map +1 -0
  15. package/lib/models/get-users-result-embedded.js +15 -0
  16. package/lib/models/get-users-result.d.ts +45 -0
  17. package/lib/models/get-users-result.d.ts.map +1 -0
  18. package/lib/models/get-users-result.js +15 -0
  19. package/lib/models/index.d.ts +7 -0
  20. package/lib/models/index.d.ts.map +1 -1
  21. package/lib/models/index.js +7 -0
  22. package/lib/models/last.d.ts +25 -0
  23. package/lib/models/last.d.ts.map +1 -0
  24. package/lib/models/last.js +15 -0
  25. package/lib/models/links.d.ts +40 -0
  26. package/lib/models/links.d.ts.map +1 -0
  27. package/lib/models/links.js +15 -0
  28. package/lib/models/self.d.ts +25 -0
  29. package/lib/models/self.d.ts.map +1 -0
  30. package/lib/models/self.js +15 -0
  31. package/lib/models/user.d.ts +44 -0
  32. package/lib/models/user.d.ts.map +1 -0
  33. package/lib/models/user.js +15 -0
  34. package/package.json +1 -1
  35. package/src/.openapi-generator/FILES +9 -0
  36. package/src/api/vonage-users-api.ts +270 -0
  37. package/src/api/vonage-webhooks-api.ts +226 -0
  38. package/src/api.ts +2 -0
  39. package/src/models/first.ts +30 -0
  40. package/src/models/get-users-result-embedded.ts +33 -0
  41. package/src/models/get-users-result.ts +54 -0
  42. package/src/models/index.ts +7 -0
  43. package/src/models/last.ts +30 -0
  44. package/src/models/links.ts +51 -0
  45. package/src/models/self.ts +30 -0
  46. package/src/models/user.ts +51 -0
@@ -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
 
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface First
21
+ */
22
+ export interface First {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof First
27
+ */
28
+ 'href'?: string | null;
29
+ }
30
+
@@ -0,0 +1,33 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { User } from './user';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface GetUsersResultEmbedded
24
+ */
25
+ export interface GetUsersResultEmbedded {
26
+ /**
27
+ *
28
+ * @type {Array<User>}
29
+ * @memberof GetUsersResultEmbedded
30
+ */
31
+ 'users'?: Array<User> | null;
32
+ }
33
+
@@ -0,0 +1,54 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { GetUsersResultEmbedded } from './get-users-result-embedded';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import { Links } from './links';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface GetUsersResult
27
+ */
28
+ export interface GetUsersResult {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof GetUsersResult
33
+ */
34
+ 'pageSsize'?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof GetUsersResult
39
+ */
40
+ 'cursor'?: string | null;
41
+ /**
42
+ *
43
+ * @type {GetUsersResultEmbedded}
44
+ * @memberof GetUsersResult
45
+ */
46
+ 'embedded'?: GetUsersResultEmbedded;
47
+ /**
48
+ *
49
+ * @type {Links}
50
+ * @memberof GetUsersResult
51
+ */
52
+ 'links'?: Links;
53
+ }
54
+
@@ -143,9 +143,12 @@ export * from './faq-tags-model';
143
143
  export * from './faqs-model';
144
144
  export * from './feature-document-model';
145
145
  export * from './feature-model';
146
+ export * from './first';
146
147
  export * from './footer-navigation-item-model';
147
148
  export * from './gender';
148
149
  export * from './geography-point';
150
+ export * from './get-users-result';
151
+ export * from './get-users-result-embedded';
149
152
  export * from './header-navigation-item-model';
150
153
  export * from './hospital-accreditation-item-model';
151
154
  export * from './hospital-accreditation-model';
@@ -187,6 +190,8 @@ export * from './landings-model';
187
190
  export * from './language-item-model';
188
191
  export * from './language-model';
189
192
  export * from './languages-model';
193
+ export * from './last';
194
+ export * from './links';
190
195
  export * from './localized-url-model';
191
196
  export * from './location-document-model';
192
197
  export * from './location-model';
@@ -228,6 +233,7 @@ export * from './secure-container-model';
228
233
  export * from './secure-containers-model';
229
234
  export * from './secure-file-item-input-model';
230
235
  export * from './secure-file-model';
236
+ export * from './self';
231
237
  export * from './send-bird-group-channel-member';
232
238
  export * from './send-bird-group-channel-model';
233
239
  export * from './send-bird-group-channelr-operator';
@@ -282,6 +288,7 @@ export * from './update-patient-command';
282
288
  export * from './update-profile-command';
283
289
  export * from './update-secure-container-command';
284
290
  export * from './update-service-review-command';
291
+ export * from './user';
285
292
  export * from './user-language-document-model';
286
293
  export * from './user-language-model';
287
294
  export * from './user-location-document-model';
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface Last
21
+ */
22
+ export interface Last {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof Last
27
+ */
28
+ 'href'?: string | null;
29
+ }
30
+
@@ -0,0 +1,51 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { First } from './first';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import { Last } from './last';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import { Self } from './self';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface Links
30
+ */
31
+ export interface Links {
32
+ /**
33
+ *
34
+ * @type {Self}
35
+ * @memberof Links
36
+ */
37
+ 'self'?: Self;
38
+ /**
39
+ *
40
+ * @type {First}
41
+ * @memberof Links
42
+ */
43
+ 'first'?: First;
44
+ /**
45
+ *
46
+ * @type {Last}
47
+ * @memberof Links
48
+ */
49
+ 'last'?: Last;
50
+ }
51
+
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface Self
21
+ */
22
+ export interface Self {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof Self
27
+ */
28
+ 'href'?: string | null;
29
+ }
30
+
@@ -0,0 +1,51 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { Links } from './links';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface User
24
+ */
25
+ export interface User {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof User
30
+ */
31
+ 'id'?: string | null;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof User
36
+ */
37
+ 'name'?: string | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof User
42
+ */
43
+ 'displayName'?: string | null;
44
+ /**
45
+ *
46
+ * @type {Links}
47
+ * @memberof User
48
+ */
49
+ 'links'?: Links;
50
+ }
51
+