gs2 1.3.197 → 1.3.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2",
3
- "version": "1.3.197",
3
+ "version": "1.3.198",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -0,0 +1,17 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class AcquireAction implements IModel {
3
+ private action;
4
+ private request;
5
+ getAction(): string | null;
6
+ setAction(action: string | null): this;
7
+ withAction(action: string | null): this;
8
+ getRequest(): string | null;
9
+ setRequest(request: string | null): this;
10
+ withRequest(request: string | null): this;
11
+ static fromDict(data: {
12
+ [key: string]: any;
13
+ }): AcquireAction | null;
14
+ toDict(): {
15
+ [key: string]: any;
16
+ };
17
+ }
@@ -0,0 +1,62 @@
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 AcquireAction = /** @class */ (function () {
19
+ function AcquireAction() {
20
+ this.action = null;
21
+ this.request = null;
22
+ }
23
+ AcquireAction.prototype.getAction = function () {
24
+ return this.action;
25
+ };
26
+ AcquireAction.prototype.setAction = function (action) {
27
+ this.action = action;
28
+ return this;
29
+ };
30
+ AcquireAction.prototype.withAction = function (action) {
31
+ this.action = action;
32
+ return this;
33
+ };
34
+ AcquireAction.prototype.getRequest = function () {
35
+ return this.request;
36
+ };
37
+ AcquireAction.prototype.setRequest = function (request) {
38
+ this.request = request;
39
+ return this;
40
+ };
41
+ AcquireAction.prototype.withRequest = function (request) {
42
+ this.request = request;
43
+ return this;
44
+ };
45
+ AcquireAction.fromDict = function (data) {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new AcquireAction()
50
+ .withAction(data["action"])
51
+ .withRequest(data["request"]);
52
+ };
53
+ AcquireAction.prototype.toDict = function () {
54
+ return {
55
+ "action": this.getAction(),
56
+ "request": this.getRequest(),
57
+ };
58
+ };
59
+ return AcquireAction;
60
+ }());
61
+ exports.default = AcquireAction;
62
+ //# sourceMappingURL=AcquireAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcquireAction.js","sourceRoot":"","sources":["AcquireAction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,WAAM,GAAgB,IAAI,CAAC;QAC3B,YAAO,GAAgB,IAAI,CAAC;IAuCxC,CAAC;IAtCU,iCAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,iCAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACM,kCAAU,GAAjB,UAAkB,OAAoB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAW,GAAlB,UAAmB,OAAoB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAzCD,IAyCC"}
@@ -0,0 +1,60 @@
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 IModel from '../../core/interface/IModel';
18
+
19
+ export default class AcquireAction implements IModel {
20
+ private action: string|null = null;
21
+ private request: string|null = null;
22
+ public getAction(): string|null {
23
+ return this.action;
24
+ }
25
+ public setAction(action: string|null) {
26
+ this.action = action;
27
+ return this;
28
+ }
29
+ public withAction(action: string|null): this {
30
+ this.action = action;
31
+ return this;
32
+ }
33
+ public getRequest(): string|null {
34
+ return this.request;
35
+ }
36
+ public setRequest(request: string|null) {
37
+ this.request = request;
38
+ return this;
39
+ }
40
+ public withRequest(request: string|null): this {
41
+ this.request = request;
42
+ return this;
43
+ }
44
+
45
+ public static fromDict(data: {[key: string]: any}): AcquireAction|null {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new AcquireAction()
50
+ .withAction(data["action"])
51
+ .withRequest(data["request"]);
52
+ }
53
+
54
+ public toDict(): {[key: string]: any} {
55
+ return {
56
+ "action": this.getAction(),
57
+ "request": this.getRequest(),
58
+ };
59
+ }
60
+ }
@@ -0,0 +1,17 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ export default class ConsumeAction implements IModel {
3
+ private action;
4
+ private request;
5
+ getAction(): string | null;
6
+ setAction(action: string | null): this;
7
+ withAction(action: string | null): this;
8
+ getRequest(): string | null;
9
+ setRequest(request: string | null): this;
10
+ withRequest(request: string | null): this;
11
+ static fromDict(data: {
12
+ [key: string]: any;
13
+ }): ConsumeAction | null;
14
+ toDict(): {
15
+ [key: string]: any;
16
+ };
17
+ }
@@ -0,0 +1,62 @@
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 ConsumeAction = /** @class */ (function () {
19
+ function ConsumeAction() {
20
+ this.action = null;
21
+ this.request = null;
22
+ }
23
+ ConsumeAction.prototype.getAction = function () {
24
+ return this.action;
25
+ };
26
+ ConsumeAction.prototype.setAction = function (action) {
27
+ this.action = action;
28
+ return this;
29
+ };
30
+ ConsumeAction.prototype.withAction = function (action) {
31
+ this.action = action;
32
+ return this;
33
+ };
34
+ ConsumeAction.prototype.getRequest = function () {
35
+ return this.request;
36
+ };
37
+ ConsumeAction.prototype.setRequest = function (request) {
38
+ this.request = request;
39
+ return this;
40
+ };
41
+ ConsumeAction.prototype.withRequest = function (request) {
42
+ this.request = request;
43
+ return this;
44
+ };
45
+ ConsumeAction.fromDict = function (data) {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new ConsumeAction()
50
+ .withAction(data["action"])
51
+ .withRequest(data["request"]);
52
+ };
53
+ ConsumeAction.prototype.toDict = function () {
54
+ return {
55
+ "action": this.getAction(),
56
+ "request": this.getRequest(),
57
+ };
58
+ };
59
+ return ConsumeAction;
60
+ }());
61
+ exports.default = ConsumeAction;
62
+ //# sourceMappingURL=ConsumeAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConsumeAction.js","sourceRoot":"","sources":["ConsumeAction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,WAAM,GAAgB,IAAI,CAAC;QAC3B,YAAO,GAAgB,IAAI,CAAC;IAuCxC,CAAC;IAtCU,iCAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACM,iCAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB,UAAkB,MAAmB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kCAAU,GAAjB;QACI,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IACM,kCAAU,GAAjB,UAAkB,OAAoB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,mCAAW,GAAlB,UAAmB,OAAoB;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACtC,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;SAC/B,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAzCD,IAyCC"}
@@ -0,0 +1,60 @@
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 IModel from '../../core/interface/IModel';
18
+
19
+ export default class ConsumeAction implements IModel {
20
+ private action: string|null = null;
21
+ private request: string|null = null;
22
+ public getAction(): string|null {
23
+ return this.action;
24
+ }
25
+ public setAction(action: string|null) {
26
+ this.action = action;
27
+ return this;
28
+ }
29
+ public withAction(action: string|null): this {
30
+ this.action = action;
31
+ return this;
32
+ }
33
+ public getRequest(): string|null {
34
+ return this.request;
35
+ }
36
+ public setRequest(request: string|null) {
37
+ this.request = request;
38
+ return this;
39
+ }
40
+ public withRequest(request: string|null): this {
41
+ this.request = request;
42
+ return this;
43
+ }
44
+
45
+ public static fromDict(data: {[key: string]: any}): ConsumeAction|null {
46
+ if (data == undefined || data == null) {
47
+ return null;
48
+ }
49
+ return new ConsumeAction()
50
+ .withAction(data["action"])
51
+ .withRequest(data["request"]);
52
+ }
53
+
54
+ public toDict(): {[key: string]: any} {
55
+ return {
56
+ "action": this.getAction(),
57
+ "request": this.getRequest(),
58
+ };
59
+ }
60
+ }
@@ -0,0 +1,19 @@
1
+ import IModel from '../../core/interface/IModel';
2
+ import ConsumeAction from './ConsumeAction';
3
+ import AcquireAction from './AcquireAction';
4
+ export default class Transaction implements IModel {
5
+ private consumeActions;
6
+ private acquireActions;
7
+ getConsumeActions(): ConsumeAction[] | null;
8
+ setConsumeActions(consumeActions: ConsumeAction[] | null): this;
9
+ withConsumeActions(consumeActions: ConsumeAction[] | null): this;
10
+ getAcquireActions(): AcquireAction[] | null;
11
+ setAcquireActions(acquireActions: AcquireAction[] | null): this;
12
+ withAcquireActions(acquireActions: AcquireAction[] | null): this;
13
+ static fromDict(data: {
14
+ [key: string]: any;
15
+ }): Transaction | null;
16
+ toDict(): {
17
+ [key: string]: any;
18
+ };
19
+ }
@@ -0,0 +1,77 @@
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 ConsumeAction_1 = tslib_1.__importDefault(require("./ConsumeAction"));
20
+ var AcquireAction_1 = tslib_1.__importDefault(require("./AcquireAction"));
21
+ var Transaction = /** @class */ (function () {
22
+ function Transaction() {
23
+ this.consumeActions = null;
24
+ this.acquireActions = null;
25
+ }
26
+ Transaction.prototype.getConsumeActions = function () {
27
+ return this.consumeActions;
28
+ };
29
+ Transaction.prototype.setConsumeActions = function (consumeActions) {
30
+ this.consumeActions = consumeActions;
31
+ return this;
32
+ };
33
+ Transaction.prototype.withConsumeActions = function (consumeActions) {
34
+ this.consumeActions = consumeActions;
35
+ return this;
36
+ };
37
+ Transaction.prototype.getAcquireActions = function () {
38
+ return this.acquireActions;
39
+ };
40
+ Transaction.prototype.setAcquireActions = function (acquireActions) {
41
+ this.acquireActions = acquireActions;
42
+ return this;
43
+ };
44
+ Transaction.prototype.withAcquireActions = function (acquireActions) {
45
+ this.acquireActions = acquireActions;
46
+ return this;
47
+ };
48
+ Transaction.fromDict = function (data) {
49
+ if (data == undefined || data == null) {
50
+ return null;
51
+ }
52
+ return new Transaction()
53
+ .withConsumeActions(data.consumeActions ?
54
+ data.consumeActions.map(function (item) {
55
+ return ConsumeAction_1.default.fromDict(item);
56
+ }) : [])
57
+ .withAcquireActions(data.acquireActions ?
58
+ data.acquireActions.map(function (item) {
59
+ return AcquireAction_1.default.fromDict(item);
60
+ }) : []);
61
+ };
62
+ Transaction.prototype.toDict = function () {
63
+ return {
64
+ "consumeActions": this.getConsumeActions() ?
65
+ this.getConsumeActions().map(function (item) {
66
+ return item.toDict();
67
+ }) : [],
68
+ "acquireActions": this.getAcquireActions() ?
69
+ this.getAcquireActions().map(function (item) {
70
+ return item.toDict();
71
+ }) : [],
72
+ };
73
+ };
74
+ return Transaction;
75
+ }());
76
+ exports.default = Transaction;
77
+ //# sourceMappingURL=Transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["Transaction.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAA4C;AAC5C,0EAA4C;AAE5C;IAAA;QACY,mBAAc,GAAyB,IAAI,CAAC;QAC5C,mBAAc,GAAyB,IAAI,CAAC;IAuDxD,CAAC;IAtDU,uCAAiB,GAAxB;QACI,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IACM,uCAAiB,GAAxB,UAAyB,cAAoC;QACzD,IAAI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C9C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;YACN,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC;gBACxC,IAAI,CAAC,iBAAiB,EAAG,CAAC,GAAG,CAAC,UAAC,IAAmB;oBAC9C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,kBAAC;AAAD,CAAC,AAzDD,IAyDC"}
@@ -0,0 +1,78 @@
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 IModel from '../../core/interface/IModel';
18
+ import ConsumeAction from './ConsumeAction';
19
+ import AcquireAction from './AcquireAction';
20
+
21
+ export default class Transaction implements IModel {
22
+ private consumeActions: ConsumeAction[]|null = null;
23
+ private acquireActions: AcquireAction[]|null = null;
24
+ public getConsumeActions(): ConsumeAction[]|null {
25
+ return this.consumeActions;
26
+ }
27
+ public setConsumeActions(consumeActions: ConsumeAction[]|null) {
28
+ this.consumeActions = consumeActions;
29
+ return this;
30
+ }
31
+ public withConsumeActions(consumeActions: ConsumeAction[]|null): this {
32
+ this.consumeActions = consumeActions;
33
+ return this;
34
+ }
35
+ public getAcquireActions(): AcquireAction[]|null {
36
+ return this.acquireActions;
37
+ }
38
+ public setAcquireActions(acquireActions: AcquireAction[]|null) {
39
+ this.acquireActions = acquireActions;
40
+ return this;
41
+ }
42
+ public withAcquireActions(acquireActions: AcquireAction[]|null): this {
43
+ this.acquireActions = acquireActions;
44
+ return this;
45
+ }
46
+
47
+ public static fromDict(data: {[key: string]: any}): Transaction|null {
48
+ if (data == undefined || data == null) {
49
+ return null;
50
+ }
51
+ return new Transaction()
52
+ .withConsumeActions(data.consumeActions ?
53
+ data.consumeActions.map((item: {[key: string]: any}) => {
54
+ return ConsumeAction.fromDict(item);
55
+ }
56
+ ) : [])
57
+ .withAcquireActions(data.acquireActions ?
58
+ data.acquireActions.map((item: {[key: string]: any}) => {
59
+ return AcquireAction.fromDict(item);
60
+ }
61
+ ) : []);
62
+ }
63
+
64
+ public toDict(): {[key: string]: any} {
65
+ return {
66
+ "consumeActions": this.getConsumeActions() ?
67
+ this.getConsumeActions()!.map((item: ConsumeAction) => {
68
+ return item.toDict();
69
+ }
70
+ ) : [],
71
+ "acquireActions": this.getAcquireActions() ?
72
+ this.getAcquireActions()!.map((item: AcquireAction) => {
73
+ return item.toDict();
74
+ }
75
+ ) : [],
76
+ };
77
+ }
78
+ }
@@ -1,7 +1,10 @@
1
1
  import Namespace from "./Namespace";
