gs2-cdk 1.0.25 → 1.0.27
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/StampSheetResult.d.ts +1 -0
- package/distributor/model/StampSheetResult.js +3 -1
- package/distributor/model/StampSheetResult.js.map +1 -1
- package/distributor/model/StampSheetResult.ts +2 -0
- package/distributor/model/options/StampSheetResultOptions.d.ts +1 -0
- package/distributor/model/options/StampSheetResultOptions.ts +1 -0
- package/identifier/model/options/AttachSecurityPolicyOptions.d.ts +1 -0
- package/identifier/model/options/AttachSecurityPolicyOptions.ts +1 -0
- package/inventory/model/BigInventoryModel.d.ts +11 -0
- package/inventory/model/BigInventoryModel.js +26 -0
- package/inventory/model/BigInventoryModel.js.map +1 -0
- package/inventory/model/BigInventoryModel.ts +51 -0
- package/inventory/model/BigItemModel.d.ts +9 -0
- package/inventory/model/BigItemModel.js +22 -0
- package/inventory/model/BigItemModel.js.map +1 -0
- package/inventory/model/BigItemModel.ts +43 -0
- package/inventory/model/CurrentMasterData.d.ts +3 -1
- package/inventory/model/CurrentMasterData.js +5 -1
- package/inventory/model/CurrentMasterData.js.map +1 -1
- package/inventory/model/CurrentMasterData.ts +8 -0
- package/inventory/model/Namespace.d.ts +2 -1
- package/inventory/model/Namespace.js +2 -2
- package/inventory/model/Namespace.js.map +1 -1
- package/inventory/model/Namespace.ts +3 -0
- package/inventory/model/index.d.ts +5 -1
- package/inventory/model/index.js +5 -1
- package/inventory/model/index.js.map +1 -1
- package/inventory/model/index.ts +8 -0
- package/inventory/model/options/BigInventoryModelOptions.d.ts +3 -0
- package/inventory/model/options/BigInventoryModelOptions.js +3 -0
- package/inventory/model/options/BigInventoryModelOptions.js.map +1 -0
- package/inventory/model/options/BigInventoryModelOptions.ts +21 -0
- package/inventory/model/options/BigItemModelOptions.d.ts +3 -0
- package/inventory/model/options/BigItemModelOptions.js +18 -0
- package/inventory/model/options/BigItemModelOptions.js.map +1 -0
- package/inventory/model/options/BigItemModelOptions.ts +20 -0
- package/inventory/ref/BigInventoryModelRef.d.ts +12 -0
- package/inventory/ref/BigInventoryModelRef.js +52 -0
- package/inventory/ref/BigInventoryModelRef.js.map +1 -0
- package/inventory/ref/BigInventoryModelRef.ts +94 -0
- package/inventory/ref/BigItemModelRef.d.ts +11 -0
- package/inventory/ref/BigItemModelRef.js +51 -0
- package/inventory/ref/BigItemModelRef.js.map +1 -0
- package/inventory/ref/BigItemModelRef.ts +86 -0
- package/inventory/ref/index.d.ts +3 -1
- package/inventory/ref/index.js +5 -1
- package/inventory/ref/index.js.map +1 -1
- package/inventory/ref/index.ts +4 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.d.ts +4 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.js +31 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.js.map +1 -0
- package/inventory/stampSheet/AcquireBigItemByUserId.ts +41 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.d.ts +4 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.js +31 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.js.map +1 -0
- package/inventory/stampSheet/ConsumeBigItemByUserId.ts +41 -0
- package/inventory/stampSheet/index.d.ts +3 -1
- package/inventory/stampSheet/index.js +5 -1
- package/inventory/stampSheet/index.js.map +1 -1
- package/inventory/stampSheet/index.ts +4 -0
- package/key/model/GitHubApiKey.d.ts +1 -0
- package/key/model/GitHubApiKey.js +3 -1
- package/key/model/GitHubApiKey.js.map +1 -1
- package/key/model/GitHubApiKey.ts +2 -0
- package/key/model/options/GitHubApiKeyOptions.d.ts +1 -0
- package/key/model/options/GitHubApiKeyOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsBigqueryOptions.d.ts +1 -0
- package/log/model/options/NamespaceTypeIsBigqueryOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsFirehoseOptions.d.ts +1 -0
- package/log/model/options/NamespaceTypeIsFirehoseOptions.ts +1 -0
- package/log/model/options/NamespaceTypeIsGs2Options.d.ts +1 -0
- package/log/model/options/NamespaceTypeIsGs2Options.ts +1 -0
- package/lottery/model/PrizeLimit.d.ts +1 -0
- package/lottery/model/PrizeLimit.js +3 -0
- package/lottery/model/PrizeLimit.js.map +1 -1
- package/lottery/model/PrizeLimit.ts +2 -0
- package/lottery/model/options/PrizeLimitOptions.d.ts +1 -0
- package/lottery/model/options/PrizeLimitOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2RealtimeOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsGs2ScriptOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCompleteMatchmakingTriggerTypeIsNoneOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2RealtimeOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsGs2ScriptOptions.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.d.ts +1 -0
- package/matchmaking/model/options/NamespaceCreateGatheringTriggerTypeIsNoneOptions.ts +1 -0
- package/news/model/Output.d.ts +1 -0
- package/news/model/Output.js +3 -0
- package/news/model/Output.js.map +1 -1
- package/news/model/Output.ts +2 -0
- package/news/model/Progress.d.ts +1 -0
- package/news/model/Progress.js +3 -0
- package/news/model/Progress.js.map +1 -1
- package/news/model/Progress.ts +2 -0
- package/news/model/options/OutputOptions.d.ts +1 -0
- package/news/model/options/OutputOptions.ts +1 -0
- package/news/model/options/ProgressOptions.d.ts +1 -0
- package/news/model/options/ProgressOptions.ts +1 -0
- package/package.json +1 -1
- package/schedule/ref/NamespaceRef.d.ts +2 -0
- package/schedule/ref/NamespaceRef.js +5 -0
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +16 -0
- package/schedule/stampSheet/TriggerByUserId.d.ts +4 -0
- package/schedule/stampSheet/TriggerByUserId.js +31 -0
- package/schedule/stampSheet/TriggerByUserId.js.map +1 -0
- package/schedule/stampSheet/TriggerByUserId.ts +41 -0
- package/schedule/stampSheet/index.d.ts +2 -1
- package/schedule/stampSheet/index.js +5 -1
- package/schedule/stampSheet/index.js.map +1 -1
- package/schedule/stampSheet/index.ts +2 -0
- package/serialKey/model/IssueJob.d.ts +1 -0
- package/serialKey/model/IssueJob.js +3 -1
- package/serialKey/model/IssueJob.js.map +1 -1
- package/serialKey/model/IssueJob.ts +2 -0
- package/serialKey/model/options/IssueJobOptions.d.ts +1 -0
- package/serialKey/model/options/IssueJobOptions.ts +1 -0
|
@@ -2,6 +2,7 @@ import { PrizeLimitOptions } from "./options/PrizeLimitOptions";
|
|
|
2
2
|
export default class PrizeLimit {
|
|
3
3
|
private readonly prizeId;
|
|
4
4
|
private readonly drawnCount;
|
|
5
|
+
private readonly revision;
|
|
5
6
|
constructor(prizeId: string, drawnCount: number, options?: PrizeLimitOptions | null);
|
|
6
7
|
properties(): {
|
|
7
8
|
[name: string]: any;
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class PrizeLimit {
|
|
4
4
|
constructor(prizeId, drawnCount, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.revision = null;
|
|
5
7
|
this.prizeId = prizeId;
|
|
6
8
|
this.drawnCount = drawnCount;
|
|
9
|
+
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
7
10
|
}
|
|
8
11
|
properties() {
|
|
9
12
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrizeLimit.js","sourceRoot":"","sources":["PrizeLimit.ts"],"names":[],"mappings":";;AAiBA,MAAqB,UAAU;
|
|
1
|
+
{"version":3,"file":"PrizeLimit.js","sourceRoot":"","sources":["PrizeLimit.ts"],"names":[],"mappings":";;AAiBA,MAAqB,UAAU;IAK3B,YACI,OAAe,EACf,UAAkB,EAClB,UAAkC,IAAI;;QALzB,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA5BD,6BA4BC"}
|
|
@@ -18,6 +18,7 @@ import { PrizeLimitOptions } from "./options/PrizeLimitOptions";
|
|
|
18
18
|
export default class PrizeLimit {
|
|
19
19
|
private readonly prizeId: string;
|
|
20
20
|
private readonly drawnCount: number;
|
|
21
|
+
private readonly revision: number|null = null;
|
|
21
22
|
|
|
22
23
|
public constructor(
|
|
23
24
|
prizeId: string,
|
|
@@ -26,6 +27,7 @@ export default class PrizeLimit {
|
|
|
26
27
|
) {
|
|
27
28
|
this.prizeId = prizeId;
|
|
28
29
|
this.drawnCount = drawnCount;
|
|
30
|
+
this.revision = options?.revision ?? null;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
public properties(
|
package/news/model/Output.d.ts
CHANGED
package/news/model/Output.js
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class Output {
|
|
4
4
|
constructor(text, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.revision = null;
|
|
5
7
|
this.text = text;
|
|
8
|
+
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
6
9
|
}
|
|
7
10
|
properties() {
|
|
8
11
|
let properties = {};
|
package/news/model/Output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Output.js","sourceRoot":"","sources":["Output.ts"],"names":[],"mappings":";;AAiBA,MAAqB,MAAM;
|
|
1
|
+
{"version":3,"file":"Output.js","sourceRoot":"","sources":["Output.ts"],"names":[],"mappings":";;AAiBA,MAAqB,MAAM;IAIvB,YACI,IAAY,EACZ,UAA8B,IAAI;;QAJrB,aAAQ,GAAgB,IAAI,CAAC;QAM1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAtBD,yBAsBC"}
|
package/news/model/Output.ts
CHANGED
|
@@ -17,12 +17,14 @@ import { OutputOptions } from "./options/OutputOptions";
|
|
|
17
17
|
|
|
18
18
|
export default class Output {
|
|
19
19
|
private readonly text: string;
|
|
20
|
+
private readonly revision: number|null = null;
|
|
20
21
|
|
|
21
22
|
public constructor(
|
|
22
23
|
text: string,
|
|
23
24
|
options: OutputOptions|null = null,
|
|
24
25
|
) {
|
|
25
26
|
this.text = text;
|
|
27
|
+
this.revision = options?.revision ?? null;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
public properties(
|
package/news/model/Progress.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export default class Progress {
|
|
|
3
3
|
private readonly uploadToken;
|
|
4
4
|
private readonly generated;
|
|
5
5
|
private readonly patternCount;
|
|
6
|
+
private readonly revision;
|
|
6
7
|
constructor(uploadToken: string, generated: number, patternCount: number, options?: ProgressOptions | null);
|
|
7
8
|
properties(): {
|
|
8
9
|
[name: string]: any;
|
package/news/model/Progress.js
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class Progress {
|
|
4
4
|
constructor(uploadToken, generated, patternCount, options = null) {
|
|
5
|
+
var _a;
|
|
6
|
+
this.revision = null;
|
|
5
7
|
this.uploadToken = uploadToken;
|
|
6
8
|
this.generated = generated;
|
|
7
9
|
this.patternCount = patternCount;
|
|
10
|
+
this.revision = (_a = options === null || options === void 0 ? void 0 : options.revision) !== null && _a !== void 0 ? _a : null;
|
|
8
11
|
}
|
|
9
12
|
properties() {
|
|
10
13
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["Progress.ts"],"names":[],"mappings":";;AAiBA,MAAqB,QAAQ;
|
|
1
|
+
{"version":3,"file":"Progress.js","sourceRoot":"","sources":["Progress.ts"],"names":[],"mappings":";;AAiBA,MAAqB,QAAQ;IAMzB,YACI,WAAmB,EACnB,SAAiB,EACjB,YAAoB,EACpB,UAAgC,IAAI;;QANvB,aAAQ,GAAgB,IAAI,CAAC;QAQ1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAEM,UAAU;QAEb,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,EAAE;YACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC;SAClD;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAlCD,2BAkCC"}
|
package/news/model/Progress.ts
CHANGED
|
@@ -19,6 +19,7 @@ export default class Progress {
|
|
|
19
19
|
private readonly uploadToken: string;
|
|
20
20
|
private readonly generated: number;
|
|
21
21
|
private readonly patternCount: number;
|
|
22
|
+
private readonly revision: number|null = null;
|
|
22
23
|
|
|
23
24
|
public constructor(
|
|
24
25
|
uploadToken: string,
|
|
@@ -29,6 +30,7 @@ export default class Progress {
|
|
|
29
30
|
this.uploadToken = uploadToken;
|
|
30
31
|
this.generated = generated;
|
|
31
32
|
this.patternCount = patternCount;
|
|
33
|
+
this.revision = options?.revision ?? null;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
public properties(
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
1
2
|
export default class NamespaceRef {
|
|
2
3
|
private readonly namespaceName;
|
|
3
4
|
constructor(namespaceName: string);
|
|
5
|
+
trigger(triggerName: string, triggerStrategy: string, ttl: number, userId?: string | null): TriggerByUserId;
|
|
4
6
|
grn(): string;
|
|
5
7
|
}
|
|
@@ -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 TriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/TriggerByUserId"));
|
|
19
21
|
class NamespaceRef {
|
|
20
22
|
constructor(namespaceName) {
|
|
21
23
|
this.namespaceName = namespaceName;
|
|
22
24
|
}
|
|
25
|
+
trigger(triggerName, triggerStrategy, ttl, userId = "#{userId}") {
|
|
26
|
+
return new TriggerByUserId_1.default(this.namespaceName, triggerName, triggerStrategy, ttl, userId);
|
|
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,4FAA4D;AAE5D,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,WAAmB,EACnB,eAAuB,EACvB,GAAW,EACX,SAAsB,WAAW;QAEjC,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,eAAe,EACf,GAAG,EACH,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;AA3CD,+BA2CC"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
|
+
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
18
19
|
|
|
19
20
|
export default class NamespaceRef {
|
|
20
21
|
private readonly namespaceName: string;
|
|
@@ -25,6 +26,21 @@ export default class NamespaceRef {
|
|
|
25
26
|
this.namespaceName = namespaceName;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
public trigger(
|
|
30
|
+
triggerName: string,
|
|
31
|
+
triggerStrategy: string,
|
|
32
|
+
ttl: number,
|
|
33
|
+
userId: string|null = "#{userId}",
|
|
34
|
+
): TriggerByUserId {
|
|
35
|
+
return new TriggerByUserId(
|
|
36
|
+
this.namespaceName,
|
|
37
|
+
triggerName,
|
|
38
|
+
triggerStrategy,
|
|
39
|
+
ttl,
|
|
40
|
+
userId,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
28
44
|
public grn(
|
|
29
45
|
): string {
|
|
30
46
|
return new Join(
|
|
@@ -0,0 +1,31 @@
|
|
|
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 TriggerByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, triggerName, triggerStrategy, ttl, userId = "#{userId}") {
|
|
21
|
+
let properties = {};
|
|
22
|
+
properties["namespaceName"] = namespaceName;
|
|
23
|
+
properties["triggerName"] = triggerName;
|
|
24
|
+
properties["triggerStrategy"] = triggerStrategy;
|
|
25
|
+
properties["ttl"] = ttl;
|
|
26
|
+
properties["userId"] = userId;
|
|
27
|
+
super("Gs2Schedule:TriggerByUserId", properties);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.default = TriggerByUserId;
|
|
31
|
+
//# sourceMappingURL=TriggerByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriggerByUserId.js","sourceRoot":"","sources":["TriggerByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA8D;AAE9D,MAAqB,eAAgB,SAAQ,qBAAa;IAEtD,YACI,aAAqB,EACrB,WAAmB,EACnB,eAAuB,EACvB,GAAW,EACX,SAAsB,WAAW;QAEjC,IAAI,UAAU,GAA0B,EAAE,CAAC;QAE3C,UAAU,CAAC,eAAe,CAAC,GAAG,aAAa,CAAA;QAC3C,UAAU,CAAC,aAAa,CAAC,GAAG,WAAW,CAAA;QACvC,UAAU,CAAC,iBAAiB,CAAC,GAAG,eAAe,CAAA;QAC/C,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG,CAAA;QACvB,UAAU,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAA;QAE7B,KAAK,CACD,6BAA6B,EAC7B,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AAtBD,kCAsBC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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} from "../../core/model";
|
|
18
|
+
|
|
19
|
+
export default class TriggerByUserId extends AcquireAction {
|
|
20
|
+
|
|
21
|
+
public constructor(
|
|
22
|
+
namespaceName: string,
|
|
23
|
+
triggerName: string,
|
|
24
|
+
triggerStrategy: string,
|
|
25
|
+
ttl: number,
|
|
26
|
+
userId: string|null = "#{userId}",
|
|
27
|
+
) {
|
|
28
|
+
let properties: {[name: string]: any} = {};
|
|
29
|
+
|
|
30
|
+
properties["namespaceName"] = namespaceName
|
|
31
|
+
properties["triggerName"] = triggerName
|
|
32
|
+
properties["triggerStrategy"] = triggerStrategy
|
|
33
|
+
properties["ttl"] = ttl
|
|
34
|
+
properties["userId"] = userId
|
|
35
|
+
|
|
36
|
+
super(
|
|
37
|
+
"Gs2Schedule:TriggerByUserId",
|
|
38
|
+
properties,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import TriggerByUserId from "./TriggerByUserId";
|
|
2
|
+
export { TriggerByUserId, };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerByUserId = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
2
5
|
/*
|
|
3
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
4
7
|
* Reserved.
|
|
@@ -14,5 +17,6 @@
|
|
|
14
17
|
* express or implied. See the License for the specific language governing
|
|
15
18
|
* permissions and limitations under the License.
|
|
16
19
|
*/
|
|
17
|
-
|
|
20
|
+
const TriggerByUserId_1 = tslib_1.__importDefault(require("./TriggerByUserId"));
|
|
21
|
+
exports.TriggerByUserId = TriggerByUserId_1.default;
|
|
18
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gFAAgD;AAG5C,0BAHG,yBAAe,CAGH"}
|
|
@@ -6,6 +6,7 @@ export default class IssueJob {
|
|
|
6
6
|
private readonly issueRequestCount;
|
|
7
7
|
private readonly status;
|
|
8
8
|
private readonly metadata;
|
|
9
|
+
private readonly revision;
|
|
9
10
|
constructor(name: string, issuedCount: number, issueRequestCount: number, status: IssueJobStatus, options?: IssueJobOptions | null);
|
|
10
11
|
properties(): {
|
|
11
12
|
[name: string]: any;
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class IssueJob {
|
|
4
4
|
constructor(name, issuedCount, issueRequestCount, status, options = null) {
|
|
5
|
-
var _a;
|
|
5
|
+
var _a, _b;
|
|
6
6
|
this.metadata = null;
|
|
7
|
+
this.revision = null;
|
|
7
8
|
this.name = name;
|
|
8
9
|
this.issuedCount = issuedCount;
|
|
9
10
|
this.issueRequestCount = issueRequestCount;
|
|
10
11
|
this.status = status;
|
|
11
12
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
13
|
+
this.revision = (_b = options === null || options === void 0 ? void 0 : options.revision) !== null && _b !== void 0 ? _b : null;
|
|
12
14
|
}
|
|
13
15
|
properties() {
|
|
14
16
|
let properties = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssueJob.js","sourceRoot":"","sources":["IssueJob.ts"],"names":[],"mappings":";;AAkBA,MAAqB,QAAQ;
|
|
1
|
+
{"version":3,"file":"IssueJob.js","sourceRoot":"","sources":["IssueJob.ts"],"names":[],"mappings":";;AAkBA,MAAqB,QAAQ;IAQzB,YACI,IAAY,EACZ,WAAmB,EACnB,iBAAyB,EACzB,MAAsB,EACtB,UAAgC,IAAI;;QARvB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,aAAQ,GAAgB,IAAI,CAAC;QAS1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;IAC9C,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,QAAQ,IAAI,IAAI,EAAE;YACvB,UAAU,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC1C;QACD,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC;SAC5D;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;AA7CD,2BA6CC"}
|
|
@@ -22,6 +22,7 @@ export default class IssueJob {
|
|
|
22
22
|
private readonly issueRequestCount: number;
|
|
23
23
|
private readonly status: IssueJobStatus;
|
|
24
24
|
private readonly metadata: string|null = null;
|
|
25
|
+
private readonly revision: number|null = null;
|
|
25
26
|
|
|
26
27
|
public constructor(
|
|
27
28
|
name: string,
|
|
@@ -35,6 +36,7 @@ export default class IssueJob {
|
|
|
35
36
|
this.issueRequestCount = issueRequestCount;
|
|
36
37
|
this.status = status;
|
|
37
38
|
this.metadata = options?.metadata ?? null;
|
|
39
|
+
this.revision = options?.revision ?? null;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
public properties(
|