gs2 1.4.87 → 1.4.88
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 +27 -0
- package/chat/model/CategoryModel.js +143 -0
- package/chat/model/CategoryModel.js.map +1 -0
- package/chat/model/CategoryModel.ts +158 -0
- package/chat/model/CategoryModelMaster.d.ts +43 -0
- package/chat/model/CategoryModelMaster.js +199 -0
- package/chat/model/CategoryModelMaster.js.map +1 -0
- package/chat/model/CategoryModelMaster.ts +214 -0
- package/chat/model/CurrentModelMaster.d.ts +22 -0
- package/chat/model/CurrentModelMaster.js +111 -0
- package/chat/model/CurrentModelMaster.js.map +1 -0
- package/chat/model/CurrentModelMaster.ts +123 -0
- package/chat/model/GitHubCheckoutSetting.d.ts +37 -0
- package/chat/model/GitHubCheckoutSetting.js +132 -0
- package/chat/model/GitHubCheckoutSetting.js.map +1 -0
- package/chat/model/GitHubCheckoutSetting.ts +132 -0
- package/chat/model/index.d.ts +5 -1
- package/chat/model/index.js +9 -1
- package/chat/model/index.js.map +1 -1
- package/chat/model/index.ts +8 -0
- package/chat/request/CreateCategoryModelMasterRequest.d.ts +33 -0
- package/chat/request/CreateCategoryModelMasterRequest.js +111 -0
- package/chat/request/CreateCategoryModelMasterRequest.js.map +1 -0
- package/chat/request/CreateCategoryModelMasterRequest.ts +118 -0
- package/chat/request/DeleteCategoryModelMasterRequest.d.ts +25 -0
- package/chat/request/DeleteCategoryModelMasterRequest.js +83 -0
- package/chat/request/DeleteCategoryModelMasterRequest.js.map +1 -0
- package/chat/request/DeleteCategoryModelMasterRequest.ts +90 -0
- package/chat/request/DescribeCategoryModelMastersRequest.d.ts +29 -0
- package/chat/request/DescribeCategoryModelMastersRequest.js +97 -0
- package/chat/request/DescribeCategoryModelMastersRequest.js.map +1 -0
- package/chat/request/DescribeCategoryModelMastersRequest.ts +104 -0
- package/chat/request/DescribeCategoryModelsRequest.d.ts +21 -0
- package/chat/request/DescribeCategoryModelsRequest.js +69 -0
- package/chat/request/DescribeCategoryModelsRequest.js.map +1 -0
- package/chat/request/DescribeCategoryModelsRequest.ts +76 -0
- package/chat/request/ExportMasterRequest.d.ts +21 -0
- package/chat/request/ExportMasterRequest.js +69 -0
- package/chat/request/ExportMasterRequest.js.map +1 -0
- package/chat/request/ExportMasterRequest.ts +76 -0
- package/chat/request/GetCategoryModelMasterRequest.d.ts +25 -0
- package/chat/request/GetCategoryModelMasterRequest.js +83 -0
- package/chat/request/GetCategoryModelMasterRequest.js.map +1 -0
- package/chat/request/GetCategoryModelMasterRequest.ts +90 -0
- package/chat/request/GetCategoryModelRequest.d.ts +25 -0
- package/chat/request/GetCategoryModelRequest.js +83 -0
- package/chat/request/GetCategoryModelRequest.js.map +1 -0
- package/chat/request/GetCategoryModelRequest.ts +90 -0
- package/chat/request/GetCurrentModelMasterRequest.d.ts +21 -0
- package/chat/request/GetCurrentModelMasterRequest.js +69 -0
- package/chat/request/GetCurrentModelMasterRequest.js.map +1 -0
- package/chat/request/GetCurrentModelMasterRequest.ts +76 -0
- package/chat/request/PreUpdateCurrentModelMasterRequest.d.ts +21 -0
- package/chat/request/PreUpdateCurrentModelMasterRequest.js +69 -0
- package/chat/request/PreUpdateCurrentModelMasterRequest.js.map +1 -0
- package/chat/request/PreUpdateCurrentModelMasterRequest.ts +76 -0
- package/chat/request/UpdateCategoryModelMasterRequest.d.ts +33 -0
- package/chat/request/UpdateCategoryModelMasterRequest.js +111 -0
- package/chat/request/UpdateCategoryModelMasterRequest.js.map +1 -0
- package/chat/request/UpdateCategoryModelMasterRequest.ts +118 -0
- package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.d.ts +26 -0
- package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.js +86 -0
- package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.js.map +1 -0
- package/chat/request/UpdateCurrentModelMasterFromGitHubRequest.ts +90 -0
- package/chat/request/UpdateCurrentModelMasterRequest.d.ts +33 -0
- package/chat/request/UpdateCurrentModelMasterRequest.js +111 -0
- package/chat/request/UpdateCurrentModelMasterRequest.js.map +1 -0
- package/chat/request/UpdateCurrentModelMasterRequest.ts +118 -0
- package/chat/request/index.d.ts +13 -1
- package/chat/request/index.js +26 -1
- package/chat/request/index.js.map +1 -1
- package/chat/request/index.ts +24 -0
- package/chat/rest.d.ts +12 -0
- package/chat/rest.js +299 -0
- package/chat/rest.js.map +1 -1
- package/chat/rest.ts +347 -0
- package/chat/result/CreateCategoryModelMasterResult.d.ts +14 -0
- package/chat/result/CreateCategoryModelMasterResult.js +48 -0
- package/chat/result/CreateCategoryModelMasterResult.js.map +1 -0
- package/chat/result/CreateCategoryModelMasterResult.ts +47 -0
- package/chat/result/DeleteCategoryModelMasterResult.d.ts +14 -0
- package/chat/result/DeleteCategoryModelMasterResult.js +48 -0
- package/chat/result/DeleteCategoryModelMasterResult.js.map +1 -0
- package/chat/result/DeleteCategoryModelMasterResult.ts +47 -0
- package/chat/result/DescribeCategoryModelMastersResult.d.ts +18 -0
- package/chat/result/DescribeCategoryModelMastersResult.js +67 -0
- package/chat/result/DescribeCategoryModelMastersResult.js.map +1 -0
- package/chat/result/DescribeCategoryModelMastersResult.ts +72 -0
- package/chat/result/DescribeCategoryModelsResult.d.ts +14 -0
- package/chat/result/DescribeCategoryModelsResult.js +53 -0
- package/chat/result/DescribeCategoryModelsResult.js.map +1 -0
- package/chat/result/DescribeCategoryModelsResult.ts +55 -0
- package/chat/result/ExportMasterResult.d.ts +14 -0
- package/chat/result/ExportMasterResult.js +48 -0
- package/chat/result/ExportMasterResult.js.map +1 -0
- package/chat/result/ExportMasterResult.ts +47 -0
- package/chat/result/GetCategoryModelMasterResult.d.ts +14 -0
- package/chat/result/GetCategoryModelMasterResult.js +48 -0
- package/chat/result/GetCategoryModelMasterResult.js.map +1 -0
- package/chat/result/GetCategoryModelMasterResult.ts +47 -0
- package/chat/result/GetCategoryModelResult.d.ts +14 -0
- package/chat/result/GetCategoryModelResult.js +48 -0
- package/chat/result/GetCategoryModelResult.js.map +1 -0
- package/chat/result/GetCategoryModelResult.ts +47 -0
- package/chat/result/GetCurrentModelMasterResult.d.ts +14 -0
- package/chat/result/GetCurrentModelMasterResult.js +48 -0
- package/chat/result/GetCurrentModelMasterResult.js.map +1 -0
- package/chat/result/GetCurrentModelMasterResult.ts +47 -0
- package/chat/result/PreUpdateCurrentModelMasterResult.d.ts +17 -0
- package/chat/result/PreUpdateCurrentModelMasterResult.js +59 -0
- package/chat/result/PreUpdateCurrentModelMasterResult.js.map +1 -0
- package/chat/result/PreUpdateCurrentModelMasterResult.ts +63 -0
- package/chat/result/UpdateCategoryModelMasterResult.d.ts +14 -0
- package/chat/result/UpdateCategoryModelMasterResult.js +48 -0
- package/chat/result/UpdateCategoryModelMasterResult.js.map +1 -0
- package/chat/result/UpdateCategoryModelMasterResult.ts +47 -0
- package/chat/result/UpdateCurrentModelMasterFromGitHubResult.d.ts +14 -0
- package/chat/result/UpdateCurrentModelMasterFromGitHubResult.js +48 -0
- package/chat/result/UpdateCurrentModelMasterFromGitHubResult.js.map +1 -0
- package/chat/result/UpdateCurrentModelMasterFromGitHubResult.ts +47 -0
- package/chat/result/UpdateCurrentModelMasterResult.d.ts +14 -0
- package/chat/result/UpdateCurrentModelMasterResult.js +48 -0
- package/chat/result/UpdateCurrentModelMasterResult.js.map +1 -0
- package/chat/result/UpdateCurrentModelMasterResult.ts +47 -0
- package/chat/result/index.d.ts +13 -1
- package/chat/result/index.js +26 -1
- package/chat/result/index.js.map +1 -1
- package/chat/result/index.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class CategoryModel implements IModel {
|
|
3
|
+
private categoryModelId;
|
|
4
|
+
private category;
|
|
5
|
+
private rejectAccessTokenPost;
|
|
6
|
+
static getRegion(grn: string): string | null;
|
|
7
|
+
static getOwnerId(grn: string): string | null;
|
|
8
|
+
static getNamespaceName(grn: string): string | null;
|
|
9
|
+
static getCategory(grn: string): string | null;
|
|
10
|
+
static isValid(grn: string): boolean;
|
|
11
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, category: string | null): string | null;
|
|
12
|
+
getCategoryModelId(): string | null;
|
|
13
|
+
setCategoryModelId(categoryModelId: string | null): this;
|
|
14
|
+
withCategoryModelId(categoryModelId: string | null): this;
|
|
15
|
+
getCategory(): number | null;
|
|
16
|
+
setCategory(category: number | null): this;
|
|
17
|
+
withCategory(category: number | null): this;
|
|
18
|
+
getRejectAccessTokenPost(): string | null;
|
|
19
|
+
setRejectAccessTokenPost(rejectAccessTokenPost: string | null): this;
|
|
20
|
+
withRejectAccessTokenPost(rejectAccessTokenPost: string | null): this;
|
|
21
|
+
static fromDict(data: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}): CategoryModel | null;
|
|
24
|
+
toDict(): {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
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 grnFormat = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}:model:{category}";
|
|
19
|
+
var CategoryModel = /** @class */ (function () {
|
|
20
|
+
function CategoryModel() {
|
|
21
|
+
this.categoryModelId = null;
|
|
22
|
+
this.category = null;
|
|
23
|
+
this.rejectAccessTokenPost = null;
|
|
24
|
+
}
|
|
25
|
+
CategoryModel.getRegion = function (grn) {
|
|
26
|
+
var match = grn.match(grnFormat
|
|
27
|
+
.replace('{region}', '(.*)')
|
|
28
|
+
.replace('{ownerId}', '.*')
|
|
29
|
+
.replace('{namespaceName}', '.*')
|
|
30
|
+
.replace('{category}', '.*'));
|
|
31
|
+
if (match) {
|
|
32
|
+
return match[1];
|
|
33
|
+
}
|
|
34
|
+
return null;
|
|
35
|
+
};
|
|
36
|
+
CategoryModel.getOwnerId = function (grn) {
|
|
37
|
+
var match = grn.match(grnFormat
|
|
38
|
+
.replace('{region}', '.*')
|
|
39
|
+
.replace('{ownerId}', '(.*)')
|
|
40
|
+
.replace('{namespaceName}', '.*')
|
|
41
|
+
.replace('{category}', '.*'));
|
|
42
|
+
if (match) {
|
|
43
|
+
return match[1];
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
};
|
|
47
|
+
CategoryModel.getNamespaceName = function (grn) {
|
|
48
|
+
var match = grn.match(grnFormat
|
|
49
|
+
.replace('{region}', '.*')
|
|
50
|
+
.replace('{ownerId}', '.*')
|
|
51
|
+
.replace('{namespaceName}', '(.*)')
|
|
52
|
+
.replace('{category}', '.*'));
|
|
53
|
+
if (match) {
|
|
54
|
+
return match[1];
|
|
55
|
+
}
|
|
56
|
+
return null;
|
|
57
|
+
};
|
|
58
|
+
CategoryModel.getCategory = function (grn) {
|
|
59
|
+
var match = grn.match(grnFormat
|
|
60
|
+
.replace('{region}', '.*')
|
|
61
|
+
.replace('{ownerId}', '.*')
|
|
62
|
+
.replace('{namespaceName}', '.*')
|
|
63
|
+
.replace('{category}', '(.*)'));
|
|
64
|
+
if (match) {
|
|
65
|
+
return match[1];
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
};
|
|
69
|
+
CategoryModel.isValid = function (grn) {
|
|
70
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (this.getCategory(grn) == null || this.getCategory(grn) === '') {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
};
|
|
84
|
+
CategoryModel.createGrn = function (region, ownerId, namespaceName, category) {
|
|
85
|
+
return grnFormat
|
|
86
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
87
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
88
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
89
|
+
.replace('{category}', category !== null && category !== void 0 ? category : '');
|
|
90
|
+
};
|
|
91
|
+
CategoryModel.prototype.getCategoryModelId = function () {
|
|
92
|
+
return this.categoryModelId;
|
|
93
|
+
};
|
|
94
|
+
CategoryModel.prototype.setCategoryModelId = function (categoryModelId) {
|
|
95
|
+
this.categoryModelId = categoryModelId;
|
|
96
|
+
return this;
|
|
97
|
+
};
|
|
98
|
+
CategoryModel.prototype.withCategoryModelId = function (categoryModelId) {
|
|
99
|
+
this.categoryModelId = categoryModelId;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
CategoryModel.prototype.getCategory = function () {
|
|
103
|
+
return this.category;
|
|
104
|
+
};
|
|
105
|
+
CategoryModel.prototype.setCategory = function (category) {
|
|
106
|
+
this.category = category;
|
|
107
|
+
return this;
|
|
108
|
+
};
|
|
109
|
+
CategoryModel.prototype.withCategory = function (category) {
|
|
110
|
+
this.category = category;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
CategoryModel.prototype.getRejectAccessTokenPost = function () {
|
|
114
|
+
return this.rejectAccessTokenPost;
|
|
115
|
+
};
|
|
116
|
+
CategoryModel.prototype.setRejectAccessTokenPost = function (rejectAccessTokenPost) {
|
|
117
|
+
this.rejectAccessTokenPost = rejectAccessTokenPost;
|
|
118
|
+
return this;
|
|
119
|
+
};
|
|
120
|
+
CategoryModel.prototype.withRejectAccessTokenPost = function (rejectAccessTokenPost) {
|
|
121
|
+
this.rejectAccessTokenPost = rejectAccessTokenPost;
|
|
122
|
+
return this;
|
|
123
|
+
};
|
|
124
|
+
CategoryModel.fromDict = function (data) {
|
|
125
|
+
if (data == undefined || data == null) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
return new CategoryModel()
|
|
129
|
+
.withCategoryModelId(data["categoryModelId"])
|
|
130
|
+
.withCategory(data["category"])
|
|
131
|
+
.withRejectAccessTokenPost(data["rejectAccessTokenPost"]);
|
|
132
|
+
};
|
|
133
|
+
CategoryModel.prototype.toDict = function () {
|
|
134
|
+
return {
|
|
135
|
+
"categoryModelId": this.getCategoryModelId(),
|
|
136
|
+
"category": this.getCategory(),
|
|
137
|
+
"rejectAccessTokenPost": this.getRejectAccessTokenPost(),
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
return CategoryModel;
|
|
141
|
+
}());
|
|
142
|
+
exports.default = CategoryModel;
|
|
143
|
+
//# sourceMappingURL=CategoryModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModel.js","sourceRoot":"","sources":["CategoryModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAKH,IAAM,SAAS,GAAW,kEAAkE,CAAC;AAE7F;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;QACpC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,0BAAqB,GAAgB,IAAI,CAAC;IAqItD,CAAC;IAnIiB,uBAAS,GAAvB,UAAwB,GAAW;QAC/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5C,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,yBAAyB,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAClE,CAAC;IAEM,8BAAM,GAAb;QACI,OAAO;YACH,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,EAAE;YAC5C,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,uBAAuB,EAAE,IAAI,CAAC,wBAAwB,EAAE;SAC3D,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAxID,IAwIC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
import * as Gs2Chat from '../../chat/model'
|
|
20
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}:model:{category}";
|
|
21
|
+
|
|
22
|
+
export default class CategoryModel implements IModel {
|
|
23
|
+
private categoryModelId: string|null = null;
|
|
24
|
+
private category: number|null = null;
|
|
25
|
+
private rejectAccessTokenPost: string|null = null;
|
|
26
|
+
|
|
27
|
+
public static getRegion(grn: string): string|null {
|
|
28
|
+
const match = grn.match(grnFormat
|
|
29
|
+
.replace('{region}', '(.*)')
|
|
30
|
+
.replace('{ownerId}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{category}', '.*')
|
|
33
|
+
);
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public static getOwnerId(grn: string): string|null {
|
|
41
|
+
const match = grn.match(grnFormat
|
|
42
|
+
.replace('{region}', '.*')
|
|
43
|
+
.replace('{ownerId}', '(.*)')
|
|
44
|
+
.replace('{namespaceName}', '.*')
|
|
45
|
+
.replace('{category}', '.*')
|
|
46
|
+
);
|
|
47
|
+
if (match) {
|
|
48
|
+
return match[1];
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public static getNamespaceName(grn: string): string|null {
|
|
54
|
+
const match = grn.match(grnFormat
|
|
55
|
+
.replace('{region}', '.*')
|
|
56
|
+
.replace('{ownerId}', '.*')
|
|
57
|
+
.replace('{namespaceName}', '(.*)')
|
|
58
|
+
.replace('{category}', '.*')
|
|
59
|
+
);
|
|
60
|
+
if (match) {
|
|
61
|
+
return match[1];
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public static getCategory(grn: string): string|null {
|
|
67
|
+
const match = grn.match(grnFormat
|
|
68
|
+
.replace('{region}', '.*')
|
|
69
|
+
.replace('{ownerId}', '.*')
|
|
70
|
+
.replace('{namespaceName}', '.*')
|
|
71
|
+
.replace('{category}', '(.*)')
|
|
72
|
+
);
|
|
73
|
+
if (match) {
|
|
74
|
+
return match[1];
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public static isValid(grn: string): boolean {
|
|
80
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
if (this.getCategory(grn) == null || this.getCategory(grn) === '') {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public static createGrn(
|
|
96
|
+
region: string|null,
|
|
97
|
+
ownerId: string|null,
|
|
98
|
+
namespaceName: string|null,
|
|
99
|
+
category: string|null,
|
|
100
|
+
): string|null {
|
|
101
|
+
return grnFormat
|
|
102
|
+
.replace('{region}', region ?? '')
|
|
103
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
104
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
105
|
+
.replace('{category}', category ?? '');
|
|
106
|
+
}
|
|
107
|
+
public getCategoryModelId(): string|null {
|
|
108
|
+
return this.categoryModelId;
|
|
109
|
+
}
|
|
110
|
+
public setCategoryModelId(categoryModelId: string|null) {
|
|
111
|
+
this.categoryModelId = categoryModelId;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
public withCategoryModelId(categoryModelId: string|null): this {
|
|
115
|
+
this.categoryModelId = categoryModelId;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
public getCategory(): number|null {
|
|
119
|
+
return this.category;
|
|
120
|
+
}
|
|
121
|
+
public setCategory(category: number|null) {
|
|
122
|
+
this.category = category;
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
public withCategory(category: number|null): this {
|
|
126
|
+
this.category = category;
|
|
127
|
+
return this;
|
|
128
|
+
}
|
|
129
|
+
public getRejectAccessTokenPost(): string|null {
|
|
130
|
+
return this.rejectAccessTokenPost;
|
|
131
|
+
}
|
|
132
|
+
public setRejectAccessTokenPost(rejectAccessTokenPost: string|null) {
|
|
133
|
+
this.rejectAccessTokenPost = rejectAccessTokenPost;
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
public withRejectAccessTokenPost(rejectAccessTokenPost: string|null): this {
|
|
137
|
+
this.rejectAccessTokenPost = rejectAccessTokenPost;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
public static fromDict(data: {[key: string]: any}): CategoryModel|null {
|
|
142
|
+
if (data == undefined || data == null) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
return new CategoryModel()
|
|
146
|
+
.withCategoryModelId(data["categoryModelId"])
|
|
147
|
+
.withCategory(data["category"])
|
|
148
|
+
.withRejectAccessTokenPost(data["rejectAccessTokenPost"]);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
public toDict(): {[key: string]: any} {
|
|
152
|
+
return {
|
|
153
|
+
"categoryModelId": this.getCategoryModelId(),
|
|
154
|
+
"category": this.getCategory(),
|
|
155
|
+
"rejectAccessTokenPost": this.getRejectAccessTokenPost(),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class CategoryModelMaster implements IModel {
|
|
3
|
+
private categoryModelId;
|
|
4
|
+
private category;
|
|
5
|
+
private description;
|
|
6
|
+
private rejectAccessTokenPost;
|
|
7
|
+
private createdAt;
|
|
8
|
+
private updatedAt;
|
|
9
|
+
private revision;
|
|
10
|
+
static getRegion(grn: string): string | null;
|
|
11
|
+
static getOwnerId(grn: string): string | null;
|
|
12
|
+
static getNamespaceName(grn: string): string | null;
|
|
13
|
+
static getCategory(grn: string): string | null;
|
|
14
|
+
static isValid(grn: string): boolean;
|
|
15
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, category: string | null): string | null;
|
|
16
|
+
getCategoryModelId(): string | null;
|
|
17
|
+
setCategoryModelId(categoryModelId: string | null): this;
|
|
18
|
+
withCategoryModelId(categoryModelId: string | null): this;
|
|
19
|
+
getCategory(): number | null;
|
|
20
|
+
setCategory(category: number | null): this;
|
|
21
|
+
withCategory(category: number | null): this;
|
|
22
|
+
getDescription(): string | null;
|
|
23
|
+
setDescription(description: string | null): this;
|
|
24
|
+
withDescription(description: string | null): this;
|
|
25
|
+
getRejectAccessTokenPost(): string | null;
|
|
26
|
+
setRejectAccessTokenPost(rejectAccessTokenPost: string | null): this;
|
|
27
|
+
withRejectAccessTokenPost(rejectAccessTokenPost: string | null): this;
|
|
28
|
+
getCreatedAt(): number | null;
|
|
29
|
+
setCreatedAt(createdAt: number | null): this;
|
|
30
|
+
withCreatedAt(createdAt: number | null): this;
|
|
31
|
+
getUpdatedAt(): number | null;
|
|
32
|
+
setUpdatedAt(updatedAt: number | null): this;
|
|
33
|
+
withUpdatedAt(updatedAt: number | null): this;
|
|
34
|
+
getRevision(): number | null;
|
|
35
|
+
setRevision(revision: number | null): this;
|
|
36
|
+
withRevision(revision: number | null): this;
|
|
37
|
+
static fromDict(data: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}): CategoryModelMaster | null;
|
|
40
|
+
toDict(): {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
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 grnFormat = "grn:gs2:{region}:{ownerId}:chat:{namespaceName}:model:{category}";
|
|
19
|
+
var CategoryModelMaster = /** @class */ (function () {
|
|
20
|
+
function CategoryModelMaster() {
|
|
21
|
+
this.categoryModelId = null;
|
|
22
|
+
this.category = null;
|
|
23
|
+
this.description = null;
|
|
24
|
+
this.rejectAccessTokenPost = null;
|
|
25
|
+
this.createdAt = null;
|
|
26
|
+
this.updatedAt = null;
|
|
27
|
+
this.revision = null;
|
|
28
|
+
}
|
|
29
|
+
CategoryModelMaster.getRegion = function (grn) {
|
|
30
|
+
var match = grn.match(grnFormat
|
|
31
|
+
.replace('{region}', '(.*)')
|
|
32
|
+
.replace('{ownerId}', '.*')
|
|
33
|
+
.replace('{namespaceName}', '.*')
|
|
34
|
+
.replace('{category}', '.*'));
|
|
35
|
+
if (match) {
|
|
36
|
+
return match[1];
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
40
|
+
CategoryModelMaster.getOwnerId = function (grn) {
|
|
41
|
+
var match = grn.match(grnFormat
|
|
42
|
+
.replace('{region}', '.*')
|
|
43
|
+
.replace('{ownerId}', '(.*)')
|
|
44
|
+
.replace('{namespaceName}', '.*')
|
|
45
|
+
.replace('{category}', '.*'));
|
|
46
|
+
if (match) {
|
|
47
|
+
return match[1];
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
};
|
|
51
|
+
CategoryModelMaster.getNamespaceName = function (grn) {
|
|
52
|
+
var match = grn.match(grnFormat
|
|
53
|
+
.replace('{region}', '.*')
|
|
54
|
+
.replace('{ownerId}', '.*')
|
|
55
|
+
.replace('{namespaceName}', '(.*)')
|
|
56
|
+
.replace('{category}', '.*'));
|
|
57
|
+
if (match) {
|
|
58
|
+
return match[1];
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
};
|
|
62
|
+
CategoryModelMaster.getCategory = function (grn) {
|
|
63
|
+
var match = grn.match(grnFormat
|
|
64
|
+
.replace('{region}', '.*')
|
|
65
|
+
.replace('{ownerId}', '.*')
|
|
66
|
+
.replace('{namespaceName}', '.*')
|
|
67
|
+
.replace('{category}', '(.*)'));
|
|
68
|
+
if (match) {
|
|
69
|
+
return match[1];
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
};
|
|
73
|
+
CategoryModelMaster.isValid = function (grn) {
|
|
74
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.getCategory(grn) == null || this.getCategory(grn) === '') {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
};
|
|
88
|
+
CategoryModelMaster.createGrn = function (region, ownerId, namespaceName, category) {
|
|
89
|
+
return grnFormat
|
|
90
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
91
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
92
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
93
|
+
.replace('{category}', category !== null && category !== void 0 ? category : '');
|
|
94
|
+
};
|
|
95
|
+
CategoryModelMaster.prototype.getCategoryModelId = function () {
|
|
96
|
+
return this.categoryModelId;
|
|
97
|
+
};
|
|
98
|
+
CategoryModelMaster.prototype.setCategoryModelId = function (categoryModelId) {
|
|
99
|
+
this.categoryModelId = categoryModelId;
|
|
100
|
+
return this;
|
|
101
|
+
};
|
|
102
|
+
CategoryModelMaster.prototype.withCategoryModelId = function (categoryModelId) {
|
|
103
|
+
this.categoryModelId = categoryModelId;
|
|
104
|
+
return this;
|
|
105
|
+
};
|
|
106
|
+
CategoryModelMaster.prototype.getCategory = function () {
|
|
107
|
+
return this.category;
|
|
108
|
+
};
|
|
109
|
+
CategoryModelMaster.prototype.setCategory = function (category) {
|
|
110
|
+
this.category = category;
|
|
111
|
+
return this;
|
|
112
|
+
};
|
|
113
|
+
CategoryModelMaster.prototype.withCategory = function (category) {
|
|
114
|
+
this.category = category;
|
|
115
|
+
return this;
|
|
116
|
+
};
|
|
117
|
+
CategoryModelMaster.prototype.getDescription = function () {
|
|
118
|
+
return this.description;
|
|
119
|
+
};
|
|
120
|
+
CategoryModelMaster.prototype.setDescription = function (description) {
|
|
121
|
+
this.description = description;
|
|
122
|
+
return this;
|
|
123
|
+
};
|
|
124
|
+
CategoryModelMaster.prototype.withDescription = function (description) {
|
|
125
|
+
this.description = description;
|
|
126
|
+
return this;
|
|
127
|
+
};
|
|
128
|
+
CategoryModelMaster.prototype.getRejectAccessTokenPost = function () {
|
|
129
|
+
return this.rejectAccessTokenPost;
|
|
130
|
+
};
|
|
131
|
+
CategoryModelMaster.prototype.setRejectAccessTokenPost = function (rejectAccessTokenPost) {
|
|
132
|
+
this.rejectAccessTokenPost = rejectAccessTokenPost;
|
|
133
|
+
return this;
|
|
134
|
+
};
|
|
135
|
+
CategoryModelMaster.prototype.withRejectAccessTokenPost = function (rejectAccessTokenPost) {
|
|
136
|
+
this.rejectAccessTokenPost = rejectAccessTokenPost;
|
|
137
|
+
return this;
|
|
138
|
+
};
|
|
139
|
+
CategoryModelMaster.prototype.getCreatedAt = function () {
|
|
140
|
+
return this.createdAt;
|
|
141
|
+
};
|
|
142
|
+
CategoryModelMaster.prototype.setCreatedAt = function (createdAt) {
|
|
143
|
+
this.createdAt = createdAt;
|
|
144
|
+
return this;
|
|
145
|
+
};
|
|
146
|
+
CategoryModelMaster.prototype.withCreatedAt = function (createdAt) {
|
|
147
|
+
this.createdAt = createdAt;
|
|
148
|
+
return this;
|
|
149
|
+
};
|
|
150
|
+
CategoryModelMaster.prototype.getUpdatedAt = function () {
|
|
151
|
+
return this.updatedAt;
|
|
152
|
+
};
|
|
153
|
+
CategoryModelMaster.prototype.setUpdatedAt = function (updatedAt) {
|
|
154
|
+
this.updatedAt = updatedAt;
|
|
155
|
+
return this;
|
|
156
|
+
};
|
|
157
|
+
CategoryModelMaster.prototype.withUpdatedAt = function (updatedAt) {
|
|
158
|
+
this.updatedAt = updatedAt;
|
|
159
|
+
return this;
|
|
160
|
+
};
|
|
161
|
+
CategoryModelMaster.prototype.getRevision = function () {
|
|
162
|
+
return this.revision;
|
|
163
|
+
};
|
|
164
|
+
CategoryModelMaster.prototype.setRevision = function (revision) {
|
|
165
|
+
this.revision = revision;
|
|
166
|
+
return this;
|
|
167
|
+
};
|
|
168
|
+
CategoryModelMaster.prototype.withRevision = function (revision) {
|
|
169
|
+
this.revision = revision;
|
|
170
|
+
return this;
|
|
171
|
+
};
|
|
172
|
+
CategoryModelMaster.fromDict = function (data) {
|
|
173
|
+
if (data == undefined || data == null) {
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
return new CategoryModelMaster()
|
|
177
|
+
.withCategoryModelId(data["categoryModelId"])
|
|
178
|
+
.withCategory(data["category"])
|
|
179
|
+
.withDescription(data["description"])
|
|
180
|
+
.withRejectAccessTokenPost(data["rejectAccessTokenPost"])
|
|
181
|
+
.withCreatedAt(data["createdAt"])
|
|
182
|
+
.withUpdatedAt(data["updatedAt"])
|
|
183
|
+
.withRevision(data["revision"]);
|
|
184
|
+
};
|
|
185
|
+
CategoryModelMaster.prototype.toDict = function () {
|
|
186
|
+
return {
|
|
187
|
+
"categoryModelId": this.getCategoryModelId(),
|
|
188
|
+
"category": this.getCategory(),
|
|
189
|
+
"description": this.getDescription(),
|
|
190
|
+
"rejectAccessTokenPost": this.getRejectAccessTokenPost(),
|
|
191
|
+
"createdAt": this.getCreatedAt(),
|
|
192
|
+
"updatedAt": this.getUpdatedAt(),
|
|
193
|
+
"revision": this.getRevision(),
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
return CategoryModelMaster;
|
|
197
|
+
}());
|
|
198
|
+
exports.default = CategoryModelMaster;
|
|
199
|
+
//# sourceMappingURL=CategoryModelMaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryModelMaster.js","sourceRoot":"","sources":["CategoryModelMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAKH,IAAM,SAAS,GAAW,kEAAkE,CAAC;AAE7F;IAAA;QACY,oBAAe,GAAgB,IAAI,CAAC;QACpC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,gBAAW,GAAgB,IAAI,CAAC;QAChC,0BAAqB,GAAgB,IAAI,CAAC;QAC1C,cAAS,GAAgB,IAAI,CAAC;QAC9B,cAAS,GAAgB,IAAI,CAAC;QAC9B,aAAQ,GAAgB,IAAI,CAAC;IAyLzC,CAAC;IAvLiB,6BAAS,GAAvB,UAAwB,GAAW;QAC/B,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC;aAC3B,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC;aAC1B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAC/B,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,8BAAU,GAAxB,UAAyB,GAAW;QAChC,IAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS;aAC5B,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC;aACzB,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC;aAChC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAC/B,CAAC;QACF,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAA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