gs2-cdk 1.0.98 → 1.0.100

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.
@@ -13,6 +13,7 @@ export default class Namespace extends CdkResource {
13
13
  private readonly transactionSetting;
14
14
  private readonly exchangeScript;
15
15
  private readonly incrementalExchangeScript;
16
+ private readonly acquireAwaitScript;
16
17
  private readonly logSetting;
17
18
  constructor(stack: Stack, name: string, options?: NamespaceOptions | null);
18
19
  alternateKeys(): string;
@@ -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;
25
+ var _a, _b, _c, _d, _e, _f, _g, _h;
26
26
  super("Exchange_Namespace_" + name);
27
27
  this.description = null;
28
28
  this.enableAwaitExchange = null;
@@ -30,6 +30,7 @@ class Namespace extends model_1.CdkResource {
30
30
  this.transactionSetting = null;
31
31
  this.exchangeScript = null;
32
32
  this.incrementalExchangeScript = null;
33
+ this.acquireAwaitScript = null;
33
34
  this.logSetting = null;
34
35
  this.stack = stack;
35
36
  this.name = name;
@@ -39,7 +40,8 @@ class Namespace extends model_1.CdkResource {
39
40
  this.transactionSetting = (_d = options === null || options === void 0 ? void 0 : options.transactionSetting) !== null && _d !== void 0 ? _d : null;
40
41
  this.exchangeScript = (_e = options === null || options === void 0 ? void 0 : options.exchangeScript) !== null && _e !== void 0 ? _e : null;
41
42
  this.incrementalExchangeScript = (_f = options === null || options === void 0 ? void 0 : options.incrementalExchangeScript) !== null && _f !== void 0 ? _f : null;
42
- this.logSetting = (_g = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _g !== void 0 ? _g : null;
43
+ this.acquireAwaitScript = (_g = options === null || options === void 0 ? void 0 : options.acquireAwaitScript) !== null && _g !== void 0 ? _g : null;
44
+ this.logSetting = (_h = options === null || options === void 0 ? void 0 : options.logSetting) !== null && _h !== void 0 ? _h : null;
43
45
  stack.addResource(this);
44
46
  }
45
47
  alternateKeys() {
@@ -49,7 +51,7 @@ class Namespace extends model_1.CdkResource {
49
51
  return "GS2::Exchange::Namespace";
50
52
  }
51
53
  properties() {
52
- var _a, _b, _c, _d;
54
+ var _a, _b, _c, _d, _e;
53
55
  let properties = {};
54
56
  if (this.name != null) {
55
57
  properties["Name"] = this.name;
@@ -72,8 +74,11 @@ class Namespace extends model_1.CdkResource {
72
74
  if (this.incrementalExchangeScript != null) {
73
75
  properties["IncrementalExchangeScript"] = (_c = this.incrementalExchangeScript) === null || _c === void 0 ? void 0 : _c.properties();
74
76
  }
77
+ if (this.acquireAwaitScript != null) {
78
+ properties["AcquireAwaitScript"] = (_d = this.acquireAwaitScript) === null || _d === void 0 ? void 0 : _d.properties();
79
+ }
75
80
  if (this.logSetting != null) {
76
- properties["LogSetting"] = (_d = this.logSetting) === null || _d === void 0 ? void 0 : _d.properties();
81
+ properties["LogSetting"] = (_e = this.logSetting) === null || _e === void 0 ? void 0 : _e.properties();
77
82
  }
78
83
  return properties;
79
84
  }
@@ -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;AAMpD,MAAqB,SAAU,SAAQ,mBAAW;IAW9C,YACI,KAAY,EACZ,IAAY,EACZ,UAAiC,IAAI;;QAErC,KAAK,CACD,qBAAqB,GAAG,IAAI,CAC/B,CAAC;QAfW,gBAAW,GAAgB,IAAI,CAAC;QAChC,wBAAmB,GAAiB,IAAI,CAAC;QACzC,yBAAoB,GAAiB,IAAI,CAAC;QAC1C,uBAAkB,GAA4B,IAAI,CAAC;QACnD,mBAAc,GAAuB,IAAI,CAAC;QAC1C,8BAAyB,GAAuB,IAA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AAE,UAAU,EAC7D,CAAC;SACL;QACD,IAAI,IAAI,CAAC,yBAAyB,IAAI,IAAI,EAAE;YACxC,UAAU,CAAC,2BAA2B,CAAC,GAAG,MAAA,IAAI,CAAC,yBAAyB,0CAAE,UAAU,EACnF,CAAC;SACL;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,EACrE,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,UAAuB,EACvB,qBAA6C;QAE7C,IAAI,2BAAiB,CACjB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,UAAU,EACV,qBAAqB,CACxB,CAAC,YAAY,CACV,IAAI,CACP,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AArHD,4BAqHC"}
@@ -36,6 +36,7 @@ export default class Namespace extends CdkResource {
36
36
  private readonly transactionSetting: TransactionSetting|null = null;
37
37
  private readonly exchangeScript: ScriptSetting|null = null;
38
38
  private readonly incrementalExchangeScript: ScriptSetting|null = null;
39
+ private readonly acquireAwaitScript: ScriptSetting|null = null;
39
40
  private readonly logSetting: LogSetting|null = null;
40
41
 
41
42
  public constructor(
@@ -55,6 +56,7 @@ export default class Namespace extends CdkResource {
55
56
  this.transactionSetting = options?.transactionSetting ?? null;
56
57
  this.exchangeScript = options?.exchangeScript ?? null;
57
58
  this.incrementalExchangeScript = options?.incrementalExchangeScript ?? null;
59
+ this.acquireAwaitScript = options?.acquireAwaitScript ?? null;
58
60
  this.logSetting = options?.logSetting ?? null;
59
61
  stack.addResource(
60
62
  this,
@@ -100,6 +102,10 @@ export default class Namespace extends CdkResource {
100
102
  properties["IncrementalExchangeScript"] = this.incrementalExchangeScript?.properties(
101
103
  );
102
104
  }
105
+ if (this.acquireAwaitScript != null) {
106
+ properties["AcquireAwaitScript"] = this.acquireAwaitScript?.properties(
107
+ );
108
+ }
103
109
  if (this.logSetting != null) {
104
110
  properties["LogSetting"] = this.logSetting?.properties(
105
111
  );
@@ -8,6 +8,7 @@ export interface NamespaceOptions {
8
8
  transactionSetting?: TransactionSetting | null;
9
9
  exchangeScript?: ScriptSetting | null;
10
10
  incrementalExchangeScript?: ScriptSetting | null;
11
+ acquireAwaitScript?: ScriptSetting | null;
11
12
  logSetting?: LogSetting | null;
12
13
  queueNamespaceId?: string | null;
13
14
  keyId?: string | null;
@@ -24,6 +24,7 @@ export interface NamespaceOptions {
24
24
  transactionSetting?: TransactionSetting|null;
25
25
  exchangeScript?: ScriptSetting|null;
26
26
  incrementalExchangeScript?: ScriptSetting|null;
27
+ acquireAwaitScript?: ScriptSetting|null;
27
28
  logSetting?: LogSetting|null;
28
29
  queueNamespaceId?: string|null;
29
30
  keyId?: string|null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gs2-cdk",
3
- "version": "1.0.98",
3
+ "version": "1.0.100",
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "prepublishOnly": "npm run build"
@@ -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: number, userId?: string): TriggerByUserId;
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,GAAW,EACX,SAAiB,WAAW;QAE5B,OAAO,IAAI,yBAAe,CACtB,IAAI,CAAC,aAAa,EAClB,WAAW,EACX,eAAe,EACf,GAAG,EACH,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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,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: number, timeOffsetToken?: string | null, userId?: string);
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;IAStD,YACI,aAAqB,EACrB,WAAmB,EACnB,eAAuC,EACvC,GAAW,EACX,kBAA+B,IAAI,EACnC,SAAiB,WAAW;QAE5B,KAAK,EAAE,CAAC;QAXK,oBAAe,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C,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;CACN,CAAC"}
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];