2
2
  import Script from "./Script";
3
- import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
4
- import LogSetting from "./LogSetting";
5
3
  import RandomStatus from "./RandomStatus";
6
4
  import RandomUsed from "./RandomUsed";
7
- export { Namespace, Script, GitHubCheckoutSetting, LogSetting, RandomStatus, RandomUsed, };
5
+ import AcquireAction from "./AcquireAction";
6
+ import ConsumeAction from "./ConsumeAction";
7
+ import Transaction from "./Transaction";
8
+ import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
9
+ import LogSetting from "./LogSetting";
10
+ export { Namespace, Script, RandomStatus, RandomUsed, AcquireAction, ConsumeAction, Transaction, GitHubCheckoutSetting, LogSetting, };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RandomUsed = exports.RandomStatus = exports.LogSetting = exports.GitHubCheckoutSetting = exports.Script = exports.Namespace = void 0;
3
+ exports.LogSetting = exports.GitHubCheckoutSetting = exports.Transaction = exports.ConsumeAction = exports.AcquireAction = exports.RandomUsed = exports.RandomStatus = exports.Script = exports.Namespace = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  /*
6
6
  Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
@@ -21,12 +21,18 @@ var Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
21
21
  exports.Namespace = Namespace_1.default;
22
22
  var Script_1 = tslib_1.__importDefault(require("./Script"));
23
23
  exports.Script = Script_1.default;
24
- var GitHubCheckoutSetting_1 = tslib_1.__importDefault(require("./GitHubCheckoutSetting"));
25
- exports.GitHubCheckoutSetting = GitHubCheckoutSetting_1.default;
26
- var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
27
- exports.LogSetting = LogSetting_1.default;
28
24
  var RandomStatus_1 = tslib_1.__importDefault(require("./RandomStatus"));
29
25
  exports.RandomStatus = RandomStatus_1.default;
30
26
  var RandomUsed_1 = tslib_1.__importDefault(require("./RandomUsed"));
31
27
  exports.RandomUsed = RandomUsed_1.default;
28
+ var AcquireAction_1 = tslib_1.__importDefault(require("./AcquireAction"));
29
+ exports.AcquireAction = AcquireAction_1.default;
30
+ var ConsumeAction_1 = tslib_1.__importDefault(require("./ConsumeAction"));
31
+ exports.ConsumeAction = ConsumeAction_1.default;
32
+ var Transaction_1 = tslib_1.__importDefault(require("./Transaction"));
33
+ exports.Transaction = Transaction_1.default;
34
+ var GitHubCheckoutSetting_1 = tslib_1.__importDefault(require("./GitHubCheckoutSetting"));
35
+ exports.GitHubCheckoutSetting = GitHubCheckoutSetting_1.default;
36
+ var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
37
+ exports.LogSetting = LogSetting_1.default;
32
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAQ/B,oBARG,mBAAS,CAQH;AAPb,4DAA6B;AAQzB,iBARG,gBAAM,CAQH;AAPV,0FAA2D;AAQvD,gCARG,+BAAqB,CAQH;AAPzB,oEAAqC;AAQjC,qBARG,oBAAU,CAQH;AAPd,wEAAyC;AAQrC,uBARG,sBAAY,CAQH;AAPhB,oEAAqC;AAQjC,qBARG,oBAAU,CAQH"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAW/B,oBAXG,mBAAS,CAWH;AAVb,4DAA6B;AAWzB,iBAXG,gBAAM,CAWH;AAVV,wEAAyC;AAWrC,uBAXG,sBAAY,CAWH;AAVhB,oEAAqC;AAWjC,qBAXG,oBAAU,CAWH;AAVd,0EAA2C;AAWvC,wBAXG,uBAAa,CAWH;AAVjB,0EAA2C;AAWvC,wBAXG,uBAAa,CAWH;AAVjB,sEAAuC;AAWnC,sBAXG,qBAAW,CAWH;AAVf,0FAA2D;AAWvD,gCAXG,+BAAqB,CAWH;AAVzB,oEAAqC;AAWjC,qBAXG,oBAAU,CAWH"}
@@ -15,16 +15,22 @@ permissions and limitations under the License.
15
15
  */
