ch-api-client-typescript2 5.36.50 → 5.36.55
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/lib/api/form-results-api.d.ts +18 -18
- package/lib/api/form-results-api.d.ts.map +1 -1
- package/lib/api/form-results-api.js +18 -18
- package/lib/api/hospitals-api.d.ts +121 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +129 -0
- package/lib/models/create-form-result-command.d.ts +6 -0
- package/lib/models/create-form-result-command.d.ts.map +1 -1
- package/lib/models/feature-detail-document-model.d.ts +18 -0
- package/lib/models/feature-detail-document-model.d.ts.map +1 -1
- package/lib/models/form-result-item-model.d.ts +13 -0
- package/lib/models/form-result-item-model.d.ts.map +1 -1
- package/lib/models/form-result-model.d.ts +13 -0
- package/lib/models/form-result-model.d.ts.map +1 -1
- package/lib/models/form-result-value-model.d.ts +12 -0
- package/lib/models/form-result-value-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/form-results-api.ts +29 -29
- package/src/api/hospitals-api.ts +205 -0
- package/src/models/create-form-result-command.ts +6 -0
- package/src/models/feature-detail-document-model.ts +18 -0
- package/src/models/form-result-item-model.ts +15 -0
- package/src/models/form-result-model.ts +15 -0
- package/src/models/form-result-value-model.ts +12 -0
package/lib/api/hospitals-api.js
CHANGED
|
@@ -1147,6 +1147,77 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
1147
1147
|
});
|
|
1148
1148
|
});
|
|
1149
1149
|
},
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @summary Get formResults by hospitalId
|
|
1153
|
+
* @param {string} hospitalId
|
|
1154
|
+
* @param {string} [languageCode]
|
|
1155
|
+
* @param {Date} [startDate]
|
|
1156
|
+
* @param {Date} [endDate]
|
|
1157
|
+
* @param {FormTemplateType} [formTemplateType]
|
|
1158
|
+
* @param {FormResultStatus} [status]
|
|
1159
|
+
* @param {number} [page]
|
|
1160
|
+
* @param {number} [limit]
|
|
1161
|
+
* @param {Date} [lastRetrieved]
|
|
1162
|
+
* @param {*} [options] Override http request option.
|
|
1163
|
+
* @throws {RequiredError}
|
|
1164
|
+
*/
|
|
1165
|
+
apiV2HospitalsHospitalIdFormresultsGet: function (hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options) {
|
|
1166
|
+
if (options === void 0) { options = {}; }
|
|
1167
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1168
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1169
|
+
return __generator(this, function (_a) {
|
|
1170
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
1171
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdFormresultsGet', 'hospitalId', hospitalId);
|
|
1172
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/formresults"
|
|
1173
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
1174
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1175
|
+
if (configuration) {
|
|
1176
|
+
baseOptions = configuration.baseOptions;
|
|
1177
|
+
}
|
|
1178
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1179
|
+
localVarHeaderParameter = {};
|
|
1180
|
+
localVarQueryParameter = {};
|
|
1181
|
+
if (languageCode !== undefined) {
|
|
1182
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
1183
|
+
}
|
|
1184
|
+
if (startDate !== undefined) {
|
|
1185
|
+
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
1186
|
+
startDate.toISOString() :
|
|
1187
|
+
startDate;
|
|
1188
|
+
}
|
|
1189
|
+
if (endDate !== undefined) {
|
|
1190
|
+
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
1191
|
+
endDate.toISOString() :
|
|
1192
|
+
endDate;
|
|
1193
|
+
}
|
|
1194
|
+
if (formTemplateType !== undefined) {
|
|
1195
|
+
localVarQueryParameter['FormTemplateType'] = formTemplateType;
|
|
1196
|
+
}
|
|
1197
|
+
if (status !== undefined) {
|
|
1198
|
+
localVarQueryParameter['Status'] = status;
|
|
1199
|
+
}
|
|
1200
|
+
if (page !== undefined) {
|
|
1201
|
+
localVarQueryParameter['page'] = page;
|
|
1202
|
+
}
|
|
1203
|
+
if (limit !== undefined) {
|
|
1204
|
+
localVarQueryParameter['limit'] = limit;
|
|
1205
|
+
}
|
|
1206
|
+
if (lastRetrieved !== undefined) {
|
|
1207
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
1208
|
+
lastRetrieved.toISOString() :
|
|
1209
|
+
lastRetrieved;
|
|
1210
|
+
}
|
|
1211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1212
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1213
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1214
|
+
return [2 /*return*/, {
|
|
1215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1216
|
+
options: localVarRequestOptions,
|
|
1217
|
+
}];
|
|
1218
|
+
});
|
|
1219
|
+
});
|
|
1220
|
+
},
|
|
1150
1221
|
/**
|
|
1151
1222
|
*
|
|
1152
1223
|
* @summary Get hospital by id
|
|
@@ -3759,6 +3830,34 @@ var HospitalsApiFp = function (configuration) {
|
|
|
3759
3830
|
});
|
|
3760
3831
|
});
|
|
3761
3832
|
},
|
|
3833
|
+
/**
|
|
3834
|
+
*
|
|
3835
|
+
* @summary Get formResults by hospitalId
|
|
3836
|
+
* @param {string} hospitalId
|
|
3837
|
+
* @param {string} [languageCode]
|
|
3838
|
+
* @param {Date} [startDate]
|
|
3839
|
+
* @param {Date} [endDate]
|
|
3840
|
+
* @param {FormTemplateType} [formTemplateType]
|
|
3841
|
+
* @param {FormResultStatus} [status]
|
|
3842
|
+
* @param {number} [page]
|
|
3843
|
+
* @param {number} [limit]
|
|
3844
|
+
* @param {Date} [lastRetrieved]
|
|
3845
|
+
* @param {*} [options] Override http request option.
|
|
3846
|
+
* @throws {RequiredError}
|
|
3847
|
+
*/
|
|
3848
|
+
apiV2HospitalsHospitalIdFormresultsGet: function (hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options) {
|
|
3849
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3850
|
+
var localVarAxiosArgs;
|
|
3851
|
+
return __generator(this, function (_a) {
|
|
3852
|
+
switch (_a.label) {
|
|
3853
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdFormresultsGet(hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options)];
|
|
3854
|
+
case 1:
|
|
3855
|
+
localVarAxiosArgs = _a.sent();
|
|
3856
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
3857
|
+
}
|
|
3858
|
+
});
|
|
3859
|
+
});
|
|
3860
|
+
},
|
|
3762
3861
|
/**
|
|
3763
3862
|
*
|
|
3764
3863
|
* @summary Get hospital by id
|
|
@@ -5029,6 +5128,24 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
5029
5128
|
apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet: function (hospitalId, languageCode, options) {
|
|
5030
5129
|
return localVarFp.apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
5031
5130
|
},
|
|
5131
|
+
/**
|
|
5132
|
+
*
|
|
5133
|
+
* @summary Get formResults by hospitalId
|
|
5134
|
+
* @param {string} hospitalId
|
|
5135
|
+
* @param {string} [languageCode]
|
|
5136
|
+
* @param {Date} [startDate]
|
|
5137
|
+
* @param {Date} [endDate]
|
|
5138
|
+
* @param {FormTemplateType} [formTemplateType]
|
|
5139
|
+
* @param {FormResultStatus} [status]
|
|
5140
|
+
* @param {number} [page]
|
|
5141
|
+
* @param {number} [limit]
|
|
5142
|
+
* @param {Date} [lastRetrieved]
|
|
5143
|
+
* @param {*} [options] Override http request option.
|
|
5144
|
+
* @throws {RequiredError}
|
|
5145
|
+
*/
|
|
5146
|
+
apiV2HospitalsHospitalIdFormresultsGet: function (hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options) {
|
|
5147
|
+
return localVarFp.apiV2HospitalsHospitalIdFormresultsGet(hospitalId, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
5148
|
+
},
|
|
5032
5149
|
/**
|
|
5033
5150
|
*
|
|
5034
5151
|
* @summary Get hospital by id
|
|
@@ -5863,6 +5980,18 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
5863
5980
|
var _this = this;
|
|
5864
5981
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters.hospitalId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5865
5982
|
};
|
|
5983
|
+
/**
|
|
5984
|
+
*
|
|
5985
|
+
* @summary Get formResults by hospitalId
|
|
5986
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdFormresultsGetRequest} requestParameters Request parameters.
|
|
5987
|
+
* @param {*} [options] Override http request option.
|
|
5988
|
+
* @throws {RequiredError}
|
|
5989
|
+
* @memberof HospitalsApi
|
|
5990
|
+
*/
|
|
5991
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdFormresultsGet = function (requestParameters, options) {
|
|
5992
|
+
var _this = this;
|
|
5993
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdFormresultsGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.startDate, requestParameters.endDate, requestParameters.formTemplateType, requestParameters.status, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5994
|
+
};
|
|
5866
5995
|
/**
|
|
5867
5996
|
*
|
|
5868
5997
|
* @summary Get hospital by id
|
|
@@ -22,6 +22,12 @@ export interface CreateFormResultCommand {
|
|
|
22
22
|
* @memberof CreateFormResultCommand
|
|
23
23
|
*/
|
|
24
24
|
'languageCode'?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateFormResultCommand
|
|
29
|
+
*/
|
|
30
|
+
'hospitalId'?: string | null;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-form-result-command.d.ts","sourceRoot":"","sources":["../../src/models/create-form-result-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC;CAC1D"}
|
|
1
|
+
{"version":3,"file":"create-form-result-command.d.ts","sourceRoot":"","sources":["../../src/models/create-form-result-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC;CAC1D"}
|
|
@@ -51,5 +51,23 @@ export interface FeatureDetailDocumentModel {
|
|
|
51
51
|
* @memberof FeatureDetailDocumentModel
|
|
52
52
|
*/
|
|
53
53
|
'SurveyFormTranslatedLanguages'?: Array<string> | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof FeatureDetailDocumentModel
|
|
58
|
+
*/
|
|
59
|
+
'IsEnabledReview'?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof FeatureDetailDocumentModel
|
|
64
|
+
*/
|
|
65
|
+
'ReviewFormTemplateId'?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof FeatureDetailDocumentModel
|
|
70
|
+
*/
|
|
71
|
+
'ReviewFormTemplateTranslatedLanguages'?: Array<string> | null;
|
|
54
72
|
}
|
|
55
73
|
//# sourceMappingURL=feature-detail-document-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-detail-document-model.d.ts","sourceRoot":"","sources":["../../src/models/feature-detail-document-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"feature-detail-document-model.d.ts","sourceRoot":"","sources":["../../src/models/feature-detail-document-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IACvD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,uCAAuC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAClE"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FormResultFieldModel } from './form-result-field-model';
|
|
12
13
|
import { FormResultStatus } from './form-result-status';
|
|
13
14
|
import { FormTemplateType } from './form-template-type';
|
|
14
15
|
/**
|
|
@@ -83,5 +84,17 @@ export interface FormResultItemModel {
|
|
|
83
84
|
* @memberof FormResultItemModel
|
|
84
85
|
*/
|
|
85
86
|
'createdDate'?: Date;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Array<FormResultFieldModel>}
|
|
90
|
+
* @memberof FormResultItemModel
|
|
91
|
+
*/
|
|
92
|
+
'formResultFields'?: Array<FormResultFieldModel> | null;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof FormResultItemModel
|
|
97
|
+
*/
|
|
98
|
+
'rating'?: number;
|
|
86
99
|
}
|
|
87
100
|
//# sourceMappingURL=form-result-item-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-result-item-model.d.ts","sourceRoot":"","sources":["../../src/models/form-result-item-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"form-result-item-model.d.ts","sourceRoot":"","sources":["../../src/models/form-result-item-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;IACxD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FormResultFieldModel } from './form-result-field-model';
|
|
12
13
|
import { FormResultSectionModel } from './form-result-section-model';
|
|
13
14
|
import { FormResultStatus } from './form-result-status';
|
|
14
15
|
import { FormTemplateType } from './form-template-type';
|
|
@@ -84,6 +85,18 @@ export interface FormResultModel {
|
|
|
84
85
|
* @memberof FormResultModel
|
|
85
86
|
*/
|
|
86
87
|
'createdDate'?: Date;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Array<FormResultFieldModel>}
|
|
91
|
+
* @memberof FormResultModel
|
|
92
|
+
*/
|
|
93
|
+
'formResultFields'?: Array<FormResultFieldModel> | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof FormResultModel
|
|
98
|
+
*/
|
|
99
|
+
'rating'?: number;
|
|
87
100
|
/**
|
|
88
101
|
*
|
|
89
102
|
* @type {Array<FormResultSectionModel>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-result-model.d.ts","sourceRoot":"","sources":["../../src/models/form-result-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC;CACrD"}
|
|
1
|
+
{"version":3,"file":"form-result-model.d.ts","sourceRoot":"","sources":["../../src/models/form-result-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;IACxD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC;CACrD"}
|
|
@@ -39,5 +39,17 @@ export interface FormResultValueModel {
|
|
|
39
39
|
* @memberof FormResultValueModel
|
|
40
40
|
*/
|
|
41
41
|
'id'?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FormResultValueModel
|
|
46
|
+
*/
|
|
47
|
+
'translatedValue'?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof FormResultValueModel
|
|
52
|
+
*/
|
|
53
|
+
'translatedAdditionalValue'?: string | null;
|
|
42
54
|
}
|
|
43
55
|
//# sourceMappingURL=form-result-value-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-result-value-model.d.ts","sourceRoot":"","sources":["../../src/models/form-result-value-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"form-result-value-model.d.ts","sourceRoot":"","sources":["../../src/models/form-result-value-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/C"}
|
package/package.json
CHANGED
|
@@ -122,11 +122,11 @@ export const FormResultsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
122
122
|
/**
|
|
123
123
|
*
|
|
124
124
|
* @summary Get formResults
|
|
125
|
+
* @param {string} [hospitalId]
|
|
126
|
+
* @param {boolean} [noHospitalOnly]
|
|
125
127
|
* @param {string} [languageCode]
|
|
126
128
|
* @param {Date} [startDate]
|
|
127
129
|
* @param {Date} [endDate]
|
|
128
|
-
* @param {string} [hospitalId]
|
|
129
|
-
* @param {boolean} [noHospitalOnly]
|
|
130
130
|
* @param {FormTemplateType} [formTemplateType]
|
|
131
131
|
* @param {FormResultStatus} [status]
|
|
132
132
|
* @param {number} [page]
|
|
@@ -135,7 +135,7 @@ export const FormResultsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
*/
|
|
138
|
-
apiV2FormresultsGet: async (
|
|
138
|
+
apiV2FormresultsGet: async (hospitalId?: string, noHospitalOnly?: boolean, languageCode?: string, startDate?: Date, endDate?: Date, formTemplateType?: FormTemplateType, status?: FormResultStatus, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
139
139
|
const localVarPath = `/api/v2/formresults`;
|
|
140
140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
141
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -152,6 +152,14 @@ export const FormResultsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
152
152
|
// oauth required
|
|
153
153
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)
|
|
154
154
|
|
|
155
|
+
if (hospitalId !== undefined) {
|
|
156
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (noHospitalOnly !== undefined) {
|
|
160
|
+
localVarQueryParameter['NoHospitalOnly'] = noHospitalOnly;
|
|
161
|
+
}
|
|
162
|
+
|
|
155
163
|
if (languageCode !== undefined) {
|
|
156
164
|
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
157
165
|
}
|
|
@@ -168,14 +176,6 @@ export const FormResultsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
168
176
|
endDate;
|
|
169
177
|
}
|
|
170
178
|
|
|
171
|
-
if (hospitalId !== undefined) {
|
|
172
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (noHospitalOnly !== undefined) {
|
|
176
|
-
localVarQueryParameter['NoHospitalOnly'] = noHospitalOnly;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
179
|
if (formTemplateType !== undefined) {
|
|
180
180
|
localVarQueryParameter['FormTemplateType'] = formTemplateType;
|
|
181
181
|
}
|
|
@@ -283,11 +283,11 @@ export const FormResultsApiFp = function(configuration?: Configuration) {
|
|
|
283
283
|
/**
|
|
284
284
|
*
|
|
285
285
|
* @summary Get formResults
|
|
286
|
+
* @param {string} [hospitalId]
|
|
287
|
+
* @param {boolean} [noHospitalOnly]
|
|
286
288
|
* @param {string} [languageCode]
|
|
287
289
|
* @param {Date} [startDate]
|
|
288
290
|
* @param {Date} [endDate]
|
|
289
|
-
* @param {string} [hospitalId]
|
|
290
|
-
* @param {boolean} [noHospitalOnly]
|
|
291
291
|
* @param {FormTemplateType} [formTemplateType]
|
|
292
292
|
* @param {FormResultStatus} [status]
|
|
293
293
|
* @param {number} [page]
|
|
@@ -296,8 +296,8 @@ export const FormResultsApiFp = function(configuration?: Configuration) {
|
|
|
296
296
|
* @param {*} [options] Override http request option.
|
|
297
297
|
* @throws {RequiredError}
|
|
298
298
|
*/
|
|
299
|
-
async apiV2FormresultsGet(
|
|
300
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2FormresultsGet(
|
|
299
|
+
async apiV2FormresultsGet(hospitalId?: string, noHospitalOnly?: boolean, languageCode?: string, startDate?: Date, endDate?: Date, formTemplateType?: FormTemplateType, status?: FormResultStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormResultsModel>> {
|
|
300
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2FormresultsGet(hospitalId, noHospitalOnly, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options);
|
|
301
301
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
@@ -345,11 +345,11 @@ export const FormResultsApiFactory = function (configuration?: Configuration, ba
|
|
|
345
345
|
/**
|
|
346
346
|
*
|
|
347
347
|
* @summary Get formResults
|
|
348
|
+
* @param {string} [hospitalId]
|
|
349
|
+
* @param {boolean} [noHospitalOnly]
|
|
348
350
|
* @param {string} [languageCode]
|
|
349
351
|
* @param {Date} [startDate]
|
|
350
352
|
* @param {Date} [endDate]
|
|
351
|
-
* @param {string} [hospitalId]
|
|
352
|
-
* @param {boolean} [noHospitalOnly]
|
|
353
353
|
* @param {FormTemplateType} [formTemplateType]
|
|
354
354
|
* @param {FormResultStatus} [status]
|
|
355
355
|
* @param {number} [page]
|
|
@@ -358,8 +358,8 @@ export const FormResultsApiFactory = function (configuration?: Configuration, ba
|
|
|
358
358
|
* @param {*} [options] Override http request option.
|
|
359
359
|
* @throws {RequiredError}
|
|
360
360
|
*/
|
|
361
|
-
apiV2FormresultsGet(
|
|
362
|
-
return localVarFp.apiV2FormresultsGet(
|
|
361
|
+
apiV2FormresultsGet(hospitalId?: string, noHospitalOnly?: boolean, languageCode?: string, startDate?: Date, endDate?: Date, formTemplateType?: FormTemplateType, status?: FormResultStatus, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormResultsModel> {
|
|
362
|
+
return localVarFp.apiV2FormresultsGet(hospitalId, noHospitalOnly, languageCode, startDate, endDate, formTemplateType, status, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
363
363
|
},
|
|
364
364
|
/**
|
|
365
365
|
*
|
|
@@ -420,35 +420,35 @@ export interface FormResultsApiApiV2FormresultsGetRequest {
|
|
|
420
420
|
* @type {string}
|
|
421
421
|
* @memberof FormResultsApiApiV2FormresultsGet
|
|
422
422
|
*/
|
|
423
|
-
readonly
|
|
423
|
+
readonly hospitalId?: string
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
426
|
*
|
|
427
|
-
* @type {
|
|
427
|
+
* @type {boolean}
|
|
428
428
|
* @memberof FormResultsApiApiV2FormresultsGet
|
|
429
429
|
*/
|
|
430
|
-
readonly
|
|
430
|
+
readonly noHospitalOnly?: boolean
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
*
|
|
434
|
-
* @type {
|
|
434
|
+
* @type {string}
|
|
435
435
|
* @memberof FormResultsApiApiV2FormresultsGet
|
|
436
436
|
*/
|
|
437
|
-
readonly
|
|
437
|
+
readonly languageCode?: string
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
*
|
|
441
|
-
* @type {
|
|
441
|
+
* @type {Date}
|
|
442
442
|
* @memberof FormResultsApiApiV2FormresultsGet
|
|
443
443
|
*/
|
|
444
|
-
readonly
|
|
444
|
+
readonly startDate?: Date
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
*
|
|
448
|
-
* @type {
|
|
448
|
+
* @type {Date}
|
|
449
449
|
* @memberof FormResultsApiApiV2FormresultsGet
|
|
450
450
|
*/
|
|
451
|
-
readonly
|
|
451
|
+
readonly endDate?: Date
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
454
|
*
|
|
@@ -540,7 +540,7 @@ export class FormResultsApi extends BaseAPI {
|
|
|
540
540
|
* @memberof FormResultsApi
|
|
541
541
|
*/
|
|
542
542
|
public apiV2FormresultsGet(requestParameters: FormResultsApiApiV2FormresultsGetRequest = {}, options?: AxiosRequestConfig) {
|
|
543
|
-
return FormResultsApiFp(this.configuration).apiV2FormresultsGet(requestParameters.
|
|
543
|
+
return FormResultsApiFp(this.configuration).apiV2FormresultsGet(requestParameters.hospitalId, requestParameters.noHospitalOnly, requestParameters.languageCode, requestParameters.startDate, requestParameters.endDate, requestParameters.formTemplateType, requestParameters.status, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
/**
|