gs2-cdk 1.0.113 → 1.0.117
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/guild/model/Namespace.d.ts +2 -0
- package/guild/model/Namespace.js +18 -8
- package/guild/model/Namespace.js.map +1 -1
- package/guild/model/Namespace.ts +12 -0
- package/guild/model/options/NamespaceOptions.d.ts +2 -0
- package/guild/model/options/NamespaceOptions.ts +2 -0
- package/package.json +1 -1
- package/schedule/ref/NamespaceRef.d.ts +2 -0
- package/schedule/ref/NamespaceRef.js +4 -0
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +14 -0
- package/schedule/stampSheet/ExtendTriggerByUserId.d.ts +13 -0
- package/schedule/stampSheet/ExtendTriggerByUserId.js +53 -0
- package/schedule/stampSheet/ExtendTriggerByUserId.js.map +1 -0
- package/schedule/stampSheet/ExtendTriggerByUserId.ts +69 -0
- package/schedule/stampSheet/index.d.ts +2 -1
- package/schedule/stampSheet/index.js +3 -1
- package/schedule/stampSheet/index.js.map +1 -1
- package/schedule/stampSheet/index.ts +2 -0
- package/script/ref/ScriptPayloadVersionRef.d.ts +6 -0
- package/script/ref/ScriptPayloadVersionRef.js +26 -0
- package/script/ref/ScriptPayloadVersionRef.js.map +1 -0
- package/script/ref/ScriptPayloadVersionRef.ts +33 -0
- package/script/ref/index.d.ts +2 -1
- package/script/ref/index.js +3 -1
- package/script/ref/index.js.map +1 -1
- package/script/ref/index.ts +2 -0
|
@@ -16,8 +16,10 @@ export default class Namespace extends CdkResource {
|
|
|
16
16
|
private readonly createGuildScript;
|
|
17
17
|
private readonly updateGuildScript;
|
|
18
18
|
private readonly joinGuildScript;
|
|
19
|
+
private readonly receiveJoinRequestScript;
|
|
19
20
|
private readonly leaveGuildScript;
|
|
20
21
|
private readonly changeRoleScript;
|
|
22
|
+
private readonly deleteGuildScript;
|
|
21
23
|
private readonly logSetting;
|
|
22
24
|
constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
|
|
23
25
|
alternateKeys(): string;
|
package/guild/model/Namespace.js
CHANGED
|
@@ -22,7 +22,7 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("../ref/NamespaceRef"));
|
|
|
22
22
|
const CurrentMasterData_1 = tslib_1.__importDefault(require("./CurrentMasterData"));
|
|
23
23
|
class Namespace extends model_1.CdkResource {
|
|
24
24
|
constructor(stack, name, options = null) {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
26
26
|
super("Guild_Namespace_" + name);
|
|
27
27
|
this.description = null;
|
|
28
28
|
this.changeNotification = null;
|
|
@@ -34,8 +34,10 @@ class Namespace extends model_1.CdkResource {
|
|
|
34
34
|
this.createGuildScript = null;
|
|
35
35
|
this.updateGuildScript = null;
|
|
36
36
|
this.joinGuildScript = null;
|
|
37
|
+
this.receiveJoinRequestScript = null;
|
|
37
38
|
this.leaveGuildScript = null;
|
|
38
39
|
this.changeRoleScript = null;
|
|
40
|
+
this.deleteGuildScript = null;
|
|
39
41
|
this.logSetting = null;
|
|
40
42
|
this.stack = stack;
|
|
41
43
|
this.name = name;
|
|
@@ -49,9 +51,11 @@ class Namespace extends model_1.CdkResource {
|
|
|
49
51
|
this.createGuildScript = (_h = options === null || options === void 0 ? void 0 : options.createGuildScript) !== null && _h !== void 0 ? _h : null;
|
|
50
52
|
this.updateGuildScript = (_j = options === null || options === void 0 ? void 0 : options.updateGuildScript) !== null && _j !== void 0 ? _j : null;
|
|
51
53
|
this.joinGuildScript = (_k = options === null || options === void 0 ? void 0 : options.joinGuildScript) !== null && _k !== void 0 ? _k : null;
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
54
|
+
this.receiveJoinRequestScript = (_l = options === null || options === void 0 ? void 0 : options.receiveJoinRequestScript) !== null && _l !== void 0 ? _l : null;
|
|
55
|
+
this.leaveGuildScript = (_m = options === null || options === void 0 ? void 0 : options.leaveGuildScript) !== null && _m !== void 0 ? _m : null;
|
|
56
|
+
this.changeRoleScript = (_o = options === null || options === void 0 ? void 0 : options.changeRoleScript) !== null && _o !== void 0 ? _o : null;
|
|
57
|
+
this.deleteGuildScript = (_p = options === null || options === void 0 ? void 0 : options.deleteGuildScript) !== null && _p !== void 0 ? _p : null;
|
|
58
|
+
this.logSetting = (_q = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _q !== void 0 ? _q : null;
|
|
55
59
|
stack.addResource(this);
|
|
56
60
|
}
|
|
57
61
|
alternateKeys() {
|
|
@@ -61,7 +65,7 @@ class Namespace extends model_1.CdkResource {
|
|
|
61
65
|
return "GS2::Guild::Namespace";
|
|
62
66
|
}
|
|
63
67
|
properties() {
|
|
64
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
68
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
65
69
|
let properties = {};
|
|
66
70
|
if (this.name != null) {
|
|
67
71
|
properties["Name"] = this.name;
|
|
@@ -96,14 +100,20 @@ class Namespace extends model_1.CdkResource {
|
|
|
96
100
|
if (this.joinGuildScript != null) {
|
|
97
101
|
properties["JoinGuildScript"] = (_j = this.joinGuildScript) === null || _j === void 0 ? void 0 : _j.properties();
|
|
98
102
|
}
|
|
103
|
+
if (this.receiveJoinRequestScript != null) {
|
|
104
|
+
properties["ReceiveJoinRequestScript"] = (_k = this.receiveJoinRequestScript) === null || _k === void 0 ? void 0 : _k.properties();
|
|
105
|
+
}
|
|
99
106
|
if (this.leaveGuildScript != null) {
|
|
100
|
-
properties["LeaveGuildScript"] = (
|
|
107
|
+
properties["LeaveGuildScript"] = (_l = this.leaveGuildScript) === null || _l === void 0 ? void 0 : _l.properties();
|
|
101
108
|
}
|
|
102
109
|
if (this.changeRoleScript != null) {
|
|
103
|
-
properties["ChangeRoleScript"] = (
|
|
110
|
+
properties["ChangeRoleScript"] = (_m = this.changeRoleScript) === null || _m === void 0 ? void 0 : _m.properties();
|
|
111
|
+
}
|
|
112
|
+
if (this.deleteGuildScript != null) {
|
|
113
|
+
properties["DeleteGuildScript"] = (_o = this.deleteGuildScript) === null || _o === void 0 ? void 0 : _o.properties();
|
|
104
114
|
}
|
|
105
115
|
if (this.logSetting != null) {
|
|
106
|
-
properties["LogSetting"] = (
|
|
116
|
+
properties["LogSetting"] = (_p = this.logSetting) === null || _p === void 0 ? void 0 : _p.properties();
|
|
107
117
|
}
|
|
108
118
|
return properties;
|
|
109
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;
|
|
1
|
+
{"version":3,"file":"Namespace.js","sourceRoot":"","sources":["Namespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAoD;AACpD,0CAAwC;AAKxC,+EAA+C;AAC/C,oFAAoD;AAKpD,MAAqB,SAAU,SAAQ,mBAAW;IAmB9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,kBAAkB,GAAG,IAAI,CAC5B,CAAC;QAvBW,gBAAW,GAAgB,IAAI,CAAC;QAChC,uBAAkB,GAA6B,IAAI,CAAC;QACpD,qBAAgB,GAA6B,IAAI,CAAC;QAClD,sBAAiB,GAA6B,IAAI,CAAC;QACnD,6BAAwB,GAA6B,IAAI,CAAC;QAC1D,+BAA0B,GAA6B,IAAI,CAAC;QAC5D,8BAAyB,GAA6B,IAAI,CAAC;QAC3D,sBAAiB,GAAuB,IAAI,CAAC;QAC7C,sBAAiB,GAAuB,IAAI,CAAC;QAC7C,oBAAe,GAAu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C;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EACjE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,iBAAiB,IAAI,IAAI,EAAE;YAChC,UAAU,CAAC,mBAAmB,CAAC,GAAG,MAAA,IAAI,CAAC,iBAAiB,0CAAE,UAAU,EACnE,CAAC;SACL;QACD,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,UAAU,EACrD,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;IAEM,GAAG;QAEN,OAAO,IAAI,sBAAY,CACnB,IAAI,CAAC,IAAK,CACb,CAAC;IACN,CAAC;IAEM,kBAAkB;QAErB,OAAO,IAAI,cAAO,CACd,IAAI,EACJ,kBAAkB,EAClB,IAAI,CACP,CAAC;IACN,CAAC;IAEM,UAAU,CACb,WAAyB;QAEzB,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,WAAW,CACd,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA/JD,4BA+JC"}
|
package/guild/model/Namespace.ts
CHANGED
|
@@ -39,8 +39,10 @@ export default class Namespace extends CdkResource {
|
|
|
39
39
|
private readonly createGuildScript: ScriptSetting|null = null;
|
|
40
40
|
private readonly updateGuildScript: ScriptSetting|null = null;
|
|
41
41
|
private readonly joinGuildScript: ScriptSetting|null = null;
|
|
42
|
+
private readonly receiveJoinRequestScript: ScriptSetting|null = null;
|
|
42
43
|
private readonly leaveGuildScript: ScriptSetting|null = null;
|
|
43
44
|
private readonly changeRoleScript: ScriptSetting|null = null;
|
|
45
|
+
private readonly deleteGuildScript: ScriptSetting|null = null;
|
|
44
46
|
private readonly logSetting: LogSetting|null = null;
|
|
45
47
|
|
|
46
48
|
public constructor(
|
|
@@ -64,8 +66,10 @@ export default class Namespace extends CdkResource {
|
|
|
64
66
|
this.createGuildScript = options?.createGuildScript ?? null;
|
|
65
67
|
this.updateGuildScript = options?.updateGuildScript ?? null;
|
|
66
68
|
this.joinGuildScript = options?.joinGuildScript ?? null;
|
|
69
|
+
this.receiveJoinRequestScript = options?.receiveJoinRequestScript ?? null;
|
|
67
70
|
this.leaveGuildScript = options?.leaveGuildScript ?? null;
|
|
68
71
|
this.changeRoleScript = options?.changeRoleScript ?? null;
|
|
72
|
+
this.deleteGuildScript = options?.deleteGuildScript ?? null;
|
|
69
73
|
this.logSetting = options?.logSetting ?? null;
|
|
70
74
|
stack.addResource(
|
|
71
75
|
this,
|
|
@@ -129,6 +133,10 @@ export default class Namespace extends CdkResource {
|
|
|
129
133
|
properties["JoinGuildScript"] = this.joinGuildScript?.properties(
|
|
130
134
|
);
|
|
131
135
|
}
|
|
136
|
+
if (this.receiveJoinRequestScript != null) {
|
|
137
|
+
properties["ReceiveJoinRequestScript"] = this.receiveJoinRequestScript?.properties(
|
|
138
|
+
);
|
|
139
|
+
}
|
|
132
140
|
if (this.leaveGuildScript != null) {
|
|
133
141
|
properties["LeaveGuildScript"] = this.leaveGuildScript?.properties(
|
|
134
142
|
);
|
|
@@ -137,6 +145,10 @@ export default class Namespace extends CdkResource {
|
|
|
137
145
|
properties["ChangeRoleScript"] = this.changeRoleScript?.properties(
|
|
138
146
|
);
|
|
139
147
|
}
|
|
148
|
+
if (this.deleteGuildScript != null) {
|
|
149
|
+
properties["DeleteGuildScript"] = this.deleteGuildScript?.properties(
|
|
150
|
+
);
|
|
151
|
+
}
|
|
140
152
|
if (this.logSetting != null) {
|
|
141
153
|
properties["LogSetting"] = this.logSetting?.properties(
|
|
142
154
|
);
|
|
@@ -12,7 +12,9 @@ export interface NamespaceOptions {
|
|
|
12
12
|
createGuildScript?: ScriptSetting | null;
|
|
13
13
|
updateGuildScript?: ScriptSetting | null;
|
|
14
14
|
joinGuildScript?: ScriptSetting | null;
|
|
15
|
+
receiveJoinRequestScript?: ScriptSetting | null;
|
|
15
16
|
leaveGuildScript?: ScriptSetting | null;
|
|
16
17
|
changeRoleScript?: ScriptSetting | null;
|
|
18
|
+
deleteGuildScript?: ScriptSetting | null;
|
|
17
19
|
logSetting?: LogSetting | null;
|
|
18
20
|
}
|
|
@@ -28,8 +28,10 @@ export interface NamespaceOptions {
|
|
|
28
28
|
createGuildScript?: ScriptSetting|null;
|
|
29
29
|
updateGuildScript?: ScriptSetting|null;
|
|
30
30
|
joinGuildScript?: ScriptSetting|null;
|
|
31
|
+
receiveJoinRequestScript?: ScriptSetting|null;
|
|
31
32
|
leaveGuildScript?: ScriptSetting|null;
|
|
32
33
|
changeRoleScript?: ScriptSetting|null;
|
|
34
|
+
deleteGuildScript?: ScriptSetting|null;
|
|
33
35
|
logSetting?: LogSetting|null;
|
|
34
36
|
}
|
|
35
37
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
2
2
|
import { TriggerTriggerStrategy } from "../stampSheet/enums/TriggerTriggerStrategy";
|
|
3
|
+
import ExtendTriggerByUserId from "../stampSheet/ExtendTriggerByUserId";
|
|
3
4
|
import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
|
|
4
5
|
import VerifyTriggerByUserId from "../stampSheet/VerifyTriggerByUserId";
|
|
5
6
|
import { TriggerVerifyType } from "../stampSheet/enums/TriggerVerifyType";
|
|
@@ -9,6 +10,7 @@ export default class NamespaceRef {
|
|
|
9
10
|
private readonly namespaceName;
|
|
10
11
|
constructor(namespaceName: string);
|
|
11
12
|
trigger(triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl?: number | null, eventId?: string | null, userId?: string): TriggerByUserId;
|
|
13
|
+
extendTrigger(triggerName: string, extendSeconds: number, userId?: string): ExtendTriggerByUserId;
|
|
12
14
|
deleteTrigger(triggerName: string, userId?: string): DeleteTriggerByUserId;
|
|
13
15
|
verifyTrigger(triggerName: string, verifyType: TriggerVerifyType, elapsedMinutes?: number | null, userId?: string): VerifyTriggerByUserId;
|
|
14
16
|
verifyEvent(eventName: string, verifyType: EventVerifyType, userId?: string): VerifyEventByUserId;
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
const tslib_1 = require("tslib");
|
|
19
19
|
const func_1 = require("../../core/func");
|
|
20
20
|
const TriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/TriggerByUserId"));
|
|
21
|
+
const ExtendTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/ExtendTriggerByUserId"));
|
|
21
22
|
const DeleteTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/DeleteTriggerByUserId"));
|
|
22
23
|
const VerifyTriggerByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyTriggerByUserId"));
|
|
23
24
|
const VerifyEventByUserId_1 = tslib_1.__importDefault(require("../stampSheet/VerifyEventByUserId"));
|
|
@@ -28,6 +29,9 @@ class NamespaceRef {
|
|
|
28
29
|
trigger(triggerName, triggerStrategy, ttl = null, eventId = null, userId = "#{userId}") {
|
|
29
30
|
return new TriggerByUserId_1.default(this.namespaceName, triggerName, triggerStrategy, ttl, eventId, userId);
|
|
30
31
|
}
|
|
32
|
+
extendTrigger(triggerName, extendSeconds, userId = "#{userId}") {
|
|
33
|
+
return new ExtendTriggerByUserId_1.default(this.namespaceName, triggerName, extendSeconds, userId);
|
|
34
|
+
}
|
|
31
35
|
deleteTrigger(triggerName, userId = "#{userId}") {
|
|
32
36
|
return new DeleteTriggerByUserId_1.default(this.namespaceName, triggerName, userId);
|
|
33
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamespaceRef.js","sourceRoot":"","sources":["NamespaceRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,0CAA8C;AAC9C,4FAA4D;AAE5D,wGAAwE;AACxE,wGAAwE;AAExE,oGAAoE;AAGpE,MAAqB,YAAY;IAG7B,YACI,aAAqB;QAErB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAEM,OAAO,CACV,WAAmB,EACnB,eAAuC,EACvC,MAAmB,IAAI,EACvB,UAAuB,IAAI,EAC3B,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,eAAe,EACf,GAAG,EACH,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,MAAM,CACT,CAAC;IACN,CAAC;IAEM,aAAa,CAChB,WAAmB,EACnB,UAA6B,EAC7B,iBAA8B,IAAI,EAClC,SAAiB,WAAW;QAE5B,OAAO,IAAI,+BAAqB,CAC5B,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,UAAU,EACV,cAAc,EACd,MAAM,CACT,CAAC;IACN,CAAC;IAEM,WAAW,CACd,SAAiB,EACjB,UAA2B,EAC3B,SAAiB,WAAW;QAE5B,OAAO,IAAI,6BAAmB,CAC1B,IAAI,CAAC,aAAa,EAClB,SAAS,EACT,UAAU,EACV,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,UAA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AU,EACV,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;AAjGD,+BAiGC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import {GetAttr, Join} from "../../core/func";
|
|
18
18
|
import TriggerByUserId from "../stampSheet/TriggerByUserId";
|
|
19
19
|
import { TriggerTriggerStrategy } from "../stampSheet/enums/TriggerTriggerStrategy";
|
|
20
|
+
import ExtendTriggerByUserId from "../stampSheet/ExtendTriggerByUserId";
|
|
20
21
|
import DeleteTriggerByUserId from "../stampSheet/DeleteTriggerByUserId";
|
|
21
22
|
import VerifyTriggerByUserId from "../stampSheet/VerifyTriggerByUserId";
|
|
22
23
|
import { TriggerVerifyType } from "../stampSheet/enums/TriggerVerifyType";
|
|
@@ -49,6 +50,19 @@ export default class NamespaceRef {
|
|
|
49
50
|
);
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
public extendTrigger(
|
|
54
|
+
triggerName: string,
|
|
55
|
+
extendSeconds: number,
|
|
56
|
+
userId: string = "#{userId}",
|
|
57
|
+
): ExtendTriggerByUserId {
|
|
58
|
+
return new ExtendTriggerByUserId(
|
|
59
|
+
this.namespaceName,
|
|
60
|
+
triggerName,
|
|
61
|
+
extendSeconds,
|
|
62
|
+
userId,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
public deleteTrigger(
|
|
53
67
|
triggerName: string,
|
|
54
68
|
userId: string = "#{userId}",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AcquireAction } from "../../core/model";
|
|
2
|
+
export default class ExtendTriggerByUserId extends AcquireAction {
|
|
3
|
+
private readonly namespaceName;
|
|
4
|
+
private readonly triggerName;
|
|
5
|
+
private readonly userId;
|
|
6
|
+
private readonly extendSeconds;
|
|
7
|
+
private readonly timeOffsetToken;
|
|
8
|
+
constructor(namespaceName: string, triggerName: string, extendSeconds: number, timeOffsetToken?: string | null, userId?: string);
|
|
9
|
+
request(): {
|
|
10
|
+
[name: string]: any;
|
|
11
|
+
};
|
|
12
|
+
action(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 ExtendTriggerByUserId extends model_1.AcquireAction {
|
|
20
|
+
constructor(namespaceName, triggerName, extendSeconds, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
|
+
super();
|
|
22
|
+
this.timeOffsetToken = null;
|
|
23
|
+
this.namespaceName = namespaceName;
|
|
24
|
+
this.triggerName = triggerName;
|
|
25
|
+
this.extendSeconds = extendSeconds;
|
|
26
|
+
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
27
|
+
this.userId = userId;
|
|
28
|
+
}
|
|
29
|
+
request() {
|
|
30
|
+
let properties = {};
|
|
31
|
+
if (this.namespaceName != null) {
|
|
32
|
+
properties["namespaceName"] = this.namespaceName;
|
|
33
|
+
}
|
|
34
|
+
if (this.triggerName != null) {
|
|
35
|
+
properties["triggerName"] = this.triggerName;
|
|
36
|
+
}
|
|
37
|
+
if (this.userId != null) {
|
|
38
|
+
properties["userId"] = this.userId;
|
|
39
|
+
}
|
|
40
|
+
if (this.extendSeconds != null) {
|
|
41
|
+
properties["extendSeconds"] = this.extendSeconds;
|
|
42
|
+
}
|
|
43
|
+
if (this.timeOffsetToken != null) {
|
|
44
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
45
|
+
}
|
|
46
|
+
return properties;
|
|
47
|
+
}
|
|
48
|
+
action() {
|
|
49
|
+
return "Gs2Schedule:ExtendTriggerByUserId";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.default = ExtendTriggerByUserId;
|
|
53
|
+
//# sourceMappingURL=ExtendTriggerByUserId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtendTriggerByUserId.js","sourceRoot":"","sources":["ExtendTriggerByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAE5E,MAAqB,qBAAsB,SAAQ,qBAAa;IAQ5D,YACI,aAAqB,EACrB,WAAmB,EACnB,aAAqB,EACrB,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,aAAa,GAAG,aAAa,CAAC;QACnC,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,WAAW,IAAI,IAAI,EAAE;YAC1B,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SAChD;QACD,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;SACtC;QACD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC;SACpD;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,mCAAmC,CAAC;IAC/C,CAAC;CACJ;AAlDD,wCAkDC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
|
|
19
|
+
export default class ExtendTriggerByUserId extends AcquireAction {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly triggerName: string;
|
|
22
|
+
private readonly userId: string;
|
|
23
|
+
private readonly extendSeconds: number;
|
|
24
|
+
private readonly timeOffsetToken: string|null = null;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
public constructor(
|
|
28
|
+
namespaceName: string,
|
|
29
|
+
triggerName: string,
|
|
30
|
+
extendSeconds: number,
|
|
31
|
+
timeOffsetToken: string|null = null,
|
|
32
|
+
userId: string = "#{userId}",
|
|
33
|
+
) {
|
|
34
|
+
super();
|
|
35
|
+
|
|
36
|
+
this.namespaceName = namespaceName;
|
|
37
|
+
this.triggerName = triggerName;
|
|
38
|
+
this.extendSeconds = extendSeconds;
|
|
39
|
+
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
40
|
+
this.userId = userId;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public request(
|
|
44
|
+
): {[name: string]: any} {
|
|
45
|
+
let properties: {[name: string]: any} = {};
|
|
46
|
+
|
|
47
|
+
if (this.namespaceName != null) {
|
|
48
|
+
properties["namespaceName"] = this.namespaceName;
|
|
49
|
+
}
|
|
50
|
+
if (this.triggerName != null) {
|
|
51
|
+
properties["triggerName"] = this.triggerName;
|
|
52
|
+
}
|
|
53
|
+
if (this.userId != null) {
|
|
54
|
+
properties["userId"] = this.userId;
|
|
55
|
+
}
|
|
56
|
+
if (this.extendSeconds != null) {
|
|
57
|
+
properties["extendSeconds"] = this.extendSeconds;
|
|
58
|
+
}
|
|
59
|
+
if (this.timeOffsetToken != null) {
|
|
60
|
+
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return properties;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public action(): string {
|
|
67
|
+
return "Gs2Schedule:ExtendTriggerByUserId";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import TriggerByUserId from "./TriggerByUserId";
|
|
2
|
+
import ExtendTriggerByUserId from "./ExtendTriggerByUserId";
|
|
2
3
|
import DeleteTriggerByUserId from "./DeleteTriggerByUserId";
|
|
3
4
|
import VerifyTriggerByUserId from "./VerifyTriggerByUserId";
|
|
4
5
|
import VerifyEventByUserId from "./VerifyEventByUserId";
|
|
5
|
-
export { TriggerByUserId, DeleteTriggerByUserId, VerifyTriggerByUserId, VerifyEventByUserId, };
|
|
6
|
+
export { TriggerByUserId, ExtendTriggerByUserId, DeleteTriggerByUserId, VerifyTriggerByUserId, VerifyEventByUserId, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyEventByUserId = exports.VerifyTriggerByUserId = exports.DeleteTriggerByUserId = exports.TriggerByUserId = void 0;
|
|
3
|
+
exports.VerifyEventByUserId = exports.VerifyTriggerByUserId = exports.DeleteTriggerByUserId = exports.ExtendTriggerByUserId = exports.TriggerByUserId = 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 TriggerByUserId_1 = tslib_1.__importDefault(require("./TriggerByUserId"));
|
|
21
21
|
exports.TriggerByUserId = TriggerByUserId_1.default;
|
|
22
|
+
const ExtendTriggerByUserId_1 = tslib_1.__importDefault(require("./ExtendTriggerByUserId"));
|
|
23
|
+
exports.ExtendTriggerByUserId = ExtendTriggerByUserId_1.default;
|
|
22
24
|
const DeleteTriggerByUserId_1 = tslib_1.__importDefault(require("./DeleteTriggerByUserId"));
|
|
23
25
|
exports.DeleteTriggerByUserId = DeleteTriggerByUserId_1.default;
|
|
24
26
|
const VerifyTriggerByUserId_1 = tslib_1.__importDefault(require("./VerifyTriggerByUserId"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gFAAgD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,gFAAgD;AAO5C,0BAPG,yBAAe,CAOH;AANnB,4FAA4D;AAOxD,gCAPG,+BAAqB,CAOH;AANzB,4FAA4D;AAOxD,gCAPG,+BAAqB,CAOH;AANzB,4FAA4D;AAOxD,gCAPG,+BAAqB,CAOH;AANzB,wFAAwD;AAOpD,8BAPG,6BAAmB,CAOH"}
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import TriggerByUserId from "./TriggerByUserId";
|
|
17
|
+
import ExtendTriggerByUserId from "./ExtendTriggerByUserId";
|
|
17
18
|
import DeleteTriggerByUserId from "./DeleteTriggerByUserId";
|
|
18
19
|
import VerifyTriggerByUserId from "./VerifyTriggerByUserId";
|
|
19
20
|
import VerifyEventByUserId from "./VerifyEventByUserId";
|
|
20
21
|
|
|
21
22
|
export {
|
|
22
23
|
TriggerByUserId,
|
|
24
|
+
ExtendTriggerByUserId,
|
|
23
25
|
DeleteTriggerByUserId,
|
|
24
26
|
VerifyTriggerByUserId,
|
|
25
27
|
VerifyEventByUserId,
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
class ScriptPayloadVersionRef {
|
|
19
|
+
constructor(namespaceName, objectKey, versionId) {
|
|
20
|
+
this.namespaceName = namespaceName;
|
|
21
|
+
this.objectKey = objectKey;
|
|
22
|
+
this.versionId = versionId;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.default = ScriptPayloadVersionRef;
|
|
26
|
+
//# sourceMappingURL=ScriptPayloadVersionRef.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptPayloadVersionRef.js","sourceRoot":"","sources":["ScriptPayloadVersionRef.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH,MAAqB,uBAAuB;IAKxC,YACI,aAAqB,EACrB,SAAiB,EACjB,SAAiB;QAEjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ;AAdD,0CAcC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 {GetAttr, Join} from "../../core/func";
|
|
18
|
+
|
|
19
|
+
export default class ScriptPayloadVersionRef {
|
|
20
|
+
private readonly namespaceName: string;
|
|
21
|
+
private readonly objectKey: string;
|
|
22
|
+
private readonly versionId: string;
|
|
23
|
+
|
|
24
|
+
public constructor(
|
|
25
|
+
namespaceName: string,
|
|
26
|
+
objectKey: string,
|
|
27
|
+
versionId: string,
|
|
28
|
+
) {
|
|
29
|
+
this.namespaceName = namespaceName;
|
|
30
|
+
this.objectKey = objectKey;
|
|
31
|
+
this.versionId = versionId;
|
|
32
|
+
}
|
|
33
|
+
}
|
package/script/ref/index.d.ts
CHANGED
package/script/ref/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScriptRef = exports.NamespaceRef = void 0;
|
|
3
|
+
exports.ScriptPayloadVersionRef = exports.ScriptRef = exports.NamespaceRef = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/*
|
|
6
6
|
* Copyright 2016- Game Server Services, Inc. or its affiliates. All Rights
|
|
@@ -21,4 +21,6 @@ const NamespaceRef_1 = tslib_1.__importDefault(require("./NamespaceRef"));
|
|
|
21
21
|
exports.NamespaceRef = NamespaceRef_1.default;
|
|
22
22
|
const ScriptRef_1 = tslib_1.__importDefault(require("./ScriptRef"));
|
|
23
23
|
exports.ScriptRef = ScriptRef_1.default;
|
|
24
|
+
const ScriptPayloadVersionRef_1 = tslib_1.__importDefault(require("./ScriptPayloadVersionRef"));
|
|
25
|
+
exports.ScriptPayloadVersionRef = ScriptPayloadVersionRef_1.default;
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
package/script/ref/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,0EAA0C;AAKtC,uBALG,sBAAY,CAKH;AAJhB,oEAAoC;AAKhC,oBALG,mBAAS,CAKH;AAJb,gGAAgE;AAK5D,kCALG,iCAAuB,CAKH"}
|
package/script/ref/index.ts
CHANGED