gs2 1.3.199 → 1.3.200

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.
Files changed (109) hide show
  1. package/enhance/model/UnleashRateEntryModel.d.ts +17 -0
  2. package/enhance/model/UnleashRateEntryModel.js +62 -0
  3. package/enhance/model/UnleashRateEntryModel.js.map +1 -0
  4. package/enhance/model/UnleashRateEntryModel.ts +60 -0
  5. package/enhance/model/UnleashRateModel.d.ts +44 -0
  6. package/enhance/model/UnleashRateModel.js +207 -0
  7. package/enhance/model/UnleashRateModel.js.map +1 -0
  8. package/enhance/model/UnleashRateModel.ts +221 -0
  9. package/enhance/model/UnleashRateModelMaster.d.ts +56 -0
  10. package/enhance/model/UnleashRateModelMaster.js +249 -0
  11. package/enhance/model/UnleashRateModelMaster.js.map +1 -0
  12. package/enhance/model/UnleashRateModelMaster.ts +263 -0
  13. package/enhance/model/index.d.ts +4 -1
  14. package/enhance/model/index.js +7 -1
  15. package/enhance/model/index.js.map +1 -1
  16. package/enhance/model/index.ts +6 -0
  17. package/enhance/request/CreateUnleashRateModelMasterRequest.d.ts +46 -0
  18. package/enhance/request/CreateUnleashRateModelMasterRequest.js +161 -0
  19. package/enhance/request/CreateUnleashRateModelMasterRequest.js.map +1 -0
  20. package/enhance/request/CreateUnleashRateModelMasterRequest.ts +168 -0
  21. package/enhance/request/DeleteUnleashRateModelMasterRequest.d.ts +25 -0
  22. package/enhance/request/DeleteUnleashRateModelMasterRequest.js +83 -0
  23. package/enhance/request/DeleteUnleashRateModelMasterRequest.js.map +1 -0
  24. package/enhance/request/DeleteUnleashRateModelMasterRequest.ts +90 -0
  25. package/enhance/request/DescribeUnleashRateModelMastersRequest.d.ts +29 -0
  26. package/enhance/request/DescribeUnleashRateModelMastersRequest.js +97 -0
  27. package/enhance/request/DescribeUnleashRateModelMastersRequest.js.map +1 -0
  28. package/enhance/request/DescribeUnleashRateModelMastersRequest.ts +104 -0
  29. package/enhance/request/DescribeUnleashRateModelsRequest.d.ts +21 -0
  30. package/enhance/request/DescribeUnleashRateModelsRequest.js +69 -0
  31. package/enhance/request/DescribeUnleashRateModelsRequest.js.map +1 -0
  32. package/enhance/request/DescribeUnleashRateModelsRequest.ts +76 -0
  33. package/enhance/request/GetUnleashRateModelMasterRequest.d.ts +25 -0
  34. package/enhance/request/GetUnleashRateModelMasterRequest.js +83 -0
  35. package/enhance/request/GetUnleashRateModelMasterRequest.js.map +1 -0
  36. package/enhance/request/GetUnleashRateModelMasterRequest.ts +90 -0
  37. package/enhance/request/GetUnleashRateModelRequest.d.ts +25 -0
  38. package/enhance/request/GetUnleashRateModelRequest.js +83 -0
  39. package/enhance/request/GetUnleashRateModelRequest.js.map +1 -0
  40. package/enhance/request/GetUnleashRateModelRequest.ts +90 -0
  41. package/enhance/request/UnleashByStampSheetRequest.d.ts +25 -0
  42. package/enhance/request/UnleashByStampSheetRequest.js +83 -0
  43. package/enhance/request/UnleashByStampSheetRequest.js.map +1 -0
  44. package/enhance/request/UnleashByStampSheetRequest.ts +90 -0
  45. package/enhance/request/UnleashByUserIdRequest.d.ts +46 -0
  46. package/enhance/request/UnleashByUserIdRequest.js +165 -0
  47. package/enhance/request/UnleashByUserIdRequest.js.map +1 -0
  48. package/enhance/request/UnleashByUserIdRequest.ts +177 -0
  49. package/enhance/request/UnleashRequest.d.ts +46 -0
  50. package/enhance/request/UnleashRequest.js +165 -0
  51. package/enhance/request/UnleashRequest.js.map +1 -0
  52. package/enhance/request/UnleashRequest.ts +177 -0
  53. package/enhance/request/UpdateUnleashRateModelMasterRequest.d.ts +46 -0
  54. package/enhance/request/UpdateUnleashRateModelMasterRequest.js +161 -0
  55. package/enhance/request/UpdateUnleashRateModelMasterRequest.js.map +1 -0
  56. package/enhance/request/UpdateUnleashRateModelMasterRequest.ts +168 -0
  57. package/enhance/request/index.d.ts +11 -1
  58. package/enhance/request/index.js +21 -1
  59. package/enhance/request/index.js.map +1 -1
  60. package/enhance/request/index.ts +20 -0
  61. package/enhance/rest.d.ts +10 -0
  62. package/enhance/rest.js +276 -0
  63. package/enhance/rest.js.map +1 -1
  64. package/enhance/rest.ts +316 -0
  65. package/enhance/result/CreateUnleashRateModelMasterResult.d.ts +14 -0
  66. package/enhance/result/CreateUnleashRateModelMasterResult.js +48 -0
  67. package/enhance/result/CreateUnleashRateModelMasterResult.js.map +1 -0
  68. package/enhance/result/CreateUnleashRateModelMasterResult.ts +48 -0
  69. package/enhance/result/DeleteUnleashRateModelMasterResult.d.ts +14 -0
  70. package/enhance/result/DeleteUnleashRateModelMasterResult.js +48 -0
  71. package/enhance/result/DeleteUnleashRateModelMasterResult.js.map +1 -0
  72. package/enhance/result/DeleteUnleashRateModelMasterResult.ts +48 -0
  73. package/enhance/result/DescribeUnleashRateModelMastersResult.d.ts +18 -0
  74. package/enhance/result/DescribeUnleashRateModelMastersResult.js +67 -0
  75. package/enhance/result/DescribeUnleashRateModelMastersResult.js.map +1 -0
  76. package/enhance/result/DescribeUnleashRateModelMastersResult.ts +73 -0
  77. package/enhance/result/DescribeUnleashRateModelsResult.d.ts +14 -0
  78. package/enhance/result/DescribeUnleashRateModelsResult.js +53 -0
  79. package/enhance/result/DescribeUnleashRateModelsResult.js.map +1 -0
  80. package/enhance/result/DescribeUnleashRateModelsResult.ts +56 -0
  81. package/enhance/result/GetUnleashRateModelMasterResult.d.ts +14 -0
  82. package/enhance/result/GetUnleashRateModelMasterResult.js +48 -0
  83. package/enhance/result/GetUnleashRateModelMasterResult.js.map +1 -0
  84. package/enhance/result/GetUnleashRateModelMasterResult.ts +48 -0
  85. package/enhance/result/GetUnleashRateModelResult.d.ts +14 -0
  86. package/enhance/result/GetUnleashRateModelResult.js +48 -0
  87. package/enhance/result/GetUnleashRateModelResult.js.map +1 -0
  88. package/enhance/result/GetUnleashRateModelResult.ts +48 -0
  89. package/enhance/result/UnleashByStampSheetResult.d.ts +30 -0
  90. package/enhance/result/UnleashByStampSheetResult.js +104 -0
  91. package/enhance/result/UnleashByStampSheetResult.js.map +1 -0
  92. package/enhance/result/UnleashByStampSheetResult.ts +116 -0
  93. package/enhance/result/UnleashByUserIdResult.d.ts +30 -0
  94. package/enhance/result/UnleashByUserIdResult.js +104 -0
  95. package/enhance/result/UnleashByUserIdResult.js.map +1 -0
  96. package/enhance/result/UnleashByUserIdResult.ts +116 -0
  97. package/enhance/result/UnleashResult.d.ts +30 -0
  98. package/enhance/result/UnleashResult.js +104 -0
  99. package/enhance/result/UnleashResult.js.map +1 -0
  100. package/enhance/result/UnleashResult.ts +116 -0
  101. package/enhance/result/UpdateUnleashRateModelMasterResult.d.ts +14 -0
  102. package/enhance/result/UpdateUnleashRateModelMasterResult.js +48 -0
  103. package/enhance/result/UpdateUnleashRateModelMasterResult.js.map +1 -0
  104. package/enhance/result/UpdateUnleashRateModelMasterResult.ts +48 -0
  105. package/enhance/result/index.d.ts +11 -1
  106. package/enhance/result/index.js +21 -1
  107. package/enhance/result/index.js.map +1 -1
  108. package/enhance/result/index.ts +20 -0
  109. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ export default class UnleashByStampSheetRequest implements IRequest {
3
+ private requestId;
4
+ private contextStack;
5
+ private stampSheet;
6
+ private keyId;
7
+ getRequestId(): string | null;
8
+ setRequestId(requestId: string | null): this;
9
+ withRequestId(requestId: string | null): this;
10
+ getContextStack(): string | null;
11
+ setContextStack(contextStack: string | null): this;
12
+ withContextStack(contextStack: string | null): this;
13
+ getStampSheet(): string | null;
14
+ setStampSheet(stampSheet: string | null): this;
15
+ withStampSheet(stampSheet: string | null): this;
16
+ getKeyId(): string | null;
17
+ setKeyId(keyId: string | null): this;
18
+ withKeyId(keyId: string | null): this;
19
+ static fromDict(data: {
20
+ [key: string]: any;
21
+ }): UnleashByStampSheetRequest;
22
+ toDict(): {
23
+ [key: string]: any;
24
+ };
25
+ }
@@ -0,0 +1,83 @@
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 UnleashByStampSheetRequest = /** @class */ (function () {
19
+ function UnleashByStampSheetRequest() {
20
+ this.requestId = null;
21
+ this.contextStack = null;
22
+ this.stampSheet = null;
23
+ this.keyId = null;
24
+ }
25
+ UnleashByStampSheetRequest.prototype.getRequestId = function () {
26
+ return this.requestId;
27
+ };
28
+ UnleashByStampSheetRequest.prototype.setRequestId = function (requestId) {
29
+ this.requestId = requestId;
30
+ return this;
31
+ };
32
+ UnleashByStampSheetRequest.prototype.withRequestId = function (requestId) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ };
36
+ UnleashByStampSheetRequest.prototype.getContextStack = function () {
37
+ return this.contextStack;
38
+ };
39
+ UnleashByStampSheetRequest.prototype.setContextStack = function (contextStack) {
40
+ this.contextStack = contextStack;
41
+ return this;
42
+ };
43
+ UnleashByStampSheetRequest.prototype.withContextStack = function (contextStack) {
44
+ this.contextStack = contextStack;
45
+ return this;
46
+ };
47
+ UnleashByStampSheetRequest.prototype.getStampSheet = function () {
48
+ return this.stampSheet;
49
+ };
50
+ UnleashByStampSheetRequest.prototype.setStampSheet = function (stampSheet) {
51
+ this.stampSheet = stampSheet;
52
+ return this;
53
+ };
54
+ UnleashByStampSheetRequest.prototype.withStampSheet = function (stampSheet) {
55
+ this.stampSheet = stampSheet;
56
+ return this;
57
+ };
58
+ UnleashByStampSheetRequest.prototype.getKeyId = function () {
59
+ return this.keyId;
60
+ };
61
+ UnleashByStampSheetRequest.prototype.setKeyId = function (keyId) {
62
+ this.keyId = keyId;
63
+ return this;
64
+ };
65
+ UnleashByStampSheetRequest.prototype.withKeyId = function (keyId) {
66
+ this.keyId = keyId;
67
+ return this;
68
+ };
69
+ UnleashByStampSheetRequest.fromDict = function (data) {
70
+ return new UnleashByStampSheetRequest()
71
+ .withStampSheet(data["stampSheet"])
72
+ .withKeyId(data["keyId"]);
73
+ };
74
+ UnleashByStampSheetRequest.prototype.toDict = function () {
75
+ return {
76
+ "stampSheet": this.getStampSheet(),
77
+ "keyId": this.getKeyId(),
78
+ };
79
+ };
80
+ return UnleashByStampSheetRequest;
81
+ }());
82
+ exports.default = UnleashByStampSheetRequest;
83
+ //# sourceMappingURL=UnleashByStampSheetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnleashByStampSheetRequest.js","sourceRoot":"","sources":["UnleashByStampSheetRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,eAAU,GAAgB,IAAI,CAAC;QAC/B,UAAK,GAAgB,IAAI,CAAC;IAgEtC,CAAC;IA9DU,iDAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,iDAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,kDAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEM,oDAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qDAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kDAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACM,kDAAa,GAApB,UAAqB,UAAuB;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mDAAc,GAArB,UAAsB,UAAuB;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6CAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IACM,6CAAQ,GAAf,UAAgB,KAAkB;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAS,GAAhB,UAAiB,KAAkB;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,mCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,0BAA0B,EAAE;aAClC,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;aAClC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAClC,CAAC;IAEM,2CAAM,GAAb;QACI,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE;YAClC,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,iCAAC;AAAD,CAAC,AArED,IAqEC"}
@@ -0,0 +1,90 @@
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 Gs2Enhance from '../model'
20
+
21
+ export default class UnleashByStampSheetRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private stampSheet: string|null = null;
26
+ private keyId: string|null = null;
27
+
28
+ public getRequestId(): string|null {
29
+ return this.requestId;
30
+ }
31
+
32
+ public setRequestId(requestId: string|null) {
33
+ this.requestId = requestId;
34
+ return this;
35
+ }
36
+
37
+ public withRequestId(requestId: string|null): this {
38
+ this.requestId = requestId;
39
+ return this;
40
+ }
41
+
42
+ public getContextStack(): string|null {
43
+ return this.contextStack;
44
+ }
45
+
46
+ public setContextStack(contextStack: string|null) {
47
+ this.contextStack = contextStack;
48
+ return this;
49
+ }
50
+
51
+ public withContextStack(contextStack: string|null): this {
52
+ this.contextStack = contextStack;
53
+ return this;
54
+ }
55
+ public getStampSheet(): string|null {
56
+ return this.stampSheet;
57
+ }
58
+ public setStampSheet(stampSheet: string|null) {
59
+ this.stampSheet = stampSheet;
60
+ return this;
61
+ }
62
+ public withStampSheet(stampSheet: string|null): this {
63
+ this.stampSheet = stampSheet;
64
+ return this;
65
+ }
66
+ public getKeyId(): string|null {
67
+ return this.keyId;
68
+ }
69
+ public setKeyId(keyId: string|null) {
70
+ this.keyId = keyId;
71
+ return this;
72
+ }
73
+ public withKeyId(keyId: string|null): this {
74
+ this.keyId = keyId;
75
+ return this;
76
+ }
77
+
78
+ public static fromDict(data: {[key: string]: any}): UnleashByStampSheetRequest {
79
+ return new UnleashByStampSheetRequest()
80
+ .withStampSheet(data["stampSheet"])
81
+ .withKeyId(data["keyId"]);
82
+ }
83
+
84
+ public toDict(): {[key: string]: any} {
85
+ return {
86
+ "stampSheet": this.getStampSheet(),
87
+ "keyId": this.getKeyId(),
88
+ };
89
+ }
90
+ }
@@ -0,0 +1,46 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ import * as Gs2Enhance from '../model';
3
+ export default class UnleashByUserIdRequest implements IRequest {
4
+ private requestId;
5
+ private contextStack;
6
+ private namespaceName;
7
+ private rateName;
8
+ private userId;
9
+ private targetItemSetId;
10
+ private materials;
11
+ private config;
12
+ private duplicationAvoider;
13
+ getRequestId(): string | null;
14
+ setRequestId(requestId: string | null): this;
15
+ withRequestId(requestId: string | null): this;
16
+ getContextStack(): string | null;
17
+ setContextStack(contextStack: string | null): this;
18
+ withContextStack(contextStack: string | null): this;
19
+ getNamespaceName(): string | null;
20
+ setNamespaceName(namespaceName: string | null): this;
21
+ withNamespaceName(namespaceName: string | null): this;
22
+ getRateName(): string | null;
23
+ setRateName(rateName: string | null): this;
24
+ withRateName(rateName: string | null): this;
25
+ getUserId(): string | null;
26
+ setUserId(userId: string | null): this;
27
+ withUserId(userId: string | null): this;
28
+ getTargetItemSetId(): string | null;
29
+ setTargetItemSetId(targetItemSetId: string | null): this;
30
+ withTargetItemSetId(targetItemSetId: string | null): this;
31
+ getMaterials(): string[] | null;
32
+ setMaterials(materials: string[] | null): this;
33
+ withMaterials(materials: string[] | null): this;
34
+ getConfig(): Gs2Enhance.Config[] | null;
35
+ setConfig(config: Gs2Enhance.Config[] | null): this;
36
+ withConfig(config: Gs2Enhance.Config[] | null): this;
37
+ getDuplicationAvoider(): string | null;
38
+ setDuplicationAvoider(duplicationAvoider: string | null): this;
39
+ withDuplicationAvoider(duplicationAvoider: string | null): this;
40
+ static fromDict(data: {
41
+ [key: string]: any;
42
+ }): UnleashByUserIdRequest;
43
+ toDict(): {
44
+ [key: string]: any;
45
+ };
46
+ }
@@ -0,0 +1,165 @@
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 tslib_1 = require("tslib");
19
+ var Gs2Enhance = tslib_1.__importStar(require("../model"));
20
+ var UnleashByUserIdRequest = /** @class */ (function () {
21
+ function UnleashByUserIdRequest() {
22
+ this.requestId = null;
23
+ this.contextStack = null;
24
+ this.namespaceName = null;
25
+ this.rateName = null;
26
+ this.userId = null;
27
+ this.targetItemSetId = null;
28
+ this.materials = null;
29
+ this.config = null;
30
+ this.duplicationAvoider = null;
31
+ }
32
+ UnleashByUserIdRequest.prototype.getRequestId = function () {
33
+ return this.requestId;
34
+ };
35
+ UnleashByUserIdRequest.prototype.setRequestId = function (requestId) {
36
+ this.requestId = requestId;
37
+ return this;
38
+ };
39
+ UnleashByUserIdRequest.prototype.withRequestId = function (requestId) {
40
+ this.requestId = requestId;
41
+ return this;
42
+ };
43
+ UnleashByUserIdRequest.prototype.getContextStack = function () {
44
+ return this.contextStack;
45
+ };
46
+ UnleashByUserIdRequest.prototype.setContextStack = function (contextStack) {
47
+ this.contextStack = contextStack;
48
+ return this;
49
+ };
50
+ UnleashByUserIdRequest.prototype.withContextStack = function (contextStack) {
51
+ this.contextStack = contextStack;
52
+ return this;
53
+ };
54
+ UnleashByUserIdRequest.prototype.getNamespaceName = function () {
55
+ return this.namespaceName;
56
+ };
57
+ UnleashByUserIdRequest.prototype.setNamespaceName = function (namespaceName) {
58
+ this.namespaceName = namespaceName;
59
+ return this;
60
+ };
61
+ UnleashByUserIdRequest.prototype.withNamespaceName = function (namespaceName) {
62
+ this.namespaceName = namespaceName;
63
+ return this;
64
+ };
65
+ UnleashByUserIdRequest.prototype.getRateName = function () {
66
+ return this.rateName;
67
+ };
68
+ UnleashByUserIdRequest.prototype.setRateName = function (rateName) {
69
+ this.rateName = rateName;
70
+ return this;
71
+ };
72
+ UnleashByUserIdRequest.prototype.withRateName = function (rateName) {
73
+ this.rateName = rateName;
74
+ return this;
75
+ };
76
+ UnleashByUserIdRequest.prototype.getUserId = function () {
77
+ return this.userId;
78
+ };
79
+ UnleashByUserIdRequest.prototype.setUserId = function (userId) {
80
+ this.userId = userId;
81
+ return this;
82
+ };
83
+ UnleashByUserIdRequest.prototype.withUserId = function (userId) {
84
+ this.userId = userId;
85
+ return this;
86
+ };
87
+ UnleashByUserIdRequest.prototype.getTargetItemSetId = function () {
88
+ return this.targetItemSetId;
89
+ };
90
+ UnleashByUserIdRequest.prototype.setTargetItemSetId = function (targetItemSetId) {
91
+ this.targetItemSetId = targetItemSetId;
92
+ return this;
93
+ };
94
+ UnleashByUserIdRequest.prototype.withTargetItemSetId = function (targetItemSetId) {
95
+ this.targetItemSetId = targetItemSetId;
96
+ return this;
97
+ };
98
+ UnleashByUserIdRequest.prototype.getMaterials = function () {
99
+ return this.materials;
100
+ };
101
+ UnleashByUserIdRequest.prototype.setMaterials = function (materials) {
102
+ this.materials = materials;
103
+ return this;
104
+ };
105
+ UnleashByUserIdRequest.prototype.withMaterials = function (materials) {
106
+ this.materials = materials;
107
+ return this;
108
+ };
109
+ UnleashByUserIdRequest.prototype.getConfig = function () {
110
+ return this.config;
111
+ };
112
+ UnleashByUserIdRequest.prototype.setConfig = function (config) {
113
+ this.config = config;
114
+ return this;
115
+ };
116
+ UnleashByUserIdRequest.prototype.withConfig = function (config) {
117
+ this.config = config;
118
+ return this;
119
+ };
120
+ UnleashByUserIdRequest.prototype.getDuplicationAvoider = function () {
121
+ return this.duplicationAvoider;
122
+ };
123
+ UnleashByUserIdRequest.prototype.setDuplicationAvoider = function (duplicationAvoider) {
124
+ this.duplicationAvoider = duplicationAvoider;
125
+ return this;
126
+ };
127
+ UnleashByUserIdRequest.prototype.withDuplicationAvoider = function (duplicationAvoider) {
128
+ this.duplicationAvoider = duplicationAvoider;
129
+ return this;
130
+ };
131
+ UnleashByUserIdRequest.fromDict = function (data) {
132
+ return new UnleashByUserIdRequest()
133
+ .withNamespaceName(data["namespaceName"])
134
+ .withRateName(data["rateName"])
135
+ .withUserId(data["userId"])
136
+ .withTargetItemSetId(data["targetItemSetId"])
137
+ .withMaterials(data.materials ?
138
+ data.materials.map(function (item) {
139
+ return item;
140
+ }) : [])
141
+ .withConfig(data.config ?
142
+ data.config.map(function (item) {
143
+ return Gs2Enhance.Config.fromDict(item);
144
+ }) : []);
145
+ };
146
+ UnleashByUserIdRequest.prototype.toDict = function () {
147
+ return {
148
+ "namespaceName": this.getNamespaceName(),
149
+ "rateName": this.getRateName(),
150
+ "userId": this.getUserId(),
151
+ "targetItemSetId": this.getTargetItemSetId(),
152
+ "materials": this.getMaterials() ?
153
+ this.getMaterials().map(function (item) {
154
+ return item;
155
+ }) : [],
156
+ "config": this.getConfig() ?
157
+ this.getConfig().map(function (item) {
158
+ return item.toDict();
159
+ }) : [],
160
+ };
161
+ };
162
+ return UnleashByUserIdRequest;
163
+ }());
164
+ exports.default = UnleashByUserIdRequest;
165
+ //# sourceMappingURL=UnleashByUserIdRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnleashByUserIdRequest.js","sourceRoot":"","sources":["UnleashByUserIdRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,2DAAsC;AAEtC;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,kBAAa,GAAgB,IAAI,CAAC;QAClC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,WAAM,GAAgB,IAAI,CAAC;QAC3B,oBAAe,GAAgB,IAAI,CAAC;QACpC,cAAS,GAAkB,IAAI,CAAC;QAChC,WAAM,GAA6B,IAAI,CAAC;QACxC,uBA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G,CAAC,GAAG,CAAC,UAAC,IAAY;oBAClC,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAuB;oBAC1C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,6BAAC;AAAD,CAAC,AA5JD,IA4JC"}
@@ -0,0 +1,177 @@
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 Gs2Enhance from '../model'
20
+
21
+ export default class UnleashByUserIdRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private namespaceName: string|null = null;
26
+ private rateName: string|null = null;
27
+ private userId: string|null = null;
28
+ private targetItemSetId: string|null = null;
29
+ private materials: string[]|null = null;
30
+ private config: Gs2Enhance.Config[]|null = null;
31
+ private duplicationAvoider: string|null = null;
32
+
33
+ public getRequestId(): string|null {
34
+ return this.requestId;
35
+ }
36
+
37
+ public setRequestId(requestId: string|null) {
38
+ this.requestId = requestId;
39
+ return this;
40
+ }
41
+
42
+ public withRequestId(requestId: string|null): this {
43
+ this.requestId = requestId;
44
+ return this;
45
+ }
46
+
47
+ public getContextStack(): string|null {
48
+ return this.contextStack;
49
+ }
50
+
51
+ public setContextStack(contextStack: string|null) {
52
+ this.contextStack = contextStack;
53
+ return this;
54
+ }
55
+
56
+ public withContextStack(contextStack: string|null): this {
57
+ this.contextStack = contextStack;
58
+ return this;
59
+ }
60
+ public getNamespaceName(): string|null {
61
+ return this.namespaceName;
62
+ }
63
+ public setNamespaceName(namespaceName: string|null) {
64
+ this.namespaceName = namespaceName;
65
+ return this;
66
+ }
67
+ public withNamespaceName(namespaceName: string|null): this {
68
+ this.namespaceName = namespaceName;
69
+ return this;
70
+ }
71
+ public getRateName(): string|null {
72
+ return this.rateName;
73
+ }
74
+ public setRateName(rateName: string|null) {
75
+ this.rateName = rateName;
76
+ return this;
77
+ }
78
+ public withRateName(rateName: string|null): this {
79
+ this.rateName = rateName;
80
+ return this;
81
+ }
82
+ public getUserId(): string|null {
83
+ return this.userId;
84
+ }
85
+ public setUserId(userId: string|null) {
86
+ this.userId = userId;
87
+ return this;
88
+ }
89
+ public withUserId(userId: string|null): this {
90
+ this.userId = userId;
91
+ return this;
92
+ }
93
+ public getTargetItemSetId(): string|null {
94
+ return this.targetItemSetId;
95
+ }
96
+ public setTargetItemSetId(targetItemSetId: string|null) {
97
+ this.targetItemSetId = targetItemSetId;
98
+ return this;
99
+ }
100
+ public withTargetItemSetId(targetItemSetId: string|null): this {
101
+ this.targetItemSetId = targetItemSetId;
102
+ return this;
103
+ }
104
+ public getMaterials(): string[]|null {
105
+ return this.materials;
106
+ }
107
+ public setMaterials(materials: string[]|null) {
108
+ this.materials = materials;
109
+ return this;
110
+ }
111
+ public withMaterials(materials: string[]|null): this {
112
+ this.materials = materials;
113
+ return this;
114
+ }
115
+ public getConfig(): Gs2Enhance.Config[]|null {
116
+ return this.config;
117
+ }
118
+ public setConfig(config: Gs2Enhance.Config[]|null) {
119
+ this.config = config;
120
+ return this;
121
+ }
122
+ public withConfig(config: Gs2Enhance.Config[]|null): this {
123
+ this.config = config;
124
+ return this;
125
+ }
126
+
127
+ public getDuplicationAvoider(): string|null {
128
+ return this.duplicationAvoider;
129
+ }
130
+
131
+ public setDuplicationAvoider(duplicationAvoider: string|null) {
132
+ this.duplicationAvoider = duplicationAvoider;
133
+ return this;
134
+ }
135
+
136
+ public withDuplicationAvoider(duplicationAvoider: string|null): this {
137
+ this.duplicationAvoider = duplicationAvoider;
138
+ return this;
139
+ }
140
+
141
+ public static fromDict(data: {[key: string]: any}): UnleashByUserIdRequest {
142
+ return new UnleashByUserIdRequest()
143
+ .withNamespaceName(data["namespaceName"])
144
+ .withRateName(data["rateName"])
145
+ .withUserId(data["userId"])
146
+ .withTargetItemSetId(data["targetItemSetId"])
147
+ .withMaterials(data.materials ?
148
+ data.materials.map((item: {[key: string]: any}) => {
149
+ return item;
150
+ }
151
+ ) : [])
152
+ .withConfig(data.config ?
153
+ data.config.map((item: {[key: string]: any}) => {
154
+ return Gs2Enhance.Config.fromDict(item);
155
+ }
156
+ ) : []);
157
+ }
158
+
159
+ public toDict(): {[key: string]: any} {
160
+ return {
161
+ "namespaceName": this.getNamespaceName(),
162
+ "rateName": this.getRateName(),
163
+ "userId": this.getUserId(),
164
+ "targetItemSetId": this.getTargetItemSetId(),
165
+ "materials": this.getMaterials() ?
166
+ this.getMaterials()!.map((item: string) => {
167
+ return item;
168
+ }
169
+ ) : [],
170
+ "config": this.getConfig() ?
171
+ this.getConfig()!.map((item: Gs2Enhance.Config) => {
172
+ return item.toDict();
173
+ }
174
+ ) : [],
175
+ };
176
+ }
177
+ }
@@ -0,0 +1,46 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ import * as Gs2Enhance from '../model';
3
+ export default class UnleashRequest implements IRequest {
4
+ private requestId;
5
+ private contextStack;
6
+ private namespaceName;
7
+ private rateName;
8
+ private accessToken;
9
+ private targetItemSetId;
10
+ private materials;
11
+ private config;
12
+ private duplicationAvoider;
13
+ getRequestId(): string | null;
14
+ setRequestId(requestId: string | null): this;
15
+ withRequestId(requestId: string | null): this;
16
+ getContextStack(): string | null;
17
+ setContextStack(contextStack: string | null): this;
18
+ withContextStack(contextStack: string | null): this;
19
+ getNamespaceName(): string | null;
20
+ setNamespaceName(namespaceName: string | null): this;
21
+ withNamespaceName(namespaceName: string | null): this;
22
+ getRateName(): string | null;
23
+ setRateName(rateName: string | null): this;
24
+ withRateName(rateName: string | null): this;
25
+ getAccessToken(): string | null;
26
+ setAccessToken(accessToken: string | null): this;
27
+ withAccessToken(accessToken: string | null): this;
28
+ getTargetItemSetId(): string | null;
29
+ setTargetItemSetId(targetItemSetId: string | null): this;
30
+ withTargetItemSetId(targetItemSetId: string | null): this;
31
+ getMaterials(): string[] | null;
32
+ setMaterials(materials: string[] | null): this;
33
+ withMaterials(materials: string[] | null): this;
34
+ getConfig(): Gs2Enhance.Config[] | null;
35
+ setConfig(config: Gs2Enhance.Config[] | null): this;
36
+ withConfig(config: Gs2Enhance.Config[] | null): this;
37
+ getDuplicationAvoider(): string | null;
38
+ setDuplicationAvoider(duplicationAvoider: string | null): this;
39
+ withDuplicationAvoider(duplicationAvoider: string | null): this;
40
+ static fromDict(data: {
41
+ [key: string]: any;
42
+ }): UnleashRequest;
43
+ toDict(): {
44
+ [key: string]: any;
45
+ };
46
+ }