gs2-cdk 1.0.117 → 1.0.119
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/chat/model/CategoryModel.d.ts +9 -0
- package/chat/model/CategoryModel.js +22 -0
- package/chat/model/CategoryModel.js.map +1 -0
- package/chat/model/CategoryModel.ts +44 -0
- package/chat/model/CurrentMasterData.d.ts +13 -0
- package/chat/model/CurrentMasterData.js +50 -0
- package/chat/model/CurrentMasterData.js.map +1 -0
- package/chat/model/CurrentMasterData.ts +70 -0
- package/chat/model/Namespace.d.ts +2 -0
- package/chat/model/Namespace.js +5 -0
- package/chat/model/Namespace.js.map +1 -1
- package/chat/model/Namespace.ts +15 -0
- package/chat/model/enums/CategoryModelRejectAccessTokenPost.d.ts +5 -0
- package/chat/model/enums/CategoryModelRejectAccessTokenPost.js +23 -0
- package/chat/model/enums/CategoryModelRejectAccessTokenPost.js.map +1 -0
- package/chat/model/enums/CategoryModelRejectAccessTokenPost.ts +23 -0
- package/chat/model/index.d.ts +5 -1
- package/chat/model/index.js +7 -1
- package/chat/model/index.js.map +1 -1
- package/chat/model/index.ts +8 -0
- package/chat/model/options/CategoryModelOptions.d.ts +4 -0
- package/chat/model/options/CategoryModelOptions.js +3 -0
- package/chat/model/options/CategoryModelOptions.js.map +1 -0
- package/chat/model/options/CategoryModelOptions.ts +21 -0
- package/chat/ref/CategoryModelRef.d.ts +6 -0
- package/chat/ref/CategoryModelRef.js +40 -0
- package/chat/ref/CategoryModelRef.js.map +1 -0
- package/chat/ref/CategoryModelRef.ts +54 -0
- package/chat/ref/MasterDataObjectRef.d.ts +5 -0
- package/chat/ref/MasterDataObjectRef.js +25 -0
- package/chat/ref/MasterDataObjectRef.js.map +1 -0
- package/chat/ref/MasterDataObjectRef.ts +30 -0
- package/chat/ref/MasterDataVersionRef.d.ts +6 -0
- package/chat/ref/MasterDataVersionRef.js +26 -0
- package/chat/ref/MasterDataVersionRef.js.map +1 -0
- package/chat/ref/MasterDataVersionRef.ts +33 -0
- package/chat/ref/NamespaceRef.d.ts +2 -0
- package/chat/ref/NamespaceRef.js +5 -0
- package/chat/ref/NamespaceRef.js.map +1 -1
- package/chat/ref/NamespaceRef.ts +10 -0
- package/chat/ref/index.d.ts +4 -1
- package/chat/ref/index.js +7 -1
- package/chat/ref/index.js.map +1 -1
- package/chat/ref/index.ts +6 -0
- package/lottery/model/Namespace.d.ts +0 -1
- package/lottery/model/Namespace.js +2 -7
- package/lottery/model/Namespace.js.map +1 -1
- package/lottery/model/Namespace.ts +0 -5
- package/lottery/model/options/NamespaceOptions.d.ts +0 -1
- package/lottery/model/options/NamespaceOptions.ts +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
2
|
+
export default class CategoryModel {
|
|
3
|
+
private readonly category;
|
|
4
|
+
private readonly rejectAccessTokenPost;
|
|
5
|
+
constructor(category: number, options?: CategoryModelOptions | null);
|
|
6
|
+
properties(): {
|
|
7
|
+
[name: string]: any;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class CategoryModel {
|
|
4
|
+
constructor(category, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.rejectAccessTokenPost = null;
|
|
7
|
+
this.category = category;
|
|
8
|
+
this.rejectAccessTokenPost = (_a = options === null || options === void 0 ? void 0 : options.rejectAccessTokenPost) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.category != null) {
|
|
13
|
+
properties["category"] = this.category;
|
|
14
|
+
}
|
|
15
|
+
if (this.rejectAccessTokenPost != null) {
|
|
16
|
+
properties["rejectAccessTokenPost"] = this.rejectAccessTokenPost;
|
|
17
|
+
}
|
|
18
|
+
return properties;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = CategoryModel;
|
|
22
|
+
//# sourceMappingURL=CategoryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModel.js","sourceRoot":"","sources":["CategoryModel.ts"],"names":[],"mappings":";;AAkBA,MAAqB,aAAa;IAI9B,YACI,QAAgB,EAChB,UAAqC,IAAI;;QAJ5B,0BAAqB,GAA4C,IAAI,CAAC;QAMnF,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,qBAAqB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,qBAAqB,mCAAI,IAAI,CAAC;IACxE,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACpE;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzBD,gCAyBC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
17
|
+
import { CategoryModelRejectAccessTokenPost } from "./enums/CategoryModelRejectAccessTokenPost";
|
|
18
|
+
|
|
19
|
+
export default class CategoryModel {
|
|
20
|
+
private readonly category: number;
|
|
21
|
+
private readonly rejectAccessTokenPost: CategoryModelRejectAccessTokenPost|null = null;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
category: number,
|
|
25
|
+
options: CategoryModelOptions|null = null,
|
|
26
|
+
) {
|
|
27
|
+
this.category = category;
|
|
28
|
+
this.rejectAccessTokenPost = options?.rejectAccessTokenPost ?? null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public properties(
|
|
32
|
+
): {[name: string]: any} {
|
|
33
|
+
let properties: {[name: string]: any} = {};
|
|
34
|
+
|
|
35
|
+
if (this.category != null) {
|
|
36
|
+
properties["category"] = this.category;
|
|
37
|
+
}
|
|
38
|
+
if (this.rejectAccessTokenPost != null) {
|
|
39
|
+
properties["rejectAccessTokenPost"] = this.rejectAccessTokenPost;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return properties;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CdkResource, Stack } from "../../core/model";
|
|
2
|
+
import CategoryModel from "./CategoryModel";
|
|
3
|
+
export default class CurrentMasterData extends CdkResource {
|
|
4
|
+
private readonly version;
|
|
5
|
+
private readonly namespaceName;
|
|
6
|
+
private readonly categoryModels;
|
|
7
|
+
constructor(stack: Stack, namespaceName: string, categoryModels: CategoryModel[]);
|
|
8
|
+
alternateKeys(): string;
|
|
9
|
+
resourceType(): string;
|
|
10
|
+
properties(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
5
|
+
* Reserved.
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License").
|
|
8
|
+
* You may not use this file except in compliance with the License.
|
|
9
|
+
* A copy of the License is located at
|
|
10
|
+
*
|
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* or in the "license" file accompanying this file. This file is distributed
|
|
14
|
+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
15
|
+
* express or implied. See the License for the specific language governing
|
|
16
|
+
* permissions and limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class CurrentMasterData extends model_1.CdkResource {
|
|
20
|
+
constructor(stack, namespaceName, categoryModels) {
|
|
21
|
+
super("Chat_CurrentModelMaster_" + namespaceName);
|
|
22
|
+
this.version = "2020-04-30";
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.categoryModels = categoryModels;
|
|
25
|
+
stack.addResource(this);
|
|
26
|
+
}
|
|
27
|
+
alternateKeys() {
|
|
28
|
+
return this.namespaceName;
|
|
29
|
+
}
|
|
30
|
+
resourceType() {
|
|
31
|
+
return "GS2::Chat::CurrentModelMaster";
|
|
32
|
+
}
|
|
33
|
+
properties() {
|
|
34
|
+
let properties = {};
|
|
35
|
+
let settings = {};
|
|
36
|
+
settings["version"] = this.version;
|
|
37
|
+
if (this.categoryModels != null) {
|
|
38
|
+
settings["categoryModels"] = this.categoryModels.map(v => v.properties());
|
|
39
|
+
}
|
|
40
|
+
if (this.namespaceName != null) {
|
|
41
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
42
|
+
}
|
|
43
|
+
if (settings != null) {
|
|
44
|
+
properties["Settings"] = settings;
|
|
45
|
+
}
|
|
46
|
+
return properties;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = CurrentMasterData;
|
|
50
|
+
//# sourceMappingURL=CurrentMasterData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentMasterData.js","sourceRoot":"","sources":["CurrentMasterData.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoD;AAGpD,MAAqB,iBAAkB,SAAQ,mBAAW;IAKtD,YACI,KAAY,EACZ,aAAqB,EACrB,cAA+B;QAE/B,KAAK,CACD,0BAA0B,GAAG,aAAa,CAC7C,CAAC;QAXW,YAAO,GAAU,YAAY,CAAC;QAa3C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;IACN,CAAC;IAEM,aAAa;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEM,YAAY;QAEf,OAAO,+BAA+B,CAAC;IAC3C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAC3C,IAAI,QAAQ,GAA0B,EAAE,CAAC;QAEzC,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAA;QAClC,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjE,CAAC,CAAC;SACV;QAED,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,QAAQ,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC;SACrC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnDD,oCAmDC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import {CdkResource, Stack} from "../../core/model";
|
|
17
|
+
import CategoryModel from "./CategoryModel";
|
|
18
|
+
|
|
19
|
+
export default class CurrentMasterData extends CdkResource {
|
|
20
|
+
private readonly version: string= "2020-04-30";
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly categoryModels: CategoryModel[];
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
stack: Stack,
|
|
26
|
+
namespaceName: string,
|
|
27
|
+
categoryModels: CategoryModel[],
|
|
28
|
+
) {
|
|
29
|
+
super(
|
|
30
|
+
"Chat_CurrentModelMaster_" + namespaceName
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
this.namespaceName = namespaceName;
|
|
34
|
+
this.categoryModels = categoryModels;
|
|
35
|
+
stack.addResource(
|
|
36
|
+
this,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public alternateKeys(
|
|
41
|
+
) {
|
|
42
|
+
return this.namespaceName;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public resourceType(
|
|
46
|
+
): string {
|
|
47
|
+
return "GS2::Chat::CurrentModelMaster";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public properties(
|
|
51
|
+
): {[name: string]: any} {
|
|
52
|
+
let properties: {[name: string]: any} = {};
|
|
53
|
+
let settings: {[name: string]: any} = {};
|
|
54
|
+
|
|
55
|
+
settings["version"] = this.version
|
|
56
|
+
if (this.categoryModels != null) {
|
|
57
|
+
settings["categoryModels"] = this.categoryModels.map(v => v.properties(
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (this.namespaceName != null) {
|
|
62
|
+
properties["NamespaceName"] = this.namespaceName;
|
|
63
|
+
}
|
|
64
|
+
if (settings != null) {
|
|
65
|
+
properties["Settings"] = settings;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return properties;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CdkResource, Stack } from "../../core/model";
|
|
2
2
|
import { GetAttr } from "../../core/func";
|
|
3
3
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
4
|
+
import CategoryModel from "./CategoryModel";
|
|
4
5
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
5
6
|
export default class Namespace extends CdkResource {
|
|
6
7
|
private readonly stack;
|
|
@@ -23,4 +24,5 @@ export default class Namespace extends CdkResource {
|
|
|
23
24
|
};
|
|
24
25
|
ref(): NamespaceRef;
|
|
25
26
|
getAttrNamespaceId(): GetAttr;
|
|
27
|
+
masterData(categoryModels: CategoryModel[]): Namespace;
|
|
26
28
|
}
|
package/chat/model/Namespace.js
CHANGED
|
@@ -19,6 +19,7 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
const model_1 = require("../../core/model");
|
|
20
20
|
const func_1 = require("../../core/func");
|
|
21
21
|
const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
22
|
+
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
22
23
|
class Namespace extends model_1.CdkResource {
|
|
23
24
|
constructor(stack, name, options = null) {
|
|
24
25
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -97,6 +98,10 @@ class Namespace extends model_1.CdkResource {
|
|
|
97
98
|
getAttrNamespaceId() {
|
|
98
99
|
return new func_1.GetAttr(this, "Item.NamespaceId", null);
|
|
99
100
|
}
|
|
101
|
+
masterData(categoryModels) {
|
|
102
|
+
new CurrentMasterData_1.default(this.stack, this.name, categoryModels).addDependsOn(this);
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
100
105
|
}
|
|
101
106
|
exports.default = Namespace;
|
|
102
107
|
//# sourceMappingURL=Namespace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAc9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,iBAAiB,GAAG,IAAI,CAC3B,CAAC;QAlBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,oBAAe,GAAiB,IAAI,CAAC;QACrC,wBAAmB,GAAgB,IAAI,CAAC;QACxC,sBAAiB,GAAuB,IAAI,CAAC;QAC7C,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,wBAAmB,GAAuB,IAAI,CAAC;QAC/C,0BAAqB,GAAuB,IAAI,CAAC;QACjD,qBAAgB,GAA6B,IAAI,CAAC;QAClD,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAA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UAAU,EAC3E,CAAC;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,cAA+B;QAE/B,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,cAAc,CACjB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA/HD,4BA+HC"}
|
package/chat/model/Namespace.ts
CHANGED
|
@@ -21,6 +21,8 @@ import NotificationSetting from "../../core/model/NotificationSetting";
|
|
|
21
21
|
import LogSetting from "../../core/model/LogSetting";
|
|
22
22
|
|
|
23
23
|
import NamespaceRef from "../ref/NamespaceRef";
|
|
24
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
25
|
+
import CategoryModel from "./CategoryModel";
|
|
24
26
|
|
|
25
27
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
26
28
|
|
|
@@ -138,4 +140,17 @@ export default class Namespace extends CdkResource {
|
|
|
138
140
|
null,
|
|
139
141
|
);
|
|
140
142
|
}
|
|
143
|
+
|
|
144
|
+
public masterData(
|
|
145
|
+
categoryModels: CategoryModel[],
|
|
146
|
+
): Namespace {
|
|
147
|
+
new CurrentMasterData(
|
|
148
|
+
this.stack,
|
|
149
|
+
this.name,
|
|
150
|
+
categoryModels,
|
|
151
|
+
).addDependsOn(
|
|
152
|
+
this,
|
|
153
|
+
);
|
|
154
|
+
return this;
|
|
155
|
+
}
|
|
141
156
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
exports.CategoryModelRejectAccessTokenPost = void 0;
|
|
19
|
+
exports.CategoryModelRejectAccessTokenPost = {
|
|
20
|
+
ENABLED: "Enabled",
|
|
21
|
+
DISABLED: "Disabled",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=CategoryModelRejectAccessTokenPost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModelRejectAccessTokenPost.js","sourceRoot":"","sources":["CategoryModelRejectAccessTokenPost.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,kCAAkC,GAAG;IAC9C,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
18
|
+
|
|
19
|
+
export const CategoryModelRejectAccessTokenPost = {
|
|
20
|
+
ENABLED: "Enabled",
|
|
21
|
+
DISABLED: "Disabled",
|
|
22
|
+
} as const;
|
|
23
|
+
export type CategoryModelRejectAccessTokenPost = typeof CategoryModelRejectAccessTokenPost[keyof typeof CategoryModelRejectAccessTokenPost];
|
package/chat/model/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
+
import CategoryModel from "./CategoryModel";
|
|
4
|
+
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
5
|
+
import { CategoryModelRejectAccessTokenPost } from "./enums/CategoryModelRejectAccessTokenPost";
|
|
3
6
|
import NotificationType from "./NotificationType";
|
|
4
7
|
import { NotificationTypeOptions } from "./options/NotificationTypeOptions";
|
|
5
|
-
|
|
8
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
9
|
+
export { Namespace, NamespaceOptions, CategoryModel, CategoryModelOptions, CategoryModelRejectAccessTokenPost, NotificationType, NotificationTypeOptions, CurrentMasterData, };
|
package/chat/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotificationType = exports.Namespace = void 0;
|
|
3
|
+
exports.CurrentMasterData = exports.NotificationType = exports.CategoryModelRejectAccessTokenPost = exports.CategoryModel = exports.Namespace = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,6 +19,12 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const Namespace_1 = tslib_1.__importDefault(require("./Namespace"));
|
|
21
21
|
exports.Namespace = Namespace_1.default;
|
|
22
|
+
const CategoryModel_1 = tslib_1.__importDefault(require("./CategoryModel"));
|
|
23
|
+
exports.CategoryModel = CategoryModel_1.default;
|
|
24
|
+
const CategoryModelRejectAccessTokenPost_1 = require("./enums/CategoryModelRejectAccessTokenPost");
|
|
25
|
+
Object.defineProperty(exports, "CategoryModelRejectAccessTokenPost", { enumerable: true, get: function () { return CategoryModelRejectAccessTokenPost_1.CategoryModelRejectAccessTokenPost; } });
|
|
22
26
|
const NotificationType_1 = tslib_1.__importDefault(require("./NotificationType"));
|
|
23
27
|
exports.NotificationType = NotificationType_1.default;
|
|
28
|
+
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
29
|
+
exports.CurrentMasterData = CurrentMasterData_1.default;
|
|
24
30
|
//# sourceMappingURL=index.js.map
|
package/chat/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,oEAAoC;AAUhC,oBAVG,mBAAS,CAUH;AARb,4EAA4C;AAUxC,wBAVG,uBAAa,CAUH;AARjB,mGAAgG;AAU5F,mHAVK,uEAAkC,OAUL;AATtC,kFAAkD;AAU9C,2BAVG,0BAAgB,CAUH;AARpB,oFAAoD;AAUhD,4BAVG,2BAAiB,CAUH"}
|
package/chat/model/index.ts
CHANGED
|
@@ -15,12 +15,20 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace";
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import CategoryModel from "./CategoryModel";
|
|
19
|
+
import { CategoryModelOptions } from "./options/CategoryModelOptions";
|
|
20
|
+
import { CategoryModelRejectAccessTokenPost } from "./enums/CategoryModelRejectAccessTokenPost";
|
|
18
21
|
import NotificationType from "./NotificationType";
|
|
19
22
|
import { NotificationTypeOptions } from "./options/NotificationTypeOptions";
|
|
23
|
+
import CurrentMasterData from "./CurrentMasterData";
|
|
20
24
|
|
|
21
25
|
export {
|
|
22
26
|
Namespace,
|
|
23
27
|
NamespaceOptions,
|
|
28
|
+
CategoryModel,
|
|
29
|
+
CategoryModelOptions,
|
|
30
|
+
CategoryModelRejectAccessTokenPost,
|
|
24
31
|
NotificationType,
|
|
25
32
|
NotificationTypeOptions,
|
|
33
|
+
CurrentMasterData,
|
|
26
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModelOptions.js","sourceRoot":"","sources":["CategoryModelOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { CategoryModelRejectAccessTokenPost } from "../enums/CategoryModelRejectAccessTokenPost";
|
|
17
|
+
|
|
18
|
+
export interface CategoryModelOptions {
|
|
19
|
+
rejectAccessTokenPost?: CategoryModelRejectAccessTokenPost|null;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* deny overwrite
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
const func_1 = require("../../core/func");
|
|
21
|
+
class CategoryModelRef {
|
|
22
|
+
constructor(namespaceName, category) {
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.category = category;
|
|
25
|
+
}
|
|
26
|
+
grn() {
|
|
27
|
+
return new func_1.Join(":", [
|
|
28
|
+
"grn",
|
|
29
|
+
"gs2",
|
|
30
|
+
func_1.GetAttr.region().str(),
|
|
31
|
+
func_1.GetAttr.ownerId().str(),
|
|
32
|
+
"chat",
|
|
33
|
+
this.namespaceName,
|
|
34
|
+
"model",
|
|
35
|
+
this.category.toString(),
|
|
36
|
+
]).str();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.default = CategoryModelRef;
|
|
40
|
+
//# sourceMappingURL=CategoryModelRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModelRef.js","sourceRoot":"","sources":["CategoryModelRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,0CAA8C;AAE9C,MAAqB,gBAAgB;IAIjC,YACI,aAAqB,EACrB,QAAgB;QAEhB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,MAAM;YACN,IAAI,CAAC,aAAa;YAClB,OAAO;YACP,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;SAC3B,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AAjCD,mCAiCC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* deny overwrite
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import {GetAttr, Join} from "../../core/func";
|
|
20
|
+
|
|
21
|
+
export default class CategoryModelRef {
|
|
22
|
+
private readonly namespaceName: string;
|
|
23
|
+
private readonly category: number;
|
|
24
|
+
|
|
25
|
+
public constructor(
|
|
26
|
+
namespaceName: string,
|
|
27
|
+
category: number,
|
|
28
|
+
) {
|
|
29
|
+
this.namespaceName = namespaceName;
|
|
30
|
+
this.category = category;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public grn(
|
|
34
|
+
): string {
|
|
35
|
+
return new Join(
|
|
36
|
+
":",
|
|
37
|
+
[
|
|
38
|
+
"grn",
|
|
39
|
+
"gs2",
|
|
40
|
+
GetAttr.region(
|
|
41
|
+
).str(
|
|
42
|
+
),
|
|
43
|
+
GetAttr.ownerId(
|
|
44
|
+
).str(
|
|
45
|
+
),
|
|
46
|
+
"chat",
|
|
47
|
+
this.namespaceName,
|
|
48
|
+
"model",
|
|
49
|
+
this.category.toString(),
|
|
50
|
+
],
|
|
51
|
+
).str(
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
class MasterDataObjectRef {
|
|
19
|
+
constructor(namespaceName, objectKey) {
|
|
20
|
+
this.namespaceName = namespaceName;
|
|
21
|
+
this.objectKey = objectKey;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = MasterDataObjectRef;
|
|
25
|
+
//# sourceMappingURL=MasterDataObjectRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MasterDataObjectRef.js","sourceRoot":"","sources":["MasterDataObjectRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,mBAAmB;IAIpC,YACI,aAAqB,EACrB,SAAiB;QAEjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ;AAXD,sCAWC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class MasterDataObjectRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly objectKey: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
namespaceName: string,
|
|
25
|
+
objectKey: string,
|
|
26
|
+
) {
|
|
27
|
+
this.namespaceName = namespaceName;
|
|
28
|
+
this.objectKey = objectKey;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
class MasterDataVersionRef {
|
|
19
|
+
constructor(namespaceName, objectKey, versionId) {
|
|
20
|
+
this.namespaceName = namespaceName;
|
|
21
|
+
this.objectKey = objectKey;
|
|
22
|
+
this.versionId = versionId;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = MasterDataVersionRef;
|
|
26
|
+
//# sourceMappingURL=MasterDataVersionRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MasterDataVersionRef.js","sourceRoot":"","sources":["MasterDataVersionRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,oBAAoB;IAKrC,YACI,aAAqB,EACrB,SAAiB,EACjB,SAAiB;QAEjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ;AAdD,uCAcC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class MasterDataVersionRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly objectKey: string;
|
|
22
|
+
private readonly versionId: string;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
namespaceName: string,
|
|
26
|
+
objectKey: string,
|
|
27
|
+
versionId: string,
|
|
28
|
+
) {
|
|
29
|
+
this.namespaceName = namespaceName;
|
|
30
|
+
this.objectKey = objectKey;
|
|
31
|
+
this.versionId = versionId;
|
|
32
|
+
}
|
|
33
|
+
}
|
package/chat/ref/NamespaceRef.js
CHANGED
|
@@ -15,11 +15,16 @@
|
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const tslib_1 = require("tslib");
|
|
18
19
|
const func_1 = require("../../core/func");
|
|
20
|
+
const CategoryModelRef_1 = tslib_1.__importDefault(require("./CategoryModelRef"));
|
|
19
21
|
class NamespaceRef {
|
|
20
22
|
constructor(namespaceName) {
|
|
21
23
|
this.namespaceName = namespaceName;
|
|
22
24
|
}
|
|
25
|
+
categoryModel(category) {
|
|
26
|
+
return new CategoryModelRef_1.default(this.namespaceName, category);
|
|
27
|
+
}
|
|
23
28
|
grn() {
|
|
24
29
|
return new func_1.Join(":", [
|
|
25
30
|
"grn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,kFAAkD;AAElD,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,aAAa,CAChB,QAAgB;QAEhB,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,WAAI,CACX,GAAG,EACH;YACI,KAAK;YACL,KAAK;YACL,cAAO,CAAC,MAAM,EACb,CAAC,GAAG,EACJ;YACD,cAAO,CAAC,OAAO,EACd,CAAC,GAAG,EACJ;YACD,MAAM;YACN,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AArCD,+BAqCC"}
|
package/chat/ref/NamespaceRef.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import CategoryModelRef from "./CategoryModelRef";
|
|
18
19
|
|
|
19
20
|
export default class NamespaceRef {
|
|
20
21
|
private readonly namespaceName: string;
|
|
@@ -25,6 +26,15 @@ export default class NamespaceRef {
|
|
|
25
26
|
this.namespaceName = namespaceName;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
public categoryModel(
|
|
30
|
+
category: number,
|
|
31
|
+
): CategoryModelRef {
|
|
32
|
+
return new CategoryModelRef(
|
|
33
|
+
this.namespaceName,
|
|
34
|
+
category,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
public grn(
|
|
29
39
|
): string {
|
|
30
40
|
return new Join(
|
package/chat/ref/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import NamespaceRef from "./NamespaceRef";
|
|
2
|
-
|
|
2
|
+
import CategoryModelRef from "./CategoryModelRef";
|
|
3
|
+
import MasterDataObjectRef from "./MasterDataObjectRef";
|
|
4
|
+
import MasterDataVersionRef from "./MasterDataVersionRef";
|
|
5
|
+
export { NamespaceRef, CategoryModelRef, MasterDataObjectRef, MasterDataVersionRef, };
|
package/chat/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NamespaceRef = void 0;
|
|
3
|
+
exports.MasterDataVersionRef = exports.MasterDataObjectRef = exports.CategoryModelRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -19,4 +19,10 @@ const tslib_1 = require("tslib");
|
|
|
19
19
|
*/
|
|
20
20
|
const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
21
21
|
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
|
+
const CategoryModelRef_1 = tslib_1.__importDefault(require("./CategoryModelRef"));
|
|
23
|
+
exports.CategoryModelRef = CategoryModelRef_1.default;
|
|
24
|
+
const MasterDataObjectRef_1 = tslib_1.__importDefault(require("./MasterDataObjectRef"));
|
|
25
|
+
exports.MasterDataObjectRef = MasterDataObjectRef_1.default;
|
|
26
|
+
const MasterDataVersionRef_1 = tslib_1.__importDefault(require("./MasterDataVersionRef"));
|
|
27
|
+
exports.MasterDataVersionRef = MasterDataVersionRef_1.default;
|
|
22
28
|
//# sourceMappingURL=index.js.map
|
package/chat/ref/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAMtC,uBANG,sBAAY,CAMH;AALhB,kFAAkD;AAM9C,2BANG,0BAAgB,CAMH;AALpB,wFAAwD;AAMpD,8BANG,6BAAmB,CAMH;AALvB,0FAA0D;AAMtD,+BANG,8BAAoB,CAMH"}
|
package/chat/ref/index.ts
CHANGED
|
@@ -14,7 +14,13 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import NamespaceRef from "./NamespaceRef";
|
|
17
|
+
import CategoryModelRef from "./CategoryModelRef";
|
|
18
|
+
import MasterDataObjectRef from "./MasterDataObjectRef";
|
|
19
|
+
import MasterDataVersionRef from "./MasterDataVersionRef";
|
|
17
20
|
|
|
18
21
|
export {
|
|
19
22
|
NamespaceRef,
|
|
23
|
+
CategoryModelRef,
|
|
24
|
+
MasterDataObjectRef,
|
|
25
|
+
MasterDataVersionRef,
|
|
20
26
|
}
|
|
@@ -10,7 +10,6 @@ export default class Namespace extends CdkResource {
|
|
|
10
10
|
private readonly description;
|
|
11
11
|
private readonly transactionSetting;
|
|
12
12
|
private readonly lotteryTriggerScriptId;
|
|
13
|
-
private readonly choicePrizeTableScriptId;
|
|
14
13
|
private readonly logSetting;
|
|
15
14
|
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
16
15
|
alternateKeys(): string;
|
|
@@ -22,20 +22,18 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
|
22
22
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
23
23
|
class Namespace extends model_1.CdkResource {
|
|
24
24
|
constructor(stack, name, options = null) {
|
|
25
|
-
var _a, _b, _c, _d
|
|
25
|
+
var _a, _b, _c, _d;
|
|
26
26
|
super("Lottery_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
28
|
this.transactionSetting = null;
|
|
29
29
|
this.lotteryTriggerScriptId = null;
|
|
30
|
-
this.choicePrizeTableScriptId = null;
|
|
31
30
|
this.logSetting = null;
|
|
32
31
|
this.stack = stack;
|
|
33
32
|
this.name = name;
|
|
34
33
|
this.description = (_a = options === null || options === void 0 ? void 0 : options.description) !== null && _a !== void 0 ? _a : null;
|
|
35
34
|
this.transactionSetting = (_b = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _b !== void 0 ? _b : null;
|
|
36
35
|
this.lotteryTriggerScriptId = (_c = options === null || options === void 0 ? void 0 : options.lotteryTriggerScriptId) !== null && _c !== void 0 ? _c : null;
|
|
37
|
-
this.
|
|
38
|
-
this.logSetting = (_e = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _e !== void 0 ? _e : null;
|
|
36
|
+
this.logSetting = (_d = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _d !== void 0 ? _d : null;
|
|
39
37
|
stack.addResource(this);
|
|
40
38
|
}
|
|
41
39
|
alternateKeys() {
|
|
@@ -59,9 +57,6 @@ class Namespace extends model_1.CdkResource {
|
|
|
59
57
|
if (this.lotteryTriggerScriptId != null) {
|
|
60
58
|
properties["LotteryTriggerScriptId"] = this.lotteryTriggerScriptId;
|
|
61
59
|
}
|
|
62
|
-
if (this.choicePrizeTableScriptId != null) {
|
|
63
|
-
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
64
|
-
}
|
|
65
60
|
if (this.logSetting != null) {
|
|
66
61
|
properties["LogSetting"] = (_b = this.logSetting) === null || _b === void 0 ? void 0 : _b.properties();
|
|
67
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAIxC,+EAA+C;AAC/C,oFAAoD;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAQ9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,oBAAoB,GAAG,IAAI,CAC9B,CAAC;QAZW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA4B,IAAI,CAAC;QACnD,2BAAsB,GAAgB,IAAI,CAAC;QAC3C,eAAU,GAAoB,IAAI,CAAC;QAWhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,mCAAI,IAAI,CAAC;QAChD,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;QAC9D,IAAI,CAAC,sBAAsB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,mCAAI,IAAI,CAAC;QACtE,IAAI,CAAC,UAAU,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CA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V,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA9FD,4BA8FC"}
|
|
@@ -32,7 +32,6 @@ export default class Namespace extends CdkResource {
|
|
|
32
32
|
private readonly description: string|null = null;
|
|
33
33
|
private readonly transactionSetting: TransactionSetting|null = null;
|
|
34
34
|
private readonly lotteryTriggerScriptId: string|null = null;
|
|
35
|
-
private readonly choicePrizeTableScriptId: string|null = null;
|
|
36
35
|
private readonly logSetting: LogSetting|null = null;
|
|
37
36
|
|
|
38
37
|
public constructor(
|
|
@@ -49,7 +48,6 @@ export default class Namespace extends CdkResource {
|
|
|
49
48
|
this.description = options?.description ?? null;
|
|
50
49
|
this.transactionSetting = options?.transactionSetting ?? null;
|
|
51
50
|
this.lotteryTriggerScriptId = options?.lotteryTriggerScriptId ?? null;
|
|
52
|
-
this.choicePrizeTableScriptId = options?.choicePrizeTableScriptId ?? null;
|
|
53
51
|
this.logSetting = options?.logSetting ?? null;
|
|
54
52
|
stack.addResource(
|
|
55
53
|
this,
|
|
@@ -84,9 +82,6 @@ export default class Namespace extends CdkResource {
|
|
|
84
82
|
if (this.lotteryTriggerScriptId != null) {
|
|
85
83
|
properties["LotteryTriggerScriptId"] = this.lotteryTriggerScriptId;
|
|
86
84
|
}
|
|
87
|
-
if (this.choicePrizeTableScriptId != null) {
|
|
88
|
-
properties["ChoicePrizeTableScriptId"] = this.choicePrizeTableScriptId;
|
|
89
|
-
}
|
|
90
85
|
if (this.logSetting != null) {
|
|
91
86
|
properties["LogSetting"] = this.logSetting?.properties(
|
|
92
87
|
);
|
|
@@ -4,7 +4,6 @@ export interface NamespaceOptions {
|
|
|
4
4
|
description?: string | null;
|
|
5
5
|
transactionSetting?: TransactionSetting | null;
|
|
6
6
|
lotteryTriggerScriptId?: string | null;
|
|
7
|
-
choicePrizeTableScriptId?: string | null;
|
|
8
7
|
logSetting?: LogSetting | null;
|
|
9
8
|
queueNamespaceId?: string | null;
|
|
10
9
|
keyId?: string | null;
|
|
@@ -20,7 +20,6 @@ export interface NamespaceOptions {
|
|
|
20
20
|
description?: string|null;
|
|
21
21
|
transactionSetting?: TransactionSetting|null;
|
|
22
22
|
lotteryTriggerScriptId?: string|null;
|
|
23
|
-
choicePrizeTableScriptId?: string|null;
|
|
24
23
|
logSetting?: LogSetting|null;
|
|
25
24
|
queueNamespaceId?: string|null;
|
|
26
25
|
keyId?: string|null;
|