gs2-cdk 1.0.68 → 1.0.69
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/account/model/PlatformUser.d.ts +10 -0
- package/account/model/PlatformUser.js +24 -0
- package/account/model/PlatformUser.js.map +1 -0
- package/account/model/PlatformUser.ts +50 -0
- package/account/model/index.d.ts +3 -1
- package/account/model/index.js +3 -1
- package/account/model/index.js.map +1 -1
- package/account/model/index.ts +4 -0
- package/account/model/options/PlatformUserOptions.d.ts +2 -0
- package/account/model/options/PlatformUserOptions.js +18 -0
- package/account/model/options/PlatformUserOptions.js.map +1 -0
- package/account/model/options/PlatformUserOptions.ts +19 -0
- package/money2/ref/NamespaceRef.d.ts +1 -2
- package/money2/ref/NamespaceRef.js +3 -1
- package/money2/ref/NamespaceRef.js.map +1 -1
- package/money2/ref/NamespaceRef.ts +3 -1
- package/money2/stampSheet/VerifyReceiptByUserId.d.ts +1 -2
- package/money2/stampSheet/VerifyReceiptByUserId.js +4 -3
- package/money2/stampSheet/VerifyReceiptByUserId.js.map +1 -1
- package/money2/stampSheet/VerifyReceiptByUserId.ts +5 -4
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
2
|
+
export default class PlatformUser {
|
|
3
|
+
private readonly type;
|
|
4
|
+
private readonly userIdentifier;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
constructor(type: number, userIdentifier: string, userId: string, options?: PlatformUserOptions | null);
|
|
7
|
+
properties(): {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PlatformUser {
|
|
4
|
+
constructor(type, userIdentifier, userId, options = null) {
|
|
5
|
+
this.type = type;
|
|
6
|
+
this.userIdentifier = userIdentifier;
|
|
7
|
+
this.userId = userId;
|
|
8
|
+
}
|
|
9
|
+
properties() {
|
|
10
|
+
let properties = {};
|
|
11
|
+
if (this.type != null) {
|
|
12
|
+
properties["type"] = this.type;
|
|
13
|
+
}
|
|
14
|
+
if (this.userIdentifier != null) {
|
|
15
|
+
properties["userIdentifier"] = this.userIdentifier;
|
|
16
|
+
}
|
|
17
|
+
if (this.userId != null) {
|
|
18
|
+
properties["userId"] = this.userId;
|
|
19
|
+
}
|
|
20
|
+
return properties;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = PlatformUser;
|
|
24
|
+
//# sourceMappingURL=PlatformUser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformUser.js","sourceRoot":"","sources":["PlatformUser.ts"],"names":[],"mappings":";;AAiBA,MAAqB,YAAY;IAK7B,YACI,IAAY,EACZ,cAAsB,EACtB,MAAc,EACd,UAAoC,IAAI;QAExC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACnB,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC;SACtD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,+BAgCC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
17
|
+
|
|
18
|
+
export default class PlatformUser {
|
|
19
|
+
private readonly type: number;
|
|
20
|
+
private readonly userIdentifier: string;
|
|
21
|
+
private readonly userId: string;
|
|
22
|
+
|
|
23
|
+
public constructor(
|
|
24
|
+
type: number,
|
|
25
|
+
userIdentifier: string,
|
|
26
|
+
userId: string,
|
|
27
|
+
options: PlatformUserOptions|null = null,
|
|
28
|
+
) {
|
|
29
|
+
this.type = type;
|
|
30
|
+
this.userIdentifier = userIdentifier;
|
|
31
|
+
this.userId = userId;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public properties(
|
|
35
|
+
): {[name: string]: any} {
|
|
36
|
+
let properties: {[name: string]: any} = {};
|
|
37
|
+
|
|
38
|
+
if (this.type != null) {
|
|
39
|
+
properties["type"] = this.type;
|
|
40
|
+
}
|
|
41
|
+
if (this.userIdentifier != null) {
|
|
42
|
+
properties["userIdentifier"] = this.userIdentifier;
|
|
43
|
+
}
|
|
44
|
+
if (this.userId != null) {
|
|
45
|
+
properties["userId"] = this.userId;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return properties;
|
|
49
|
+
}
|
|
50
|
+
}
|
package/account/model/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import Namespace from "./Namespace";
|
|
2
2
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
3
|
+
import PlatformUser from "./PlatformUser";
|
|
4
|
+
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
3
5
|
import BanStatus from "./BanStatus";
|
|
4
6
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
5
|
-
export { Namespace, NamespaceOptions, BanStatus, BanStatusOptions, };
|
|
7
|
+
export { Namespace, NamespaceOptions, PlatformUser, PlatformUserOptions, BanStatus, BanStatusOptions, };
|
package/account/model/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BanStatus = exports.Namespace = void 0;
|
|
3
|
+
exports.BanStatus = exports.PlatformUser = 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,8 @@ 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 PlatformUser_1 = tslib_1.__importDefault(require("./PlatformUser"));
|
|
23
|
+
exports.PlatformUser = PlatformUser_1.default;
|
|
22
24
|
const BanStatus_1 = tslib_1.__importDefault(require("./BanStatus"));
|
|
23
25
|
exports.BanStatus = BanStatus_1.default;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;AAQhC,oBARG,mBAAS,CAQH;AANb,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AANhB,oEAAoC;AAQhC,oBARG,mBAAS,CAQH"}
|
package/account/model/index.ts
CHANGED
|
@@ -15,12 +15,16 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import Namespace from "./Namespace";
|
|
17
17
|
import { NamespaceOptions } from "./options/NamespaceOptions";
|
|
18
|
+
import PlatformUser from "./PlatformUser";
|
|
19
|
+
import { PlatformUserOptions } from "./options/PlatformUserOptions";
|
|
18
20
|
import BanStatus from "./BanStatus";
|
|
19
21
|
import { BanStatusOptions } from "./options/BanStatusOptions";
|
|
20
22
|
|
|
21
23
|
export {
|
|
22
24
|
Namespace,
|
|
23
25
|
NamespaceOptions,
|
|
26
|
+
PlatformUser,
|
|
27
|
+
PlatformUserOptions,
|
|
24
28
|
BanStatus,
|
|
25
29
|
BanStatusOptions,
|
|
26
30
|
}
|
|
@@ -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=PlatformUserOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformUserOptions.js","sourceRoot":"","sources":["PlatformUserOptions.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 PlatformUserOptions {
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -3,13 +3,12 @@ import DepositByUserId from "../stampSheet/DepositByUserId";
|
|
|
3
3
|
import DepositTransaction from "../model/DepositTransaction";
|
|
4
4
|
import WithdrawByUserId from "../stampSheet/WithdrawByUserId";
|
|
5
5
|
import VerifyReceiptByUserId from "../stampSheet/VerifyReceiptByUserId";
|
|
6
|
-
import Receipt from "../model/Receipt";
|
|
7
6
|
export default class NamespaceRef {
|
|
8
7
|
private readonly namespaceName;
|
|
9
8
|
constructor(namespaceName: string);
|
|
10
9
|
storeContentModel(contentName: string): StoreContentModelRef;
|
|
11
10
|
deposit(slot: number, depositTransactions: DepositTransaction[], userId?: string): DepositByUserId;
|
|
12
11
|
withdraw(slot: number, withdrawCount: number, paidOnly?: boolean | null, userId?: string): WithdrawByUserId;
|
|
13
|
-
verifyReceipt(contentName: string, receipt
|
|
12
|
+
verifyReceipt(contentName: string, receipt?: string, userId?: string): VerifyReceiptByUserId;
|
|
14
13
|
grn(): string;
|
|
15
14
|
}
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
14
|
* express or implied. See the License for the specific language governing
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
|
+
*
|
|
17
|
+
* deny overwrite
|
|
16
18
|
*/
|
|
17
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
20
|
const tslib_1 = require("tslib");
|
|
@@ -34,7 +36,7 @@ class NamespaceRef {
|
|
|
34
36
|
withdraw(slot, withdrawCount, paidOnly = null, userId = "#{userId}") {
|
|
35
37
|
return new WithdrawByUserId_1.default(this.namespaceName, slot, withdrawCount, paidOnly, userId);
|
|
36
38
|
}
|
|
37
|
-
verifyReceipt(contentName, receipt, userId = "#{userId}") {
|
|
39
|
+
verifyReceipt(contentName, receipt = "#{receipt}", userId = "#{userId}") {
|
|
38
40
|
return new VerifyReceiptByUserId_1.default(this.namespaceName, contentName, receipt, userId);
|
|
39
41
|
}
|
|
40
42
|
grn() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,0CAA8C;AAE9C,0FAA0D;AAE1D,4FAA4D;AAE5D,8FAA8D;AAC9D,wGAAwE;AAGxE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,iBAAiB,CACpB,WAAmB;QAEnB,OAAO,IAAI,8BAAoB,CAC3B,IAAI,CAAC,aAAa,EAClB,WAAW,CACd,CAAC;IACN,CAAC;IAEM,OAAO,CACV,IAAY,EACZ,mBAAyC,EACzC,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,mBAAmB,EACnB,MAAM,CACT,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,IAAY,EACZ,aAAqB,EACrB,WAAyB,IAAI,EAC7B,SAAiB,WAAW;QAE5B,OAAO,IAAI,0BAAgB,CACvB,IAAI,CAAC,aAAa,EAClB,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,UAAkB,YAAY,EAC9B,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,OAAO,EACP,MAAM,CACT,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,QAAQ;YACR,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AA9ED,+BA8EC"}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* deny overwrite
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
import {GetAttr, Join} from "../../core/func";
|
|
@@ -72,7 +74,7 @@ export default class NamespaceRef {
|
|
|
72
74
|
|
|
73
75
|
public verifyReceipt(
|
|
74
76
|
contentName: string,
|
|
75
|
-
receipt:
|
|
77
|
+
receipt: string = "#{receipt}",
|
|
76
78
|
userId: string = "#{userId}",
|
|
77
79
|
): VerifyReceiptByUserId {
|
|
78
80
|
return new VerifyReceiptByUserId(
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ConsumeAction } from "../../core/model";
|
|
2
|
-
import Receipt from "../model/Receipt";
|
|
3
2
|
export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
4
3
|
private readonly namespaceName;
|
|
5
4
|
private readonly userId;
|
|
6
5
|
private readonly contentName;
|
|
7
6
|
private readonly receipt;
|
|
8
7
|
private readonly timeOffsetToken;
|
|
9
|
-
constructor(namespaceName: string, contentName: string, receipt
|
|
8
|
+
constructor(namespaceName: string, contentName: string, receipt?: string, timeOffsetToken?: string | null, userId?: string);
|
|
10
9
|
request(): {
|
|
11
10
|
[name: string]: any;
|
|
12
11
|
};
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
14
|
* express or implied. See the License for the specific language governing
|
|
15
15
|
* permissions and limitations under the License.
|
|
16
|
+
*
|
|
17
|
+
* deny overwrite
|
|
16
18
|
*/
|
|
17
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
20
|
const model_1 = require("../../core/model");
|
|
19
21
|
class VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
20
|
-
constructor(namespaceName, contentName, receipt, timeOffsetToken = null, userId = "#{userId}") {
|
|
22
|
+
constructor(namespaceName, contentName, receipt = "#{receipt}", timeOffsetToken = null, userId = "#{userId}") {
|
|
21
23
|
super();
|
|
22
24
|
this.timeOffsetToken = null;
|
|
23
25
|
this.namespaceName = namespaceName;
|
|
@@ -27,7 +29,6 @@ class VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
|
27
29
|
this.userId = userId;
|
|
28
30
|
}
|
|
29
31
|
request() {
|
|
30
|
-
var _a;
|
|
31
32
|
let properties = {};
|
|
32
33
|
if (this.namespaceName != null) {
|
|
33
34
|
properties["namespaceName"] = this.namespaceName;
|
|
@@ -39,7 +40,7 @@ class VerifyReceiptByUserId extends model_1.ConsumeAction {
|
|
|
39
40
|
properties["contentName"] = this.contentName;
|
|
40
41
|
}
|
|
41
42
|
if (this.receipt != null) {
|
|
42
|
-
properties["receipt"] =
|
|
43
|
+
properties["receipt"] = this.receipt;
|
|
43
44
|
}
|
|
44
45
|
if (this.timeOffsetToken != null) {
|
|
45
46
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyReceiptByUserId.js","sourceRoot":"","sources":["VerifyReceiptByUserId.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"VerifyReceiptByUserId.js","sourceRoot":"","sources":["VerifyReceiptByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;AAEH,4CAA8D;AAG9D,MAAqB,qBAAsB,SAAQ,qBAAa;IAQ5D,YACI,aAAqB,EACrB,WAAmB,EACnB,UAAkB,YAAY,EAC9B,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAVK,oBAAe,GAAgB,IAAI,CAAC;QAYjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,CAAC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEM,OAAO;QAEV,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACtB,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;SACxC;QACD,IAAI,IAAI,CAAC,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,MAAM;QACT,OAAO,iCAAiC,CAAC;IAC7C,CAAC;CACJ;AAlDD,wCAkDC"}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* deny overwrite
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
import {AcquireAction, ConsumeAction} from "../../core/model";
|
|
@@ -21,14 +23,14 @@ export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
|
21
23
|
private readonly namespaceName: string;
|
|
22
24
|
private readonly userId: string;
|
|
23
25
|
private readonly contentName: string;
|
|
24
|
-
private readonly receipt:
|
|
26
|
+
private readonly receipt: string;
|
|
25
27
|
private readonly timeOffsetToken: string|null = null;
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
public constructor(
|
|
29
31
|
namespaceName: string,
|
|
30
32
|
contentName: string,
|
|
31
|
-
receipt:
|
|
33
|
+
receipt: string = "#{receipt}",
|
|
32
34
|
timeOffsetToken: string|null = null,
|
|
33
35
|
userId: string = "#{userId}",
|
|
34
36
|
) {
|
|
@@ -55,8 +57,7 @@ export default class VerifyReceiptByUserId extends ConsumeAction {
|
|
|
55
57
|
properties["contentName"] = this.contentName;
|
|
56
58
|
}
|
|
57
59
|
if (this.receipt != null) {
|
|
58
|
-
properties["receipt"] = this.receipt
|
|
59
|
-
);
|
|
60
|
+
properties["receipt"] = this.receipt;
|
|
60
61
|
}
|
|
61
62
|
if (this.timeOffsetToken != null) {
|
|
62
63
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|