ch-api-client-typescript2 5.36.43 → 5.36.47

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.
@@ -0,0 +1,87 @@
1
+ /**
2
+ * CloudHospital Api
3
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: developer@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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ /**
16
+ * MediasApi - axios parameter creator
17
+ * @export
18
+ */
19
+ export declare const MediasApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ /**
21
+ *
22
+ * @summary Upload files
23
+ * @param {Array<File>} [files]
24
+ * @param {*} [options] Override http request option.
25
+ * @throws {RequiredError}
26
+ */
27
+ apiV2MediasPost: (files?: Array<File>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28
+ };
29
+ /**
30
+ * MediasApi - functional programming interface
31
+ * @export
32
+ */
33
+ export declare const MediasApiFp: (configuration?: Configuration) => {
34
+ /**
35
+ *
36
+ * @summary Upload files
37
+ * @param {Array<File>} [files]
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ apiV2MediasPost(files?: Array<File>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
42
+ };
43
+ /**
44
+ * MediasApi - factory interface
45
+ * @export
46
+ */
47
+ export declare const MediasApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
48
+ /**
49
+ *
50
+ * @summary Upload files
51
+ * @param {Array<File>} [files]
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ apiV2MediasPost(files?: Array<File>, options?: any): AxiosPromise<void>;
56
+ };
57
+ /**
58
+ * Request parameters for apiV2MediasPost operation in MediasApi.
59
+ * @export
60
+ * @interface MediasApiApiV2MediasPostRequest
61
+ */
62
+ export interface MediasApiApiV2MediasPostRequest {
63
+ /**
64
+ *
65
+ * @type {Array<File>}
66
+ * @memberof MediasApiApiV2MediasPost
67
+ */
68
+ readonly files?: Array<File>;
69
+ }
70
+ /**
71
+ * MediasApi - object-oriented interface
72
+ * @export
73
+ * @class MediasApi
74
+ * @extends {BaseAPI}
75
+ */
76
+ export declare class MediasApi extends BaseAPI {
77
+ /**
78
+ *
79
+ * @summary Upload files
80
+ * @param {MediasApiApiV2MediasPostRequest} requestParameters Request parameters.
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ * @memberof MediasApi
84
+ */
85
+ apiV2MediasPost(requestParameters?: MediasApiApiV2MediasPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
86
+ }
87
+ //# sourceMappingURL=medias-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"medias-api.d.ts","sourceRoot":"","sources":["../../src/api/medias-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAG7F;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAA6B,aAAa;IAEzE;;;;;;OAMG;8BAC6B,MAAM,IAAI,CAAC,YAAW,kBAAkB,KAAQ,QAAQ,WAAW,CAAC;CAuC3G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,mBAA4B,aAAa;IAGzD;;;;;;OAMG;4BAC2B,MAAM,IAAI,CAAC,YAAY,kBAAkB,oBAAoB,aAAa,aAAa,MAAM,KAAK,aAAa,IAAI,CAAC;CAKzJ,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGzG;;;;;;OAMG;4BACqB,MAAM,IAAI,CAAC,YAAY,GAAG,GAAG,aAAa,IAAI,CAAC;CAI9E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;CAC/B;AAED;;;;;GAKG;AACH,qBAAa,SAAU,SAAQ,OAAO;IAClC;;;;;;;OAOG;IACI,eAAe,CAAC,iBAAiB,GAAE,+BAAoC,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAG/G"}
@@ -0,0 +1,222 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CloudHospital Api
6
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: developer@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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.MediasApi = exports.MediasApiFactory = exports.MediasApiFp = exports.MediasApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * MediasApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var MediasApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary Upload files
98
+ * @param {Array<File>} [files]
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ apiV2MediasPost: function (files, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0:
109
+ localVarPath = "/api/v2/medias";
110
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ }
114
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
115
+ localVarHeaderParameter = {};
116
+ localVarQueryParameter = {};
117
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
118
+ // authentication oauth2 required
119
+ // oauth required
120
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)];
121
+ case 1:
122
+ // authentication oauth2 required
123
+ // oauth required
124
+ _a.sent();
125
+ if (files) {
126
+ files.forEach(function (element) {
127
+ localVarFormParams.append('files', element);
128
+ });
129
+ }
130
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
+ localVarRequestOptions.data = localVarFormParams;
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ }
140
+ });
141
+ });
142
+ },
143
+ };
144
+ };
145
+ exports.MediasApiAxiosParamCreator = MediasApiAxiosParamCreator;
146
+ /**
147
+ * MediasApi - functional programming interface
148
+ * @export
149
+ */
150
+ var MediasApiFp = function (configuration) {
151
+ var localVarAxiosParamCreator = (0, exports.MediasApiAxiosParamCreator)(configuration);
152
+ return {
153
+ /**
154
+ *
155
+ * @summary Upload files
156
+ * @param {Array<File>} [files]
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ apiV2MediasPost: function (files, options) {
161
+ return __awaiter(this, void 0, void 0, function () {
162
+ var localVarAxiosArgs;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2MediasPost(files, options)];
166
+ case 1:
167
+ localVarAxiosArgs = _a.sent();
168
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
169
+ }
170
+ });
171
+ });
172
+ },
173
+ };
174
+ };
175
+ exports.MediasApiFp = MediasApiFp;
176
+ /**
177
+ * MediasApi - factory interface
178
+ * @export
179
+ */
180
+ var MediasApiFactory = function (configuration, basePath, axios) {
181
+ var localVarFp = (0, exports.MediasApiFp)(configuration);
182
+ return {
183
+ /**
184
+ *
185
+ * @summary Upload files
186
+ * @param {Array<File>} [files]
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ apiV2MediasPost: function (files, options) {
191
+ return localVarFp.apiV2MediasPost(files, options).then(function (request) { return request(axios, basePath); });
192
+ },
193
+ };
194
+ };
195
+ exports.MediasApiFactory = MediasApiFactory;
196
+ /**
197
+ * MediasApi - object-oriented interface
198
+ * @export
199
+ * @class MediasApi
200
+ * @extends {BaseAPI}
201
+ */
202
+ var MediasApi = /** @class */ (function (_super) {
203
+ __extends(MediasApi, _super);
204
+ function MediasApi() {
205
+ return _super !== null && _super.apply(this, arguments) || this;
206
+ }
207
+ /**
208
+ *
209
+ * @summary Upload files
210
+ * @param {MediasApiApiV2MediasPostRequest} requestParameters Request parameters.
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ * @memberof MediasApi
214
+ */
215
+ MediasApi.prototype.apiV2MediasPost = function (requestParameters, options) {
216
+ var _this = this;
217
+ if (requestParameters === void 0) { requestParameters = {}; }
218
+ return (0, exports.MediasApiFp)(this.configuration).apiV2MediasPost(requestParameters.files, options).then(function (request) { return request(_this.axios, _this.basePath); });
219
+ };
220
+ return MediasApi;
221
+ }(base_1.BaseAPI));
222
+ exports.MediasApi = MediasApi;
package/lib/api.d.ts CHANGED
@@ -34,6 +34,7 @@ export * from './api/group-channels-api';
34
34
  export * from './api/hospitals-api';
35
35
  export * from './api/images-api';
36
36
  export * from './api/languages-api';
37
+ export * from './api/medias-api';
37
38
  export * from './api/memberships-api';
38
39
  export * from './api/messages-api';
39
40
  export * from './api/notifications-api';
package/lib/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,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2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC"}
package/lib/api.js CHANGED
@@ -52,6 +52,7 @@ __exportStar(require("./api/group-channels-api"), exports);
52
52
  __exportStar(require("./api/hospitals-api"), exports);
53
53
  __exportStar(require("./api/images-api"), exports);
54
54
  __exportStar(require("./api/languages-api"), exports);
55
+ __exportStar(require("./api/medias-api"), exports);
55
56
  __exportStar(require("./api/memberships-api"), exports);
56
57
  __exportStar(require("./api/messages-api"), exports);
57
58
  __exportStar(require("./api/notifications-api"), exports);
@@ -34,6 +34,12 @@ export interface FormFieldModel {
34
34
  * @memberof FormFieldModel
35
35
  */
36
36
  'isHidden'?: boolean;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof FormFieldModel
41
+ */
42
+ 'isPublic'?: boolean;
37
43
  /**
38
44
  *
39
45
  * @type {string}
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-model.d.ts","sourceRoot":"","sources":["../../src/models/form-field-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,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AAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;IAC/C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "5.36.43",
3
+ "version": "5.36.47",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,6 +27,7 @@ api/group-channels-api.ts
27
27
  api/hospitals-api.ts
28
28
  api/images-api.ts
29
29
  api/languages-api.ts
30
+ api/medias-api.ts
30
31
  api/memberships-api.ts
31
32
  api/messages-api.ts
32
33
  api/notifications-api.ts
@@ -0,0 +1,152 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CloudHospital Api
5
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: developer@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 { ProblemDetails } from '../models';
25
+ /**
26
+ * MediasApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export const MediasApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ *
33
+ * @summary Upload files
34
+ * @param {Array<File>} [files]
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ apiV2MediasPost: async (files?: Array<File>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39
+ const localVarPath = `/api/v2/medias`;
40
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42
+ let baseOptions;
43
+ if (configuration) {
44
+ baseOptions = configuration.baseOptions;
45
+ }
46
+
47
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
48
+ const localVarHeaderParameter = {} as any;
49
+ const localVarQueryParameter = {} as any;
50
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
51
+
52
+ // authentication oauth2 required
53
+ // oauth required
54
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)
55
+
56
+ if (files) {
57
+ files.forEach((element) => {
58
+ localVarFormParams.append('files', element as any);
59
+ })
60
+ }
61
+
62
+
63
+
64
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
65
+
66
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
+ localVarRequestOptions.data = localVarFormParams;
70
+
71
+ return {
72
+ url: toPathString(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
76
+ }
77
+ };
78
+
79
+ /**
80
+ * MediasApi - functional programming interface
81
+ * @export
82
+ */
83
+ export const MediasApiFp = function(configuration?: Configuration) {
84
+ const localVarAxiosParamCreator = MediasApiAxiosParamCreator(configuration)
85
+ return {
86
+ /**
87
+ *
88
+ * @summary Upload files
89
+ * @param {Array<File>} [files]
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ async apiV2MediasPost(files?: Array<File>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
94
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2MediasPost(files, options);
95
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
96
+ },
97
+ }
98
+ };
99
+
100
+ /**
101
+ * MediasApi - factory interface
102
+ * @export
103
+ */
104
+ export const MediasApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
105
+ const localVarFp = MediasApiFp(configuration)
106
+ return {
107
+ /**
108
+ *
109
+ * @summary Upload files
110
+ * @param {Array<File>} [files]
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ apiV2MediasPost(files?: Array<File>, options?: any): AxiosPromise<void> {
115
+ return localVarFp.apiV2MediasPost(files, options).then((request) => request(axios, basePath));
116
+ },
117
+ };
118
+ };
119
+
120
+ /**
121
+ * Request parameters for apiV2MediasPost operation in MediasApi.
122
+ * @export
123
+ * @interface MediasApiApiV2MediasPostRequest
124
+ */
125
+ export interface MediasApiApiV2MediasPostRequest {
126
+ /**
127
+ *
128
+ * @type {Array<File>}
129
+ * @memberof MediasApiApiV2MediasPost
130
+ */
131
+ readonly files?: Array<File>
132
+ }
133
+
134
+ /**
135
+ * MediasApi - object-oriented interface
136
+ * @export
137
+ * @class MediasApi
138
+ * @extends {BaseAPI}
139
+ */
140
+ export class MediasApi extends BaseAPI {
141
+ /**
142
+ *
143
+ * @summary Upload files
144
+ * @param {MediasApiApiV2MediasPostRequest} requestParameters Request parameters.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ * @memberof MediasApi
148
+ */
149
+ public apiV2MediasPost(requestParameters: MediasApiApiV2MediasPostRequest = {}, options?: AxiosRequestConfig) {
150
+ return MediasApiFp(this.configuration).apiV2MediasPost(requestParameters.files, options).then((request) => request(this.axios, this.basePath));
151
+ }
152
+ }
package/src/api.ts CHANGED
@@ -39,6 +39,7 @@ export * from './api/group-channels-api';
39
39
  export * from './api/hospitals-api';
40
40
  export * from './api/images-api';
41
41
  export * from './api/languages-api';
42
+ export * from './api/medias-api';
42
43
  export * from './api/memberships-api';
43
44
  export * from './api/messages-api';
44
45
  export * from './api/notifications-api';
@@ -41,6 +41,12 @@ export interface FormFieldModel {
41
41
  * @memberof FormFieldModel
42
42
  */
43
43
  'isHidden'?: boolean;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof FormFieldModel
48
+ */
49
+ 'isPublic'?: boolean;
44
50
  /**
45
51
  *
46
52
  * @type {string}