gs2 1.4.64 → 1.4.65
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/package.json +1 -1
- package/stamina/request/VerifyStaminaMaxValueByStampTaskRequest.d.ts +25 -0
- package/stamina/request/VerifyStaminaMaxValueByStampTaskRequest.js +83 -0
- package/stamina/request/VerifyStaminaMaxValueByStampTaskRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaMaxValueByStampTaskRequest.ts +90 -0
- package/stamina/request/VerifyStaminaMaxValueByUserIdRequest.d.ts +49 -0
- package/stamina/request/VerifyStaminaMaxValueByUserIdRequest.js +165 -0
- package/stamina/request/VerifyStaminaMaxValueByUserIdRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaMaxValueByUserIdRequest.ts +175 -0
- package/stamina/request/VerifyStaminaMaxValueRequest.d.ts +45 -0
- package/stamina/request/VerifyStaminaMaxValueRequest.js +151 -0
- package/stamina/request/VerifyStaminaMaxValueRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaMaxValueRequest.ts +161 -0
- package/stamina/request/VerifyStaminaOverflowValueByStampTaskRequest.d.ts +25 -0
- package/stamina/request/VerifyStaminaOverflowValueByStampTaskRequest.js +83 -0
- package/stamina/request/VerifyStaminaOverflowValueByStampTaskRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaOverflowValueByStampTaskRequest.ts +90 -0
- package/stamina/request/VerifyStaminaOverflowValueByUserIdRequest.d.ts +49 -0
- package/stamina/request/VerifyStaminaOverflowValueByUserIdRequest.js +165 -0
- package/stamina/request/VerifyStaminaOverflowValueByUserIdRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaOverflowValueByUserIdRequest.ts +175 -0
- package/stamina/request/VerifyStaminaOverflowValueRequest.d.ts +45 -0
- package/stamina/request/VerifyStaminaOverflowValueRequest.js +151 -0
- package/stamina/request/VerifyStaminaOverflowValueRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaOverflowValueRequest.ts +161 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByStampTaskRequest.d.ts +25 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByStampTaskRequest.js +83 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByStampTaskRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByStampTaskRequest.ts +90 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByUserIdRequest.d.ts +49 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByUserIdRequest.js +165 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByUserIdRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesByUserIdRequest.ts +175 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesRequest.d.ts +45 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesRequest.js +151 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaRecoverIntervalMinutesRequest.ts +161 -0
- package/stamina/request/VerifyStaminaRecoverValueByStampTaskRequest.d.ts +25 -0
- package/stamina/request/VerifyStaminaRecoverValueByStampTaskRequest.js +83 -0
- package/stamina/request/VerifyStaminaRecoverValueByStampTaskRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaRecoverValueByStampTaskRequest.ts +90 -0
- package/stamina/request/VerifyStaminaRecoverValueByUserIdRequest.d.ts +49 -0
- package/stamina/request/VerifyStaminaRecoverValueByUserIdRequest.js +165 -0
- package/stamina/request/VerifyStaminaRecoverValueByUserIdRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaRecoverValueByUserIdRequest.ts +175 -0
- package/stamina/request/VerifyStaminaRecoverValueRequest.d.ts +45 -0
- package/stamina/request/VerifyStaminaRecoverValueRequest.js +151 -0
- package/stamina/request/VerifyStaminaRecoverValueRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaRecoverValueRequest.ts +161 -0
- package/stamina/request/VerifyStaminaValueByStampTaskRequest.d.ts +25 -0
- package/stamina/request/VerifyStaminaValueByStampTaskRequest.js +83 -0
- package/stamina/request/VerifyStaminaValueByStampTaskRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaValueByStampTaskRequest.ts +90 -0
- package/stamina/request/VerifyStaminaValueByUserIdRequest.d.ts +49 -0
- package/stamina/request/VerifyStaminaValueByUserIdRequest.js +165 -0
- package/stamina/request/VerifyStaminaValueByUserIdRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaValueByUserIdRequest.ts +175 -0
- package/stamina/request/VerifyStaminaValueRequest.d.ts +45 -0
- package/stamina/request/VerifyStaminaValueRequest.js +151 -0
- package/stamina/request/VerifyStaminaValueRequest.js.map +1 -0
- package/stamina/request/VerifyStaminaValueRequest.ts +161 -0
- package/stamina/request/index.d.ts +16 -1
- package/stamina/request/index.js +31 -1
- package/stamina/request/index.js.map +1 -1
- package/stamina/request/index.ts +30 -0
- package/stamina/rest.d.ts +15 -0
- package/stamina/rest.js +500 -0
- package/stamina/rest.js.map +1 -1
- package/stamina/rest.ts +560 -0
- package/stamina/result/VerifyStaminaMaxValueByStampTaskResult.d.ts +13 -0
- package/stamina/result/VerifyStaminaMaxValueByStampTaskResult.js +45 -0
- package/stamina/result/VerifyStaminaMaxValueByStampTaskResult.js.map +1 -0
- package/stamina/result/VerifyStaminaMaxValueByStampTaskResult.ts +46 -0
- package/stamina/result/VerifyStaminaMaxValueByUserIdResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaMaxValueByUserIdResult.js +30 -0
- package/stamina/result/VerifyStaminaMaxValueByUserIdResult.js.map +1 -0
- package/stamina/result/VerifyStaminaMaxValueByUserIdResult.ts +29 -0
- package/stamina/result/VerifyStaminaMaxValueResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaMaxValueResult.js +30 -0
- package/stamina/result/VerifyStaminaMaxValueResult.js.map +1 -0
- package/stamina/result/VerifyStaminaMaxValueResult.ts +29 -0
- package/stamina/result/VerifyStaminaOverflowValueByStampTaskResult.d.ts +13 -0
- package/stamina/result/VerifyStaminaOverflowValueByStampTaskResult.js +45 -0
- package/stamina/result/VerifyStaminaOverflowValueByStampTaskResult.js.map +1 -0
- package/stamina/result/VerifyStaminaOverflowValueByStampTaskResult.ts +46 -0
- package/stamina/result/VerifyStaminaOverflowValueByUserIdResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaOverflowValueByUserIdResult.js +30 -0
- package/stamina/result/VerifyStaminaOverflowValueByUserIdResult.js.map +1 -0
- package/stamina/result/VerifyStaminaOverflowValueByUserIdResult.ts +29 -0
- package/stamina/result/VerifyStaminaOverflowValueResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaOverflowValueResult.js +30 -0
- package/stamina/result/VerifyStaminaOverflowValueResult.js.map +1 -0
- package/stamina/result/VerifyStaminaOverflowValueResult.ts +29 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByStampTaskResult.d.ts +13 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByStampTaskResult.js +45 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByStampTaskResult.js.map +1 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByStampTaskResult.ts +46 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByUserIdResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByUserIdResult.js +30 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByUserIdResult.js.map +1 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesByUserIdResult.ts +29 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesResult.js +30 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesResult.js.map +1 -0
- package/stamina/result/VerifyStaminaRecoverIntervalMinutesResult.ts +29 -0
- package/stamina/result/VerifyStaminaRecoverValueByStampTaskResult.d.ts +13 -0
- package/stamina/result/VerifyStaminaRecoverValueByStampTaskResult.js +45 -0
- package/stamina/result/VerifyStaminaRecoverValueByStampTaskResult.js.map +1 -0
- package/stamina/result/VerifyStaminaRecoverValueByStampTaskResult.ts +46 -0
- package/stamina/result/VerifyStaminaRecoverValueByUserIdResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaRecoverValueByUserIdResult.js +30 -0
- package/stamina/result/VerifyStaminaRecoverValueByUserIdResult.js.map +1 -0
- package/stamina/result/VerifyStaminaRecoverValueByUserIdResult.ts +29 -0
- package/stamina/result/VerifyStaminaRecoverValueResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaRecoverValueResult.js +30 -0
- package/stamina/result/VerifyStaminaRecoverValueResult.js.map +1 -0
- package/stamina/result/VerifyStaminaRecoverValueResult.ts +29 -0
- package/stamina/result/VerifyStaminaValueByStampTaskResult.d.ts +13 -0
- package/stamina/result/VerifyStaminaValueByStampTaskResult.js +45 -0
- package/stamina/result/VerifyStaminaValueByStampTaskResult.js.map +1 -0
- package/stamina/result/VerifyStaminaValueByStampTaskResult.ts +46 -0
- package/stamina/result/VerifyStaminaValueByUserIdResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaValueByUserIdResult.js +30 -0
- package/stamina/result/VerifyStaminaValueByUserIdResult.js.map +1 -0
- package/stamina/result/VerifyStaminaValueByUserIdResult.ts +29 -0
- package/stamina/result/VerifyStaminaValueResult.d.ts +9 -0
- package/stamina/result/VerifyStaminaValueResult.js +30 -0
- package/stamina/result/VerifyStaminaValueResult.js.map +1 -0
- package/stamina/result/VerifyStaminaValueResult.ts +29 -0
- package/stamina/result/index.d.ts +16 -1
- package/stamina/result/index.js +31 -1
- package/stamina/result/index.js.map +1 -1
- package/stamina/result/index.ts +30 -0
package/stamina/rest.ts
CHANGED
|
@@ -1950,6 +1950,411 @@ export default class Gs2StaminaRestClient extends AbstractGs2RestClient {
|
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
|
|
1953
|
+
public verifyStaminaValue(request: Request.VerifyStaminaValueRequest): Promise<Result.VerifyStaminaValueResult> {
|
|
1954
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/stamina/{staminaName}/value/verify/{verifyType}')
|
|
1955
|
+
.replace('{service}', 'stamina')
|
|
1956
|
+
.replace('{region}', this.session.region)
|
|
1957
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1958
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
1959
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
1960
|
+
|
|
1961
|
+
const headers = this.createAuthorizedHeaders();
|
|
1962
|
+
if (request.getRequestId()) {
|
|
1963
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
1964
|
+
}
|
|
1965
|
+
if (request.getAccessToken()) {
|
|
1966
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
1967
|
+
}
|
|
1968
|
+
if (request.getDuplicationAvoider()) {
|
|
1969
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
1970
|
+
}
|
|
1971
|
+
const body: {[key: string]: any} = {
|
|
1972
|
+
'contextStack': request.getContextStack() ?? null,
|
|
1973
|
+
'value': request.getValue() ?? null,
|
|
1974
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
1975
|
+
};
|
|
1976
|
+
return axios.post(
|
|
1977
|
+
url,
|
|
1978
|
+
body,
|
|
1979
|
+
{
|
|
1980
|
+
headers,
|
|
1981
|
+
},
|
|
1982
|
+
).then((response: any) => {
|
|
1983
|
+
return Result.VerifyStaminaValueResult.fromDict(response.data);
|
|
1984
|
+
}).catch((error: any) => {
|
|
1985
|
+
if (error.response) {
|
|
1986
|
+
throw JSON.parse(error.response.data.message);
|
|
1987
|
+
} else {
|
|
1988
|
+
throw [];
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
public verifyStaminaValueByUserId(request: Request.VerifyStaminaValueByUserIdRequest): Promise<Result.VerifyStaminaValueByUserIdResult> {
|
|
1994
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/stamina/{staminaName}/value/verify/{verifyType}')
|
|
1995
|
+
.replace('{service}', 'stamina')
|
|
1996
|
+
.replace('{region}', this.session.region)
|
|
1997
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
1998
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
1999
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2000
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2001
|
+
|
|
2002
|
+
const headers = this.createAuthorizedHeaders();
|
|
2003
|
+
if (request.getRequestId()) {
|
|
2004
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2005
|
+
}
|
|
2006
|
+
if (request.getDuplicationAvoider()) {
|
|
2007
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2008
|
+
}
|
|
2009
|
+
if (request.getTimeOffsetToken()) {
|
|
2010
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
2011
|
+
}
|
|
2012
|
+
const body: {[key: string]: any} = {
|
|
2013
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2014
|
+
'value': request.getValue() ?? null,
|
|
2015
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2016
|
+
};
|
|
2017
|
+
return axios.post(
|
|
2018
|
+
url,
|
|
2019
|
+
body,
|
|
2020
|
+
{
|
|
2021
|
+
headers,
|
|
2022
|
+
},
|
|
2023
|
+
).then((response: any) => {
|
|
2024
|
+
return Result.VerifyStaminaValueByUserIdResult.fromDict(response.data);
|
|
2025
|
+
}).catch((error: any) => {
|
|
2026
|
+
if (error.response) {
|
|
2027
|
+
throw JSON.parse(error.response.data.message);
|
|
2028
|
+
} else {
|
|
2029
|
+
throw [];
|
|
2030
|
+
}
|
|
2031
|
+
});
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
public verifyStaminaMaxValue(request: Request.VerifyStaminaMaxValueRequest): Promise<Result.VerifyStaminaMaxValueResult> {
|
|
2035
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/stamina/{staminaName}/max/verify/{verifyType}')
|
|
2036
|
+
.replace('{service}', 'stamina')
|
|
2037
|
+
.replace('{region}', this.session.region)
|
|
2038
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2039
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2040
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2041
|
+
|
|
2042
|
+
const headers = this.createAuthorizedHeaders();
|
|
2043
|
+
if (request.getRequestId()) {
|
|
2044
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2045
|
+
}
|
|
2046
|
+
if (request.getAccessToken()) {
|
|
2047
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
2048
|
+
}
|
|
2049
|
+
if (request.getDuplicationAvoider()) {
|
|
2050
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2051
|
+
}
|
|
2052
|
+
const body: {[key: string]: any} = {
|
|
2053
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2054
|
+
'value': request.getValue() ?? null,
|
|
2055
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2056
|
+
};
|
|
2057
|
+
return axios.post(
|
|
2058
|
+
url,
|
|
2059
|
+
body,
|
|
2060
|
+
{
|
|
2061
|
+
headers,
|
|
2062
|
+
},
|
|
2063
|
+
).then((response: any) => {
|
|
2064
|
+
return Result.VerifyStaminaMaxValueResult.fromDict(response.data);
|
|
2065
|
+
}).catch((error: any) => {
|
|
2066
|
+
if (error.response) {
|
|
2067
|
+
throw JSON.parse(error.response.data.message);
|
|
2068
|
+
} else {
|
|
2069
|
+
throw [];
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
public verifyStaminaMaxValueByUserId(request: Request.VerifyStaminaMaxValueByUserIdRequest): Promise<Result.VerifyStaminaMaxValueByUserIdResult> {
|
|
2075
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/stamina/{staminaName}/max/verify/{verifyType}')
|
|
2076
|
+
.replace('{service}', 'stamina')
|
|
2077
|
+
.replace('{region}', this.session.region)
|
|
2078
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2079
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
2080
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2081
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2082
|
+
|
|
2083
|
+
const headers = this.createAuthorizedHeaders();
|
|
2084
|
+
if (request.getRequestId()) {
|
|
2085
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2086
|
+
}
|
|
2087
|
+
if (request.getDuplicationAvoider()) {
|
|
2088
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2089
|
+
}
|
|
2090
|
+
if (request.getTimeOffsetToken()) {
|
|
2091
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
2092
|
+
}
|
|
2093
|
+
const body: {[key: string]: any} = {
|
|
2094
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2095
|
+
'value': request.getValue() ?? null,
|
|
2096
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2097
|
+
};
|
|
2098
|
+
return axios.post(
|
|
2099
|
+
url,
|
|
2100
|
+
body,
|
|
2101
|
+
{
|
|
2102
|
+
headers,
|
|
2103
|
+
},
|
|
2104
|
+
).then((response: any) => {
|
|
2105
|
+
return Result.VerifyStaminaMaxValueByUserIdResult.fromDict(response.data);
|
|
2106
|
+
}).catch((error: any) => {
|
|
2107
|
+
if (error.response) {
|
|
2108
|
+
throw JSON.parse(error.response.data.message);
|
|
2109
|
+
} else {
|
|
2110
|
+
throw [];
|
|
2111
|
+
}
|
|
2112
|
+
});
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
public verifyStaminaRecoverIntervalMinutes(request: Request.VerifyStaminaRecoverIntervalMinutesRequest): Promise<Result.VerifyStaminaRecoverIntervalMinutesResult> {
|
|
2116
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/stamina/{staminaName}/recover/interval/verify/{verifyType}')
|
|
2117
|
+
.replace('{service}', 'stamina')
|
|
2118
|
+
.replace('{region}', this.session.region)
|
|
2119
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2120
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2121
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2122
|
+
|
|
2123
|
+
const headers = this.createAuthorizedHeaders();
|
|
2124
|
+
if (request.getRequestId()) {
|
|
2125
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2126
|
+
}
|
|
2127
|
+
if (request.getAccessToken()) {
|
|
2128
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
2129
|
+
}
|
|
2130
|
+
if (request.getDuplicationAvoider()) {
|
|
2131
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2132
|
+
}
|
|
2133
|
+
const body: {[key: string]: any} = {
|
|
2134
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2135
|
+
'value': request.getValue() ?? null,
|
|
2136
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2137
|
+
};
|
|
2138
|
+
return axios.post(
|
|
2139
|
+
url,
|
|
2140
|
+
body,
|
|
2141
|
+
{
|
|
2142
|
+
headers,
|
|
2143
|
+
},
|
|
2144
|
+
).then((response: any) => {
|
|
2145
|
+
return Result.VerifyStaminaRecoverIntervalMinutesResult.fromDict(response.data);
|
|
2146
|
+
}).catch((error: any) => {
|
|
2147
|
+
if (error.response) {
|
|
2148
|
+
throw JSON.parse(error.response.data.message);
|
|
2149
|
+
} else {
|
|
2150
|
+
throw [];
|
|
2151
|
+
}
|
|
2152
|
+
});
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
public verifyStaminaRecoverIntervalMinutesByUserId(request: Request.VerifyStaminaRecoverIntervalMinutesByUserIdRequest): Promise<Result.VerifyStaminaRecoverIntervalMinutesByUserIdResult> {
|
|
2156
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/stamina/{staminaName}/recover/interval/verify/{verifyType}')
|
|
2157
|
+
.replace('{service}', 'stamina')
|
|
2158
|
+
.replace('{region}', this.session.region)
|
|
2159
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2160
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
2161
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2162
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2163
|
+
|
|
2164
|
+
const headers = this.createAuthorizedHeaders();
|
|
2165
|
+
if (request.getRequestId()) {
|
|
2166
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2167
|
+
}
|
|
2168
|
+
if (request.getDuplicationAvoider()) {
|
|
2169
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2170
|
+
}
|
|
2171
|
+
if (request.getTimeOffsetToken()) {
|
|
2172
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
2173
|
+
}
|
|
2174
|
+
const body: {[key: string]: any} = {
|
|
2175
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2176
|
+
'value': request.getValue() ?? null,
|
|
2177
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2178
|
+
};
|
|
2179
|
+
return axios.post(
|
|
2180
|
+
url,
|
|
2181
|
+
body,
|
|
2182
|
+
{
|
|
2183
|
+
headers,
|
|
2184
|
+
},
|
|
2185
|
+
).then((response: any) => {
|
|
2186
|
+
return Result.VerifyStaminaRecoverIntervalMinutesByUserIdResult.fromDict(response.data);
|
|
2187
|
+
}).catch((error: any) => {
|
|
2188
|
+
if (error.response) {
|
|
2189
|
+
throw JSON.parse(error.response.data.message);
|
|
2190
|
+
} else {
|
|
2191
|
+
throw [];
|
|
2192
|
+
}
|
|
2193
|
+
});
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
public verifyStaminaRecoverValue(request: Request.VerifyStaminaRecoverValueRequest): Promise<Result.VerifyStaminaRecoverValueResult> {
|
|
2197
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/stamina/{staminaName}/recover/value/verify/{verifyType}')
|
|
2198
|
+
.replace('{service}', 'stamina')
|
|
2199
|
+
.replace('{region}', this.session.region)
|
|
2200
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2201
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2202
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2203
|
+
|
|
2204
|
+
const headers = this.createAuthorizedHeaders();
|
|
2205
|
+
if (request.getRequestId()) {
|
|
2206
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2207
|
+
}
|
|
2208
|
+
if (request.getAccessToken()) {
|
|
2209
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
2210
|
+
}
|
|
2211
|
+
if (request.getDuplicationAvoider()) {
|
|
2212
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2213
|
+
}
|
|
2214
|
+
const body: {[key: string]: any} = {
|
|
2215
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2216
|
+
'value': request.getValue() ?? null,
|
|
2217
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2218
|
+
};
|
|
2219
|
+
return axios.post(
|
|
2220
|
+
url,
|
|
2221
|
+
body,
|
|
2222
|
+
{
|
|
2223
|
+
headers,
|
|
2224
|
+
},
|
|
2225
|
+
).then((response: any) => {
|
|
2226
|
+
return Result.VerifyStaminaRecoverValueResult.fromDict(response.data);
|
|
2227
|
+
}).catch((error: any) => {
|
|
2228
|
+
if (error.response) {
|
|
2229
|
+
throw JSON.parse(error.response.data.message);
|
|
2230
|
+
} else {
|
|
2231
|
+
throw [];
|
|
2232
|
+
}
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
public verifyStaminaRecoverValueByUserId(request: Request.VerifyStaminaRecoverValueByUserIdRequest): Promise<Result.VerifyStaminaRecoverValueByUserIdResult> {
|
|
2237
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/stamina/{staminaName}/recover/value/verify/{verifyType}')
|
|
2238
|
+
.replace('{service}', 'stamina')
|
|
2239
|
+
.replace('{region}', this.session.region)
|
|
2240
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2241
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
2242
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2243
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2244
|
+
|
|
2245
|
+
const headers = this.createAuthorizedHeaders();
|
|
2246
|
+
if (request.getRequestId()) {
|
|
2247
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2248
|
+
}
|
|
2249
|
+
if (request.getDuplicationAvoider()) {
|
|
2250
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2251
|
+
}
|
|
2252
|
+
if (request.getTimeOffsetToken()) {
|
|
2253
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
2254
|
+
}
|
|
2255
|
+
const body: {[key: string]: any} = {
|
|
2256
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2257
|
+
'value': request.getValue() ?? null,
|
|
2258
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2259
|
+
};
|
|
2260
|
+
return axios.post(
|
|
2261
|
+
url,
|
|
2262
|
+
body,
|
|
2263
|
+
{
|
|
2264
|
+
headers,
|
|
2265
|
+
},
|
|
2266
|
+
).then((response: any) => {
|
|
2267
|
+
return Result.VerifyStaminaRecoverValueByUserIdResult.fromDict(response.data);
|
|
2268
|
+
}).catch((error: any) => {
|
|
2269
|
+
if (error.response) {
|
|
2270
|
+
throw JSON.parse(error.response.data.message);
|
|
2271
|
+
} else {
|
|
2272
|
+
throw [];
|
|
2273
|
+
}
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
public verifyStaminaOverflowValue(request: Request.VerifyStaminaOverflowValueRequest): Promise<Result.VerifyStaminaOverflowValueResult> {
|
|
2278
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/stamina/{staminaName}/overflow/value/verify/{verifyType}')
|
|
2279
|
+
.replace('{service}', 'stamina')
|
|
2280
|
+
.replace('{region}', this.session.region)
|
|
2281
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2282
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2283
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2284
|
+
|
|
2285
|
+
const headers = this.createAuthorizedHeaders();
|
|
2286
|
+
if (request.getRequestId()) {
|
|
2287
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2288
|
+
}
|
|
2289
|
+
if (request.getAccessToken()) {
|
|
2290
|
+
headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
|
|
2291
|
+
}
|
|
2292
|
+
if (request.getDuplicationAvoider()) {
|
|
2293
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2294
|
+
}
|
|
2295
|
+
const body: {[key: string]: any} = {
|
|
2296
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2297
|
+
'value': request.getValue() ?? null,
|
|
2298
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2299
|
+
};
|
|
2300
|
+
return axios.post(
|
|
2301
|
+
url,
|
|
2302
|
+
body,
|
|
2303
|
+
{
|
|
2304
|
+
headers,
|
|
2305
|
+
},
|
|
2306
|
+
).then((response: any) => {
|
|
2307
|
+
return Result.VerifyStaminaOverflowValueResult.fromDict(response.data);
|
|
2308
|
+
}).catch((error: any) => {
|
|
2309
|
+
if (error.response) {
|
|
2310
|
+
throw JSON.parse(error.response.data.message);
|
|
2311
|
+
} else {
|
|
2312
|
+
throw [];
|
|
2313
|
+
}
|
|
2314
|
+
});
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
public verifyStaminaOverflowValueByUserId(request: Request.VerifyStaminaOverflowValueByUserIdRequest): Promise<Result.VerifyStaminaOverflowValueByUserIdResult> {
|
|
2318
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/stamina/{staminaName}/overflow/value/verify/{verifyType}')
|
|
2319
|
+
.replace('{service}', 'stamina')
|
|
2320
|
+
.replace('{region}', this.session.region)
|
|
2321
|
+
.replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
|
|
2322
|
+
.replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
|
|
2323
|
+
.replace('{staminaName}', String(request.getStaminaName() ?? 'null') === "" ? "null" : String(request.getStaminaName() ?? 'null'))
|
|
2324
|
+
.replace('{verifyType}', String(request.getVerifyType() ?? 'null') === "" ? "null" : String(request.getVerifyType() ?? 'null'));
|
|
2325
|
+
|
|
2326
|
+
const headers = this.createAuthorizedHeaders();
|
|
2327
|
+
if (request.getRequestId()) {
|
|
2328
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2329
|
+
}
|
|
2330
|
+
if (request.getDuplicationAvoider()) {
|
|
2331
|
+
headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
|
|
2332
|
+
}
|
|
2333
|
+
if (request.getTimeOffsetToken()) {
|
|
2334
|
+
headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
|
|
2335
|
+
}
|
|
2336
|
+
const body: {[key: string]: any} = {
|
|
2337
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2338
|
+
'value': request.getValue() ?? null,
|
|
2339
|
+
'multiplyValueSpecifyingQuantity': request.getMultiplyValueSpecifyingQuantity() ?? null,
|
|
2340
|
+
};
|
|
2341
|
+
return axios.post(
|
|
2342
|
+
url,
|
|
2343
|
+
body,
|
|
2344
|
+
{
|
|
2345
|
+
headers,
|
|
2346
|
+
},
|
|
2347
|
+
).then((response: any) => {
|
|
2348
|
+
return Result.VerifyStaminaOverflowValueByUserIdResult.fromDict(response.data);
|
|
2349
|
+
}).catch((error: any) => {
|
|
2350
|
+
if (error.response) {
|
|
2351
|
+
throw JSON.parse(error.response.data.message);
|
|
2352
|
+
} else {
|
|
2353
|
+
throw [];
|
|
2354
|
+
}
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
|
|
1953
2358
|
public recoverStaminaByStampSheet(request: Request.RecoverStaminaByStampSheetRequest): Promise<Result.RecoverStaminaByStampSheetResult> {
|
|
1954
2359
|
const url = (Gs2Constant.ENDPOINT_HOST + '/stamina/recover')
|
|
1955
2360
|
.replace('{service}', 'stamina')
|
|
@@ -2166,4 +2571,159 @@ export default class Gs2StaminaRestClient extends AbstractGs2RestClient {
|
|
|
2166
2571
|
}
|
|
2167
2572
|
});
|
|
2168
2573
|
}
|
|
2574
|
+
|
|
2575
|
+
public verifyStaminaValueByStampTask(request: Request.VerifyStaminaValueByStampTaskRequest): Promise<Result.VerifyStaminaValueByStampTaskResult> {
|
|
2576
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamina/value/verify')
|
|
2577
|
+
.replace('{service}', 'stamina')
|
|
2578
|
+
.replace('{region}', this.session.region);
|
|
2579
|
+
|
|
2580
|
+
const headers = this.createAuthorizedHeaders();
|
|
2581
|
+
if (request.getRequestId()) {
|
|
2582
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2583
|
+
}
|
|
2584
|
+
const body: {[key: string]: any} = {
|
|
2585
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2586
|
+
'stampTask': request.getStampTask() ?? null,
|
|
2587
|
+
'keyId': request.getKeyId() ?? null,
|
|
2588
|
+
};
|
|
2589
|
+
return axios.post(
|
|
2590
|
+
url,
|
|
2591
|
+
body,
|
|
2592
|
+
{
|
|
2593
|
+
headers,
|
|
2594
|
+
},
|
|
2595
|
+
).then((response: any) => {
|
|
2596
|
+
return Result.VerifyStaminaValueByStampTaskResult.fromDict(response.data);
|
|
2597
|
+
}).catch((error: any) => {
|
|
2598
|
+
if (error.response) {
|
|
2599
|
+
throw JSON.parse(error.response.data.message);
|
|
2600
|
+
} else {
|
|
2601
|
+
throw [];
|
|
2602
|
+
}
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
public verifyStaminaMaxValueByStampTask(request: Request.VerifyStaminaMaxValueByStampTaskRequest): Promise<Result.VerifyStaminaMaxValueByStampTaskResult> {
|
|
2607
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamina/max/verify')
|
|
2608
|
+
.replace('{service}', 'stamina')
|
|
2609
|
+
.replace('{region}', this.session.region);
|
|
2610
|
+
|
|
2611
|
+
const headers = this.createAuthorizedHeaders();
|
|
2612
|
+
if (request.getRequestId()) {
|
|
2613
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2614
|
+
}
|
|
2615
|
+
const body: {[key: string]: any} = {
|
|
2616
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2617
|
+
'stampTask': request.getStampTask() ?? null,
|
|
2618
|
+
'keyId': request.getKeyId() ?? null,
|
|
2619
|
+
};
|
|
2620
|
+
return axios.post(
|
|
2621
|
+
url,
|
|
2622
|
+
body,
|
|
2623
|
+
{
|
|
2624
|
+
headers,
|
|
2625
|
+
},
|
|
2626
|
+
).then((response: any) => {
|
|
2627
|
+
return Result.VerifyStaminaMaxValueByStampTaskResult.fromDict(response.data);
|
|
2628
|
+
}).catch((error: any) => {
|
|
2629
|
+
if (error.response) {
|
|
2630
|
+
throw JSON.parse(error.response.data.message);
|
|
2631
|
+
} else {
|
|
2632
|
+
throw [];
|
|
2633
|
+
}
|
|
2634
|
+
});
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
public verifyStaminaRecoverIntervalMinutesByStampTask(request: Request.VerifyStaminaRecoverIntervalMinutesByStampTaskRequest): Promise<Result.VerifyStaminaRecoverIntervalMinutesByStampTaskResult> {
|
|
2638
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamina/recover/interval/verify')
|
|
2639
|
+
.replace('{service}', 'stamina')
|
|
2640
|
+
.replace('{region}', this.session.region);
|
|
2641
|
+
|
|
2642
|
+
const headers = this.createAuthorizedHeaders();
|
|
2643
|
+
if (request.getRequestId()) {
|
|
2644
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2645
|
+
}
|
|
2646
|
+
const body: {[key: string]: any} = {
|
|
2647
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2648
|
+
'stampTask': request.getStampTask() ?? null,
|
|
2649
|
+
'keyId': request.getKeyId() ?? null,
|
|
2650
|
+
};
|
|
2651
|
+
return axios.post(
|
|
2652
|
+
url,
|
|
2653
|
+
body,
|
|
2654
|
+
{
|
|
2655
|
+
headers,
|
|
2656
|
+
},
|
|
2657
|
+
).then((response: any) => {
|
|
2658
|
+
return Result.VerifyStaminaRecoverIntervalMinutesByStampTaskResult.fromDict(response.data);
|
|
2659
|
+
}).catch((error: any) => {
|
|
2660
|
+
if (error.response) {
|
|
2661
|
+
throw JSON.parse(error.response.data.message);
|
|
2662
|
+
} else {
|
|
2663
|
+
throw [];
|
|
2664
|
+
}
|
|
2665
|
+
});
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2668
|
+
public verifyStaminaRecoverValueByStampTask(request: Request.VerifyStaminaRecoverValueByStampTaskRequest): Promise<Result.VerifyStaminaRecoverValueByStampTaskResult> {
|
|
2669
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamina/recover/value/verify')
|
|
2670
|
+
.replace('{service}', 'stamina')
|
|
2671
|
+
.replace('{region}', this.session.region);
|
|
2672
|
+
|
|
2673
|
+
const headers = this.createAuthorizedHeaders();
|
|
2674
|
+
if (request.getRequestId()) {
|
|
2675
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2676
|
+
}
|
|
2677
|
+
const body: {[key: string]: any} = {
|
|
2678
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2679
|
+
'stampTask': request.getStampTask() ?? null,
|
|
2680
|
+
'keyId': request.getKeyId() ?? null,
|
|
2681
|
+
};
|
|
2682
|
+
return axios.post(
|
|
2683
|
+
url,
|
|
2684
|
+
body,
|
|
2685
|
+
{
|
|
2686
|
+
headers,
|
|
2687
|
+
},
|
|
2688
|
+
).then((response: any) => {
|
|
2689
|
+
return Result.VerifyStaminaRecoverValueByStampTaskResult.fromDict(response.data);
|
|
2690
|
+
}).catch((error: any) => {
|
|
2691
|
+
if (error.response) {
|
|
2692
|
+
throw JSON.parse(error.response.data.message);
|
|
2693
|
+
} else {
|
|
2694
|
+
throw [];
|
|
2695
|
+
}
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
public verifyStaminaOverflowValueByStampTask(request: Request.VerifyStaminaOverflowValueByStampTaskRequest): Promise<Result.VerifyStaminaOverflowValueByStampTaskResult> {
|
|
2700
|
+
const url = (Gs2Constant.ENDPOINT_HOST + '/stamina/overflow/value/verify')
|
|
2701
|
+
.replace('{service}', 'stamina')
|
|
2702
|
+
.replace('{region}', this.session.region);
|
|
2703
|
+
|
|
2704
|
+
const headers = this.createAuthorizedHeaders();
|
|
2705
|
+
if (request.getRequestId()) {
|
|
2706
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
2707
|
+
}
|
|
2708
|
+
const body: {[key: string]: any} = {
|
|
2709
|
+
'contextStack': request.getContextStack() ?? null,
|
|
2710
|
+
'stampTask': request.getStampTask() ?? null,
|
|
2711
|
+
'keyId': request.getKeyId() ?? null,
|
|
2712
|
+
};
|
|
2713
|
+
return axios.post(
|
|
2714
|
+
url,
|
|
2715
|
+
body,
|
|
2716
|
+
{
|
|
2717
|
+
headers,
|
|
2718
|
+
},
|
|
2719
|
+
).then((response: any) => {
|
|
2720
|
+
return Result.VerifyStaminaOverflowValueByStampTaskResult.fromDict(response.data);
|
|
2721
|
+
}).catch((error: any) => {
|
|
2722
|
+
if (error.response) {
|
|
2723
|
+
throw JSON.parse(error.response.data.message);
|
|
2724
|
+
} else {
|
|
2725
|
+
throw [];
|
|
2726
|
+
}
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2169
2729
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import IResult from '../../core/interface/IResult';
|
|
2
|
+
export default class VerifyStaminaMaxValueByStampTaskResult implements IResult {
|
|
3
|
+
private newContextStack;
|
|
4
|
+
getNewContextStack(): string | null;
|
|
5
|
+
setNewContextStack(newContextStack: string | null): this;
|
|
6
|
+
withNewContextStack(newContextStack: string | null): this;
|
|
7
|
+
static fromDict(data: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}): VerifyStaminaMaxValueByStampTaskResult;
|
|
10
|
+
toDict(): {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var VerifyStaminaMaxValueByStampTaskResult = /** @class */ (function () {
|
|
19
|
+
function VerifyStaminaMaxValueByStampTaskResult() {
|
|
20
|
+
this.newContextStack = null;
|
|
21
|
+
}
|
|
22
|
+
VerifyStaminaMaxValueByStampTaskResult.prototype.getNewContextStack = function () {
|
|
23
|
+
return this.newContextStack;
|
|
24
|
+
};
|
|
25
|
+
VerifyStaminaMaxValueByStampTaskResult.prototype.setNewContextStack = function (newContextStack) {
|
|
26
|
+
this.newContextStack = newContextStack;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
VerifyStaminaMaxValueByStampTaskResult.prototype.withNewContextStack = function (newContextStack) {
|
|
30
|
+
this.newContextStack = newContextStack;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
VerifyStaminaMaxValueByStampTaskResult.fromDict = function (data) {
|
|
34
|
+
return new VerifyStaminaMaxValueByStampTaskResult()
|
|
35
|
+
.withNewContextStack(data["newContextStack"]);
|
|
36
|
+
};
|
|
37
|
+
VerifyStaminaMaxValueByStampTaskResult.prototype.toDict = function () {
|
|
38
|
+
return {
|
|
39
|
+
"newContextStack": this.getNewContextStack(),
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
return VerifyStaminaMaxValueByStampTaskResult;
|
|
43
|
+
}());
|
|
44
|
+
exports.default = VerifyStaminaMaxValueByStampTaskResult;
|
|
45
|
+
//# sourceMappingURL=VerifyStaminaMaxValueByStampTaskResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VerifyStaminaMaxValueByStampTaskResult.js","sourceRoot":"","sources":["VerifyStaminaMaxValueByStampTaskResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;IA0BhD,CAAC;IAxBU,mEAAkB,GAAzB;QACI,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAEM,mEAAkB,GAAzB,UAA0B,eAA4B;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oEAAmB,GAA1B,UAA2B,eAA4B;QACnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,+CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,sCAAsC,EAAE;aAC9C,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,CAAC;IAEM,uDAAM,GAAb;QACI,OAAO;YACH,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;SAC/C,CAAC;IACN,CAAC;IACL,6CAAC;AAAD,CAAC,AA3BD,IA2BC"}
|