gs2 1.3.254 → 1.3.256

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 (56) hide show
  1. package/buff/model/BuffEntryModel.d.ts +4 -4
  2. package/buff/model/BuffEntryModel.js +14 -14
  3. package/buff/model/BuffEntryModel.js.map +1 -1
  4. package/buff/model/BuffEntryModel.ts +14 -14
  5. package/buff/model/BuffEntryModelMaster.d.ts +4 -4
  6. package/buff/model/BuffEntryModelMaster.js +14 -14
  7. package/buff/model/BuffEntryModelMaster.js.map +1 -1
  8. package/buff/model/BuffEntryModelMaster.ts +14 -14
  9. package/buff/request/CreateBuffEntryModelMasterRequest.d.ts +4 -4
  10. package/buff/request/CreateBuffEntryModelMasterRequest.js +14 -14
  11. package/buff/request/CreateBuffEntryModelMasterRequest.js.map +1 -1
  12. package/buff/request/CreateBuffEntryModelMasterRequest.ts +14 -14
  13. package/buff/request/UpdateBuffEntryModelMasterRequest.d.ts +4 -4
  14. package/buff/request/UpdateBuffEntryModelMasterRequest.js +14 -14
  15. package/buff/request/UpdateBuffEntryModelMasterRequest.js.map +1 -1
  16. package/buff/request/UpdateBuffEntryModelMasterRequest.ts +14 -14
  17. package/buff/rest.js +8 -8
  18. package/buff/rest.js.map +1 -1
  19. package/buff/rest.ts +2 -2
  20. package/distributor/model/Config.d.ts +17 -0
  21. package/distributor/model/Config.js +62 -0
  22. package/distributor/model/Config.js.map +1 -0
  23. package/distributor/model/Config.ts +60 -0
  24. package/distributor/model/index.d.ts +2 -1
  25. package/distributor/model/index.js +3 -1
  26. package/distributor/model/index.js.map +1 -1
  27. package/distributor/model/index.ts +2 -0
  28. package/distributor/request/SetTransactionDefaultConfigByUserIdRequest.d.ts +30 -0
  29. package/distributor/request/SetTransactionDefaultConfigByUserIdRequest.js +105 -0
  30. package/distributor/request/SetTransactionDefaultConfigByUserIdRequest.js.map +1 -0
  31. package/distributor/request/SetTransactionDefaultConfigByUserIdRequest.ts +112 -0
  32. package/distributor/request/SetTransactionDefaultConfigRequest.d.ts +26 -0
  33. package/distributor/request/SetTransactionDefaultConfigRequest.js +91 -0
  34. package/distributor/request/SetTransactionDefaultConfigRequest.js.map +1 -0
  35. package/distributor/request/SetTransactionDefaultConfigRequest.ts +98 -0
  36. package/distributor/request/index.d.ts +3 -1
  37. package/distributor/request/index.js +5 -1
  38. package/distributor/request/index.js.map +1 -1
  39. package/distributor/request/index.ts +4 -0
  40. package/distributor/rest.d.ts +2 -0
  41. package/distributor/rest.js +59 -0
  42. package/distributor/rest.js.map +1 -1
  43. package/distributor/rest.ts +67 -0
  44. package/distributor/result/SetTransactionDefaultConfigByUserIdResult.d.ts +13 -0
  45. package/distributor/result/SetTransactionDefaultConfigByUserIdResult.js +45 -0
  46. package/distributor/result/SetTransactionDefaultConfigByUserIdResult.js.map +1 -0
  47. package/distributor/result/SetTransactionDefaultConfigByUserIdResult.ts +46 -0
  48. package/distributor/result/SetTransactionDefaultConfigResult.d.ts +13 -0
  49. package/distributor/result/SetTransactionDefaultConfigResult.js +45 -0
  50. package/distributor/result/SetTransactionDefaultConfigResult.js.map +1 -0
  51. package/distributor/result/SetTransactionDefaultConfigResult.ts +46 -0
  52. package/distributor/result/index.d.ts +3 -1
  53. package/distributor/result/index.js +5 -1
  54. package/distributor/result/index.js.map +1 -1
  55. package/distributor/result/index.ts +4 -0
  56. package/package.json +1 -1