16
16
  import Namespace from "./Namespace"
17
17
  import Script from "./Script"
18
- import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
19
- import LogSetting from "./LogSetting"
20
18
  import RandomStatus from "./RandomStatus"
21
19
  import RandomUsed from "./RandomUsed"
20
+ import AcquireAction from "./AcquireAction"
21
+ import ConsumeAction from "./ConsumeAction"
22
+ import Transaction from "./Transaction"
23
+ import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
24
+ import LogSetting from "./LogSetting"
22
25
 
23
26
  export {
24
27
  Namespace,
25
28
  Script,
26
- GitHubCheckoutSetting,
27
- LogSetting,
28
29
  RandomStatus,
29
30
  RandomUsed,
31
+ AcquireAction,
32
+ ConsumeAction,
33
+ Transaction,
34
+ GitHubCheckoutSetting,
35
+ LogSetting,
30
36
  };
@@ -14,9 +14,9 @@ export default class DebugInvokeResult implements IResult {
14
14
  getResult(): string | null;
15
15
  setResult(result: string | null): this;
16
16
  withResult(result: string | null): this;
17
- getTransaction(): string | null;
18
- setTransaction(transaction: string | null): this;
19
- withTransaction(transaction: string | null): this;
17
+ getTransaction(): Gs2Script.Transaction | null;
18
+ setTransaction(transaction: Gs2Script.Transaction | null): this;
19
+ withTransaction(transaction: Gs2Script.Transaction | null): this;
20
20
  getRandomStatus(): Gs2Script.RandomStatus | null;
21
21
  setRandomStatus(randomStatus: Gs2Script.RandomStatus | null): this;
22
22
  withRandomStatus(randomStatus: Gs2Script.RandomStatus | null): this;
@@ -108,7 +108,7 @@ var DebugInvokeResult = /** @class */ (function () {
108
108
  return new DebugInvokeResult()
109
109
  .withCode(data["code"])
110
110
  .withResult(data["result"])
111
- .withTransaction(data["transaction"])
111
+ .withTransaction(Gs2Script.Transaction.fromDict(data["transaction"]))
112
112
  .withRandomStatus(Gs2Script.RandomStatus.fromDict(data["randomStatus"]))
113
113
  .withExecuteTime(data["executeTime"])
114
114
  .withCharged(data["charged"])
@@ -118,12 +118,12 @@ var DebugInvokeResult = /** @class */ (function () {
118
118
  }) : []);
119
119
  };
120
120
  DebugInvokeResult.prototype.toDict = function () {
121
- var _a;
121
+ var _a, _b;
122
122
  return {
123
123
  "code": this.getCode(),
124
124
  "result": this.getResult(),
125
- "transaction": this.getTransaction(),
126
- "randomStatus": (_a = this.getRandomStatus()) === null || _a === void 0 ? void 0 : _a.toDict(),
125
+ "transaction": (_a = this.getTransaction()) === null || _a === void 0 ? void 0 : _a.toDict(),
126
+ "randomStatus": (_b = this.getRandomStatus()) === null || _b === void 0 ? void 0 : _b.toDict(),
127
127
  "executeTime": this.getExecuteTime(),
128
128
  "charged": this.getCharged(),
129
129
  "output": this.getOutput() ?
@@ -1 +1 @@
1
- {"version":3,"file":"DebugInvokeResult.js","sourceRoot":"","sources":["DebugInvokeResult.ts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,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;aACpE,gBAAgB,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;aACvE,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC5B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACvC,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,kCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,aAAa,EAAE,MAAA,IAAI,CAAC,cAAc,EAAE,0CAAE,MAAM,EAAE;YAC9C,cAAc,EAAE,MAAA,IAAI,CAAC,eAAe,EAAE,0CAAE,MAAM,EAAE;YAChD,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC/B,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,wBAAC;AAAD,CAAC,AAzID,IAyIC"}
@@ -21,7 +21,7 @@ import * as Gs2Script from '../model'
21
21
  export default class DebugInvokeResult implements IResult {
22
22
  private code: number|null = null;
23
23
  private result: string|null = null;
24
- private transaction: string|null = null;
24
+ private transaction: Gs2Script.Transaction|null = null;
25
25
  private randomStatus: Gs2Script.RandomStatus|null = null;
26
26
  private executeTime: number|null = null;
27
27
  private charged: number|null = null;
@@ -55,16 +55,16 @@ export default class DebugInvokeResult implements IResult {
55
55
  return this;
56
56
  }
57
57
 
58
- public getTransaction(): string|null {
58
+ public getTransaction(): Gs2Script.Transaction|null {
59
59
  return this.transaction;
60
60
  }
61
61
 
62
- public setTransaction(transaction: string|null) {
62
+ public setTransaction(transaction: Gs2Script.Transaction|null) {
63
63
  this.transaction = transaction;
64
64
  return this;
65
65
  }
66
66
 
67
- public withTransaction(transaction: string|null): this {
67
+ public withTransaction(transaction: Gs2Script.Transaction|null): this {
68
68
  this.transaction = transaction;
69
69
  return this;
70
70
  }
@@ -129,7 +129,7 @@ export default class DebugInvokeResult implements IResult {
129
129
  return new DebugInvokeResult()
130
130
  .withCode(data["code"])
131
131
  .withResult(data["result"])
132
- .withTransaction(data["transaction"])
132
+ .withTransaction(Gs2Script.Transaction.fromDict(data["transaction"]))
133
133
  .withRandomStatus(Gs2Script.RandomStatus.fromDict(data["randomStatus"]))
134
134
  .withExecuteTime(data["executeTime"])
135
135
  .withCharged(data["charged"])
@@ -144,7 +144,7 @@ export default class DebugInvokeResult implements IResult {
144
144
  return {
145
145
  "code": this.getCode(),
146
146
  "result": this.getResult(),
147
- "transaction": this.getTransaction(),
147
+ "transaction": this.getTransaction()?.toDict(),
148
148
  "randomStatus": this.getRandomStatus()?.toDict(),
149
149
  "executeTime": this.getExecuteTime(),
150
150
  "charged": this.getCharged(),
@@ -14,9 +14,9 @@ export default class InvokeScriptResult implements IResult {
14
14
  getResult(): string | null;
15
15
  setResult(result: string | null): this;
16
16
  withResult(result: string | null): this;
17
- getTransaction(): string | null;
18
- setTransaction(transaction: string | null): this;
19
- withTransaction(transaction: string | null): this;
17
+ getTransaction(): Gs2Script.Transaction | null;
18
+ setTransaction(transaction: Gs2Script.Transaction | null): this;
19
+ withTransaction(transaction: Gs2Script.Transaction | null): this;
20
20
  getRandomStatus(): Gs2Script.RandomStatus | null;
21
21
  setRandomStatus(randomStatus: Gs2Script.RandomStatus | null): this;
22
22
  withRandomStatus(randomStatus: Gs2Script.RandomStatus | null): this;
@@ -108,7 +108,7 @@ var InvokeScriptResult = /** @class */ (function () {
108
108
  return new InvokeScriptResult()
109
109
  .withCode(data["code"])
110
110
  .withResult(data["result"])
111
- .withTransaction(data["transaction"])
111
+ .withTransaction(Gs2Script.Transaction.fromDict(data["transaction"]))
112
112
  .withRandomStatus(Gs2Script.RandomStatus.fromDict(data["randomStatus"]))
113
113
  .withExecuteTime(data["executeTime"])
114
114
  .withCharged(data["charged"])
@@ -118,12 +118,12 @@ var InvokeScriptResult = /** @class */ (function () {
118
118
  }) : []);
119
119
  };
120
120
  InvokeScriptResult.prototype.toDict = function () {
121
- var _a;
121
+ var _a, _b;
122
122
  return {
123
123
  "code": this.getCode(),
124
124
  "result": this.getResult(),
125
- "transaction": this.getTransaction(),
126
- "randomStatus": (_a = this.getRandomStatus()) === null || _a === void 0 ? void 0 : _a.toDict(),
125
+ "transaction": (_a = this.getTransaction()) === null || _a === void 0 ? void 0 : _a.toDict(),
126
+ "randomStatus": (_b = this.getRandomStatus()) === null || _b === void 0 ? void 0 : _b.toDict(),
127
127
  "executeTime": this.getExecuteTime(),
128
128
  "charged": this.getCharged(),
129
129
  "output": this.getOutput() ?
@@ -1 +1 @@
1
- {"version":3,"file":"InvokeScriptResult.js","sourceRoot":"","sources":["InvokeScriptResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,0DAAqC;AAErC;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QAC3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,iBAAY,GAAgC,IAAI,CAAC;QACjD,gBAAW,GAAgB,IAAI,CAAC;QAChC,YAAO,GAAgB,IAAI,CAAC;QAC5B,WAAM,GAAkB,IAAI,CAAC;IAkIzC,CAAC;IAhIU,oCAAO,GAAd;QACI,OAAO,IAAI,CAAC,I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AG,CAAC,UAAC,IAA0B;gBACvC,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,mCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,aAAa,EAAE,MAAA,IAAI,CAAC,cAAc,EAAE,0CAAE,MAAM,EAAE;YAC9C,cAAc,EAAE,MAAA,IAAI,CAAC,eAAe,EAAE,0CAAE,MAAM,EAAE;YAChD,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC/B,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,yBAAC;AAAD,CAAC,AAzID,IAyIC"}
@@ -21,7 +21,7 @@ import * as Gs2Script from '../model'
21
21
  export default class InvokeScriptResult implements IResult {
22
22
  private code: number|null = null;
23
23
  private result: string|null = null;
24
- private transaction: string|null = null;
24
+ private transaction: Gs2Script.Transaction|null = null;
25
25
  private randomStatus: Gs2Script.RandomStatus|null = null;
26
26
  private executeTime: number|null = null;
27
27
  private charged: number|null = null;
@@ -55,16 +55,16 @@ export default class InvokeScriptResult implements IResult {
55
55
  return this;
56
56
  }
57
57
 
58
- public getTransaction(): string|null {
58
+ public getTransaction(): Gs2Script.Transaction|null {
59
59
  return this.transaction;
60
60
  }
61
61
 
62
- public setTransaction(transaction: string|null) {
62
+ public setTransaction(transaction: Gs2Script.Transaction|null) {
63
63
  this.transaction = transaction;
64
64
  return this;
65
65
  }
66
66
 
67
- public withTransaction(transaction: string|null): this {
67
+ public withTransaction(transaction: Gs2Script.Transaction|null): this {
68
68
  this.transaction = transaction;
69
69
  return this;
70
70
  }
@@ -129,7 +129,7 @@ export default class InvokeScriptResult implements IResult {
129
129
  return new InvokeScriptResult()
130
130
  .withCode(data["code"])
131
131
  .withResult(data["result"])
132
- .withTransaction(data["transaction"])
132
+ .withTransaction(Gs2Script.Transaction.fromDict(data["transaction"]))
133
133
  .withRandomStatus(Gs2Script.RandomStatus.fromDict(data["randomStatus"]))
134
134
  .withExecuteTime(data["executeTime"])
135
135
  .withCharged(data["charged"])
@@ -144,7 +144,7 @@ export default class InvokeScriptResult implements IResult {
144
144
  return {
145
145
  "code": this.getCode(),
146
146
  "result": this.getResult(),
147
- "transaction": this.getTransaction(),
147
+ "transaction": this.getTransaction()?.toDict(),
148
148
  "randomStatus": this.getRandomStatus()?.toDict(),
149
149
  "executeTime": this.getExecuteTime(),
150
150
  "charged": this.getCharged(),