gs2-cdk 1.0.142 → 1.0.144
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/distributor/model/UserDataEntry.d.ts +11 -0
- package/distributor/model/UserDataEntry.js +28 -0
- package/distributor/model/UserDataEntry.js.map +1 -0
- package/distributor/model/UserDataEntry.ts +56 -0
- package/distributor/model/options/UserDataEntryOptions.d.ts +2 -0
- package/distributor/model/options/UserDataEntryOptions.js +18 -0
- package/distributor/model/options/UserDataEntryOptions.js.map +1 -0
- package/distributor/model/options/UserDataEntryOptions.ts +19 -0
- package/identifier/model/User.js.map +1 -1
- package/identifier/model/User.ts +1 -0
- package/identifier/model/enums/IdentifierDataStoreKeyScheme.d.ts +5 -0
- package/identifier/model/enums/IdentifierDataStoreKeyScheme.js +23 -0
- package/identifier/model/enums/IdentifierDataStoreKeyScheme.js.map +1 -0
- package/identifier/model/enums/IdentifierDataStoreKeyScheme.ts +23 -0
- package/identifier/model/enums/UserDataStoreKeyScheme.d.ts +5 -0
- package/identifier/model/enums/UserDataStoreKeyScheme.js +23 -0
- package/identifier/model/enums/UserDataStoreKeyScheme.js.map +1 -0
- package/identifier/model/enums/UserDataStoreKeyScheme.ts +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserDataEntryOptions } from "./options/UserDataEntryOptions";
|
|
2
|
+
export default class UserDataEntry {
|
|
3
|
+
private readonly service;
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly kind;
|
|
6
|
+
private readonly payload;
|
|
7
|
+
constructor(service: string, namespaceName: string, kind: string, payload: string, options?: UserDataEntryOptions | null);
|
|
8
|
+
properties(): {
|
|
9
|
+
[name: string]: any;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class UserDataEntry {
|
|
4
|
+
constructor(service, namespaceName, kind, payload, options = null) {
|
|
5
|
+
this.service = service;
|
|
6
|
+
this.namespaceName = namespaceName;
|
|
7
|
+
this.kind = kind;
|
|
8
|
+
this.payload = payload;
|
|
9
|
+
}
|
|
10
|
+
properties() {
|
|
11
|
+
let properties = {};
|
|
12
|
+
if (this.service != null) {
|
|
13
|
+
properties["service"] = this.service;
|
|
14
|
+
}
|
|
15
|
+
if (this.namespaceName != null) {
|
|
16
|
+
properties["namespaceName"] = this.namespaceName;
|
|
17
|
+
}
|
|
18
|
+
if (this.kind != null) {
|
|
19
|
+
properties["kind"] = this.kind;
|
|
20
|
+
}
|
|
21
|
+
if (this.payload != null) {
|
|
22
|
+
properties["payload"] = this.payload;
|
|
23
|
+
}
|
|
24
|
+
return properties;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = UserDataEntry;
|
|
28
|
+
//# sourceMappingURL=UserDataEntry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDataEntry.js","sourceRoot":"","sources":["UserDataEntry.ts"],"names":[],"mappings":";;AAiBA,MAAqB,aAAa;IAM9B,YACI,OAAe,EACf,aAAqB,EACrB,IAAY,EACZ,OAAe,EACf,UAAqC,IAAI;QAEzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtCD,gCAsCC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { UserDataEntryOptions } from "./options/UserDataEntryOptions";
|
|
17
|
+
|
|
18
|
+
export default class UserDataEntry {
|
|
19
|
+
private readonly service: string;
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly kind: string;
|
|
22
|
+
private readonly payload: string;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
service: string,
|
|
26
|
+
namespaceName: string,
|
|
27
|
+
kind: string,
|
|
28
|
+
payload: string,
|
|
29
|
+
options: UserDataEntryOptions|null = null,
|
|
30
|
+
) {
|
|
31
|
+
this.service = service;
|
|
32
|
+
this.namespaceName = namespaceName;
|
|
33
|
+
this.kind = kind;
|
|
34
|
+
this.payload = payload;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public properties(
|
|
38
|
+
): {[name: string]: any} {
|
|
39
|
+
let properties: {[name: string]: any} = {};
|
|
40
|
+
|
|
41
|
+
if (this.service != null) {
|
|
42
|
+
properties["service"] = this.service;
|
|
43
|
+
}
|
|
44
|
+
if (this.namespaceName != null) {
|
|
45
|
+
properties["namespaceName"] = this.namespaceName;
|
|
46
|
+
}
|
|
47
|
+
if (this.kind != null) {
|
|
48
|
+
properties["kind"] = this.kind;
|
|
49
|
+
}
|
|
50
|
+
if (this.payload != null) {
|
|
51
|
+
properties["payload"] = this.payload;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return properties;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=UserDataEntryOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDataEntryOptions.js","sourceRoot":"","sources":["UserDataEntryOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface UserDataEntryOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["User.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AACxC,sEAAsC;AACtC,0FAA0D;AAG1D,qEAAqC;
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["User.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AACxC,sEAAsC;AACtC,0FAA0D;AAG1D,qEAAqC;AAKrC,MAAqB,IAAK,SAAQ,mBAAW;IAKzC,YACI,KAAY,EACZ,IAAY,EACZ,UAA4B,IAAI;;QAEhC,KAAK,CACD,kBAAkB,GAAG,IAAI,CAC5B,CAAC;QATW,gBAAW,GAAgB,IAAI,CAAC;QAW7C,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,KAAK,CAAC,WAAW,CACb,IAAI,CACP,CAAC;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D,uBA4GC"}
|
package/identifier/model/User.ts
CHANGED
|
@@ -21,6 +21,7 @@ import AttachSecurityPolicy from "./AttachSecurityPolicy";
|
|
|
21
21
|
import SecurityPolicy from "./SecurityPolicy";
|
|
22
22
|
|
|
23
23
|
import UserRef from "../ref/UserRef";
|
|
24
|
+
import { UserDataStoreKeyScheme } from "./enums/UserDataStoreKeyScheme";
|
|
24
25
|
|
|
25
26
|
import { UserOptions } from "./options/UserOptions";
|
|
26
27
|
|
|
@@ -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.IdentifierDataStoreKeyScheme = void 0;
|
|
19
|
+
exports.IdentifierDataStoreKeyScheme = {
|
|
20
|
+
V1: "v1",
|
|
21
|
+
V2: "v2",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=IdentifierDataStoreKeyScheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentifierDataStoreKeyScheme.js","sourceRoot":"","sources":["IdentifierDataStoreKeyScheme.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,4BAA4B,GAAG;IACxC,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACF,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 IdentifierDataStoreKeyScheme = {
|
|
20
|
+
V1: "v1",
|
|
21
|
+
V2: "v2",
|
|
22
|
+
} as const;
|
|
23
|
+
export type IdentifierDataStoreKeyScheme = typeof IdentifierDataStoreKeyScheme[keyof typeof IdentifierDataStoreKeyScheme];
|
|
@@ -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.UserDataStoreKeyScheme = void 0;
|
|
19
|
+
exports.UserDataStoreKeyScheme = {
|
|
20
|
+
V1: "v1",
|
|
21
|
+
V2: "v2",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=UserDataStoreKeyScheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserDataStoreKeyScheme.js","sourceRoot":"","sources":["UserDataStoreKeyScheme.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,sBAAsB,GAAG;IAClC,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACF,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 UserDataStoreKeyScheme = {
|
|
20
|
+
V1: "v1",
|
|
21
|
+
V2: "v2",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UserDataStoreKeyScheme = typeof UserDataStoreKeyScheme[keyof typeof UserDataStoreKeyScheme];
|