@@ -0,0 +1,105 @@
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 Gs2Distributor = tslib_1.__importStar(require("../model"));
20
+ var SetTransactionDefaultConfigByUserIdRequest = /** @class */ (function () {
21
+ function SetTransactionDefaultConfigByUserIdRequest() {
22
+ this.requestId = null;
23
+ this.contextStack = null;
24
+ this.userId = null;
25
+ this.config = null;
26
+ this.timeOffsetToken = null;
27
+ }
28
+ SetTransactionDefaultConfigByUserIdRequest.prototype.getRequestId = function () {
29
+ return this.requestId;
30
+ };
31
+ SetTransactionDefaultConfigByUserIdRequest.prototype.setRequestId = function (requestId) {
32
+ this.requestId = requestId;
33
+ return this;
34
+ };
35
+ SetTransactionDefaultConfigByUserIdRequest.prototype.withRequestId = function (requestId) {
36
+ this.requestId = requestId;
37
+ return this;
38
+ };
39
+ SetTransactionDefaultConfigByUserIdRequest.prototype.getContextStack = function () {
40
+ return this.contextStack;
41
+ };
42
+ SetTransactionDefaultConfigByUserIdRequest.prototype.setContextStack = function (contextStack) {
43
+ this.contextStack = contextStack;
44
+ return this;
45
+ };
46
+ SetTransactionDefaultConfigByUserIdRequest.prototype.withContextStack = function (contextStack) {
47
+ this.contextStack = contextStack;
48
+ return this;
49
+ };
50
+ SetTransactionDefaultConfigByUserIdRequest.prototype.getUserId = function () {
51
+ return this.userId;
52
+ };
53
+ SetTransactionDefaultConfigByUserIdRequest.prototype.setUserId = function (userId) {
54
+ this.userId = userId;
55
+ return this;
56
+ };
57
+ SetTransactionDefaultConfigByUserIdRequest.prototype.withUserId = function (userId) {
58
+ this.userId = userId;
59
+ return this;
60
+ };
61
+ SetTransactionDefaultConfigByUserIdRequest.prototype.getConfig = function () {
62
+ return this.config;
63
+ };
64
+ SetTransactionDefaultConfigByUserIdRequest.prototype.setConfig = function (config) {
65
+ this.config = config;
66
+ return this;
67
+ };
68
+ SetTransactionDefaultConfigByUserIdRequest.prototype.withConfig = function (config) {
69
+ this.config = config;
70
+ return this;
71
+ };
72
+ SetTransactionDefaultConfigByUserIdRequest.prototype.getTimeOffsetToken = function () {
73
+ return this.timeOffsetToken;
74
+ };
75
+ SetTransactionDefaultConfigByUserIdRequest.prototype.setTimeOffsetToken = function (timeOffsetToken) {
76
+ this.timeOffsetToken = timeOffsetToken;
77
+ return this;
78
+ };
79
+ SetTransactionDefaultConfigByUserIdRequest.prototype.withTimeOffsetToken = function (timeOffsetToken) {
80
+ this.timeOffsetToken = timeOffsetToken;
81
+ return this;
82
+ };
83
+ SetTransactionDefaultConfigByUserIdRequest.fromDict = function (data) {
84
+ return new SetTransactionDefaultConfigByUserIdRequest()
85
+ .withUserId(data["userId"])
86
+ .withConfig(data.config ?
87
+ data.config.map(function (item) {
88
+ return Gs2Distributor.Config.fromDict(item);
89
+ }) : [])
90
+ .withTimeOffsetToken(data["timeOffsetToken"]);
91
+ };
92
+ SetTransactionDefaultConfigByUserIdRequest.prototype.toDict = function () {
93
+ return {
94
+ "userId": this.getUserId(),
95
+ "config": this.getConfig() ?
96
+ this.getConfig().map(function (item) {
97
+ return item.toDict();
98
+ }) : [],
99
+ "timeOffsetToken": this.getTimeOffsetToken(),
100
+ };
101
+ };
102
+ return SetTransactionDefaultConfigByUserIdRequest;
103
+ }());
104
+ exports.default = SetTransactionDefaultConfigByUserIdRequest;
105
+ //# sourceMappingURL=SetTransactionDefaultConfigByUserIdRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetTransactionDefaultConfigByUserIdRequest.js","sourceRoot":"","sources":["SetTransactionDefaultConfigByUserIdRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,+DAA0C;AAE1C;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,WAAM,GAAgB,IAAI,CAAC;QAC3B,WAAM,GAAiC,IAAI,CAAC;QAC5C,oBAAe,GAAgB,IAAI,CAAC;IAqFhD,CAAC;IAnFU,iEAAY,GAAnB;QACI,OAAO,IAAI,CAA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4B;QAClD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,wEAAmB,GAA1B,UAA2B,eAA4B;QACnD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,mDAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,0CAA0C,EAAE;aAClD,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACvC,OAAO,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC;aACN,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,CAAC;IAEM,2DAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAA2B;oBAC9C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;SAC/C,CAAC;IACN,CAAC;IACL,iDAAC;AAAD,CAAC,AA3FD,IA2FC"}
@@ -0,0 +1,112 @@
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 Gs2Distributor from '../model'
20
+
21
+ export default class SetTransactionDefaultConfigByUserIdRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private userId: string|null = null;
26
+ private config: Gs2Distributor.Config[]|null = null;
27
+ private timeOffsetToken: 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 getUserId(): string|null {
57
+ return this.userId;
58
+ }
59
+ public setUserId(userId: string|null) {
60
+ this.userId = userId;
61
+ return this;
62
+ }
63
+ public withUserId(userId: string|null): this {
64
+ this.userId = userId;
65
+ return this;
66
+ }
67
+ public getConfig(): Gs2Distributor.Config[]|null {
68
+ return this.config;
69
+ }
70
+ public setConfig(config: Gs2Distributor.Config[]|null) {
71
+ this.config = config;
72
+ return this;
73
+ }
74
+ public withConfig(config: Gs2Distributor.Config[]|null): this {
75
+ this.config = config;
76
+ return this;
77
+ }
78
+ public getTimeOffsetToken(): string|null {
79
+ return this.timeOffsetToken;
80
+ }
81
+ public setTimeOffsetToken(timeOffsetToken: string|null) {
82
+ this.timeOffsetToken = timeOffsetToken;
83
+ return this;
84
+ }
85
+ public withTimeOffsetToken(timeOffsetToken: string|null): this {
86
+ this.timeOffsetToken = timeOffsetToken;
87
+ return this;
88
+ }
89
+
90
+ public static fromDict(data: {[key: string]: any}): SetTransactionDefaultConfigByUserIdRequest {
91
+ return new SetTransactionDefaultConfigByUserIdRequest()
92
+ .withUserId(data["userId"])
93
+ .withConfig(data.config ?
94
+ data.config.map((item: {[key: string]: any}) => {
95
+ return Gs2Distributor.Config.fromDict(item);
96
+ }
97
+ ) : [])
98
+ .withTimeOffsetToken(data["timeOffsetToken"]);
99
+ }
100
+
101
+ public toDict(): {[key: string]: any} {
102
+ return {
103
+ "userId": this.getUserId(),
104
+ "config": this.getConfig() ?
105
+ this.getConfig()!.map((item: Gs2Distributor.Config) => {
106
+ return item.toDict();
107
+ }
108
+ ) : [],
109
+ "timeOffsetToken": this.getTimeOffsetToken(),
110
+ };
111
+ }
112
+ }
@@ -0,0 +1,26 @@
1
+ import IRequest from '../../core/interface/IRequest';
2
+ import * as Gs2Distributor from '../model';
3
+ export default class SetTransactionDefaultConfigRequest implements IRequest {
4
+ private requestId;
5
+ private contextStack;
6
+ private accessToken;
7
+ private config;
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
+ getAccessToken(): string | null;
15
+ setAccessToken(accessToken: string | null): this;
16
+ withAccessToken(accessToken: string | null): this;
17
+ getConfig(): Gs2Distributor.Config[] | null;
18
+ setConfig(config: Gs2Distributor.Config[] | null): this;
19
+ withConfig(config: Gs2Distributor.Config[] | null): this;
20
+ static fromDict(data: {
21
+ [key: string]: any;
22
+ }): SetTransactionDefaultConfigRequest;
23
+ toDict(): {
24
+ [key: string]: any;
25
+ };
26
+ }
@@ -0,0 +1,91 @@
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 Gs2Distributor = tslib_1.__importStar(require("../model"));
20
+ var SetTransactionDefaultConfigRequest = /** @class */ (function () {
21
+ function SetTransactionDefaultConfigRequest() {
22
+ this.requestId = null;
23
+ this.contextStack = null;
24
+ this.accessToken = null;
25
+ this.config = null;
26
+ }
27
+ SetTransactionDefaultConfigRequest.prototype.getRequestId = function () {
28
+ return this.requestId;
29
+ };
30
+ SetTransactionDefaultConfigRequest.prototype.setRequestId = function (requestId) {
31
+ this.requestId = requestId;
32
+ return this;
33
+ };
34
+ SetTransactionDefaultConfigRequest.prototype.withRequestId = function (requestId) {
35
+ this.requestId = requestId;
36
+ return this;
37
+ };
38
+ SetTransactionDefaultConfigRequest.prototype.getContextStack = function () {
39
+ return this.contextStack;
40
+ };
41
+ SetTransactionDefaultConfigRequest.prototype.setContextStack = function (contextStack) {
42
+ this.contextStack = contextStack;
43
+ return this;
44
+ };
45
+ SetTransactionDefaultConfigRequest.prototype.withContextStack = function (contextStack) {
46
+ this.contextStack = contextStack;
47
+ return this;
48
+ };
49
+ SetTransactionDefaultConfigRequest.prototype.getAccessToken = function () {
50
+ return this.accessToken;
51
+ };
52
+ SetTransactionDefaultConfigRequest.prototype.setAccessToken = function (accessToken) {
53
+ this.accessToken = accessToken;
54
+ return this;
55
+ };
56
+ SetTransactionDefaultConfigRequest.prototype.withAccessToken = function (accessToken) {
57
+ this.accessToken = accessToken;
58
+ return this;
59
+ };
60
+ SetTransactionDefaultConfigRequest.prototype.getConfig = function () {
61
+ return this.config;
62
+ };
63
+ SetTransactionDefaultConfigRequest.prototype.setConfig = function (config) {
64
+ this.config = config;
65
+ return this;
66
+ };
67
+ SetTransactionDefaultConfigRequest.prototype.withConfig = function (config) {
68
+ this.config = config;
69
+ return this;
70
+ };
71
+ SetTransactionDefaultConfigRequest.fromDict = function (data) {
72
+ return new SetTransactionDefaultConfigRequest()
73
+ .withAccessToken(data["accessToken"])
74
+ .withConfig(data.config ?
75
+ data.config.map(function (item) {
76
+ return Gs2Distributor.Config.fromDict(item);
77
+ }) : []);
78
+ };
79
+ SetTransactionDefaultConfigRequest.prototype.toDict = function () {
80
+ return {
81
+ "accessToken": this.getAccessToken(),
82
+ "config": this.getConfig() ?
83
+ this.getConfig().map(function (item) {
84
+ return item.toDict();
85
+ }) : [],
86
+ };
87
+ };
88
+ return SetTransactionDefaultConfigRequest;
89
+ }());
90
+ exports.default = SetTransactionDefaultConfigRequest;
91
+ //# sourceMappingURL=SetTransactionDefaultConfigRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetTransactionDefaultConfigRequest.js","sourceRoot":"","sources":["SetTransactionDefaultConfigRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,+DAA0C;AAE1C;IAAA;QAEY,cAAS,GAAgB,IAAI,CAAC;QAC9B,iBAAY,GAAgB,IAAI,CAAC;QACjC,gBAAW,GAAgB,IAAI,CAAC;QAChC,WAAM,GAAiC,IAAI,CAAC;IAwExD,CAAC;IAtEU,yDAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAEM,yDAAY,GAAnB,UAAoB,SAAsB;QACtC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,0DAAa,GAApB,UAAqB,SAAsB;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,4DAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;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AAI,CAAC,cAAc,EAAE;YACpC,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAA2B;oBAC9C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,yCAAC;AAAD,CAAC,AA7ED,IA6EC"}
@@ -0,0 +1,98 @@
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 Gs2Distributor from '../model'
20
+
21
+ export default class SetTransactionDefaultConfigRequest implements IRequest {
22
+
23
+ private requestId: string|null = null;
24
+ private contextStack: string|null = null;
25
+ private accessToken: string|null = null;
26
+ private config: Gs2Distributor.Config[]|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 getAccessToken(): string|null {
56
+ return this.accessToken;
57
+ }
58
+ public setAccessToken(accessToken: string|null) {
59
+ this.accessToken = accessToken;
60
+ return this;
61
+ }
62
+ public withAccessToken(accessToken: string|null): this {
63
+ this.accessToken = accessToken;
64
+ return this;
65
+ }
66
+ public getConfig(): Gs2Distributor.Config[]|null {
67
+ return this.config;
68
+ }
69
+ public setConfig(config: Gs2Distributor.Config[]|null) {
70
+ this.config = config;
71
+ return this;
72
+ }
73
+ public withConfig(config: Gs2Distributor.Config[]|null): this {
74
+ this.config = config;
75
+ return this;
76
+ }
77
+
78
+ public static fromDict(data: {[key: string]: any}): SetTransactionDefaultConfigRequest {
79
+ return new SetTransactionDefaultConfigRequest()
80
+ .withAccessToken(data["accessToken"])
81
+ .withConfig(data.config ?
82
+ data.config.map((item: {[key: string]: any}) => {
83
+ return Gs2Distributor.Config.fromDict(item);
84
+ }
85
+ ) : []);
86
+ }
87
+
88
+ public toDict(): {[key: string]: any} {
89
+ return {
90
+ "accessToken": this.getAccessToken(),
91
+ "config": this.getConfig() ?
92
+ this.getConfig()!.map((item: Gs2Distributor.Config) => {
93
+ return item.toDict();
94
+ }
95
+ ) : [],
96
+ };
97
+ }
98
+ }
@@ -23,6 +23,8 @@ import RunStampSheetExpressRequest from "./RunStampSheetExpressRequest";
23
23
  import RunStampTaskWithoutNamespaceRequest from "./RunStampTaskWithoutNamespaceRequest";
