gs2 1.3.86 → 1.3.89
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/log/model/AccessLog.js.map +1 -1
- package/log/model/AccessLog.ts +0 -21
- package/log/model/AccessLogCount.js.map +1 -1
- package/log/model/AccessLogCount.ts +0 -12
- package/log/model/ExecuteStampSheetLog.js.map +1 -1
- package/log/model/ExecuteStampSheetLog.ts +0 -21
- package/log/model/ExecuteStampSheetLogCount.js.map +1 -1
- package/log/model/ExecuteStampSheetLogCount.ts +0 -15
- package/log/model/ExecuteStampTaskLog.js.map +1 -1
- package/log/model/ExecuteStampTaskLog.ts +0 -21
- package/log/model/ExecuteStampTaskLogCount.js.map +1 -1
- package/log/model/ExecuteStampTaskLogCount.ts +0 -15
- package/log/model/Insight.d.ts +43 -0
- package/log/model/Insight.js +199 -0
- package/log/model/Insight.js.map +1 -0
- package/log/model/Insight.ts +212 -0
- package/log/model/IssueStampSheetLog.js.map +1 -1
- package/log/model/IssueStampSheetLog.ts +0 -24
- package/log/model/IssueStampSheetLogCount.js.map +1 -1
- package/log/model/IssueStampSheetLogCount.ts +0 -15
- package/log/model/Namespace.js.map +1 -1
- package/log/model/Namespace.ts +0 -42
- package/log/model/index.d.ts +2 -1
- package/log/model/index.js +3 -1
- package/log/model/index.js.map +1 -1
- package/log/model/index.ts +2 -0
- package/log/request/CountAccessLogRequest.js.map +1 -1
- package/log/request/CountAccessLogRequest.ts +0 -27
- package/log/request/CountExecuteStampSheetLogRequest.js.map +1 -1
- package/log/request/CountExecuteStampSheetLogRequest.ts +0 -30
- package/log/request/CountExecuteStampTaskLogRequest.js.map +1 -1
- package/log/request/CountExecuteStampTaskLogRequest.ts +0 -30
- package/log/request/CountIssueStampSheetLogRequest.js.map +1 -1
- package/log/request/CountIssueStampSheetLogRequest.ts +0 -30
- package/log/request/CreateInsightRequest.d.ts +21 -0
- package/log/request/CreateInsightRequest.js +69 -0
- package/log/request/CreateInsightRequest.js.map +1 -0
- package/log/request/CreateInsightRequest.ts +76 -0
- package/log/request/CreateNamespaceRequest.js.map +1 -1
- package/log/request/CreateNamespaceRequest.ts +0 -30
- package/log/request/DeleteInsightRequest.d.ts +25 -0
- package/log/request/DeleteInsightRequest.js +83 -0
- package/log/request/DeleteInsightRequest.js.map +1 -0
- package/log/request/DeleteInsightRequest.ts +90 -0
- package/log/request/DeleteNamespaceRequest.js.map +1 -1
- package/log/request/DeleteNamespaceRequest.ts +0 -3
- package/log/request/DescribeInsightsRequest.d.ts +29 -0
- package/log/request/DescribeInsightsRequest.js +97 -0
- package/log/request/DescribeInsightsRequest.js.map +1 -0
- package/log/request/DescribeInsightsRequest.ts +104 -0
- package/log/request/DescribeNamespacesRequest.js.map +1 -1
- package/log/request/DescribeNamespacesRequest.ts +0 -6
- package/log/request/GetInsightRequest.d.ts +25 -0
- package/log/request/GetInsightRequest.js +83 -0
- package/log/request/GetInsightRequest.js.map +1 -0
- package/log/request/GetInsightRequest.ts +90 -0
- package/log/request/GetNamespaceRequest.js.map +1 -1
- package/log/request/GetNamespaceRequest.ts +0 -3
- package/log/request/GetNamespaceStatusRequest.js.map +1 -1
- package/log/request/GetNamespaceStatusRequest.ts +0 -3
- package/log/request/PutLogRequest.js.map +1 -1
- package/log/request/PutLogRequest.ts +0 -9
- package/log/request/QueryAccessLogRequest.js.map +1 -1
- package/log/request/QueryAccessLogRequest.ts +0 -27
- package/log/request/QueryExecuteStampSheetLogRequest.js.map +1 -1
- package/log/request/QueryExecuteStampSheetLogRequest.ts +0 -30
- package/log/request/QueryExecuteStampTaskLogRequest.js.map +1 -1
- package/log/request/QueryExecuteStampTaskLogRequest.ts +0 -30
- package/log/request/QueryIssueStampSheetLogRequest.js.map +1 -1
- package/log/request/QueryIssueStampSheetLogRequest.ts +0 -30
- package/log/request/UpdateNamespaceRequest.js.map +1 -1
- package/log/request/UpdateNamespaceRequest.ts +0 -30
- package/log/request/index.d.ts +5 -1
- package/log/request/index.js +9 -1
- package/log/request/index.js.map +1 -1
- package/log/request/index.ts +8 -0
- package/log/rest.d.ts +4 -0
- package/log/rest.js +96 -0
- package/log/rest.js.map +1 -1
- package/log/rest.ts +112 -0
- package/log/result/CreateInsightResult.d.ts +14 -0
- package/log/result/CreateInsightResult.js +48 -0
- package/log/result/CreateInsightResult.js.map +1 -0
- package/log/result/CreateInsightResult.ts +48 -0
- package/log/result/DeleteInsightResult.d.ts +14 -0
- package/log/result/DeleteInsightResult.js +48 -0
- package/log/result/DeleteInsightResult.js.map +1 -0
- package/log/result/DeleteInsightResult.ts +48 -0
- package/log/result/DescribeInsightsResult.d.ts +18 -0
- package/log/result/DescribeInsightsResult.js +67 -0
- package/log/result/DescribeInsightsResult.js.map +1 -0
- package/log/result/DescribeInsightsResult.ts +73 -0
- package/log/result/GetInsightResult.d.ts +14 -0
- package/log/result/GetInsightResult.js +48 -0
- package/log/result/GetInsightResult.js.map +1 -0
- package/log/result/GetInsightResult.ts +48 -0
- package/log/result/index.d.ts +5 -1
- package/log/result/index.js +9 -1
- package/log/result/index.js.map +1 -1
- package/log/result/index.ts +8 -0
- package/package.json +1 -1
- package/showcase/model/Namespace.d.ts +5 -0
- package/showcase/model/Namespace.js +17 -2
- package/showcase/model/Namespace.js.map +1 -1
- package/showcase/model/Namespace.ts +15 -0
- package/showcase/model/ScriptSetting.d.ts +25 -0
- package/showcase/model/ScriptSetting.js +90 -0
- package/showcase/model/ScriptSetting.js.map +1 -0
- package/showcase/model/ScriptSetting.ts +88 -0
- package/showcase/model/index.d.ts +2 -1
- package/showcase/model/index.js +3 -1
- package/showcase/model/index.js.map +1 -1
- package/showcase/model/index.ts +2 -0
- package/showcase/request/CreateNamespaceRequest.d.ts +4 -0
- package/showcase/request/CreateNamespaceRequest.js +16 -2
- package/showcase/request/CreateNamespaceRequest.js.map +1 -1
- package/showcase/request/CreateNamespaceRequest.ts +14 -0
- package/showcase/request/UpdateNamespaceRequest.d.ts +4 -0
- package/showcase/request/UpdateNamespaceRequest.js +16 -2
- package/showcase/request/UpdateNamespaceRequest.js.map +1 -1
- package/showcase/request/UpdateNamespaceRequest.ts +14 -0
- package/showcase/rest.js +10 -8
- package/showcase/rest.js.map +1 -1
- package/showcase/rest.ts +2 -0
|
@@ -0,0 +1,48 @@
|
|
|
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 Gs2Log = tslib_1.__importStar(require("../model"));
|
|
20
|
+
var GetInsightResult = /** @class */ (function () {
|
|
21
|
+
function GetInsightResult() {
|
|
22
|
+
this.item = null;
|
|
23
|
+
}
|
|
24
|
+
GetInsightResult.prototype.getItem = function () {
|
|
25
|
+
return this.item;
|
|
26
|
+
};
|
|
27
|
+
GetInsightResult.prototype.setItem = function (item) {
|
|
28
|
+
this.item = item;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
GetInsightResult.prototype.withItem = function (item) {
|
|
32
|
+
this.item = item;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
GetInsightResult.fromDict = function (data) {
|
|
36
|
+
return new GetInsightResult()
|
|
37
|
+
.withItem(Gs2Log.Insight.fromDict(data["item"]));
|
|
38
|
+
};
|
|
39
|
+
GetInsightResult.prototype.toDict = function () {
|
|
40
|
+
var _a;
|
|
41
|
+
return {
|
|
42
|
+
"item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
return GetInsightResult;
|
|
46
|
+
}());
|
|
47
|
+
exports.default = GetInsightResult;
|
|
48
|
+
//# sourceMappingURL=GetInsightResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetInsightResult.js","sourceRoot":"","sources":["GetInsightResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,uDAAkC;AAElC;IAAA;QACY,SAAI,GAAwB,IAAI,CAAC;IA0B7C,CAAC;IAxBU,kCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,kCAAO,GAAd,UAAe,IAAyB;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,mCAAQ,GAAf,UAAgB,IAAyB;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,gBAAgB,EAAE;aACxB,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAEM,iCAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AA3BD,IA2BC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 IResult from '../../core/interface/IResult';
|
|
18
|
+
|
|
19
|
+
import * as Gs2Log from '../model'
|
|
20
|
+
|
|
21
|
+
export default class GetInsightResult implements IResult {
|
|
22
|
+
private item: Gs2Log.Insight|null = null;
|
|
23
|
+
|
|
24
|
+
public getItem(): Gs2Log.Insight|null {
|
|
25
|
+
return this.item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public setItem(item: Gs2Log.Insight|null) {
|
|
29
|
+
this.item = item;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public withItem(item: Gs2Log.Insight|null): this {
|
|
34
|
+
this.item = item;
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
public static fromDict(data: {[key: string]: any}): GetInsightResult {
|
|
39
|
+
return new GetInsightResult()
|
|
40
|
+
.withItem(Gs2Log.Insight.fromDict(data["item"]));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public toDict(): {[key: string]: any} {
|
|
44
|
+
return {
|
|
45
|
+
"item": this.getItem()?.toDict(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
package/log/result/index.d.ts
CHANGED
|
@@ -13,4 +13,8 @@ import CountExecuteStampSheetLogResult from "./CountExecuteStampSheetLogResult";
|
|
|
13
13
|
import QueryExecuteStampTaskLogResult from "./QueryExecuteStampTaskLogResult";
|
|
14
14
|
import CountExecuteStampTaskLogResult from "./CountExecuteStampTaskLogResult";
|
|
15
15
|
import PutLogResult from "./PutLogResult";
|
|
16
|
-
|
|
16
|
+
import DescribeInsightsResult from "./DescribeInsightsResult";
|
|
17
|
+
import CreateInsightResult from "./CreateInsightResult";
|
|
18
|
+
import GetInsightResult from "./GetInsightResult";
|
|
19
|
+
import DeleteInsightResult from "./DeleteInsightResult";
|
|
20
|
+
export { DescribeNamespacesResult, CreateNamespaceResult, GetNamespaceStatusResult, GetNamespaceResult, UpdateNamespaceResult, DeleteNamespaceResult, QueryAccessLogResult, CountAccessLogResult, QueryIssueStampSheetLogResult, CountIssueStampSheetLogResult, QueryExecuteStampSheetLogResult, CountExecuteStampSheetLogResult, QueryExecuteStampTaskLogResult, CountExecuteStampTaskLogResult, PutLogResult, DescribeInsightsResult, CreateInsightResult, GetInsightResult, DeleteInsightResult, };
|
package/log/result/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutLogResult = exports.CountExecuteStampTaskLogResult = exports.QueryExecuteStampTaskLogResult = exports.CountExecuteStampSheetLogResult = exports.QueryExecuteStampSheetLogResult = exports.CountIssueStampSheetLogResult = exports.QueryIssueStampSheetLogResult = exports.CountAccessLogResult = exports.QueryAccessLogResult = exports.DeleteNamespaceResult = exports.UpdateNamespaceResult = exports.GetNamespaceResult = exports.GetNamespaceStatusResult = exports.CreateNamespaceResult = exports.DescribeNamespacesResult = void 0;
|
|
3
|
+
exports.DeleteInsightResult = exports.GetInsightResult = exports.CreateInsightResult = exports.DescribeInsightsResult = exports.PutLogResult = exports.CountExecuteStampTaskLogResult = exports.QueryExecuteStampTaskLogResult = exports.CountExecuteStampSheetLogResult = exports.QueryExecuteStampSheetLogResult = exports.CountIssueStampSheetLogResult = exports.QueryIssueStampSheetLogResult = exports.CountAccessLogResult = exports.QueryAccessLogResult = exports.DeleteNamespaceResult = exports.UpdateNamespaceResult = exports.GetNamespaceResult = exports.GetNamespaceStatusResult = exports.CreateNamespaceResult = exports.DescribeNamespacesResult = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -47,4 +47,12 @@ var CountExecuteStampTaskLogResult_1 = tslib_1.__importDefault(require("./CountE
|
|
|
47
47
|
exports.CountExecuteStampTaskLogResult = CountExecuteStampTaskLogResult_1.default;
|
|
48
48
|
var PutLogResult_1 = tslib_1.__importDefault(require("./PutLogResult"));
|
|
49
49
|
exports.PutLogResult = PutLogResult_1.default;
|
|
50
|
+
var DescribeInsightsResult_1 = tslib_1.__importDefault(require("./DescribeInsightsResult"));
|
|
51
|
+
exports.DescribeInsightsResult = DescribeInsightsResult_1.default;
|
|
52
|
+
var CreateInsightResult_1 = tslib_1.__importDefault(require("./CreateInsightResult"));
|
|
53
|
+
exports.CreateInsightResult = CreateInsightResult_1.default;
|
|
54
|
+
var GetInsightResult_1 = tslib_1.__importDefault(require("./GetInsightResult"));
|
|
55
|
+
exports.GetInsightResult = GetInsightResult_1.default;
|
|
56
|
+
var DeleteInsightResult_1 = tslib_1.__importDefault(require("./DeleteInsightResult"));
|
|
57
|
+
exports.DeleteInsightResult = DeleteInsightResult_1.default;
|
|
50
58
|
//# sourceMappingURL=index.js.map
|
package/log/result/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gGAAiE;AAqB7D,mCArBG,kCAAwB,CAqBH;AApB5B,0FAA2D;AAqBvD,gCArBG,+BAAqB,CAqBH;AApBzB,gGAAiE;AAqB7D,mCArBG,kCAAwB,CAqBH;AApB5B,oFAAqD;AAqBjD,6BArBG,4BAAkB,CAqBH;AApBtB,0FAA2D;AAqBvD,gCArBG,+BAAqB,CAqBH;AApBzB,0FAA2D;AAqBvD,gCArBG,+BAAqB,CAqBH;AApBzB,wFAAyD;AAqBrD,+BArBG,8BAAoB,CAqBH;AApBxB,wFAAyD;AAqBrD,+BArBG,8BAAoB,CAqBH;AApBxB,0GAA2E;AAqBvE,wCArBG,uCAA6B,CAqBH;AApBjC,0GAA2E;AAqBvE,wCArBG,uCAA6B,CAqBH;AApBjC,8GAA+E;AAqB3E,0CArBG,yCAA+B,CAqBH;AApBnC,8GAA+E;AAqB3E,0CArBG,yCAA+B,CAqBH;AApBnC,4GAA6E;AAqBzE,yCArBG,wCAA8B,CAqBH;AApBlC,4GAA6E;AAqBzE,yCArBG,wCAA8B,CAqBH;AApBlC,wEAAyC;AAqBrC,uBArBG,sBAAY,CAqBH;AApBhB,4FAA6D;AAqBzD,iCArBG,gCAAsB,CAqBH;AApB1B,sFAAuD;AAqBnD,8BArBG,6BAAmB,CAqBH;AApBvB,gFAAiD;AAqB7C,2BArBG,0BAAgB,CAqBH;AApBpB,sFAAuD;AAqBnD,8BArBG,6BAAmB,CAqBH"}
|
package/log/result/index.ts
CHANGED
|
@@ -28,6 +28,10 @@ import CountExecuteStampSheetLogResult from "./CountExecuteStampSheetLogResult"
|
|
|
28
28
|
import QueryExecuteStampTaskLogResult from "./QueryExecuteStampTaskLogResult"
|
|
29
29
|
import CountExecuteStampTaskLogResult from "./CountExecuteStampTaskLogResult"
|
|
30
30
|
import PutLogResult from "./PutLogResult"
|
|
31
|
+
import DescribeInsightsResult from "./DescribeInsightsResult"
|
|
32
|
+
import CreateInsightResult from "./CreateInsightResult"
|
|
33
|
+
import GetInsightResult from "./GetInsightResult"
|
|
34
|
+
import DeleteInsightResult from "./DeleteInsightResult"
|
|
31
35
|
|
|
32
36
|
export {
|
|
33
37
|
DescribeNamespacesResult,
|
|
@@ -45,4 +49,8 @@ export {
|
|
|
45
49
|
QueryExecuteStampTaskLogResult,
|
|
46
50
|
CountExecuteStampTaskLogResult,
|
|
47
51
|
PutLogResult,
|
|
52
|
+
DescribeInsightsResult,
|
|
53
|
+
CreateInsightResult,
|
|
54
|
+
GetInsightResult,
|
|
55
|
+
DeleteInsightResult,
|
|
48
56
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import IModel from '../../core/interface/IModel';
|
|
2
2
|
import TransactionSetting from './TransactionSetting';
|
|
3
|
+
import ScriptSetting from './ScriptSetting';
|
|
3
4
|
import LogSetting from './LogSetting';
|
|
4
5
|
export default class Namespace implements IModel {
|
|
5
6
|
private namespaceId;
|
|
6
7
|
private name;
|
|
7
8
|
private description;
|
|
8
9
|
private transactionSetting;
|
|
10
|
+
private buyScript;
|
|
9
11
|
private logSetting;
|
|
10
12
|
private createdAt;
|
|
11
13
|
private updatedAt;
|
|
@@ -28,6 +30,9 @@ export default class Namespace implements IModel {
|
|
|
28
30
|
getTransactionSetting(): TransactionSetting | null;
|
|
29
31
|
setTransactionSetting(transactionSetting: TransactionSetting | null): this;
|
|
30
32
|
withTransactionSetting(transactionSetting: TransactionSetting | null): this;
|
|
33
|
+
getBuyScript(): ScriptSetting | null;
|
|
34
|
+
setBuyScript(buyScript: ScriptSetting | null): this;
|
|
35
|
+
withBuyScript(buyScript: ScriptSetting | null): this;
|
|
31
36
|
getLogSetting(): LogSetting | null;
|
|
32
37
|
setLogSetting(logSetting: LogSetting | null): this;
|
|
33
38
|
withLogSetting(logSetting: LogSetting | null): this;
|
|
@@ -17,6 +17,7 @@ permissions and limitations under the License.
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var tslib_1 = require("tslib");
|
|
19
19
|
var TransactionSetting_1 = tslib_1.__importDefault(require("./TransactionSetting"));
|
|
20
|
+
var ScriptSetting_1 = tslib_1.__importDefault(require("./ScriptSetting"));
|
|
20
21
|
var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
|
|
21
22
|
var grnFormat = "grn:gs2:{region}:{ownerId}:showcase:{namespaceName}";
|
|
22
23
|
var Namespace = /** @class */ (function () {
|
|
@@ -25,6 +26,7 @@ var Namespace = /** @class */ (function () {
|
|
|
25
26
|
this.name = null;
|
|
26
27
|
this.description = null;
|
|
27
28
|
this.transactionSetting = null;
|
|
29
|
+
this.buyScript = null;
|
|
28
30
|
this.logSetting = null;
|
|
29
31
|
this.createdAt = null;
|
|
30
32
|
this.updatedAt = null;
|
|
@@ -123,6 +125,17 @@ var Namespace = /** @class */ (function () {
|
|
|
123
125
|
this.transactionSetting = transactionSetting;
|
|
124
126
|
return this;
|
|
125
127
|
};
|
|
128
|
+
Namespace.prototype.getBuyScript = function () {
|
|
129
|
+
return this.buyScript;
|
|
130
|
+
};
|
|
131
|
+
Namespace.prototype.setBuyScript = function (buyScript) {
|
|
132
|
+
this.buyScript = buyScript;
|
|
133
|
+
return this;
|
|
134
|
+
};
|
|
135
|
+
Namespace.prototype.withBuyScript = function (buyScript) {
|
|
136
|
+
this.buyScript = buyScript;
|
|
137
|
+
return this;
|
|
138
|
+
};
|
|
126
139
|
Namespace.prototype.getLogSetting = function () {
|
|
127
140
|
return this.logSetting;
|
|
128
141
|
};
|
|
@@ -193,6 +206,7 @@ var Namespace = /** @class */ (function () {
|
|
|
193
206
|
.withName(data["name"])
|
|
194
207
|
.withDescription(data["description"])
|
|
195
208
|
.withTransactionSetting(TransactionSetting_1.default.fromDict(data["transactionSetting"]))
|
|
209
|
+
.withBuyScript(ScriptSetting_1.default.fromDict(data["buyScript"]))
|
|
196
210
|
.withLogSetting(LogSetting_1.default.fromDict(data["logSetting"]))
|
|
197
211
|
.withCreatedAt(data["createdAt"])
|
|
198
212
|
.withUpdatedAt(data["updatedAt"])
|
|
@@ -200,13 +214,14 @@ var Namespace = /** @class */ (function () {
|
|
|
200
214
|
.withKeyId(data["keyId"]);
|
|
201
215
|
};
|
|
202
216
|
Namespace.prototype.toDict = function () {
|
|
203
|
-
var _a, _b;
|
|
217
|
+
var _a, _b, _c;
|
|
204
218
|
return {
|
|
205
219
|
"namespaceId": this.getNamespaceId(),
|
|
206
220
|
"name": this.getName(),
|
|
207
221
|
"description": this.getDescription(),
|
|
208
222
|
"transactionSetting": (_a = this.getTransactionSetting()) === null || _a === void 0 ? void 0 : _a.toDict(),
|
|
209
|
-
"
|
|
223
|
+
"buyScript": (_b = this.getBuyScript()) === null || _b === void 0 ? void 0 : _b.toDict(),
|
|
224
|
+
"logSetting": (_c = this.getLogSetting()) === null || _c === void 0 ? void 0 : _c.toDict(),
|
|
210
225
|
"createdAt": this.getCreatedAt(),
|
|
211
226
|
"updatedAt": this.getUpdatedAt(),
|
|
212
227
|
"queueNamespaceId": this.getQueueNamespaceId(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,oFAAsD;AACtD,oEAAsC;AACtC,IAAM,SAAS,GAAW,qDAAqD,CAAC;AAEhF;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,IAAI,CAAC;QACzB,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,eAAU,GAAoB,IAAI,CAAC;QACnC,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;QAC9B,qBAAgB,GAAgB,IAAI,CAAC;QACrC,UAAK,GAAgB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,oFAAsD;AACtD,0EAA4C;AAC5C,oEAAsC;AACtC,IAAM,SAAS,GAAW,qDAAqD,CAAC;AAEhF;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,SAAI,GAAgB,IAAI,C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,0CAAE,MAAM,EAAE;YAC5D,WAAW,EAAE,MAAA,IAAI,CAAC,YAAY,EAAE,0CAAE,MAAM,EAAE;YAC1C,YAAY,EAAE,MAAA,IAAI,CAAC,aAAa,EAAE,0CAAE,MAAM,EAAE;YAC5C,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE;YAChC,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAAE;YAC9C,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC3B,CAAC;IACN,CAAC;IACL,gBAAC;AAAD,CAAC,AA3ND,IA2NC"}
|
|
@@ -16,6 +16,7 @@ permissions and limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
import IModel from '../../core/interface/IModel';
|
|
18
18
|
import TransactionSetting from './TransactionSetting';
|
|
19
|
+
import ScriptSetting from './ScriptSetting';
|
|
19
20
|
import LogSetting from './LogSetting';
|
|
20
21
|
const grnFormat: string = "grn:gs2:{region}:{ownerId}:showcase:{namespaceName}";
|
|
21
22
|
|
|
@@ -24,6 +25,7 @@ export default class Namespace implements IModel {
|
|
|
24
25
|
private name: string|null = null;
|
|
25
26
|
private description: string|null = null;
|
|
26
27
|
private transactionSetting: TransactionSetting|null = null;
|
|
28
|
+
private buyScript: ScriptSetting|null = null;
|
|
27
29
|
private logSetting: LogSetting|null = null;
|
|
28
30
|
private createdAt: number|null = null;
|
|
29
31
|
private updatedAt: number|null = null;
|
|
@@ -133,6 +135,17 @@ export default class Namespace implements IModel {
|
|
|
133
135
|
this.transactionSetting = transactionSetting;
|
|
134
136
|
return this;
|
|
135
137
|
}
|
|
138
|
+
public getBuyScript(): ScriptSetting|null {
|
|
139
|
+
return this.buyScript;
|
|
140
|
+
}
|
|
141
|
+
public setBuyScript(buyScript: ScriptSetting|null) {
|
|
142
|
+
this.buyScript = buyScript;
|
|
143
|
+
return this;
|
|
144
|
+
}
|
|
145
|
+
public withBuyScript(buyScript: ScriptSetting|null): this {
|
|
146
|
+
this.buyScript = buyScript;
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
136
149
|
public getLogSetting(): LogSetting|null {
|
|
137
150
|
return this.logSetting;
|
|
138
151
|
}
|
|
@@ -204,6 +217,7 @@ export default class Namespace implements IModel {
|
|
|
204
217
|
.withName(data["name"])
|
|
205
218
|
.withDescription(data["description"])
|
|
206
219
|
.withTransactionSetting(TransactionSetting.fromDict(data["transactionSetting"]))
|
|
220
|
+
.withBuyScript(ScriptSetting.fromDict(data["buyScript"]))
|
|
207
221
|
.withLogSetting(LogSetting.fromDict(data["logSetting"]))
|
|
208
222
|
.withCreatedAt(data["createdAt"])
|
|
209
223
|
.withUpdatedAt(data["updatedAt"])
|
|
@@ -217,6 +231,7 @@ export default class Namespace implements IModel {
|
|
|
217
231
|
"name": this.getName(),
|
|
218
232
|
"description": this.getDescription(),
|
|
219
233
|
"transactionSetting": this.getTransactionSetting()?.toDict(),
|
|
234
|
+
"buyScript": this.getBuyScript()?.toDict(),
|
|
220
235
|
"logSetting": this.getLogSetting()?.toDict(),
|
|
221
236
|
"createdAt": this.getCreatedAt(),
|
|
222
237
|
"updatedAt": this.getUpdatedAt(),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class ScriptSetting implements IModel {
|
|
3
|
+
private triggerScriptId;
|
|
4
|
+
private doneTriggerTargetType;
|
|
5
|
+
private doneTriggerScriptId;
|
|
6
|
+
private doneTriggerQueueNamespaceId;
|
|
7
|
+
getTriggerScriptId(): string | null;
|
|
8
|
+
setTriggerScriptId(triggerScriptId: string | null): this;
|
|
9
|
+
withTriggerScriptId(triggerScriptId: string | null): this;
|
|
10
|
+
getDoneTriggerTargetType(): string | null;
|
|
11
|
+
setDoneTriggerTargetType(doneTriggerTargetType: string | null): this;
|
|
12
|
+
withDoneTriggerTargetType(doneTriggerTargetType: string | null): this;
|
|
13
|
+
getDoneTriggerScriptId(): string | null;
|
|
14
|
+
setDoneTriggerScriptId(doneTriggerScriptId: string | null): this;
|
|
15
|
+
withDoneTriggerScriptId(doneTriggerScriptId: string | null): this;
|
|
16
|
+
getDoneTriggerQueueNamespaceId(): string | null;
|
|
17
|
+
setDoneTriggerQueueNamespaceId(doneTriggerQueueNamespaceId: string | null): this;
|
|
18
|
+
withDoneTriggerQueueNamespaceId(doneTriggerQueueNamespaceId: string | null): this;
|
|
19
|
+
static fromDict(data: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): ScriptSetting | null;
|
|
22
|
+
toDict(): {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 ScriptSetting = /** @class */ (function () {
|
|
19
|
+
function ScriptSetting() {
|
|
20
|
+
this.triggerScriptId = null;
|
|
21
|
+
this.doneTriggerTargetType = null;
|
|
22
|
+
this.doneTriggerScriptId = null;
|
|
23
|
+
this.doneTriggerQueueNamespaceId = null;
|
|
24
|
+
}
|
|
25
|
+
ScriptSetting.prototype.getTriggerScriptId = function () {
|
|
26
|
+
return this.triggerScriptId;
|
|
27
|
+
};
|
|
28
|
+
ScriptSetting.prototype.setTriggerScriptId = function (triggerScriptId) {
|
|
29
|
+
this.triggerScriptId = triggerScriptId;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
ScriptSetting.prototype.withTriggerScriptId = function (triggerScriptId) {
|
|
33
|
+
this.triggerScriptId = triggerScriptId;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
ScriptSetting.prototype.getDoneTriggerTargetType = function () {
|
|
37
|
+
return this.doneTriggerTargetType;
|
|
38
|
+
};
|
|
39
|
+
ScriptSetting.prototype.setDoneTriggerTargetType = function (doneTriggerTargetType) {
|
|
40
|
+
this.doneTriggerTargetType = doneTriggerTargetType;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
ScriptSetting.prototype.withDoneTriggerTargetType = function (doneTriggerTargetType) {
|
|
44
|
+
this.doneTriggerTargetType = doneTriggerTargetType;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
ScriptSetting.prototype.getDoneTriggerScriptId = function () {
|
|
48
|
+
return this.doneTriggerScriptId;
|
|
49
|
+
};
|
|
50
|
+
ScriptSetting.prototype.setDoneTriggerScriptId = function (doneTriggerScriptId) {
|
|
51
|
+
this.doneTriggerScriptId = doneTriggerScriptId;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
ScriptSetting.prototype.withDoneTriggerScriptId = function (doneTriggerScriptId) {
|
|
55
|
+
this.doneTriggerScriptId = doneTriggerScriptId;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
ScriptSetting.prototype.getDoneTriggerQueueNamespaceId = function () {
|
|
59
|
+
return this.doneTriggerQueueNamespaceId;
|
|
60
|
+
};
|
|
61
|
+
ScriptSetting.prototype.setDoneTriggerQueueNamespaceId = function (doneTriggerQueueNamespaceId) {
|
|
62
|
+
this.doneTriggerQueueNamespaceId = doneTriggerQueueNamespaceId;
|
|
63
|
+
return this;
|
|
64
|
+
};
|
|
65
|
+
ScriptSetting.prototype.withDoneTriggerQueueNamespaceId = function (doneTriggerQueueNamespaceId) {
|
|
66
|
+
this.doneTriggerQueueNamespaceId = doneTriggerQueueNamespaceId;
|
|
67
|
+
return this;
|
|
68
|
+
};
|
|
69
|
+
ScriptSetting.fromDict = function (data) {
|
|
70
|
+
if (data == undefined || data == null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return new ScriptSetting()
|
|
74
|
+
.withTriggerScriptId(data["triggerScriptId"])
|
|
75
|
+
.withDoneTriggerTargetType(data["doneTriggerTargetType"])
|
|
76
|
+
.withDoneTriggerScriptId(data["doneTriggerScriptId"])
|
|
77
|
+
.withDoneTriggerQueueNamespaceId(data["doneTriggerQueueNamespaceId"]);
|
|
78
|
+
};
|
|
79
|
+
ScriptSetting.prototype.toDict = function () {
|
|
80
|
+
return {
|
|
81
|
+
"triggerScriptId": this.getTriggerScriptId(),
|
|
82
|
+
"doneTriggerTargetType": this.getDoneTriggerTargetType(),
|
|
83
|
+
"doneTriggerScriptId": this.getDoneTriggerScriptId(),
|
|
84
|
+
"doneTriggerQueueNamespaceId": this.getDoneTriggerQueueNamespaceId(),
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
return ScriptSetting;
|
|
88
|
+
}());
|
|
89
|
+
exports.default = ScriptSetting;
|
|
90
|
+
//# sourceMappingURL=ScriptSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptSetting.js","sourceRoot":"","sources":["ScriptSetting.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;QACpC,0BAAqB,GAAgB,IAAI,CAAC;QAC1C,wBAAmB,GAAgB,IAAI,CAAC;QACxC,gCAA2B,GAAgB,IAAI,CAAC;IAiE5D,CAAC;IAhEU,0CAAkB,GAAzB;QACI,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IACM,0CAAkB,GAAzB,UAA0B,eAA4B;QACl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IAAI,CAAC;SACf;QACD,OAAO,IAAI,aAAa,EAAE;aACrB,mBAAmB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;aAC5C,yBAAyB,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;aACxD,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;aACpD,+BAA+B,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC9E,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,uBAAuB,EAAE,IAAI,CAAC,wBAAwB,EAAE;YACxD,qBAAqB,EAAE,IAAI,CAAC,sBAAsB,EAAE;YACpD,6BAA6B,EAAE,IAAI,CAAC,8BAA8B,EAAE;SACvE,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AArED,IAqEC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 ScriptSetting implements IModel {
|
|
20
|
+
private triggerScriptId: string|null = null;
|
|
21
|
+
private doneTriggerTargetType: string|null = null;
|
|
22
|
+
private doneTriggerScriptId: string|null = null;
|
|
23
|
+
private doneTriggerQueueNamespaceId: string|null = null;
|
|
24
|
+
public getTriggerScriptId(): string|null {
|
|
25
|
+
return this.triggerScriptId;
|
|
26
|
+
}
|
|
27
|
+
public setTriggerScriptId(triggerScriptId: string|null) {
|
|
28
|
+
this.triggerScriptId = triggerScriptId;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
public withTriggerScriptId(triggerScriptId: string|null): this {
|
|
32
|
+
this.triggerScriptId = triggerScriptId;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
public getDoneTriggerTargetType(): string|null {
|
|
36
|
+
return this.doneTriggerTargetType;
|
|
37
|
+
}
|
|
38
|
+
public setDoneTriggerTargetType(doneTriggerTargetType: string|null) {
|
|
39
|
+
this.doneTriggerTargetType = doneTriggerTargetType;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
public withDoneTriggerTargetType(doneTriggerTargetType: string|null): this {
|
|
43
|
+
this.doneTriggerTargetType = doneTriggerTargetType;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
public getDoneTriggerScriptId(): string|null {
|
|
47
|
+
return this.doneTriggerScriptId;
|
|
48
|
+
}
|
|
49
|
+
public setDoneTriggerScriptId(doneTriggerScriptId: string|null) {
|
|
50
|
+
this.doneTriggerScriptId = doneTriggerScriptId;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
public withDoneTriggerScriptId(doneTriggerScriptId: string|null): this {
|
|
54
|
+
this.doneTriggerScriptId = doneTriggerScriptId;
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
public getDoneTriggerQueueNamespaceId(): string|null {
|
|
58
|
+
return this.doneTriggerQueueNamespaceId;
|
|
59
|
+
}
|
|
60
|
+
public setDoneTriggerQueueNamespaceId(doneTriggerQueueNamespaceId: string|null) {
|
|
61
|
+
this.doneTriggerQueueNamespaceId = doneTriggerQueueNamespaceId;
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
public withDoneTriggerQueueNamespaceId(doneTriggerQueueNamespaceId: string|null): this {
|
|
65
|
+
this.doneTriggerQueueNamespaceId = doneTriggerQueueNamespaceId;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public static fromDict(data: {[key: string]: any}): ScriptSetting|null {
|
|
70
|
+
if (data == undefined || data == null) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return new ScriptSetting()
|
|
74
|
+
.withTriggerScriptId(data["triggerScriptId"])
|
|
75
|
+
.withDoneTriggerTargetType(data["doneTriggerTargetType"])
|
|
76
|
+
.withDoneTriggerScriptId(data["doneTriggerScriptId"])
|
|
77
|
+
.withDoneTriggerQueueNamespaceId(data["doneTriggerQueueNamespaceId"]);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public toDict(): {[key: string]: any} {
|
|
81
|
+
return {
|
|
82
|
+
"triggerScriptId": this.getTriggerScriptId(),
|
|
83
|
+
"doneTriggerTargetType": this.getDoneTriggerTargetType(),
|
|
84
|
+
"doneTriggerScriptId": this.getDoneTriggerScriptId(),
|
|
85
|
+
"doneTriggerQueueNamespaceId": this.getDoneTriggerQueueNamespaceId(),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -14,4 +14,5 @@ import Config from "./Config";
|
|
|
14
14
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting";
|
|
15
15
|
import LogSetting from "./LogSetting";
|
|
16
16
|
import TransactionSetting from "./TransactionSetting";
|
|
17
|
-
|
|
17
|
+
import ScriptSetting from "./ScriptSetting";
|
|
18
|
+
export { Namespace, SalesItemMaster, SalesItemGroupMaster, ShowcaseMaster, CurrentShowcaseMaster, SalesItem, SalesItemGroup, Showcase, DisplayItem, DisplayItemMaster, ConsumeAction, AcquireAction, Config, GitHubCheckoutSetting, LogSetting, TransactionSetting, ScriptSetting, };
|
package/showcase/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionSetting = exports.LogSetting = exports.GitHubCheckoutSetting = exports.Config = exports.AcquireAction = exports.ConsumeAction = exports.DisplayItemMaster = exports.DisplayItem = exports.Showcase = exports.SalesItemGroup = exports.SalesItem = exports.CurrentShowcaseMaster = exports.ShowcaseMaster = exports.SalesItemGroupMaster = exports.SalesItemMaster = exports.Namespace = void 0;
|
|
3
|
+
exports.ScriptSetting = exports.TransactionSetting = exports.LogSetting = exports.GitHubCheckoutSetting = exports.Config = exports.AcquireAction = exports.ConsumeAction = exports.DisplayItemMaster = exports.DisplayItem = exports.Showcase = exports.SalesItemGroup = exports.SalesItem = exports.CurrentShowcaseMaster = exports.ShowcaseMaster = exports.SalesItemGroupMaster = exports.SalesItemMaster = 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
|
|
@@ -49,4 +49,6 @@ var LogSetting_1 = tslib_1.__importDefault(require("./LogSetting"));
|
|
|
49
49
|
exports.LogSetting = LogSetting_1.default;
|
|
50
50
|
var TransactionSetting_1 = tslib_1.__importDefault(require("./TransactionSetting"));
|
|
51
51
|
exports.TransactionSetting = TransactionSetting_1.default;
|
|
52
|
+
var ScriptSetting_1 = tslib_1.__importDefault(require("./ScriptSetting"));
|
|
53
|
+
exports.ScriptSetting = ScriptSetting_1.default;
|
|
52
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kEAAmC;AAmB/B,oBAnBG,mBAAS,CAmBH;AAlBb,8EAA+C;AAmB3C,0BAnBG,yBAAe,CAmBH;AAlBnB,wFAAyD;AAmBrD,+BAnBG,8BAAoB,CAmBH;AAlBxB,4EAA6C;AAmBzC,yBAnBG,wBAAc,CAmBH;AAlBlB,0FAA2D;AAmBvD,gCAnBG,+BAAqB,CAmBH;AAlBzB,kEAAmC;AAmB/B,oBAnBG,mBAAS,CAmBH;AAlBb,4EAA6C;AAmBzC,yBAnBG,wBAAc,CAmBH;AAlBlB,gEAAiC;AAmB7B,mBAnBG,kBAAQ,CAmBH;AAlBZ,sEAAuC;AAmBnC,sBAnBG,qBAAW,CAmBH;AAlBf,kFAAmD;AAmB/C,4BAnBG,2BAAiB,CAmBH;AAlBrB,0EAA2C;AAmBvC,wBAnBG,uBAAa,CAmBH;AAlBjB,0EAA2C;AAmBvC,wBAnBG,uBAAa,CAmBH;AAlBjB,4DAA6B;AAmBzB,iBAnBG,gBAAM,CAmBH;AAlBV,0FAA2D;AAmBvD,gCAnBG,+BAAqB,CAmBH;AAlBzB,oEAAqC;AAmBjC,qBAnBG,oBAAU,CAmBH;AAlBd,oFAAqD;AAmBjD,6BAnBG,4BAAkB,CAmBH;AAlBtB,0EAA2C;AAmBvC,wBAnBG,uBAAa,CAmBH"}
|
package/showcase/model/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ import Config from "./Config"
|
|
|
29
29
|
import GitHubCheckoutSetting from "./GitHubCheckoutSetting"
|
|
30
30
|
import LogSetting from "./LogSetting"
|
|
31
31
|
import TransactionSetting from "./TransactionSetting"
|
|
32
|
+
import ScriptSetting from "./ScriptSetting"
|
|
32
33
|
|
|
33
34
|
export {
|
|
34
35
|
Namespace,
|
|
@@ -47,4 +48,5 @@ export {
|
|
|
47
48
|
GitHubCheckoutSetting,
|
|
48
49
|
LogSetting,
|
|
49
50
|
TransactionSetting,
|
|
51
|
+
ScriptSetting,
|
|
50
52
|
};
|
|
@@ -6,6 +6,7 @@ export default class CreateNamespaceRequest implements IRequest {
|
|
|
6
6
|
private name;
|
|
7
7
|
private description;
|
|
8
8
|
private transactionSetting;
|
|
9
|
+
private buyScript;
|
|
9
10
|
private queueNamespaceId;
|
|
10
11
|
private keyId;
|
|
11
12
|
private logSetting;
|
|
@@ -24,6 +25,9 @@ export default class CreateNamespaceRequest implements IRequest {
|
|
|
24
25
|
getTransactionSetting(): Gs2Showcase.TransactionSetting | null;
|
|
25
26
|
setTransactionSetting(transactionSetting: Gs2Showcase.TransactionSetting | null): this;
|
|
26
27
|
withTransactionSetting(transactionSetting: Gs2Showcase.TransactionSetting | null): this;
|
|
28
|
+
getBuyScript(): Gs2Showcase.ScriptSetting | null;
|
|
29
|
+
setBuyScript(buyScript: Gs2Showcase.ScriptSetting | null): this;
|
|
30
|
+
withBuyScript(buyScript: Gs2Showcase.ScriptSetting | null): this;
|
|
27
31
|
/** @deprecated */
|
|
28
32
|
getQueueNamespaceId(): string | null;
|
|
29
33
|
/** @deprecated */
|