gs2 1.3.83 → 1.3.86
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/lottery/model/DrawnPrize.d.ts +4 -0
- package/lottery/model/DrawnPrize.js +14 -0
- package/lottery/model/DrawnPrize.js.map +1 -1
- package/lottery/model/DrawnPrize.ts +14 -0
- package/lottery/model/Prize.d.ts +8 -0
- package/lottery/model/Prize.js +28 -0
- package/lottery/model/Prize.js.map +1 -1
- package/lottery/model/Prize.ts +28 -0
- package/lottery/model/PrizeLimit.d.ts +36 -0
- package/lottery/model/PrizeLimit.js +191 -0
- package/lottery/model/PrizeLimit.js.map +1 -0
- package/lottery/model/PrizeLimit.ts +207 -0
- package/lottery/model/index.d.ts +2 -1
- package/lottery/model/index.js +3 -1
- package/lottery/model/index.js.map +1 -1
- package/lottery/model/index.ts +2 -0
- package/lottery/request/DescribePrizeLimitsRequest.d.ts +33 -0
- package/lottery/request/DescribePrizeLimitsRequest.js +111 -0
- package/lottery/request/DescribePrizeLimitsRequest.js.map +1 -0
- package/lottery/request/DescribePrizeLimitsRequest.ts +118 -0
- package/lottery/request/GetPrizeLimitRequest.d.ts +29 -0
- package/lottery/request/GetPrizeLimitRequest.js +97 -0
- package/lottery/request/GetPrizeLimitRequest.js.map +1 -0
- package/lottery/request/GetPrizeLimitRequest.ts +104 -0
- package/lottery/request/ResetPrizeLimitRequest.d.ts +29 -0
- package/lottery/request/ResetPrizeLimitRequest.js +97 -0
- package/lottery/request/ResetPrizeLimitRequest.js.map +1 -0
- package/lottery/request/ResetPrizeLimitRequest.ts +104 -0
- package/lottery/request/index.d.ts +4 -1
- package/lottery/request/index.js +7 -1
- package/lottery/request/index.js.map +1 -1
- package/lottery/request/index.ts +6 -0
- package/lottery/rest.d.ts +3 -0
- package/lottery/rest.js +73 -0
- package/lottery/rest.js.map +1 -1
- package/lottery/rest.ts +85 -0
- package/lottery/result/DescribePrizeLimitsResult.d.ts +18 -0
- package/lottery/result/DescribePrizeLimitsResult.js +67 -0
- package/lottery/result/DescribePrizeLimitsResult.js.map +1 -0
- package/lottery/result/DescribePrizeLimitsResult.ts +73 -0
- package/lottery/result/GetPrizeLimitResult.d.ts +14 -0
- package/lottery/result/GetPrizeLimitResult.js +48 -0
- package/lottery/result/GetPrizeLimitResult.js.map +1 -0
- package/lottery/result/GetPrizeLimitResult.ts +48 -0
- package/lottery/result/ResetPrizeLimitResult.d.ts +9 -0
- package/lottery/result/ResetPrizeLimitResult.js +30 -0
- package/lottery/result/ResetPrizeLimitResult.js.map +1 -0
- package/lottery/result/ResetPrizeLimitResult.ts +31 -0
- package/lottery/result/index.d.ts +4 -1
- package/lottery/result/index.js +7 -1
- package/lottery/result/index.js.map +1 -1
- package/lottery/result/index.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Lottery from '../model'
|
|
20
|
+
|
|
21
|
+
export default class GetPrizeLimitRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private prizeTableName: string|null = null;
|
|
27
|
+
private prizeId: string|null = null;
|
|
28
|
+
|
|
29
|
+
public getRequestId(): string|null {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public setRequestId(requestId: string|null) {
|
|
34
|
+
this.requestId = requestId;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public withRequestId(requestId: string|null): this {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public getContextStack(): string|null {
|
|
44
|
+
return this.contextStack;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public setContextStack(contextStack: string|null) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public withContextStack(contextStack: string|null): this {
|
|
53
|
+
this.contextStack = contextStack;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
public getNamespaceName(): string|null {
|
|
57
|
+
return this.namespaceName;
|
|
58
|
+
}
|
|
59
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
60
|
+
this.namespaceName = namespaceName;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
64
|
+
this.namespaceName = namespaceName;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
public getPrizeTableName(): string|null {
|
|
68
|
+
return this.prizeTableName;
|
|
69
|
+
}
|
|
70
|
+
public setPrizeTableName(prizeTableName: string|null) {
|
|
71
|
+
this.prizeTableName = prizeTableName;
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
public withPrizeTableName(prizeTableName: string|null): this {
|
|
75
|
+
this.prizeTableName = prizeTableName;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
public getPrizeId(): string|null {
|
|
79
|
+
return this.prizeId;
|
|
80
|
+
}
|
|
81
|
+
public setPrizeId(prizeId: string|null) {
|
|
82
|
+
this.prizeId = prizeId;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
public withPrizeId(prizeId: string|null): this {
|
|
86
|
+
this.prizeId = prizeId;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public static fromDict(data: {[key: string]: any}): GetPrizeLimitRequest {
|
|
91
|
+
return new GetPrizeLimitRequest()
|
|
92
|
+
.withNamespaceName(data["namespaceName"])
|
|
93
|
+
.withPrizeTableName(data["prizeTableName"])
|
|
94
|
+
.withPrizeId(data["prizeId"]);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public toDict(): {[key: string]: any} {
|
|
98
|
+
return {
|
|
99
|
+
"namespaceName": this.getNamespaceName(),
|
|
100
|
+
"prizeTableName": this.getPrizeTableName(),
|
|
101
|
+
"prizeId": this.getPrizeId(),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import IRequest from '../../core/interface/IRequest';
|
|
2
|
+
export default class ResetPrizeLimitRequest implements IRequest {
|
|
3
|
+
private requestId;
|
|
4
|
+
private contextStack;
|
|
5
|
+
private namespaceName;
|
|
6
|
+
private prizeTableName;
|
|
7
|
+
private prizeId;
|
|
8
|
+
getRequestId(): string | null;
|
|
9
|
+
setRequestId(requestId: string | null): this;
|
|
10
|
+
withRequestId(requestId: string | null): this;
|
|
11
|
+
getContextStack(): string | null;
|
|
12
|
+
setContextStack(contextStack: string | null): this;
|
|
13
|
+
withContextStack(contextStack: string | null): this;
|
|
14
|
+
getNamespaceName(): string | null;
|
|
15
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
16
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
17
|
+
getPrizeTableName(): string | null;
|
|
18
|
+
setPrizeTableName(prizeTableName: string | null): this;
|
|
19
|
+
withPrizeTableName(prizeTableName: string | null): this;
|
|
20
|
+
getPrizeId(): string | null;
|
|
21
|
+
setPrizeId(prizeId: string | null): this;
|
|
22
|
+
withPrizeId(prizeId: string | null): this;
|
|
23
|
+
static fromDict(data: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}): ResetPrizeLimitRequest;
|
|
26
|
+
toDict(): {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 ResetPrizeLimitRequest = /** @class */ (function () {
|
|
19
|
+
function ResetPrizeLimitRequest() {
|
|
20
|
+
this.requestId = null;
|
|
21
|
+
this.contextStack = null;
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.prizeTableName = null;
|
|
24
|
+
this.prizeId = null;
|
|
25
|
+
}
|
|
26
|
+
ResetPrizeLimitRequest.prototype.getRequestId = function () {
|
|
27
|
+
return this.requestId;
|
|
28
|
+
};
|
|
29
|
+
ResetPrizeLimitRequest.prototype.setRequestId = function (requestId) {
|
|
30
|
+
this.requestId = requestId;
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
ResetPrizeLimitRequest.prototype.withRequestId = function (requestId) {
|
|
34
|
+
this.requestId = requestId;
|
|
35
|
+
return this;
|
|
36
|
+
};
|
|
37
|
+
ResetPrizeLimitRequest.prototype.getContextStack = function () {
|
|
38
|
+
return this.contextStack;
|
|
39
|
+
};
|
|
40
|
+
ResetPrizeLimitRequest.prototype.setContextStack = function (contextStack) {
|
|
41
|
+
this.contextStack = contextStack;
|
|
42
|
+
return this;
|
|
43
|
+
};
|
|
44
|
+
ResetPrizeLimitRequest.prototype.withContextStack = function (contextStack) {
|
|
45
|
+
this.contextStack = contextStack;
|
|
46
|
+
return this;
|
|
47
|
+
};
|
|
48
|
+
ResetPrizeLimitRequest.prototype.getNamespaceName = function () {
|
|
49
|
+
return this.namespaceName;
|
|
50
|
+
};
|
|
51
|
+
ResetPrizeLimitRequest.prototype.setNamespaceName = function (namespaceName) {
|
|
52
|
+
this.namespaceName = namespaceName;
|
|
53
|
+
return this;
|
|
54
|
+
};
|
|
55
|
+
ResetPrizeLimitRequest.prototype.withNamespaceName = function (namespaceName) {
|
|
56
|
+
this.namespaceName = namespaceName;
|
|
57
|
+
return this;
|
|
58
|
+
};
|
|
59
|
+
ResetPrizeLimitRequest.prototype.getPrizeTableName = function () {
|
|
60
|
+
return this.prizeTableName;
|
|
61
|
+
};
|
|
62
|
+
ResetPrizeLimitRequest.prototype.setPrizeTableName = function (prizeTableName) {
|
|
63
|
+
this.prizeTableName = prizeTableName;
|
|
64
|
+
return this;
|
|
65
|
+
};
|
|
66
|
+
ResetPrizeLimitRequest.prototype.withPrizeTableName = function (prizeTableName) {
|
|
67
|
+
this.prizeTableName = prizeTableName;
|
|
68
|
+
return this;
|
|
69
|
+
};
|
|
70
|
+
ResetPrizeLimitRequest.prototype.getPrizeId = function () {
|
|
71
|
+
return this.prizeId;
|
|
72
|
+
};
|
|
73
|
+
ResetPrizeLimitRequest.prototype.setPrizeId = function (prizeId) {
|
|
74
|
+
this.prizeId = prizeId;
|
|
75
|
+
return this;
|
|
76
|
+
};
|
|
77
|
+
ResetPrizeLimitRequest.prototype.withPrizeId = function (prizeId) {
|
|
78
|
+
this.prizeId = prizeId;
|
|
79
|
+
return this;
|
|
80
|
+
};
|
|
81
|
+
ResetPrizeLimitRequest.fromDict = function (data) {
|
|
82
|
+
return new ResetPrizeLimitRequest()
|
|
83
|
+
.withNamespaceName(data["namespaceName"])
|
|
84
|
+
.withPrizeTableName(data["prizeTableName"])
|
|
85
|
+
.withPrizeId(data["prizeId"]);
|
|
86
|
+
};
|
|
87
|
+
ResetPrizeLimitRequest.prototype.toDict = function () {
|
|
88
|
+
return {
|
|
89
|
+
"namespaceName": this.getNamespaceName(),
|
|
90
|
+
"prizeTableName": this.getPrizeTableName(),
|
|
91
|
+
"prizeId": this.getPrizeId(),
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
return ResetPrizeLimitRequest;
|
|
95
|
+
}());
|
|
96
|
+
exports.default = ResetPrizeLimitRequest;
|
|
97
|
+
//# sourceMappingURL=ResetPrizeLimitRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetPrizeLimitRequest.js","sourceRoot":"","sources":["ResetPrizeLimitRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,mBAAc,GAAgB,IAAI,CAAC;QACnC,YAAO,GAAgB,IAAI,CAAC;IA6ExC,CAAC;IA3EU,6CAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,6CAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,8CAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,Y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,CAAC,eAAe,CAAC,CAAC;aACxC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aAC1C,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,uCAAM,GAAb;QACI,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EAAE;YAC1C,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,6BAAC;AAAD,CAAC,AAnFD,IAmFC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IRequest from '../../core/interface/IRequest';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Lottery from '../model'
|
|
20
|
+
|
|
21
|
+
export default class ResetPrizeLimitRequest implements IRequest {
|
|
22
|
+
|
|
23
|
+
private requestId: string|null = null;
|
|
24
|
+
private contextStack: string|null = null;
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private prizeTableName: string|null = null;
|
|
27
|
+
private prizeId: string|null = null;
|
|
28
|
+
|
|
29
|
+
public getRequestId(): string|null {
|
|
30
|
+
return this.requestId;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public setRequestId(requestId: string|null) {
|
|
34
|
+
this.requestId = requestId;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public withRequestId(requestId: string|null): this {
|
|
39
|
+
this.requestId = requestId;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public getContextStack(): string|null {
|
|
44
|
+
return this.contextStack;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public setContextStack(contextStack: string|null) {
|
|
48
|
+
this.contextStack = contextStack;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public withContextStack(contextStack: string|null): this {
|
|
53
|
+
this.contextStack = contextStack;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
public getNamespaceName(): string|null {
|
|
57
|
+
return this.namespaceName;
|
|
58
|
+
}
|
|
59
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
60
|
+
this.namespaceName = namespaceName;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
64
|
+
this.namespaceName = namespaceName;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
public getPrizeTableName(): string|null {
|
|
68
|
+
return this.prizeTableName;
|
|
69
|
+
}
|
|
70
|
+
public setPrizeTableName(prizeTableName: string|null) {
|
|
71
|
+
this.prizeTableName = prizeTableName;
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
public withPrizeTableName(prizeTableName: string|null): this {
|
|
75
|
+
this.prizeTableName = prizeTableName;
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
public getPrizeId(): string|null {
|
|
79
|
+
return this.prizeId;
|
|
80
|
+
}
|
|
81
|
+
public setPrizeId(prizeId: string|null) {
|
|
82
|
+
this.prizeId = prizeId;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
public withPrizeId(prizeId: string|null): this {
|
|
86
|
+
this.prizeId = prizeId;
|
|
87
|
+
return this;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public static fromDict(data: {[key: string]: any}): ResetPrizeLimitRequest {
|
|
91
|
+
return new ResetPrizeLimitRequest()
|
|
92
|
+
.withNamespaceName(data["namespaceName"])
|
|
93
|
+
.withPrizeTableName(data["prizeTableName"])
|
|
94
|
+
.withPrizeId(data["prizeId"]);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public toDict(): {[key: string]: any} {
|
|
98
|
+
return {
|
|
99
|
+
"namespaceName": this.getNamespaceName(),
|
|
100
|
+
"prizeTableName": this.getPrizeTableName(),
|
|
101
|
+
"prizeId": this.getPrizeId(),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -32,4 +32,7 @@ import ExportMasterRequest from "./ExportMasterRequest";
|
|
|
32
32
|
import GetCurrentLotteryMasterRequest from "./GetCurrentLotteryMasterRequest";
|
|
33
33
|
import UpdateCurrentLotteryMasterRequest from "./UpdateCurrentLotteryMasterRequest";
|
|
34
34
|
import UpdateCurrentLotteryMasterFromGitHubRequest from "./UpdateCurrentLotteryMasterFromGitHubRequest";
|
|
35
|
-
|
|
35
|
+
import DescribePrizeLimitsRequest from "./DescribePrizeLimitsRequest";
|
|
36
|
+
import GetPrizeLimitRequest from "./GetPrizeLimitRequest";
|
|
37
|
+
import ResetPrizeLimitRequest from "./ResetPrizeLimitRequest";
|
|
38
|
+
export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DescribeLotteryModelMastersRequest, CreateLotteryModelMasterRequest, GetLotteryModelMasterRequest, UpdateLotteryModelMasterRequest, DeleteLotteryModelMasterRequest, DescribePrizeTableMastersRequest, CreatePrizeTableMasterRequest, GetPrizeTableMasterRequest, UpdatePrizeTableMasterRequest, DeletePrizeTableMasterRequest, DescribeBoxesRequest, DescribeBoxesByUserIdRequest, GetBoxRequest, GetBoxByUserIdRequest, ResetBoxRequest, ResetBoxByUserIdRequest, DescribeLotteryModelsRequest, GetLotteryModelRequest, DescribePrizeTablesRequest, GetPrizeTableRequest, DrawByUserIdRequest, DrawByStampSheetRequest, DescribeProbabilitiesRequest, DescribeProbabilitiesByUserIdRequest, ExportMasterRequest, GetCurrentLotteryMasterRequest, UpdateCurrentLotteryMasterRequest, UpdateCurrentLotteryMasterFromGitHubRequest, DescribePrizeLimitsRequest, GetPrizeLimitRequest, ResetPrizeLimitRequest, };
|
package/lottery/request/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCurrentLotteryMasterFromGitHubRequest = exports.UpdateCurrentLotteryMasterRequest = exports.GetCurrentLotteryMasterRequest = exports.ExportMasterRequest = exports.DescribeProbabilitiesByUserIdRequest = exports.DescribeProbabilitiesRequest = exports.DrawByStampSheetRequest = exports.DrawByUserIdRequest = exports.GetPrizeTableRequest = exports.DescribePrizeTablesRequest = exports.GetLotteryModelRequest = exports.DescribeLotteryModelsRequest = exports.ResetBoxByUserIdRequest = exports.ResetBoxRequest = exports.GetBoxByUserIdRequest = exports.GetBoxRequest = exports.DescribeBoxesByUserIdRequest = exports.DescribeBoxesRequest = exports.DeletePrizeTableMasterRequest = exports.UpdatePrizeTableMasterRequest = exports.GetPrizeTableMasterRequest = exports.CreatePrizeTableMasterRequest = exports.DescribePrizeTableMastersRequest = exports.DeleteLotteryModelMasterRequest = exports.UpdateLotteryModelMasterRequest = exports.GetLotteryModelMasterRequest = exports.CreateLotteryModelMasterRequest = exports.DescribeLotteryModelMastersRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
3
|
+
exports.ResetPrizeLimitRequest = exports.GetPrizeLimitRequest = exports.DescribePrizeLimitsRequest = exports.UpdateCurrentLotteryMasterFromGitHubRequest = exports.UpdateCurrentLotteryMasterRequest = exports.GetCurrentLotteryMasterRequest = exports.ExportMasterRequest = exports.DescribeProbabilitiesByUserIdRequest = exports.DescribeProbabilitiesRequest = exports.DrawByStampSheetRequest = exports.DrawByUserIdRequest = exports.GetPrizeTableRequest = exports.DescribePrizeTablesRequest = exports.GetLotteryModelRequest = exports.DescribeLotteryModelsRequest = exports.ResetBoxByUserIdRequest = exports.ResetBoxRequest = exports.GetBoxByUserIdRequest = exports.GetBoxRequest = exports.DescribeBoxesByUserIdRequest = exports.DescribeBoxesRequest = exports.DeletePrizeTableMasterRequest = exports.UpdatePrizeTableMasterRequest = exports.GetPrizeTableMasterRequest = exports.CreatePrizeTableMasterRequest = exports.DescribePrizeTableMastersRequest = exports.DeleteLotteryModelMasterRequest = exports.UpdateLotteryModelMasterRequest = exports.GetLotteryModelMasterRequest = exports.CreateLotteryModelMasterRequest = exports.DescribeLotteryModelMastersRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -85,4 +85,10 @@ var UpdateCurrentLotteryMasterRequest_1 = tslib_1.__importDefault(require("./Upd
|
|
|
85
85
|
exports.UpdateCurrentLotteryMasterRequest = UpdateCurrentLotteryMasterRequest_1.default;
|
|
86
86
|
var UpdateCurrentLotteryMasterFromGitHubRequest_1 = tslib_1.__importDefault(require("./UpdateCurrentLotteryMasterFromGitHubRequest"));
|
|
87
87
|
exports.UpdateCurrentLotteryMasterFromGitHubRequest = UpdateCurrentLotteryMasterFromGitHubRequest_1.default;
|
|
88
|
+
var DescribePrizeLimitsRequest_1 = tslib_1.__importDefault(require("./DescribePrizeLimitsRequest"));
|
|
89
|
+
exports.DescribePrizeLimitsRequest = DescribePrizeLimitsRequest_1.default;
|
|
90
|
+
var GetPrizeLimitRequest_1 = tslib_1.__importDefault(require("./GetPrizeLimitRequest"));
|
|
91
|
+
exports.GetPrizeLimitRequest = GetPrizeLimitRequest_1.default;
|
|
92
|
+
var ResetPrizeLimitRequest_1 = tslib_1.__importDefault(require("./ResetPrizeLimitRequest"));
|
|
93
|
+
exports.ResetPrizeLimitRequest = ResetPrizeLimitRequest_1.default;
|
|
88
94
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAmE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAmE;AAuC/D,oCAvCG,mCAAyB,CAuCH;AAtC7B,4FAA6D;AAuCzD,iCAvCG,gCAAsB,CAuCH;AAtC1B,kGAAmE;AAuC/D,oCAvCG,mCAAyB,CAuCH;AAtC7B,sFAAuD;AAuCnD,8BAvCG,6BAAmB,CAuCH;AAtCvB,4FAA6D;AAuCzD,iCAvCG,gCAAsB,CAuCH;AAtC1B,4FAA6D;AAuCzD,iCAvCG,gCAAsB,CAuCH;AAtC1B,oHAAqF;AAuCjF,6CAvCG,4CAAkC,CAuCH;AAtCtC,8GAA+E;AAuC3E,0CAvCG,yCAA+B,CAuCH;AAtCnC,wGAAyE;AAuCrE,uCAvCG,sCAA4B,CAuCH;AAtChC,8GAA+E;AAuC3E,0CAvCG,yCAA+B,CAuCH;AAtCnC,8GAA+E;AAuC3E,0CAvCG,yCAA+B,CAuCH;AAtCnC,gHAAiF;AAuC7E,2CAvCG,0CAAgC,CAuCH;AAtCpC,0GAA2E;AAuCvE,wCAvCG,uCAA6B,CAuCH;AAtCjC,oGAAqE;AAuCjE,qCAvCG,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
|
import GetCurrentLotteryMasterRequest from "./GetCurrentLotteryMasterRequest"
|
|
48
48
|
import UpdateCurrentLotteryMasterRequest from "./UpdateCurrentLotteryMasterRequest"
|
|
49
49
|
import UpdateCurrentLotteryMasterFromGitHubRequest from "./UpdateCurrentLotteryMasterFromGitHubRequest"
|
|
50
|
+
import DescribePrizeLimitsRequest from "./DescribePrizeLimitsRequest"
|
|
51
|
+
import GetPrizeLimitRequest from "./GetPrizeLimitRequest"
|
|
52
|
+
import ResetPrizeLimitRequest from "./ResetPrizeLimitRequest"
|
|
50
53
|
|
|
51
54
|
export {
|
|
52
55
|
DescribeNamespacesRequest,
|
|
@@ -83,4 +86,7 @@ export {
|
|
|
83
86
|
GetCurrentLotteryMasterRequest,
|
|
84
87
|
UpdateCurrentLotteryMasterRequest,
|
|
85
88
|
UpdateCurrentLotteryMasterFromGitHubRequest,
|
|
89
|
+
DescribePrizeLimitsRequest,
|
|
90
|
+
GetPrizeLimitRequest,
|
|
91
|
+
ResetPrizeLimitRequest,
|
|
86
92
|
};
|
package/lottery/rest.d.ts
CHANGED
|
@@ -38,4 +38,7 @@ export default class Gs2LotteryRestClient extends AbstractGs2RestClient {
|
|
|
38
38
|
getCurrentLotteryMaster(request: Request.GetCurrentLotteryMasterRequest): Promise<Result.GetCurrentLotteryMasterResult>;
|
|
39
39
|
updateCurrentLotteryMaster(request: Request.UpdateCurrentLotteryMasterRequest): Promise<Result.UpdateCurrentLotteryMasterResult>;
|
|
40
40
|
updateCurrentLotteryMasterFromGitHub(request: Request.UpdateCurrentLotteryMasterFromGitHubRequest): Promise<Result.UpdateCurrentLotteryMasterFromGitHubResult>;
|
|
41
|
+
describePrizeLimits(request: Request.DescribePrizeLimitsRequest): Promise<Result.DescribePrizeLimitsResult>;
|
|
42
|
+
getPrizeLimit(request: Request.GetPrizeLimitRequest): Promise<Result.GetPrizeLimitResult>;
|
|
43
|
+
resetPrizeLimit(request: Request.ResetPrizeLimitRequest): Promise<Result.ResetPrizeLimitResult>;
|
|
41
44
|
}
|
package/lottery/rest.js
CHANGED
|
@@ -899,6 +899,79 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
|
|
|
899
899
|
}
|
|
900
900
|
});
|
|
901
901
|
};
|
|
902
|
+
Gs2LotteryRestClient.prototype.describePrizeLimits = function (request) {
|
|
903
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
904
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}')
|
|
905
|
+
.replace('{service}', 'lottery')
|
|
906
|
+
.replace('{region}', this.session.region)
|
|
907
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
908
|
+
.replace('{prizeTableName}', String((_c = request.getPrizeTableName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null'));
|
|
909
|
+
var headers = this.createAuthorizedHeaders();
|
|
910
|
+
if (request.getRequestId()) {
|
|
911
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
912
|
+
}
|
|
913
|
+
var params = {
|
|
914
|
+
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
915
|
+
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
916
|
+
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
917
|
+
};
|
|
918
|
+
return axios_1.default.get(url, {
|
|
919
|
+
params: params,
|
|
920
|
+
headers: headers,
|
|
921
|
+
}).then(function (response) {
|
|
922
|
+
return Result.DescribePrizeLimitsResult.fromDict(response.data);
|
|
923
|
+
}).catch(function (error) {
|
|
924
|
+
throw JSON.parse(error.response.data.message);
|
|
925
|
+
});
|
|
926
|
+
};
|
|
927
|
+
Gs2LotteryRestClient.prototype.getPrizeLimit = function (request) {
|
|
928
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
929
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}/{prizeId}')
|
|
930
|
+
.replace('{service}', 'lottery')
|
|
931
|
+
.replace('{region}', this.session.region)
|
|
932
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
933
|
+
.replace('{prizeTableName}', String((_c = request.getPrizeTableName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
934
|
+
.replace('{prizeId}', String((_e = request.getPrizeId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getPrizeId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
935
|
+
var headers = this.createAuthorizedHeaders();
|
|
936
|
+
if (request.getRequestId()) {
|
|
937
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
938
|
+
}
|
|
939
|
+
var params = {
|
|
940
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
941
|
+
};
|
|
942
|
+
return axios_1.default.get(url, {
|
|
943
|
+
params: params,
|
|
944
|
+
headers: headers,
|
|
945
|
+
}).then(function (response) {
|
|
946
|
+
return Result.GetPrizeLimitResult.fromDict(response.data);
|
|
947
|
+
}).catch(function (error) {
|
|
948
|
+
throw JSON.parse(error.response.data.message);
|
|
949
|
+
});
|
|
950
|
+
};
|
|
951
|
+
Gs2LotteryRestClient.prototype.resetPrizeLimit = function (request) {
|
|
952
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
953
|
+
var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/prizeLimit/{prizeTableName}/{prizeId}')
|
|
954
|
+
.replace('{service}', 'lottery')
|
|
955
|
+
.replace('{region}', this.session.region)
|
|
956
|
+
.replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
|
|
957
|
+
.replace('{prizeTableName}', String((_c = request.getPrizeTableName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getPrizeTableName()) !== null && _d !== void 0 ? _d : 'null'))
|
|
958
|
+
.replace('{prizeId}', String((_e = request.getPrizeId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getPrizeId()) !== null && _f !== void 0 ? _f : 'null'));
|
|
959
|
+
var headers = this.createAuthorizedHeaders();
|
|
960
|
+
if (request.getRequestId()) {
|
|
961
|
+
headers['X-GS2-REQUEST-ID'] = request.getRequestId();
|
|
962
|
+
}
|
|
963
|
+
var params = {
|
|
964
|
+
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
965
|
+
};
|
|
966
|
+
return axios_1.default.delete(url, {
|
|
967
|
+
params: params,
|
|
968
|
+
headers: headers,
|
|
969
|
+
}).then(function (response) {
|
|
970
|
+
return Result.ResetPrizeLimitResult.fromDict(response.data);
|
|
971
|
+
}).catch(function (error) {
|
|
972
|
+
throw JSON.parse(error.response.data.message);
|
|
973
|
+
});
|
|
974
|
+
};
|
|
902
975
|
return Gs2LotteryRestClient;
|
|
903
976
|
}(AbstractGs2RestClient_1.default));
|
|
904
977
|
exports.default = Gs2LotteryRestClient;
|