gs2-cdk 1.0.98 → 1.0.99
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/package.json +1 -1
- package/schedule/ref/NamespaceRef.d.ts +1 -1
- package/schedule/ref/NamespaceRef.js +2 -2
- package/schedule/ref/NamespaceRef.js.map +1 -1
- package/schedule/ref/NamespaceRef.ts +3 -1
- package/schedule/stampSheet/TriggerByUserId.d.ts +2 -1
- package/schedule/stampSheet/TriggerByUserId.js +8 -2
- package/schedule/stampSheet/TriggerByUserId.js.map +1 -1
- package/schedule/stampSheet/TriggerByUserId.ts +9 -3
- package/schedule/stampSheet/enum/TriggerTriggerStrategy.d.ts +3 -0
- package/schedule/stampSheet/enum/TriggerTriggerStrategy.js +3 -0
- package/schedule/stampSheet/enum/TriggerTriggerStrategy.js.map +1 -1
- package/schedule/stampSheet/enum/TriggerTriggerStrategy.ts +3 -0
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ import { EventVerifyType } from "../stampSheet/enum/EventVerifyType";
|
|
|
8
8
|
export default class NamespaceRef {
|
|
9
9
|
private readonly namespaceName;
|
|
10
10
|
constructor(namespaceName: string);
|
|
11
|
-
trigger(triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl
|
|
11
|
+
trigger(triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl?: number | null, eventId?: string | null, userId?: string): TriggerByUserId;
|
|
12
12
|
deleteTrigger(triggerName: string, userId?: string): DeleteTriggerByUserId;
|
|
13
13
|
verifyTrigger(triggerName: string, verifyType: TriggerVerifyType, elapsedMinutes?: number | null, userId?: string): VerifyTriggerByUserId;
|
|
14
14
|
verifyEvent(eventName: string, verifyType: EventVerifyType, userId?: string): VerifyEventByUserId;
|
|
@@ -25,8 +25,8 @@ class NamespaceRef {
|
|
|
25
25
|
constructor(namespaceName) {
|
|
26
26
|
this.namespaceName = namespaceName;
|
|
27
27
|
}
|
|
28
|
-
trigger(triggerName, triggerStrategy, ttl, userId = "#{userId}") {
|
|
29
|
-
return new TriggerByUserId_1.default(this.namespaceName, triggerName, triggerStrategy, ttl, userId);
|
|
28
|
+
trigger(triggerName, triggerStrategy, ttl = null, eventId = null, userId = "#{userId}") {
|
|
29
|
+
return new TriggerByUserId_1.default(this.namespaceName, triggerName, triggerStrategy, ttl, eventId, userId);
|
|
30
30
|
}
|
|
31
31
|
deleteTrigger(triggerName, userId = "#{userId}") {
|
|
32
32
|
return new DeleteTriggerByUserId_1.default(this.namespaceName, triggerName, userId);
|
|
@@ -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,
|
|
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,UAAU;YACV,IAAI,CAAC,aAAa;SACrB,CACJ,CAAC,GAAG,EACJ,CAAC;IACN,CAAC;CACJ;AApFD,+BAoFC"}
|
|
@@ -35,7 +35,8 @@ export default class NamespaceRef {
|
|
|
35
35
|
public trigger(
|
|
36
36
|
triggerName: string,
|
|
37
37
|
triggerStrategy: TriggerTriggerStrategy,
|
|
38
|
-
ttl: number,
|
|
38
|
+
ttl: number|null = null,
|
|
39
|
+
eventId: string|null = null,
|
|
39
40
|
userId: string = "#{userId}",
|
|
40
41
|
): TriggerByUserId {
|
|
41
42
|
return new TriggerByUserId(
|
|
@@ -43,6 +44,7 @@ export default class NamespaceRef {
|
|
|
43
44
|
triggerName,
|
|
44
45
|
triggerStrategy,
|
|
45
46
|
ttl,
|
|
47
|
+
eventId,
|
|
46
48
|
userId,
|
|
47
49
|
);
|
|
48
50
|
}
|
|
@@ -6,8 +6,9 @@ export default class TriggerByUserId extends AcquireAction {
|
|
|
6
6
|
private readonly userId;
|
|
7
7
|
private readonly triggerStrategy;
|
|
8
8
|
private readonly ttl;
|
|
9
|
+
private readonly eventId;
|
|
9
10
|
private readonly timeOffsetToken;
|
|
10
|
-
constructor(namespaceName: string, triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl
|
|
11
|
+
constructor(namespaceName: string, triggerName: string, triggerStrategy: TriggerTriggerStrategy, ttl?: number | null, eventId?: string | null, timeOffsetToken?: string | null, userId?: string);
|
|
11
12
|
request(): {
|
|
12
13
|
[name: string]: any;
|
|
13
14
|
};
|
|
@@ -17,13 +17,16 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const model_1 = require("../../core/model");
|
|
19
19
|
class TriggerByUserId extends model_1.AcquireAction {
|
|
20
|
-
constructor(namespaceName, triggerName, triggerStrategy, ttl, timeOffsetToken = null, userId = "#{userId}") {
|
|
20
|
+
constructor(namespaceName, triggerName, triggerStrategy, ttl = null, eventId = null, timeOffsetToken = null, userId = "#{userId}") {
|
|
21
21
|
super();
|
|
22
|
+
this.ttl = null;
|
|
23
|
+
this.eventId = null;
|
|
22
24
|
this.timeOffsetToken = null;
|
|
23
25
|
this.namespaceName = namespaceName;
|
|
24
26
|
this.triggerName = triggerName;
|
|
25
27
|
this.triggerStrategy = triggerStrategy;
|
|
26
|
-
this.ttl = ttl;
|
|
28
|
+
this.ttl = ttl !== null && ttl !== void 0 ? ttl : null;
|
|
29
|
+
this.eventId = eventId !== null && eventId !== void 0 ? eventId : null;
|
|
27
30
|
this.timeOffsetToken = timeOffsetToken !== null && timeOffsetToken !== void 0 ? timeOffsetToken : null;
|
|
28
31
|
this.userId = userId;
|
|
29
32
|
}
|
|
@@ -44,6 +47,9 @@ class TriggerByUserId extends model_1.AcquireAction {
|
|
|
44
47
|
if (this.ttl != null) {
|
|
45
48
|
properties["ttl"] = this.ttl;
|
|
46
49
|
}
|
|
50
|
+
if (this.eventId != null) {
|
|
51
|
+
properties["eventId"] = this.eventId;
|
|
52
|
+
}
|
|
47
53
|
if (this.timeOffsetToken != null) {
|
|
48
54
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
49
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerByUserId.js","sourceRoot":"","sources":["TriggerByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,eAAgB,SAAQ,qBAAa;
|
|
1
|
+
{"version":3,"file":"TriggerByUserId.js","sourceRoot":"","sources":["TriggerByUserId.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,4CAA4E;AAG5E,MAAqB,eAAgB,SAAQ,qBAAa;IAUtD,YACI,aAAqB,EACrB,WAAmB,EACnB,eAAuC,EACvC,MAAmB,IAAI,EACvB,UAAuB,IAAI,EAC3B,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAdK,QAAG,GAAgB,IAAI,CAAC;QACxB,YAAO,GAAgB,IAAI,CAAC;QAC5B,oBAAe,GAAgB,IAAI,CAAC;QAcjD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,IAAI,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI,CAAC;QAC/B,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,eAAe,IAAI,IAAI,EAAE;YAC9B,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE;YAClB,UAAU,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;SAChC;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,6BAA6B,CAAC;IACzC,CAAC;CACJ;AA9DD,kCA8DC"}
|
|
@@ -22,7 +22,8 @@ export default class TriggerByUserId extends AcquireAction {
|
|
|
22
22
|
private readonly triggerName: string;
|
|
23
23
|
private readonly userId: string;
|
|
24
24
|
private readonly triggerStrategy: TriggerTriggerStrategy;
|
|
25
|
-
private readonly ttl: number;
|
|
25
|
+
private readonly ttl: number|null = null;
|
|
26
|
+
private readonly eventId: string|null = null;
|
|
26
27
|
private readonly timeOffsetToken: string|null = null;
|
|
27
28
|
|
|
28
29
|
|
|
@@ -30,7 +31,8 @@ export default class TriggerByUserId extends AcquireAction {
|
|
|
30
31
|
namespaceName: string,
|
|
31
32
|
triggerName: string,
|
|
32
33
|
triggerStrategy: TriggerTriggerStrategy,
|
|
33
|
-
ttl: number,
|
|
34
|
+
ttl: number|null = null,
|
|
35
|
+
eventId: string|null = null,
|
|
34
36
|
timeOffsetToken: string|null = null,
|
|
35
37
|
userId: string = "#{userId}",
|
|
36
38
|
) {
|
|
@@ -39,7 +41,8 @@ export default class TriggerByUserId extends AcquireAction {
|
|
|
39
41
|
this.namespaceName = namespaceName;
|
|
40
42
|
this.triggerName = triggerName;
|
|
41
43
|
this.triggerStrategy = triggerStrategy;
|
|
42
|
-
this.ttl = ttl;
|
|
44
|
+
this.ttl = ttl ?? null;
|
|
45
|
+
this.eventId = eventId ?? null;
|
|
43
46
|
this.timeOffsetToken = timeOffsetToken ?? null;
|
|
44
47
|
this.userId = userId;
|
|
45
48
|
}
|
|
@@ -63,6 +66,9 @@ export default class TriggerByUserId extends AcquireAction {
|
|
|
63
66
|
if (this.ttl != null) {
|
|
64
67
|
properties["ttl"] = this.ttl;
|
|
65
68
|
}
|
|
69
|
+
if (this.eventId != null) {
|
|
70
|
+
properties["eventId"] = this.eventId;
|
|
71
|
+
}
|
|
66
72
|
if (this.timeOffsetToken != null) {
|
|
67
73
|
properties["timeOffsetToken"] = this.timeOffsetToken;
|
|
68
74
|
}
|
|
@@ -2,5 +2,8 @@ export declare const TriggerTriggerStrategy: {
|
|
|
2
2
|
readonly RENEW: "renew";
|
|
3
3
|
readonly EXTEND: "extend";
|
|
4
4
|
readonly DROP: "drop";
|
|
5
|
+
readonly REPEAT_CYCLE_END: "repeatCycleEnd";
|
|
6
|
+
readonly REPEAT_CYCLE_NEXT_START: "repeatCycleNextStart";
|
|
7
|
+
readonly ABSOLUTE_END: "absoluteEnd";
|
|
5
8
|
};
|
|
6
9
|
export type TriggerTriggerStrategy = typeof TriggerTriggerStrategy[keyof typeof TriggerTriggerStrategy];
|
|
@@ -20,5 +20,8 @@ exports.TriggerTriggerStrategy = {
|
|
|
20
20
|
RENEW: "renew",
|
|
21
21
|
EXTEND: "extend",
|
|
22
22
|
DROP: "drop",
|
|
23
|
+
REPEAT_CYCLE_END: "repeatCycleEnd",
|
|
24
|
+
REPEAT_CYCLE_NEXT_START: "repeatCycleNextStart",
|
|
25
|
+
ABSOLUTE_END: "absoluteEnd",
|
|
23
26
|
};
|
|
24
27
|
//# sourceMappingURL=TriggerTriggerStrategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerTriggerStrategy.js","sourceRoot":"","sources":["TriggerTriggerStrategy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,sBAAsB,GAAG;IAClC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"TriggerTriggerStrategy.js","sourceRoot":"","sources":["TriggerTriggerStrategy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIU,QAAA,sBAAsB,GAAG;IAClC,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,gBAAgB;IAClC,uBAAuB,EAAE,sBAAsB;IAC/C,YAAY,EAAE,aAAa;CACrB,CAAC"}
|
|
@@ -20,5 +20,8 @@ export const TriggerTriggerStrategy = {
|
|
|
20
20
|
RENEW: "renew",
|
|
21
21
|
EXTEND: "extend",
|
|
22
22
|
DROP: "drop",
|
|
23
|
+
REPEAT_CYCLE_END: "repeatCycleEnd",
|
|
24
|
+
REPEAT_CYCLE_NEXT_START: "repeatCycleNextStart",
|
|
25
|
+
ABSOLUTE_END: "absoluteEnd",
|
|
23
26
|
} as const;
|
|
24
27
|
export type TriggerTriggerStrategy = typeof TriggerTriggerStrategy[keyof typeof TriggerTriggerStrategy];
|