ch-api-client-typescript2 4.0.6 → 4.0.9
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/.github/workflows/publish-npm.yml +15 -0
- package/lib/api.d.ts +77 -67
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +129 -122
- package/package.json +1 -1
- package/src/api.ts +138 -122
package/lib/api.js
CHANGED
|
@@ -2755,16 +2755,11 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2755
2755
|
},
|
|
2756
2756
|
/**
|
|
2757
2757
|
*
|
|
2758
|
-
* @summary
|
|
2759
|
-
* @param {number} [limit]
|
|
2760
|
-
* @param {string} [token]
|
|
2761
|
-
* @param {string} [userIds]
|
|
2762
|
-
* @param {string} [nickname]
|
|
2763
|
-
* @param {string} [nicknameStartswith]
|
|
2758
|
+
* @summary Delete chatUser.
|
|
2764
2759
|
* @param {*} [options] Override http request option.
|
|
2765
2760
|
* @throws {RequiredError}
|
|
2766
2761
|
*/
|
|
2767
|
-
|
|
2762
|
+
apiV2ChatusersDelete: function (options) {
|
|
2768
2763
|
if (options === void 0) { options = {}; }
|
|
2769
2764
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2770
2765
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2776,7 +2771,7 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2776
2771
|
if (configuration) {
|
|
2777
2772
|
baseOptions = configuration.baseOptions;
|
|
2778
2773
|
}
|
|
2779
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2774
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
2780
2775
|
localVarHeaderParameter = {};
|
|
2781
2776
|
localVarQueryParameter = {};
|
|
2782
2777
|
// authentication oauth2 required
|
|
@@ -2786,21 +2781,6 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2786
2781
|
// authentication oauth2 required
|
|
2787
2782
|
// oauth required
|
|
2788
2783
|
_a.sent();
|
|
2789
|
-
if (limit !== undefined) {
|
|
2790
|
-
localVarQueryParameter['Limit'] = limit;
|
|
2791
|
-
}
|
|
2792
|
-
if (token !== undefined) {
|
|
2793
|
-
localVarQueryParameter['Token'] = token;
|
|
2794
|
-
}
|
|
2795
|
-
if (userIds !== undefined) {
|
|
2796
|
-
localVarQueryParameter['UserIds'] = userIds;
|
|
2797
|
-
}
|
|
2798
|
-
if (nickname !== undefined) {
|
|
2799
|
-
localVarQueryParameter['Nickname'] = nickname;
|
|
2800
|
-
}
|
|
2801
|
-
if (nicknameStartswith !== undefined) {
|
|
2802
|
-
localVarQueryParameter['NicknameStartswith'] = nicknameStartswith;
|
|
2803
|
-
}
|
|
2804
2784
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2805
2785
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2806
2786
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2814,12 +2794,16 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2814
2794
|
},
|
|
2815
2795
|
/**
|
|
2816
2796
|
*
|
|
2817
|
-
* @summary
|
|
2818
|
-
* @param {
|
|
2797
|
+
* @summary Get all chatUsers.
|
|
2798
|
+
* @param {number} [limit]
|
|
2799
|
+
* @param {string} [token]
|
|
2800
|
+
* @param {string} [userIds]
|
|
2801
|
+
* @param {string} [nickname]
|
|
2802
|
+
* @param {string} [nicknameStartswith]
|
|
2819
2803
|
* @param {*} [options] Override http request option.
|
|
2820
2804
|
* @throws {RequiredError}
|
|
2821
2805
|
*/
|
|
2822
|
-
|
|
2806
|
+
apiV2ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
|
|
2823
2807
|
if (options === void 0) { options = {}; }
|
|
2824
2808
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2825
2809
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2831,7 +2815,7 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2831
2815
|
if (configuration) {
|
|
2832
2816
|
baseOptions = configuration.baseOptions;
|
|
2833
2817
|
}
|
|
2834
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2818
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2835
2819
|
localVarHeaderParameter = {};
|
|
2836
2820
|
localVarQueryParameter = {};
|
|
2837
2821
|
// authentication oauth2 required
|
|
@@ -2841,11 +2825,24 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2841
2825
|
// authentication oauth2 required
|
|
2842
2826
|
// oauth required
|
|
2843
2827
|
_a.sent();
|
|
2844
|
-
|
|
2828
|
+
if (limit !== undefined) {
|
|
2829
|
+
localVarQueryParameter['Limit'] = limit;
|
|
2830
|
+
}
|
|
2831
|
+
if (token !== undefined) {
|
|
2832
|
+
localVarQueryParameter['Token'] = token;
|
|
2833
|
+
}
|
|
2834
|
+
if (userIds !== undefined) {
|
|
2835
|
+
localVarQueryParameter['UserIds'] = userIds;
|
|
2836
|
+
}
|
|
2837
|
+
if (nickname !== undefined) {
|
|
2838
|
+
localVarQueryParameter['Nickname'] = nickname;
|
|
2839
|
+
}
|
|
2840
|
+
if (nicknameStartswith !== undefined) {
|
|
2841
|
+
localVarQueryParameter['NicknameStartswith'] = nicknameStartswith;
|
|
2842
|
+
}
|
|
2845
2843
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2846
2844
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2847
2845
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2848
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChatUserCommand, localVarRequestOptions, configuration);
|
|
2849
2846
|
return [2 /*return*/, {
|
|
2850
2847
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2851
2848
|
options: localVarRequestOptions,
|
|
@@ -2856,27 +2853,24 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2856
2853
|
},
|
|
2857
2854
|
/**
|
|
2858
2855
|
*
|
|
2859
|
-
* @summary
|
|
2860
|
-
* @param {
|
|
2856
|
+
* @summary Create a chatUser.
|
|
2857
|
+
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
2861
2858
|
* @param {*} [options] Override http request option.
|
|
2862
2859
|
* @throws {RequiredError}
|
|
2863
2860
|
*/
|
|
2864
|
-
|
|
2861
|
+
apiV2ChatusersPost: function (createChatUserCommand, options) {
|
|
2865
2862
|
if (options === void 0) { options = {}; }
|
|
2866
2863
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2867
2864
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2868
2865
|
return __generator(this, function (_a) {
|
|
2869
2866
|
switch (_a.label) {
|
|
2870
2867
|
case 0:
|
|
2871
|
-
|
|
2872
|
-
(0, common_1.assertParamExists)('apiV2ChatusersUserIdDelete', 'userId', userId);
|
|
2873
|
-
localVarPath = "/api/v2/chatusers/{userId}"
|
|
2874
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2868
|
+
localVarPath = "/api/v2/chatusers";
|
|
2875
2869
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2876
2870
|
if (configuration) {
|
|
2877
2871
|
baseOptions = configuration.baseOptions;
|
|
2878
2872
|
}
|
|
2879
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2873
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2880
2874
|
localVarHeaderParameter = {};
|
|
2881
2875
|
localVarQueryParameter = {};
|
|
2882
2876
|
// authentication oauth2 required
|
|
@@ -2886,9 +2880,11 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2886
2880
|
// authentication oauth2 required
|
|
2887
2881
|
// oauth required
|
|
2888
2882
|
_a.sent();
|
|
2883
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2889
2884
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2890
2885
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2891
2886
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2887
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createChatUserCommand, localVarRequestOptions, configuration);
|
|
2892
2888
|
return [2 /*return*/, {
|
|
2893
2889
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2894
2890
|
options: localVarRequestOptions,
|
|
@@ -2899,27 +2895,24 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2899
2895
|
},
|
|
2900
2896
|
/**
|
|
2901
2897
|
*
|
|
2902
|
-
* @summary
|
|
2903
|
-
* @param {
|
|
2898
|
+
* @summary Update chatUser.
|
|
2899
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
2904
2900
|
* @param {*} [options] Override http request option.
|
|
2905
2901
|
* @throws {RequiredError}
|
|
2906
2902
|
*/
|
|
2907
|
-
|
|
2903
|
+
apiV2ChatusersPut: function (updateChatUserCommand, options) {
|
|
2908
2904
|
if (options === void 0) { options = {}; }
|
|
2909
2905
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2910
2906
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2911
2907
|
return __generator(this, function (_a) {
|
|
2912
2908
|
switch (_a.label) {
|
|
2913
2909
|
case 0:
|
|
2914
|
-
|
|
2915
|
-
(0, common_1.assertParamExists)('apiV2ChatusersUserIdGet', 'userId', userId);
|
|
2916
|
-
localVarPath = "/api/v2/chatusers/{userId}"
|
|
2917
|
-
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2910
|
+
localVarPath = "/api/v2/chatusers";
|
|
2918
2911
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2919
2912
|
if (configuration) {
|
|
2920
2913
|
baseOptions = configuration.baseOptions;
|
|
2921
2914
|
}
|
|
2922
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2915
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2923
2916
|
localVarHeaderParameter = {};
|
|
2924
2917
|
localVarQueryParameter = {};
|
|
2925
2918
|
// authentication oauth2 required
|
|
@@ -2929,9 +2922,11 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2929
2922
|
// authentication oauth2 required
|
|
2930
2923
|
// oauth required
|
|
2931
2924
|
_a.sent();
|
|
2925
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2932
2926
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2933
2927
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2934
2928
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2929
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateChatUserCommand, localVarRequestOptions, configuration);
|
|
2935
2930
|
return [2 /*return*/, {
|
|
2936
2931
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2937
2932
|
options: localVarRequestOptions,
|
|
@@ -2942,13 +2937,12 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2942
2937
|
},
|
|
2943
2938
|
/**
|
|
2944
2939
|
*
|
|
2945
|
-
* @summary
|
|
2940
|
+
* @summary Get chatUser.
|
|
2946
2941
|
* @param {string} userId
|
|
2947
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
2948
2942
|
* @param {*} [options] Override http request option.
|
|
2949
2943
|
* @throws {RequiredError}
|
|
2950
2944
|
*/
|
|
2951
|
-
|
|
2945
|
+
apiV2ChatusersUserIdGet: function (userId, options) {
|
|
2952
2946
|
if (options === void 0) { options = {}; }
|
|
2953
2947
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2954
2948
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2956,14 +2950,14 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2956
2950
|
switch (_a.label) {
|
|
2957
2951
|
case 0:
|
|
2958
2952
|
// verify required parameter 'userId' is not null or undefined
|
|
2959
|
-
(0, common_1.assertParamExists)('
|
|
2953
|
+
(0, common_1.assertParamExists)('apiV2ChatusersUserIdGet', 'userId', userId);
|
|
2960
2954
|
localVarPath = "/api/v2/chatusers/{userId}"
|
|
2961
2955
|
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
2962
2956
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2963
2957
|
if (configuration) {
|
|
2964
2958
|
baseOptions = configuration.baseOptions;
|
|
2965
2959
|
}
|
|
2966
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
2960
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2967
2961
|
localVarHeaderParameter = {};
|
|
2968
2962
|
localVarQueryParameter = {};
|
|
2969
2963
|
// authentication oauth2 required
|
|
@@ -2973,11 +2967,9 @@ var ChatUsersApiAxiosParamCreator = function (configuration) {
|
|
|
2973
2967
|
// authentication oauth2 required
|
|
2974
2968
|
// oauth required
|
|
2975
2969
|
_a.sent();
|
|
2976
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2977
2970
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2978
2971
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2979
2972
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2980
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateChatUserCommand, localVarRequestOptions, configuration);
|
|
2981
2973
|
return [2 /*return*/, {
|
|
2982
2974
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2983
2975
|
options: localVarRequestOptions,
|
|
@@ -3016,21 +3008,16 @@ var ChatUsersApiFp = function (configuration) {
|
|
|
3016
3008
|
},
|
|
3017
3009
|
/**
|
|
3018
3010
|
*
|
|
3019
|
-
* @summary
|
|
3020
|
-
* @param {number} [limit]
|
|
3021
|
-
* @param {string} [token]
|
|
3022
|
-
* @param {string} [userIds]
|
|
3023
|
-
* @param {string} [nickname]
|
|
3024
|
-
* @param {string} [nicknameStartswith]
|
|
3011
|
+
* @summary Delete chatUser.
|
|
3025
3012
|
* @param {*} [options] Override http request option.
|
|
3026
3013
|
* @throws {RequiredError}
|
|
3027
3014
|
*/
|
|
3028
|
-
|
|
3015
|
+
apiV2ChatusersDelete: function (options) {
|
|
3029
3016
|
return __awaiter(this, void 0, void 0, function () {
|
|
3030
3017
|
var localVarAxiosArgs;
|
|
3031
3018
|
return __generator(this, function (_a) {
|
|
3032
3019
|
switch (_a.label) {
|
|
3033
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3020
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ChatusersDelete(options)];
|
|
3034
3021
|
case 1:
|
|
3035
3022
|
localVarAxiosArgs = _a.sent();
|
|
3036
3023
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3040,17 +3027,21 @@ var ChatUsersApiFp = function (configuration) {
|
|
|
3040
3027
|
},
|
|
3041
3028
|
/**
|
|
3042
3029
|
*
|
|
3043
|
-
* @summary
|
|
3044
|
-
* @param {
|
|
3030
|
+
* @summary Get all chatUsers.
|
|
3031
|
+
* @param {number} [limit]
|
|
3032
|
+
* @param {string} [token]
|
|
3033
|
+
* @param {string} [userIds]
|
|
3034
|
+
* @param {string} [nickname]
|
|
3035
|
+
* @param {string} [nicknameStartswith]
|
|
3045
3036
|
* @param {*} [options] Override http request option.
|
|
3046
3037
|
* @throws {RequiredError}
|
|
3047
3038
|
*/
|
|
3048
|
-
|
|
3039
|
+
apiV2ChatusersGet: function (limit, token, userIds, nickname, nicknameStartswith, options) {
|
|
3049
3040
|
return __awaiter(this, void 0, void 0, function () {
|
|
3050
3041
|
var localVarAxiosArgs;
|
|
3051
3042
|
return __generator(this, function (_a) {
|
|
3052
3043
|
switch (_a.label) {
|
|
3053
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3044
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options)];
|
|
3054
3045
|
case 1:
|
|
3055
3046
|
localVarAxiosArgs = _a.sent();
|
|
3056
3047
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3060,17 +3051,17 @@ var ChatUsersApiFp = function (configuration) {
|
|
|
3060
3051
|
},
|
|
3061
3052
|
/**
|
|
3062
3053
|
*
|
|
3063
|
-
* @summary
|
|
3064
|
-
* @param {
|
|
3054
|
+
* @summary Create a chatUser.
|
|
3055
|
+
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
3065
3056
|
* @param {*} [options] Override http request option.
|
|
3066
3057
|
* @throws {RequiredError}
|
|
3067
3058
|
*/
|
|
3068
|
-
|
|
3059
|
+
apiV2ChatusersPost: function (createChatUserCommand, options) {
|
|
3069
3060
|
return __awaiter(this, void 0, void 0, function () {
|
|
3070
3061
|
var localVarAxiosArgs;
|
|
3071
3062
|
return __generator(this, function (_a) {
|
|
3072
3063
|
switch (_a.label) {
|
|
3073
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3064
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ChatusersPost(createChatUserCommand, options)];
|
|
3074
3065
|
case 1:
|
|
3075
3066
|
localVarAxiosArgs = _a.sent();
|
|
3076
3067
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3080,17 +3071,17 @@ var ChatUsersApiFp = function (configuration) {
|
|
|
3080
3071
|
},
|
|
3081
3072
|
/**
|
|
3082
3073
|
*
|
|
3083
|
-
* @summary
|
|
3084
|
-
* @param {
|
|
3074
|
+
* @summary Update chatUser.
|
|
3075
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
3085
3076
|
* @param {*} [options] Override http request option.
|
|
3086
3077
|
* @throws {RequiredError}
|
|
3087
3078
|
*/
|
|
3088
|
-
|
|
3079
|
+
apiV2ChatusersPut: function (updateChatUserCommand, options) {
|
|
3089
3080
|
return __awaiter(this, void 0, void 0, function () {
|
|
3090
3081
|
var localVarAxiosArgs;
|
|
3091
3082
|
return __generator(this, function (_a) {
|
|
3092
3083
|
switch (_a.label) {
|
|
3093
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3084
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ChatusersPut(updateChatUserCommand, options)];
|
|
3094
3085
|
case 1:
|
|
3095
3086
|
localVarAxiosArgs = _a.sent();
|
|
3096
3087
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3100,18 +3091,17 @@ var ChatUsersApiFp = function (configuration) {
|
|
|
3100
3091
|
},
|
|
3101
3092
|
/**
|
|
3102
3093
|
*
|
|
3103
|
-
* @summary
|
|
3094
|
+
* @summary Get chatUser.
|
|
3104
3095
|
* @param {string} userId
|
|
3105
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
3106
3096
|
* @param {*} [options] Override http request option.
|
|
3107
3097
|
* @throws {RequiredError}
|
|
3108
3098
|
*/
|
|
3109
|
-
|
|
3099
|
+
apiV2ChatusersUserIdGet: function (userId, options) {
|
|
3110
3100
|
return __awaiter(this, void 0, void 0, function () {
|
|
3111
3101
|
var localVarAxiosArgs;
|
|
3112
3102
|
return __generator(this, function (_a) {
|
|
3113
3103
|
switch (_a.label) {
|
|
3114
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
3104
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ChatusersUserIdGet(userId, options)];
|
|
3115
3105
|
case 1:
|
|
3116
3106
|
localVarAxiosArgs = _a.sent();
|
|
3117
3107
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -3137,6 +3127,15 @@ var ChatUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3137
3127
|
apiV2ChatusersCurrentGet: function (options) {
|
|
3138
3128
|
return localVarFp.apiV2ChatusersCurrentGet(options).then(function (request) { return request(axios, basePath); });
|
|
3139
3129
|
},
|
|
3130
|
+
/**
|
|
3131
|
+
*
|
|
3132
|
+
* @summary Delete chatUser.
|
|
3133
|
+
* @param {*} [options] Override http request option.
|
|
3134
|
+
* @throws {RequiredError}
|
|
3135
|
+
*/
|
|
3136
|
+
apiV2ChatusersDelete: function (options) {
|
|
3137
|
+
return localVarFp.apiV2ChatusersDelete(options).then(function (request) { return request(axios, basePath); });
|
|
3138
|
+
},
|
|
3140
3139
|
/**
|
|
3141
3140
|
*
|
|
3142
3141
|
* @summary Get all chatUsers.
|
|
@@ -3163,13 +3162,13 @@ var ChatUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3163
3162
|
},
|
|
3164
3163
|
/**
|
|
3165
3164
|
*
|
|
3166
|
-
* @summary
|
|
3167
|
-
* @param {
|
|
3165
|
+
* @summary Update chatUser.
|
|
3166
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
3168
3167
|
* @param {*} [options] Override http request option.
|
|
3169
3168
|
* @throws {RequiredError}
|
|
3170
3169
|
*/
|
|
3171
|
-
|
|
3172
|
-
return localVarFp.
|
|
3170
|
+
apiV2ChatusersPut: function (updateChatUserCommand, options) {
|
|
3171
|
+
return localVarFp.apiV2ChatusersPut(updateChatUserCommand, options).then(function (request) { return request(axios, basePath); });
|
|
3173
3172
|
},
|
|
3174
3173
|
/**
|
|
3175
3174
|
*
|
|
@@ -3181,17 +3180,6 @@ var ChatUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
3181
3180
|
apiV2ChatusersUserIdGet: function (userId, options) {
|
|
3182
3181
|
return localVarFp.apiV2ChatusersUserIdGet(userId, options).then(function (request) { return request(axios, basePath); });
|
|
3183
3182
|
},
|
|
3184
|
-
/**
|
|
3185
|
-
*
|
|
3186
|
-
* @summary Update chatUser.
|
|
3187
|
-
* @param {string} userId
|
|
3188
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
3189
|
-
* @param {*} [options] Override http request option.
|
|
3190
|
-
* @throws {RequiredError}
|
|
3191
|
-
*/
|
|
3192
|
-
apiV2ChatusersUserIdPut: function (userId, updateChatUserCommand, options) {
|
|
3193
|
-
return localVarFp.apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then(function (request) { return request(axios, basePath); });
|
|
3194
|
-
},
|
|
3195
3183
|
};
|
|
3196
3184
|
};
|
|
3197
3185
|
exports.ChatUsersApiFactory = ChatUsersApiFactory;
|
|
@@ -3216,6 +3204,17 @@ var ChatUsersApi = /** @class */ (function (_super) {
|
|
|
3216
3204
|
var _this = this;
|
|
3217
3205
|
return (0, exports.ChatUsersApiFp)(this.configuration).apiV2ChatusersCurrentGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3218
3206
|
};
|
|
3207
|
+
/**
|
|
3208
|
+
*
|
|
3209
|
+
* @summary Delete chatUser.
|
|
3210
|
+
* @param {*} [options] Override http request option.
|
|
3211
|
+
* @throws {RequiredError}
|
|
3212
|
+
* @memberof ChatUsersApi
|
|
3213
|
+
*/
|
|
3214
|
+
ChatUsersApi.prototype.apiV2ChatusersDelete = function (options) {
|
|
3215
|
+
var _this = this;
|
|
3216
|
+
return (0, exports.ChatUsersApiFp)(this.configuration).apiV2ChatusersDelete(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3217
|
+
};
|
|
3219
3218
|
/**
|
|
3220
3219
|
*
|
|
3221
3220
|
* @summary Get all chatUsers.
|
|
@@ -3246,15 +3245,15 @@ var ChatUsersApi = /** @class */ (function (_super) {
|
|
|
3246
3245
|
};
|
|
3247
3246
|
/**
|
|
3248
3247
|
*
|
|
3249
|
-
* @summary
|
|
3250
|
-
* @param {
|
|
3248
|
+
* @summary Update chatUser.
|
|
3249
|
+
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
3251
3250
|
* @param {*} [options] Override http request option.
|
|
3252
3251
|
* @throws {RequiredError}
|
|
3253
3252
|
* @memberof ChatUsersApi
|
|
3254
3253
|
*/
|
|
3255
|
-
ChatUsersApi.prototype.
|
|
3254
|
+
ChatUsersApi.prototype.apiV2ChatusersPut = function (updateChatUserCommand, options) {
|
|
3256
3255
|
var _this = this;
|
|
3257
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).
|
|
3256
|
+
return (0, exports.ChatUsersApiFp)(this.configuration).apiV2ChatusersPut(updateChatUserCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3258
3257
|
};
|
|
3259
3258
|
/**
|
|
3260
3259
|
*
|
|
@@ -3268,19 +3267,6 @@ var ChatUsersApi = /** @class */ (function (_super) {
|
|
|
3268
3267
|
var _this = this;
|
|
3269
3268
|
return (0, exports.ChatUsersApiFp)(this.configuration).apiV2ChatusersUserIdGet(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3270
3269
|
};
|
|
3271
|
-
/**
|
|
3272
|
-
*
|
|
3273
|
-
* @summary Update chatUser.
|
|
3274
|
-
* @param {string} userId
|
|
3275
|
-
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
3276
|
-
* @param {*} [options] Override http request option.
|
|
3277
|
-
* @throws {RequiredError}
|
|
3278
|
-
* @memberof ChatUsersApi
|
|
3279
|
-
*/
|
|
3280
|
-
ChatUsersApi.prototype.apiV2ChatusersUserIdPut = function (userId, updateChatUserCommand, options) {
|
|
3281
|
-
var _this = this;
|
|
3282
|
-
return (0, exports.ChatUsersApiFp)(this.configuration).apiV2ChatusersUserIdPut(userId, updateChatUserCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3283
|
-
};
|
|
3284
3270
|
return ChatUsersApi;
|
|
3285
3271
|
}(base_1.BaseAPI));
|
|
3286
3272
|
exports.ChatUsersApi = ChatUsersApi;
|
|
@@ -5335,13 +5321,15 @@ var DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5335
5321
|
* @param {string} [countryId]
|
|
5336
5322
|
* @param {string} [hospitalId]
|
|
5337
5323
|
* @param {string} [hospitalName]
|
|
5324
|
+
* @param {string} [languageCode]
|
|
5325
|
+
* @param {boolean} [showHidden]
|
|
5338
5326
|
* @param {number} [page]
|
|
5339
5327
|
* @param {number} [limit]
|
|
5340
5328
|
* @param {Date} [lastRetrieved]
|
|
5341
5329
|
* @param {*} [options] Override http request option.
|
|
5342
5330
|
* @throws {RequiredError}
|
|
5343
5331
|
*/
|
|
5344
|
-
apiV2DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options) {
|
|
5332
|
+
apiV2DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
5345
5333
|
if (options === void 0) { options = {}; }
|
|
5346
5334
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5347
5335
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5375,6 +5363,12 @@ var DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5375
5363
|
if (hospitalName !== undefined) {
|
|
5376
5364
|
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
5377
5365
|
}
|
|
5366
|
+
if (languageCode !== undefined) {
|
|
5367
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
5368
|
+
}
|
|
5369
|
+
if (showHidden !== undefined) {
|
|
5370
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
5371
|
+
}
|
|
5378
5372
|
if (page !== undefined) {
|
|
5379
5373
|
localVarQueryParameter['page'] = page;
|
|
5380
5374
|
}
|
|
@@ -5401,10 +5395,11 @@ var DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5401
5395
|
* @summary Get DealPackage.
|
|
5402
5396
|
* @param {string} dealId
|
|
5403
5397
|
* @param {string} packageId
|
|
5398
|
+
* @param {string} [languageCode]
|
|
5404
5399
|
* @param {*} [options] Override http request option.
|
|
5405
5400
|
* @throws {RequiredError}
|
|
5406
5401
|
*/
|
|
5407
|
-
apiV2DealsDealIdPackagesPackageIdGet: function (dealId, packageId, options) {
|
|
5402
|
+
apiV2DealsDealIdPackagesPackageIdGet: function (dealId, packageId, languageCode, options) {
|
|
5408
5403
|
if (options === void 0) { options = {}; }
|
|
5409
5404
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5410
5405
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5423,6 +5418,9 @@ var DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5423
5418
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5424
5419
|
localVarHeaderParameter = {};
|
|
5425
5420
|
localVarQueryParameter = {};
|
|
5421
|
+
if (languageCode !== undefined) {
|
|
5422
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
5423
|
+
}
|
|
5426
5424
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5427
5425
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5428
5426
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5846,18 +5844,20 @@ var DealsApiFp = function (configuration) {
|
|
|
5846
5844
|
* @param {string} [countryId]
|
|
5847
5845
|
* @param {string} [hospitalId]
|
|
5848
5846
|
* @param {string} [hospitalName]
|
|
5847
|
+
* @param {string} [languageCode]
|
|
5848
|
+
* @param {boolean} [showHidden]
|
|
5849
5849
|
* @param {number} [page]
|
|
5850
5850
|
* @param {number} [limit]
|
|
5851
5851
|
* @param {Date} [lastRetrieved]
|
|
5852
5852
|
* @param {*} [options] Override http request option.
|
|
5853
5853
|
* @throws {RequiredError}
|
|
5854
5854
|
*/
|
|
5855
|
-
apiV2DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options) {
|
|
5855
|
+
apiV2DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
5856
5856
|
return __awaiter(this, void 0, void 0, function () {
|
|
5857
5857
|
var localVarAxiosArgs;
|
|
5858
5858
|
return __generator(this, function (_a) {
|
|
5859
5859
|
switch (_a.label) {
|
|
5860
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options)];
|
|
5860
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
5861
5861
|
case 1:
|
|
5862
5862
|
localVarAxiosArgs = _a.sent();
|
|
5863
5863
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5870,15 +5870,16 @@ var DealsApiFp = function (configuration) {
|
|
|
5870
5870
|
* @summary Get DealPackage.
|
|
5871
5871
|
* @param {string} dealId
|
|
5872
5872
|
* @param {string} packageId
|
|
5873
|
+
* @param {string} [languageCode]
|
|
5873
5874
|
* @param {*} [options] Override http request option.
|
|
5874
5875
|
* @throws {RequiredError}
|
|
5875
5876
|
*/
|
|
5876
|
-
apiV2DealsDealIdPackagesPackageIdGet: function (dealId, packageId, options) {
|
|
5877
|
+
apiV2DealsDealIdPackagesPackageIdGet: function (dealId, packageId, languageCode, options) {
|
|
5877
5878
|
return __awaiter(this, void 0, void 0, function () {
|
|
5878
5879
|
var localVarAxiosArgs;
|
|
5879
5880
|
return __generator(this, function (_a) {
|
|
5880
5881
|
switch (_a.label) {
|
|
5881
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, options)];
|
|
5882
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options)];
|
|
5882
5883
|
case 1:
|
|
5883
5884
|
localVarAxiosArgs = _a.sent();
|
|
5884
5885
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -6068,25 +6069,28 @@ var DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
6068
6069
|
* @param {string} [countryId]
|
|
6069
6070
|
* @param {string} [hospitalId]
|
|
6070
6071
|
* @param {string} [hospitalName]
|
|
6072
|
+
* @param {string} [languageCode]
|
|
6073
|
+
* @param {boolean} [showHidden]
|
|
6071
6074
|
* @param {number} [page]
|
|
6072
6075
|
* @param {number} [limit]
|
|
6073
6076
|
* @param {Date} [lastRetrieved]
|
|
6074
6077
|
* @param {*} [options] Override http request option.
|
|
6075
6078
|
* @throws {RequiredError}
|
|
6076
6079
|
*/
|
|
6077
|
-
apiV2DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options) {
|
|
6078
|
-
return localVarFp.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
6080
|
+
apiV2DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
6081
|
+
return localVarFp.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
6079
6082
|
},
|
|
6080
6083
|
/**
|
|
6081
6084
|
*
|
|
6082
6085
|
* @summary Get DealPackage.
|
|
6083
6086
|
* @param {string} dealId
|
|
6084
6087
|
* @param {string} packageId
|
|
6088
|
+
* @param {string} [languageCode]
|
|
6085
6089
|
* @param {*} [options] Override http request option.
|
|
6086
6090
|
* @throws {RequiredError}
|
|
6087
6091
|
*/
|
|
6088
|
-
apiV2DealsDealIdPackagesPackageIdGet: function (dealId, packageId, options) {
|
|
6089
|
-
return localVarFp.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, options).then(function (request) { return request(axios, basePath); });
|
|
6092
|
+
apiV2DealsDealIdPackagesPackageIdGet: function (dealId, packageId, languageCode, options) {
|
|
6093
|
+
return localVarFp.apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
6090
6094
|
},
|
|
6091
6095
|
/**
|
|
6092
6096
|
*
|
|
@@ -6226,6 +6230,8 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
6226
6230
|
* @param {string} [countryId]
|
|
6227
6231
|
* @param {string} [hospitalId]
|
|
6228
6232
|
* @param {string} [hospitalName]
|
|
6233
|
+
* @param {string} [languageCode]
|
|
6234
|
+
* @param {boolean} [showHidden]
|
|
6229
6235
|
* @param {number} [page]
|
|
6230
6236
|
* @param {number} [limit]
|
|
6231
6237
|
* @param {Date} [lastRetrieved]
|
|
@@ -6233,22 +6239,23 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
6233
6239
|
* @throws {RequiredError}
|
|
6234
6240
|
* @memberof DealsApi
|
|
6235
6241
|
*/
|
|
6236
|
-
DealsApi.prototype.apiV2DealsDealIdPackagesGet = function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options) {
|
|
6242
|
+
DealsApi.prototype.apiV2DealsDealIdPackagesGet = function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
6237
6243
|
var _this = this;
|
|
6238
|
-
return (0, exports.DealsApiFp)(this.configuration).apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6244
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6239
6245
|
};
|
|
6240
6246
|
/**
|
|
6241
6247
|
*
|
|
6242
6248
|
* @summary Get DealPackage.
|
|
6243
6249
|
* @param {string} dealId
|
|
6244
6250
|
* @param {string} packageId
|
|
6251
|
+
* @param {string} [languageCode]
|
|
6245
6252
|
* @param {*} [options] Override http request option.
|
|
6246
6253
|
* @throws {RequiredError}
|
|
6247
6254
|
* @memberof DealsApi
|
|
6248
6255
|
*/
|
|
6249
|
-
DealsApi.prototype.apiV2DealsDealIdPackagesPackageIdGet = function (dealId, packageId, options) {
|
|
6256
|
+
DealsApi.prototype.apiV2DealsDealIdPackagesPackageIdGet = function (dealId, packageId, languageCode, options) {
|
|
6250
6257
|
var _this = this;
|
|
6251
|
-
return (0, exports.DealsApiFp)(this.configuration).apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6258
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV2DealsDealIdPackagesPackageIdGet(dealId, packageId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6252
6259
|
};
|
|
6253
6260
|
/**
|
|
6254
6261
|
*
|