gs2-cdk 1.0.88 → 1.0.90
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/OpenIdConnectSetting.d.ts +1 -0
- package/account/model/OpenIdConnectSetting.js +6 -1
- package/account/model/OpenIdConnectSetting.js.map +1 -1
- package/account/model/OpenIdConnectSetting.ts +5 -0
- package/account/model/options/OpenIdConnectSettingOptions.d.ts +1 -0
- package/account/model/options/OpenIdConnectSettingOptions.ts +1 -0
- package/exchange/ref/NamespaceRef.d.ts +2 -0
- package/exchange/ref/NamespaceRef.js +4 -0
- package/exchange/ref/NamespaceRef.js.map +1 -1
- package/exchange/ref/NamespaceRef.ts +14 -0
- package/exchange/stampSheet/AcquireForceByUserId.d.ts +14 -0
- package/exchange/stampSheet/AcquireForceByUserId.js +52 -0
- package/exchange/stampSheet/AcquireForceByUserId.js.map +1 -0
- package/exchange/stampSheet/AcquireForceByUserId.ts +68 -0
- package/exchange/stampSheet/index.d.ts +2 -1
- package/exchange/stampSheet/index.js +3 -1
- package/exchange/stampSheet/index.js.map +1 -1
- package/exchange/stampSheet/index.ts +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export default class OpenIdConnectSetting {
|
|
|
6
6
|
private readonly appleTeamId;
|
|
7
7
|
private readonly appleKeyId;
|
|
8
8
|
private readonly applePrivateKeyPem;
|
|
9
|
+
private readonly doneEndpointUrl;
|
|
9
10
|
constructor(configurationPath: string, clientId: string, options?: OpenIdConnectSettingOptions | null);
|
|
10
11
|
properties(): {
|
|
11
12
|
[name: string]: any;
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class OpenIdConnectSetting {
|
|
4
4
|
constructor(configurationPath, clientId, options = null) {
|
|
5
|
-
var _a, _b, _c, _d;
|
|
5
|
+
var _a, _b, _c, _d, _e;
|
|
6
6
|
this.clientSecret = null;
|
|
7
7
|
this.appleTeamId = null;
|
|
8
8
|
this.appleKeyId = null;
|
|
9
9
|
this.applePrivateKeyPem = null;
|
|
10
|
+
this.doneEndpointUrl = null;
|
|
10
11
|
this.configurationPath = configurationPath;
|
|
11
12
|
this.clientId = clientId;
|
|
12
13
|
this.clientSecret = (_a = options === null || options === void 0 ? void 0 : options.clientSecret) !== null && _a !== void 0 ? _a : null;
|
|
13
14
|
this.appleTeamId = (_b = options === null || options === void 0 ? void 0 : options.appleTeamId) !== null && _b !== void 0 ? _b : null;
|
|
14
15
|
this.appleKeyId = (_c = options === null || options === void 0 ? void 0 : options.appleKeyId) !== null && _c !== void 0 ? _c : null;
|
|
15
16
|
this.applePrivateKeyPem = (_d = options === null || options === void 0 ? void 0 : options.applePrivateKeyPem) !== null && _d !== void 0 ? _d : null;
|
|
17
|
+
this.doneEndpointUrl = (_e = options === null || options === void 0 ? void 0 : options.doneEndpointUrl) !== null && _e !== void 0 ? _e : null;
|
|
16
18
|
}
|
|
17
19
|
properties() {
|
|
18
20
|
let properties = {};
|
|
@@ -34,6 +36,9 @@ class OpenIdConnectSetting {
|
|
|
34
36
|
if (this.applePrivateKeyPem != null) {
|
|
35
37
|
properties["applePrivateKeyPem"] = this.applePrivateKeyPem;
|
|
36
38
|
}
|
|
39
|
+
if (this.doneEndpointUrl != null) {
|
|
40
|
+
properties["doneEndpointUrl"] = this.doneEndpointUrl;
|
|
41
|
+
}
|
|
37
42
|
return properties;
|
|
38
43
|
}
|
|
39
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenIdConnectSetting.js","sourceRoot":"","sources":["OpenIdConnectSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"OpenIdConnectSetting.js","sourceRoot":"","sources":["OpenIdConnectSetting.ts"],"names":[],"mappings":";;AAiBA,MAAqB,oBAAoB;IASrC,YACI,iBAAyB,EACzB,QAAgB,EAChB,UAA4C,IAAI;;QATnC,iBAAY,GAAg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AC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;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;CACJ;AAnDD,uCAmDC"}
|
|
@@ -22,6 +22,7 @@ export default class OpenIdConnectSetting {
|
|
|
22
22
|
private readonly appleTeamId: string|null = null;
|
|
23
23
|
private readonly appleKeyId: string|null = null;
|
|
24
24
|
private readonly applePrivateKeyPem: string|null = null;
|
|
25
|
+
private readonly doneEndpointUrl: string|null = null;
|
|
25
26
|
|
|
26
27
|
public constructor(
|
|
27
28
|
configurationPath: string,
|
|
@@ -34,6 +35,7 @@ export default class OpenIdConnectSetting {
|
|
|
34
35
|
this.appleTeamId = options?.appleTeamId ?? null;
|
|
35
36
|
this.appleKeyId = options?.appleKeyId ?? null;
|
|
36
37
|
this.applePrivateKeyPem = options?.applePrivateKeyPem ?? null;
|
|
38
|
+
this.doneEndpointUrl = options?.doneEndpointUrl ?? null;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
public properties(
|
|
@@ -58,6 +60,9 @@ export default class OpenIdConnectSetting {
|
|
|
58
60
|
if (this.applePrivateKeyPem != null) {
|
|
59
61
|
properties["applePrivateKeyPem"] = this.applePrivateKeyPem;
|
|
60
62
|
}
|
|
63
|
+
if (this.doneEndpointUrl != null) {
|
|
64
|
+
properties["doneEndpointUrl"] = this.doneEndpointUrl;
|
|
65
|
+
}
|
|
61
66
|
|
|
62
67
|
return properties;
|
|
63
68
|
}
|
|
@@ -4,6 +4,7 @@ import ExchangeByUserId from "../stampSheet/ExchangeByUserId";
|
|
|
4
4
|
import { Config } from "../../core/model";
|
|
5
5
|
import IncrementalExchangeByUserId from "../stampSheet/IncrementalExchangeByUserId";
|
|
6
6
|
import CreateAwaitByUserId from "../stampSheet/CreateAwaitByUserId";
|
|
7
|
+
import AcquireForceByUserId from "../stampSheet/AcquireForceByUserId";
|
|
7
8
|
import SkipByUserId from "../stampSheet/SkipByUserId";
|
|
8
9
|
import { AwaitSkipType } from "../stampSheet/enum/AwaitSkipType";
|
|
9
10
|
import DeleteAwaitByUserId from "../stampSheet/DeleteAwaitByUserId";
|
|
@@ -15,6 +16,7 @@ export default class NamespaceRef {
|
|
|
15
16
|
exchange(rateName: string, count: number, config?: Config[] | null, userId?: string): ExchangeByUserId;
|
|
16
17
|
incrementalExchange(rateName: string, count: number, config?: Config[] | null, userId?: string): IncrementalExchangeByUserId;
|
|
17
18
|
createAwait(rateName: string, count?: number | null, config?: Config[] | null, userId?: string): CreateAwaitByUserId;
|
|
19
|
+
acquireForce(awaitName?: string | null, config?: Config[] | null, userId?: string): AcquireForceByUserId;
|
|
18
20
|
skip(awaitName?: string | null, skipType?: AwaitSkipType | null, minutes?: number | null, rate?: number | null, userId?: string): SkipByUserId;
|
|
19
21
|
deleteAwait(awaitName?: string | null, userId?: string): DeleteAwaitByUserId;
|
|
20
22
|
grn(): string;
|
|
@@ -22,6 +22,7 @@ const IncrementalRateModelRef_1 = tslib_1.__importDefault(require("./Incremental
|
|
|
22
22
|
const ExchangeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ExchangeByUserId"));
|
|
23
23
|
const IncrementalExchangeByUserId_1 = tslib_1.__importDefault(require("../stampSheet/IncrementalExchangeByUserId"));
|
|
24
24
|
const CreateAwaitByUserId_1 = tslib_1.__importDefault(require("../stampSheet/CreateAwaitByUserId"));
|
|
25
|
+
const AcquireForceByUserId_1 = tslib_1.__importDefault(require("../stampSheet/AcquireForceByUserId"));
|
|
25
26
|
const SkipByUserId_1 = tslib_1.__importDefault(require("../stampSheet/SkipByUserId"));
|
|
26
27
|
const DeleteAwaitByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteAwaitByUserId"));
|
|
27
28
|
class NamespaceRef {
|
|
@@ -43,6 +44,9 @@ class NamespaceRef {
|
|
|
43
44
|
createAwait(rateName, count = null, config = null, userId = "#{userId}") {
|
|
44
45
|
return new CreateAwaitByUserId_1.default(this.namespaceName, rateName, count, config, userId);
|
|
45
46
|
}
|
|
47
|
+
acquireForce(awaitName = null, config = null, userId = "#{userId}") {
|
|
48
|
+
return new AcquireForceByUserId_1.default(this.namespaceName, awaitName, config, userId);
|
|
49
|
+
}
|
|
46
50
|
skip(awaitName = null, skipType = null, minutes = null, rate = null, userId = "#{userId}") {
|
|
47
51
|
return new SkipByUserId_1.default(this.namespaceName, awaitName, skipType, minutes, rate, userId);
|
|
48
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,0EAA0C;AAC1C,gGAAgE;AAChE,8FAA8D;AAE9D,oHAAoF;AACpF,oGAAoE;AACpE,sFAAsD;AAEtD,oGAAoE;AAEpE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,SAAS,CACZ,QAAgB;QAEhB,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,oBAAoB,CACvB,QAAgB;QAEhB,OAAO,IAAI,iCAAuB,CAC9B,IAAI,CAAC,aAAa,EAClB,QAAQ,CACX,CAAC;IACN,CAAC;IAEM,QAAQ,CACX,QAAgB,EAChB,KAAa,EACb,SAAwB,IAAI,EAC5B,SAAiB,W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,MAAM,EACN,MAAM,CACT,CAAC;IACN,CAAC;IAEM,IAAI,CACP,YAAyB,IAAI,EAC7B,WAA+B,IAAI,EACnC,UAAuB,IAAI,EAC3B,OAAoB,IAAI,EACxB,SAAiB,WAAW;QAE5B,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,YAAyB,IAAI,EAC7B,SAAiB,WAAW;QAE5B,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,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,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AApID,+BAoIC"}
|
|
@@ -21,6 +21,7 @@ import ExchangeByUserId from "../stampSheet/ExchangeByUserId";
|
|
|
21
21
|
import { Config } from "../../core/model";
|
|
22
22
|
import IncrementalExchangeByUserId from "../stampSheet/IncrementalExchangeByUserId";
|
|
23
23
|
import CreateAwaitByUserId from "../stampSheet/CreateAwaitByUserId";
|
|
24
|
+
import AcquireForceByUserId from "../stampSheet/AcquireForceByUserId";
|
|
24
25
|
import SkipByUserId from "../stampSheet/SkipByUserId";
|
|
25
26
|
import { AwaitSkipType } from "../stampSheet/enum/AwaitSkipType";
|
|
26
27
|
import DeleteAwaitByUserId from "../stampSheet/DeleteAwaitByUserId";
|
|
@@ -97,6 +98,19 @@ export default class NamespaceRef {
|
|
|
97
98
|
);
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
public acquireForce(
|
|
102
|
+
awaitName: string|null = null,
|
|
103
|
+
config: Config[]|null = null,
|
|
104
|
+
userId: string = "#{userId}",
|
|
105
|
+
): AcquireForceByUserId {
|
|
106
|
+
return new AcquireForceByUserId(
|
|
107
|
+
this.namespaceName,
|
|
108
|
+
awaitName,
|
|
109
|
+
config,
|
|
110
|
+
userId,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
100
114
|
public skip(
|
|
101
115
|
awaitName: string|null = null,
|
|
102
116
|
skipType: AwaitSkipType|null = null,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
import { Config } from "../../core/model";
|
|
3
|
+
export default class AcquireForceByUserId extends AcquireAction {
|
|
4
|
+
private readonly namespaceName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly awaitName;
|
|
7
|
+
private readonly config;
|
|
8
|
+
private readonly timeOffsetToken;
|
|
9
|
+
constructor(namespaceName: string, awaitName?: string | null, config?: Config[] | null, timeOffsetToken?: string | null, userId?: string);
|
|
10
|
+
request(): {
|
|
11
|
+
[name: string]: any;
|
|
12
|
+
};
|
|
13
|
+
action(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
const model_1 = require("../../core/model");
|
|
19
|
+
class AcquireForceByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, awaitName = null, config = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.awaitName = null;
|
|
23
|
+
this.config = null;
|
|
24
|
+
this.timeOffsetToken = null;
|
|
25
|
+
this.namespaceName = namespaceName;
|
|
26
|
+
this.awaitName = awaitName !== null && awaitName !== void 0 ? awaitName : null;
|
|
27
|
+
this.config = config !== null && config !== void 0 ? config : null;
|
|
28
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
29
|
+
this.userId = userId;
|
|
30
|
+
}
|
|
31
|
+
request() {
|
|
32
|
+
let properties = {};
|
|
33
|
+
if (this.namespaceName != null) {
|
|
34
|
+
properties["namespaceName"] = this.namespaceName;
|
|
35
|
+
}
|
|
36
|
+
if (this.userId != null) {
|
|
37
|
+
properties["userId"] = this.userId;
|
|
38
|
+
}
|
|
39
|
+
if (this.config != null) {
|
|
40
|
+
properties["config"] = this.config.map(v => v.properties());
|
|
41
|
+
}
|
|
42
|
+
if (this.timeOffsetToken != null) {
|
|
43
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
44
|
+
}
|
|
45
|
+
return properties;
|
|
46
|
+
}
|
|
47
|
+
action() {
|
|
48
|
+
return "Gs2Exchange:AcquireForceByUserId";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.default = AcquireForceByUserId;
|
|
52
|
+
//# sourceMappingURL=AcquireForceByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcquireForceByUserId.js","sourceRoot":"","sources":["AcquireForceByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,oBAAqB,SAAQ,qBAAa;IAQ3D,YACI,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C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 {AcquireAction, ConsumeAction, VerifyAction} from "../../core/model";
|
|
18
|
+
import { Config } from "../../core/model";
|
|
19
|
+
|
|
20
|
+
export default class AcquireForceByUserId extends AcquireAction {
|
|
21
|
+
private readonly namespaceName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly awaitName: string|null = null;
|
|
24
|
+
private readonly config: Config[]|null = null;
|
|
25
|
+
private readonly timeOffsetToken: string|null = null;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public constructor(
|
|
29
|
+
namespaceName: string,
|
|
30
|
+
awaitName: string|null = null,
|
|
31
|
+
config: Config[]|null = null,
|
|
32
|
+
timeOffsetToken: string|null = null,
|
|
33
|
+
userId: string = "#{userId}",
|
|
34
|
+
) {
|
|
35
|
+
super();
|
|
36
|
+
|
|
37
|
+
this.namespaceName = namespaceName;
|
|
38
|
+
this.awaitName = awaitName ?? null;
|
|
39
|
+
this.config = config ?? null;
|
|
40
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
41
|
+
this.userId = userId;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public request(
|
|
45
|
+
): {[name: string]: any} {
|
|
46
|
+
let properties: {[name: string]: any} = {};
|
|
47
|
+
|
|
48
|
+
if (this.namespaceName != null) {
|
|
49
|
+
properties["namespaceName"] = this.namespaceName;
|
|
50
|
+
}
|
|
51
|
+
if (this.userId != null) {
|
|
52
|
+
properties["userId"] = this.userId;
|
|
53
|
+
}
|
|
54
|
+
if (this.config != null) {
|
|
55
|
+
properties["config"] = this.config.map(v => v.properties(
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
if (this.timeOffsetToken != null) {
|
|
59
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return properties;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public action(): string {
|
|
66
|
+
return "Gs2Exchange:AcquireForceByUserId";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ExchangeByUserId from "./ExchangeByUserId";
|
|
2
2
|
import IncrementalExchangeByUserId from "./IncrementalExchangeByUserId";
|
|
3
3
|
import CreateAwaitByUserId from "./CreateAwaitByUserId";
|
|
4
|
+
import AcquireForceByUserId from "./AcquireForceByUserId";
|
|
4
5
|
import SkipByUserId from "./SkipByUserId";
|
|
5
6
|
import DeleteAwaitByUserId from "./DeleteAwaitByUserId";
|
|
6
|
-
export { ExchangeByUserId, IncrementalExchangeByUserId, CreateAwaitByUserId, SkipByUserId, DeleteAwaitByUserId, };
|
|
7
|
+
export { ExchangeByUserId, IncrementalExchangeByUserId, CreateAwaitByUserId, AcquireForceByUserId, SkipByUserId, DeleteAwaitByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAwaitByUserId = exports.SkipByUserId = exports.CreateAwaitByUserId = exports.IncrementalExchangeByUserId = exports.ExchangeByUserId = void 0;
|
|
3
|
+
exports.DeleteAwaitByUserId = exports.SkipByUserId = exports.AcquireForceByUserId = exports.CreateAwaitByUserId = exports.IncrementalExchangeByUserId = exports.ExchangeByUserId = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -23,6 +23,8 @@ const IncrementalExchangeByUserId_1 = tslib_1.__importDefault(require("./Increme
|
|
|
23
23
|
exports.IncrementalExchangeByUserId = IncrementalExchangeByUserId_1.default;
|
|
24
24
|
const CreateAwaitByUserId_1 = tslib_1.__importDefault(require("./CreateAwaitByUserId"));
|
|
25
25
|
exports.CreateAwaitByUserId = CreateAwaitByUserId_1.default;
|
|
26
|
+
const AcquireForceByUserId_1 = tslib_1.__importDefault(require("./AcquireForceByUserId"));
|
|
27
|
+
exports.AcquireForceByUserId = AcquireForceByUserId_1.default;
|
|
26
28
|
const SkipByUserId_1 = tslib_1.__importDefault(require("./SkipByUserId"));
|
|
27
29
|
exports.SkipByUserId = SkipByUserId_1.default;
|
|
28
30
|
const DeleteAwaitByUserId_1 = tslib_1.__importDefault(require("./DeleteAwaitByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kFAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,kFAAkD;AAQ9C,2BARG,0BAAgB,CAQH;AAPpB,wGAAwE;AAQpE,sCARG,qCAA2B,CAQH;AAP/B,wFAAwD;AAQpD,8BARG,6BAAmB,CAQH;AAPvB,0FAA0D;AAQtD,+BARG,8BAAoB,CAQH;AAPxB,0EAA0C;AAQtC,uBARG,sBAAY,CAQH;AAPhB,wFAAwD;AAQpD,8BARG,6BAAmB,CAQH"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import ExchangeByUserId from "./ExchangeByUserId";
|
|
17
17
|
import IncrementalExchangeByUserId from "./IncrementalExchangeByUserId";
|
|
18
18
|
import CreateAwaitByUserId from "./CreateAwaitByUserId";
|
|
19
|
+
import AcquireForceByUserId from "./AcquireForceByUserId";
|
|
19
20
|
import SkipByUserId from "./SkipByUserId";
|
|
20
21
|
import DeleteAwaitByUserId from "./DeleteAwaitByUserId";
|
|
21
22
|
|
|
@@ -23,6 +24,7 @@ export {
|
|
|
23
24
|
ExchangeByUserId,
|
|
24
25
|
IncrementalExchangeByUserId,
|
|
25
26
|
CreateAwaitByUserId,
|
|
27
|
+
AcquireForceByUserId,
|
|
26
28
|
SkipByUserId,
|
|
27
29
|
DeleteAwaitByUserId,
|
|
28
30
|
}
|