24
24
  import RunStampSheetWithoutNamespaceRequest from "./RunStampSheetWithoutNamespaceRequest";
25
25
  import RunStampSheetExpressWithoutNamespaceRequest from "./RunStampSheetExpressWithoutNamespaceRequest";
26
+ import SetTransactionDefaultConfigRequest from "./SetTransactionDefaultConfigRequest";
27
+ import SetTransactionDefaultConfigByUserIdRequest from "./SetTransactionDefaultConfigByUserIdRequest";
26
28
  import GetStampSheetResultRequest from "./GetStampSheetResultRequest";
27
29
  import GetStampSheetResultByUserIdRequest from "./GetStampSheetResultByUserIdRequest";
28
- export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DescribeDistributorModelMastersRequest, CreateDistributorModelMasterRequest, GetDistributorModelMasterRequest, UpdateDistributorModelMasterRequest, DeleteDistributorModelMasterRequest, DescribeDistributorModelsRequest, GetDistributorModelRequest, ExportMasterRequest, GetCurrentDistributorMasterRequest, UpdateCurrentDistributorMasterRequest, UpdateCurrentDistributorMasterFromGitHubRequest, DistributeRequest, DistributeWithoutOverflowProcessRequest, RunStampTaskRequest, RunStampSheetRequest, RunStampSheetExpressRequest, RunStampTaskWithoutNamespaceRequest, RunStampSheetWithoutNamespaceRequest, RunStampSheetExpressWithoutNamespaceRequest, GetStampSheetResultRequest, GetStampSheetResultByUserIdRequest, };
30
+ export { DescribeNamespacesRequest, CreateNamespaceRequest, GetNamespaceStatusRequest, GetNamespaceRequest, UpdateNamespaceRequest, DeleteNamespaceRequest, DescribeDistributorModelMastersRequest, CreateDistributorModelMasterRequest, GetDistributorModelMasterRequest, UpdateDistributorModelMasterRequest, DeleteDistributorModelMasterRequest, DescribeDistributorModelsRequest, GetDistributorModelRequest, ExportMasterRequest, GetCurrentDistributorMasterRequest, UpdateCurrentDistributorMasterRequest, UpdateCurrentDistributorMasterFromGitHubRequest, DistributeRequest, DistributeWithoutOverflowProcessRequest, RunStampTaskRequest, RunStampSheetRequest, RunStampSheetExpressRequest, RunStampTaskWithoutNamespaceRequest, RunStampSheetWithoutNamespaceRequest, RunStampSheetExpressWithoutNamespaceRequest, SetTransactionDefaultConfigRequest, SetTransactionDefaultConfigByUserIdRequest, GetStampSheetResultRequest, GetStampSheetResultByUserIdRequest, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetStampSheetResultByUserIdRequest = exports.GetStampSheetResultRequest = exports.RunStampSheetExpressWithoutNamespaceRequest = exports.RunStampSheetWithoutNamespaceRequest = exports.RunStampTaskWithoutNamespaceRequest = exports.RunStampSheetExpressRequest = exports.RunStampSheetRequest = exports.RunStampTaskRequest = exports.DistributeWithoutOverflowProcessRequest = exports.DistributeRequest = exports.UpdateCurrentDistributorMasterFromGitHubRequest = exports.UpdateCurrentDistributorMasterRequest = exports.GetCurrentDistributorMasterRequest = exports.ExportMasterRequest = exports.GetDistributorModelRequest = exports.DescribeDistributorModelsRequest = exports.DeleteDistributorModelMasterRequest = exports.UpdateDistributorModelMasterRequest = exports.GetDistributorModelMasterRequest = exports.CreateDistributorModelMasterRequest = exports.DescribeDistributorModelMastersRequest = exports.DeleteNamespaceRequest = exports.UpdateNamespaceRequest = exports.GetNamespaceRequest = exports.GetNamespaceStatusRequest = exports.CreateNamespaceRequest = exports.DescribeNamespacesRequest = void 0;
3
+ exports.GetStampSheetResultByUserIdRequest = exports.GetStampSheetResultRequest = exports.SetTransactionDefaultConfigByUserIdRequest = exports.SetTransactionDefaultConfigRequest = exports.RunStampSheetExpressWithoutNamespaceRequest = exports.RunStampSheetWithoutNamespaceRequest = exports.RunStampTaskWithoutNamespaceRequest = exports.RunStampSheetExpressRequest = exports.RunStampSheetRequest = exports.RunStampTaskRequest = exports.DistributeWithoutOverflowProcessRequest = exports.DistributeRequest = exports.UpdateCurrentDistributorMasterFromGitHubRequest = exports.UpdateCurrentDistributorMasterRequest = exports.GetCurrentDistributorMasterRequest = exports.ExportMasterRequest = exports.GetDistributorModelRequest = exports.DescribeDistributorModelsRequest = exports.DeleteDistributorModelMasterRequest = exports.UpdateDistributorModelMasterRequest = exports.GetDistributorModelMasterRequest = exports.CreateDistributorModelMasterRequest = exports.DescribeDistributorModelMastersRequest = 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
@@ -67,6 +67,10 @@ var RunStampSheetWithoutNamespaceRequest_1 = tslib_1.__importDefault(require("./
67
67
  exports.RunStampSheetWithoutNamespaceRequest = RunStampSheetWithoutNamespaceRequest_1.default;
68
68
  var RunStampSheetExpressWithoutNamespaceRequest_1 = tslib_1.__importDefault(require("./RunStampSheetExpressWithoutNamespaceRequest"));
69
69
  exports.RunStampSheetExpressWithoutNamespaceRequest = RunStampSheetExpressWithoutNamespaceRequest_1.default;
70
+ var SetTransactionDefaultConfigRequest_1 = tslib_1.__importDefault(require("./SetTransactionDefaultConfigRequest"));
71
+ exports.SetTransactionDefaultConfigRequest = SetTransactionDefaultConfigRequest_1.default;
72
+ var SetTransactionDefaultConfigByUserIdRequest_1 = tslib_1.__importDefault(require("./SetTransactionDefaultConfigByUserIdRequest"));
73
+ exports.SetTransactionDefaultConfigByUserIdRequest = SetTransactionDefaultConfigByUserIdRequest_1.default;
70
74
  var GetStampSheetResultRequest_1 = tslib_1.__importDefault(require("./GetStampSheetResultRequest"));
71
75
  exports.GetStampSheetResultRequest = GetStampSheetResultRequest_1.default;
72
76
  var GetStampSheetResultByUserIdRequest_1 = tslib_1.__importDefault(require("./GetStampSheetResultByUserIdRequest"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kGAAmE;AA6B/D,oCA7BG,mCAAyB,CA6BH;AA5B7B,4FAA6D;AA6BzD,iCA7BG,gCAAsB,CA6BH;AA5B1B,kGAAmE;AA6B/D,oCA7BG,mCAAyB,CA6BH;AA5B7B,sFAAuD;AA6BnD,8BA7BG,6BAAmB,CA6BH;AA5BvB,4FAA6D;AA6BzD,iCA7BG,gCAAsB,CA6BH;AA5B1B,4FAA6D;AA6BzD,iCA7BG,gCAAsB,CA6BH;AA5B1B,4HAA6F;AA6BzF,iDA7BG,gDAAsC,CA6BH;AA5B1C,sHAAuF;AA6BnF,8CA7BG,6CAAmC,CA6BH;AA5BvC,gHAAiF;AA6B7E,2CA7BG,0CAAgC,C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pressRequest"
38
38
  import RunStampTaskWithoutNamespaceRequest from "./RunStampTaskWithoutNamespaceRequest"
39
39
  import RunStampSheetWithoutNamespaceRequest from "./RunStampSheetWithoutNamespaceRequest"
40
40
  import RunStampSheetExpressWithoutNamespaceRequest from "./RunStampSheetExpressWithoutNamespaceRequest"
41
+ import SetTransactionDefaultConfigRequest from "./SetTransactionDefaultConfigRequest"
42
+ import SetTransactionDefaultConfigByUserIdRequest from "./SetTransactionDefaultConfigByUserIdRequest"
41
43
  import GetStampSheetResultRequest from "./GetStampSheetResultRequest"
42
44
  import GetStampSheetResultByUserIdRequest from "./GetStampSheetResultByUserIdRequest"
43
45
 
@@ -67,6 +69,8 @@ export {
67
69
  RunStampTaskWithoutNamespaceRequest,
68
70
  RunStampSheetWithoutNamespaceRequest,
69
71
  RunStampSheetExpressWithoutNamespaceRequest,
72
+ SetTransactionDefaultConfigRequest,
73
+ SetTransactionDefaultConfigByUserIdRequest,
70
74
  GetStampSheetResultRequest,
71
75
  GetStampSheetResultByUserIdRequest,
72
76
  };
@@ -29,6 +29,8 @@ export default class Gs2DistributorRestClient extends AbstractGs2RestClient {
29
29
  runStampTaskWithoutNamespace(request: Request.RunStampTaskWithoutNamespaceRequest): Promise<Result.RunStampTaskWithoutNamespaceResult>;
30
30
  runStampSheetWithoutNamespace(request: Request.RunStampSheetWithoutNamespaceRequest): Promise<Result.RunStampSheetWithoutNamespaceResult>;
31
31
  runStampSheetExpressWithoutNamespace(request: Request.RunStampSheetExpressWithoutNamespaceRequest): Promise<Result.RunStampSheetExpressWithoutNamespaceResult>;
32
+ setTransactionDefaultConfig(request: Request.SetTransactionDefaultConfigRequest): Promise<Result.SetTransactionDefaultConfigResult>;
33
+ setTransactionDefaultConfigByUserId(request: Request.SetTransactionDefaultConfigByUserIdRequest): Promise<Result.SetTransactionDefaultConfigByUserIdResult>;
32
34
  getStampSheetResult(request: Request.GetStampSheetResultRequest): Promise<Result.GetStampSheetResultResult>;
33
35
  getStampSheetResultByUserId(request: Request.GetStampSheetResultByUserIdRequest): Promise<Result.GetStampSheetResultByUserIdResult>;
34
36
  }
@@ -676,6 +676,65 @@ var Gs2DistributorRestClient = /** @class */ (function (_super) {
676
676
  }
677
677
  });
678
678
  };
679
+ Gs2DistributorRestClient.prototype.setTransactionDefaultConfig = function (request) {
680
+ var _a, _b, _c, _d;
681
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/transaction/user/me/config')
682
+ .replace('{service}', 'distributor')
683
+ .replace('{region}', this.session.region);
684
+ var headers = this.createAuthorizedHeaders();
685
+ if (request.getRequestId()) {
686
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
687
+ }
688
+ if (request.getAccessToken()) {
689
+ headers['X-GS2-ACCESS-TOKEN'] = (_a = request.getAccessToken()) !== null && _a !== void 0 ? _a : null;
690
+ }
691
+ var body = {
692
+ 'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
693
+ 'config': (_d = (_c = request.getConfig()) === null || _c === void 0 ? void 0 : _c.map(function (item) { return item.toDict(); })) !== null && _d !== void 0 ? _d : null,
694
+ };
695
+ return axios_1.default.post(url, body, {
696
+ headers: headers,
697
+ }).then(function (response) {
698
+ return Result.SetTransactionDefaultConfigResult.fromDict(response.data);
699
+ }).catch(function (error) {
700
+ if (error.response) {
701
+ throw JSON.parse(error.response.data.message);
702
+ }
703
+ else {
704
+ throw [];
705
+ }
706
+ });
707
+ };
708
+ Gs2DistributorRestClient.prototype.setTransactionDefaultConfigByUserId = function (request) {
709
+ var _a, _b, _c, _d, _e, _f;
710
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/transaction/user/{userId}/config')
711
+ .replace('{service}', 'distributor')
712
+ .replace('{region}', this.session.region)
713
+ .replace('{userId}', String((_a = request.getUserId()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getUserId()) !== null && _b !== void 0 ? _b : 'null'));
714
+ var headers = this.createAuthorizedHeaders();
715
+ if (request.getRequestId()) {
716
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
717
+ }
718
+ if (request.getTimeOffsetToken()) {
719
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = (_c = request.getTimeOffsetToken()) !== null && _c !== void 0 ? _c : null;
720
+ }
721
+ var body = {
722
+ 'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
723
+ 'config': (_f = (_e = request.getConfig()) === null || _e === void 0 ? void 0 : _e.map(function (item) { return item.toDict(); })) !== null && _f !== void 0 ? _f : null,
724
+ };
725
+ return axios_1.default.post(url, body, {
726
+ headers: headers,
727
+ }).then(function (response) {
728
+ return Result.SetTransactionDefaultConfigByUserIdResult.fromDict(response.data);
729
+ }).catch(function (error) {
730
+ if (error.response) {
731
+ throw JSON.parse(error.response.data.message);
732
+ }
733
+ else {
734
+ throw [];
735
+ }
736
+ });
737
+ };
679
738
  Gs2DistributorRestClient.prototype.getStampSheetResult = function (request) {
680
739
  var _a, _b, _c, _d, _e, _f;
681
740
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/stampSheet/{transactionId}/result')