gs2-cdk 1.0.75 → 1.0.76
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/exchange/model/RateModel.d.ts +1 -0
- package/exchange/model/RateModel.js +11 -4
- package/exchange/model/RateModel.js.map +1 -1
- package/exchange/model/RateModel.ts +9 -0
- package/exchange/model/options/RateModelOptions.d.ts +2 -0
- package/exchange/model/options/RateModelOptions.ts +2 -0
- package/exchange/model/options/RateModelTimingTypeIsAwaitOptions.d.ts +2 -0
- package/exchange/model/options/RateModelTimingTypeIsAwaitOptions.ts +2 -0
- package/exchange/model/options/RateModelTimingTypeIsImmediateOptions.d.ts +2 -0
- package/exchange/model/options/RateModelTimingTypeIsImmediateOptions.ts +2 -0
- package/friend/model/Namespace.d.ts +3 -0
- package/friend/model/Namespace.js +21 -6
- package/friend/model/Namespace.js.map +1 -1
- package/friend/model/Namespace.ts +18 -0
- package/friend/model/options/NamespaceOptions.d.ts +3 -0
- package/friend/model/options/NamespaceOptions.ts +3 -0
- package/loginReward/model/BonusModel.d.ts +1 -0
- package/loginReward/model/BonusModel.js +11 -2
- package/loginReward/model/BonusModel.js.map +1 -1
- package/loginReward/model/BonusModel.ts +11 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsDisabledOptions.d.ts +2 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsDisabledOptions.ts +2 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsEnabledOptions.d.ts +2 -0
- package/loginReward/model/options/BonusModelMissedReceiveReliefIsEnabledOptions.ts +2 -0
- package/loginReward/model/options/BonusModelModeIsScheduleOptions.d.ts +2 -0
- package/loginReward/model/options/BonusModelModeIsScheduleOptions.ts +2 -0
- package/loginReward/model/options/BonusModelModeIsStreamingOptions.d.ts +2 -0
- package/loginReward/model/options/BonusModelModeIsStreamingOptions.ts +2 -0
- package/loginReward/model/options/BonusModelOptions.d.ts +2 -0
- package/loginReward/model/options/BonusModelOptions.ts +2 -0
- package/mission/model/MissionGroupModel.ts +1 -1
- package/mission/model/MissionTaskModel.d.ts +2 -2
- package/mission/model/MissionTaskModel.js +2 -2
- package/mission/model/MissionTaskModel.js.map +1 -1
- package/mission/model/MissionTaskModel.ts +6 -6
- package/mission/model/enum/MissionTaskModelVerifyCompleteType.d.ts +1 -1
- package/mission/model/enum/MissionTaskModelVerifyCompleteType.js +1 -1
- package/mission/model/enum/MissionTaskModelVerifyCompleteType.js.map +1 -1
- package/mission/model/enum/MissionTaskModelVerifyCompleteType.ts +1 -1
- package/mission/model/index.d.ts +2 -2
- package/mission/model/index.ts +2 -2
- package/mission/model/options/MissionGroupModelOptions.ts +1 -1
- package/mission/model/options/MissionGroupModelResetTypeIsDailyOptions.ts +1 -1
- package/mission/model/options/MissionGroupModelResetTypeIsMonthlyOptions.ts +1 -1
- package/mission/model/options/MissionGroupModelResetTypeIsNotResetOptions.ts +1 -1
- package/mission/model/options/MissionGroupModelResetTypeIsWeeklyOptions.ts +1 -1
- package/mission/model/options/MissionTaskModelOptions.d.ts +2 -2
- package/mission/model/options/MissionTaskModelOptions.ts +2 -2
- package/mission/model/options/MissionTaskModelVerifyCompleteTypeIsCounterOptions.d.ts +2 -2
- package/mission/model/options/MissionTaskModelVerifyCompleteTypeIsCounterOptions.ts +2 -2
- package/mission/model/options/MissionTaskModelVerifyCompleteTypeIsVerifyActionsOptions.d.ts +11 -0
- package/mission/model/options/MissionTaskModelVerifyCompleteTypeIsVerifyActionsOptions.js +3 -0
- package/mission/model/options/MissionTaskModelVerifyCompleteTypeIsVerifyActionsOptions.js.map +1 -0
- package/mission/model/options/MissionTaskModelVerifyCompleteTypeIsVerifyActionsOptions.ts +29 -0
- package/package.json +1 -1
- package/quest/model/QuestGroupModel.js.map +1 -1
- package/quest/model/QuestGroupModel.ts +1 -0
- package/quest/model/QuestModel.d.ts +1 -0
- package/quest/model/QuestModel.js +9 -4
- package/quest/model/QuestModel.js.map +1 -1
- package/quest/model/QuestModel.ts +7 -0
- package/quest/model/options/QuestGroupModelOptions.ts +1 -0
- package/quest/model/options/QuestModelOptions.d.ts +2 -0
- package/quest/model/options/QuestModelOptions.ts +2 -0
- package/script/model/Transaction.d.ts +1 -0
- package/script/model/Transaction.js +8 -3
- package/script/model/Transaction.js.map +1 -1
- package/script/model/Transaction.ts +7 -0
- package/script/model/options/TransactionOptions.d.ts +2 -0
- package/script/model/options/TransactionOptions.ts +2 -0
- package/showcase/model/DisplayItem.js.map +1 -1
- package/showcase/model/DisplayItem.ts +1 -0
- package/showcase/model/RandomDisplayItemModel.d.ts +1 -0
- package/showcase/model/RandomDisplayItemModel.js +7 -2
- package/showcase/model/RandomDisplayItemModel.js.map +1 -1
- package/showcase/model/RandomDisplayItemModel.ts +7 -0
- package/showcase/model/RandomShowcase.js.map +1 -1
- package/showcase/model/RandomShowcase.ts +1 -0
- package/showcase/model/SalesItem.d.ts +1 -0
- package/showcase/model/SalesItem.js +7 -2
- package/showcase/model/SalesItem.js.map +1 -1
- package/showcase/model/SalesItem.ts +7 -0
- package/showcase/model/SalesItemGroup.js.map +1 -1
- package/showcase/model/SalesItemGroup.ts +1 -0
- package/showcase/model/Showcase.js.map +1 -1
- package/showcase/model/Showcase.ts +1 -0
- package/showcase/model/options/DisplayItemOptions.ts +1 -0
- package/showcase/model/options/DisplayItemTypeIsSalesItemGroupOptions.ts +1 -0
- package/showcase/model/options/DisplayItemTypeIsSalesItemOptions.ts +1 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.d.ts +2 -0
- package/showcase/model/options/RandomDisplayItemModelOptions.ts +2 -0
- package/showcase/model/options/RandomShowcaseOptions.ts +1 -0
- package/showcase/model/options/SalesItemGroupOptions.ts +1 -0
- package/showcase/model/options/SalesItemOptions.d.ts +2 -0
- package/showcase/model/options/SalesItemOptions.ts +2 -0
- package/showcase/model/options/ShowcaseOptions.ts +1 -0
- package/skillTree/model/NodeModel.d.ts +1 -0
- package/skillTree/model/NodeModel.js +8 -3
- package/skillTree/model/NodeModel.js.map +1 -1
- package/skillTree/model/NodeModel.ts +7 -0
- package/skillTree/model/options/NodeModelOptions.d.ts +2 -0
- package/skillTree/model/options/NodeModelOptions.ts +2 -0
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import { TransactionOptions } from "./options/TransactionOptions";
|
|
19
20
|
|
|
20
21
|
export default class Transaction {
|
|
21
22
|
private readonly transactionId: string|null = null;
|
|
23
|
+
private readonly verifyActions: VerifyAction[]|null = null;
|
|
22
24
|
private readonly consumeActions: ConsumeAction[]|null = null;
|
|
23
25
|
private readonly acquireActions: AcquireAction[]|null = null;
|
|
24
26
|
|
|
@@ -26,6 +28,7 @@ export default class Transaction {
|
|
|
26
28
|
options: TransactionOptions|null = null,
|
|
27
29
|
) {
|
|
28
30
|
this.transactionId = options?.transactionId ?? null;
|
|
31
|
+
this.verifyActions = options?.verifyActions ?? null;
|
|
29
32
|
this.consumeActions = options?.consumeActions ?? null;
|
|
30
33
|
this.acquireActions = options?.acquireActions ?? null;
|
|
31
34
|
}
|
|
@@ -37,6 +40,10 @@ export default class Transaction {
|
|
|
37
40
|
if (this.transactionId != null) {
|
|
38
41
|
properties["transactionId"] = this.transactionId;
|
|
39
42
|
}
|
|
43
|
+
if (this.verifyActions != null) {
|
|
44
|
+
properties["verifyActions"] = this.verifyActions.map(v => v.properties(
|
|
45
|
+
));
|
|
46
|
+
}
|
|
40
47
|
if (this.consumeActions != null) {
|
|
41
48
|
properties["consumeActions"] = this.consumeActions.map(v => v.properties(
|
|
42
49
|
));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { VerifyAction } from "../../../core/model";
|
|
1
2
|
import { ConsumeAction } from "../../../core/model";
|
|
2
3
|
import { AcquireAction } from "../../../core/model";
|
|
3
4
|
export interface TransactionOptions {
|
|
4
5
|
transactionId?: string | null;
|
|
6
|
+
verifyActions?: VerifyAction[] | null;
|
|
5
7
|
consumeActions?: ConsumeAction[] | null;
|
|
6
8
|
acquireActions?: AcquireAction[] | null;
|
|
7
9
|
}
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
|
|
19
20
|
export interface TransactionOptions {
|
|
20
21
|
transactionId?: string|null;
|
|
22
|
+
verifyActions?: VerifyAction[]|null;
|
|
21
23
|
consumeActions?: ConsumeAction[]|null;
|
|
22
24
|
acquireActions?: AcquireAction[]|null;
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayItem.js","sourceRoot":"","sources":["DisplayItem.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"DisplayItem.js","sourceRoot":"","sources":["DisplayItem.ts"],"names":[],"mappings":";;AAuBA,4DAAyD;AAEzD,MAAqB,WAAW;IAO5B,YACI,aAAqB,EACrB,IAAqB,EACrB,UAAmC,IAAI;;QAP1B,cAAS,GAAmB,IAAI,CAAC;QACjC,mBAAc,GAAwB,IAAI,CAAC;QAC3C,uBAAkB,GAAgB,IAAI,CAAC;QAOpD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,mCAAI,IAAI,CAAC;QAC5C,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,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IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAzED,8BAyEC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import SalesItem from "./SalesItem";
|
|
@@ -6,6 +6,7 @@ export default class RandomDisplayItemModel {
|
|
|
6
6
|
private readonly stock;
|
|
7
7
|
private readonly weight;
|
|
8
8
|
private readonly metadata;
|
|
9
|
+
private readonly verifyActions;
|
|
9
10
|
private readonly consumeActions;
|
|
10
11
|
constructor(name: string, acquireActions: AcquireAction[], stock: number, weight: number, options?: RandomDisplayItemModelOptions | null);
|
|
11
12
|
properties(): {
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class RandomDisplayItemModel {
|
|
4
4
|
constructor(name, acquireActions, stock, weight, options = null) {
|
|
5
|
-
var _a, _b;
|
|
5
|
+
var _a, _b, _c;
|
|
6
6
|
this.metadata = null;
|
|
7
|
+
this.verifyActions = null;
|
|
7
8
|
this.consumeActions = null;
|
|
8
9
|
this.name = name;
|
|
9
10
|
this.acquireActions = acquireActions;
|
|
10
11
|
this.stock = stock;
|
|
11
12
|
this.weight = weight;
|
|
12
13
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
13
|
-
this.
|
|
14
|
+
this.verifyActions = (_b = options === null || options === void 0 ? void 0 : options.verifyActions) !== null && _b !== void 0 ? _b : null;
|
|
15
|
+
this.consumeActions = (_c = options === null || options === void 0 ? void 0 : options.consumeActions) !== null && _c !== void 0 ? _c : null;
|
|
14
16
|
}
|
|
15
17
|
properties() {
|
|
16
18
|
let properties = {};
|
|
@@ -20,6 +22,9 @@ class RandomDisplayItemModel {
|
|
|
20
22
|
if (this.metadata != null) {
|
|
21
23
|
properties["metadata"] = this.metadata;
|
|
22
24
|
}
|
|
25
|
+
if (this.verifyActions != null) {
|
|
26
|
+
properties["verifyActions"] = this.verifyActions.map(v => v.properties());
|
|
27
|
+
}
|
|
23
28
|
if (this.consumeActions != null) {
|
|
24
29
|
properties["consumeActions"] = this.consumeActions.map(v => v.properties());
|
|
25
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RandomDisplayItemModel.js","sourceRoot":"","sources":["RandomDisplayItemModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"RandomDisplayItemModel.js","sourceRoot":"","sources":["RandomDisplayItemModel.ts"],"names":[],"mappings":";;AAoBA,MAAqB,sBAAsB;IASvC,YACI,IAAY,EACZ,cAA+B,EAC/B,KAAa,EACb,MAAc,EACd,UAA8C,IAAI;;QATrC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,kBAAa,GAAwB,IAAI,CAAC;QAC1C,mBAAc,GAAyB,IAAI,CAAC;QASzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,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,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;SACpC;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;AAxDD,yCAwDC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import { RandomDisplayItemModelOptions } from "./options/RandomDisplayItemModelOptions";
|
|
@@ -23,6 +24,7 @@ export default class RandomDisplayItemModel {
|
|
|
23
24
|
private readonly stock: number;
|
|
24
25
|
private readonly weight: number;
|
|
25
26
|
private readonly metadata: string|null = null;
|
|
27
|
+
private readonly verifyActions: VerifyAction[]|null = null;
|
|
26
28
|
private readonly consumeActions: ConsumeAction[]|null = null;
|
|
27
29
|
|
|
28
30
|
public constructor(
|
|
@@ -37,6 +39,7 @@ export default class RandomDisplayItemModel {
|
|
|
37
39
|
this.stock = stock;
|
|
38
40
|
this.weight = weight;
|
|
39
41
|
this.metadata = options?.metadata ?? null;
|
|
42
|
+
this.verifyActions = options?.verifyActions ?? null;
|
|
40
43
|
this.consumeActions = options?.consumeActions ?? null;
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -50,6 +53,10 @@ export default class RandomDisplayItemModel {
|
|
|
50
53
|
if (this.metadata != null) {
|
|
51
54
|
properties["metadata"] = this.metadata;
|
|
52
55
|
}
|
|
56
|
+
if (this.verifyActions != null) {
|
|
57
|
+
properties["verifyActions"] = this.verifyActions.map(v => v.properties(
|
|
58
|
+
));
|
|
59
|
+
}
|
|
53
60
|
if (this.consumeActions != null) {
|
|
54
61
|
properties["consumeActions"] = this.consumeActions.map(v => v.properties(
|
|
55
62
|
));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RandomShowcase.js","sourceRoot":"","sources":["RandomShowcase.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"RandomShowcase.js","sourceRoot":"","sources":["RandomShowcase.ts"],"names":[],"mappings":";;AAqBA,MAAqB,cAAc;IAS/B,YACI,IAAY,EACZ,qBAA6B,EAC7B,YAAsC,EACtC,aAAqB,EACrB,kBAA0B,E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QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAvDD,iCAuDC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import RandomDisplayItemModel from "./RandomDisplayItemModel";
|
|
@@ -4,6 +4,7 @@ export default class SalesItem {
|
|
|
4
4
|
private readonly name;
|
|
5
5
|
private readonly acquireActions;
|
|
6
6
|
private readonly metadata;
|
|
7
|
+
private readonly verifyActions;
|
|
7
8
|
private readonly consumeActions;
|
|
8
9
|
constructor(name: string, acquireActions: AcquireAction[], options?: SalesItemOptions | null);
|
|
9
10
|
properties(): {
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class SalesItem {
|
|
4
4
|
constructor(name, acquireActions, options = null) {
|
|
5
|
-
var _a, _b;
|
|
5
|
+
var _a, _b, _c;
|
|
6
6
|
this.metadata = null;
|
|
7
|
+
this.verifyActions = null;
|
|
7
8
|
this.consumeActions = null;
|
|
8
9
|
this.name = name;
|
|
9
10
|
this.acquireActions = acquireActions;
|
|
10
11
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
11
|
-
this.
|
|
12
|
+
this.verifyActions = (_b = options === null || options === void 0 ? void 0 : options.verifyActions) !== null && _b !== void 0 ? _b : null;
|
|
13
|
+
this.consumeActions = (_c = options === null || options === void 0 ? void 0 : options.consumeActions) !== null && _c !== void 0 ? _c : null;
|
|
12
14
|
}
|
|
13
15
|
properties() {
|
|
14
16
|
let properties = {};
|
|
@@ -18,6 +20,9 @@ class SalesItem {
|
|
|
18
20
|
if (this.metadata != null) {
|
|
19
21
|
properties["metadata"] = this.metadata;
|
|
20
22
|
}
|
|
23
|
+
if (this.verifyActions != null) {
|
|
24
|
+
properties["verifyActions"] = this.verifyActions.map(v => v.properties());
|
|
25
|
+
}
|
|
21
26
|
if (this.consumeActions != null) {
|
|
22
27
|
properties["consumeActions"] = this.consumeActions.map(v => v.properties());
|
|
23
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesItem.js","sourceRoot":"","sources":["SalesItem.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SalesItem.js","sourceRoot":"","sources":["SalesItem.ts"],"names":[],"mappings":";;AAoBA,MAAqB,SAAS;IAO1B,YACI,IAAY,EACZ,cAA+B,EAC/B,UAAiC,IAAI;;QAPxB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,kBAAa,GAAwB,IAAI,CAAC;QAC1C,mBAAc,GAAyB,IAAI,CAAC;QAOzD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,mCAAI,IAAI,CAAC;QACpD,IAAI,CAAC,cAAc,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,IAAI,CAAC;IAC1D,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,aAAa,IAAI,IAAI,EAAE;YAC5B,UAAU,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;YAC7B,UAAU,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACnE,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AA5CD,4BA4CC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import { SalesItemOptions } from "./options/SalesItemOptions";
|
|
@@ -21,6 +22,7 @@ export default class SalesItem {
|
|
|
21
22
|
private readonly name: string;
|
|
22
23
|
private readonly acquireActions: AcquireAction[];
|
|
23
24
|
private readonly metadata: string|null = null;
|
|
25
|
+
private readonly verifyActions: VerifyAction[]|null = null;
|
|
24
26
|
private readonly consumeActions: ConsumeAction[]|null = null;
|
|
25
27
|
|
|
26
28
|
public constructor(
|
|
@@ -31,6 +33,7 @@ export default class SalesItem {
|
|
|
31
33
|
this.name = name;
|
|
32
34
|
this.acquireActions = acquireActions;
|
|
33
35
|
this.metadata = options?.metadata ?? null;
|
|
36
|
+
this.verifyActions = options?.verifyActions ?? null;
|
|
34
37
|
this.consumeActions = options?.consumeActions ?? null;
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -44,6 +47,10 @@ export default class SalesItem {
|
|
|
44
47
|
if (this.metadata != null) {
|
|
45
48
|
properties["metadata"] = this.metadata;
|
|
46
49
|
}
|
|
50
|
+
if (this.verifyActions != null) {
|
|
51
|
+
properties["verifyActions"] = this.verifyActions.map(v => v.properties(
|
|
52
|
+
));
|
|
53
|
+
}
|
|
47
54
|
if (this.consumeActions != null) {
|
|
48
55
|
properties["consumeActions"] = this.consumeActions.map(v => v.properties(
|
|
49
56
|
));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SalesItemGroup.js","sourceRoot":"","sources":["SalesItemGroup.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SalesItemGroup.js","sourceRoot":"","sources":["SalesItemGroup.ts"],"names":[],"mappings":";;AAqBA,MAAqB,cAAc;IAK/B,YACI,IAAY,EACZ,UAAuB,EACvB,UAAsC,IAAI;;QAL7B,aAAQ,GAAgB,IAAI,CAAC;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,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,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,UAAU,IAAI,IAAI,EAAE;YACzB,UAAU,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC3D,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAhCD,iCAgCC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import SalesItem from "./SalesItem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Showcase.js","sourceRoot":"","sources":["Showcase.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Showcase.js","sourceRoot":"","sources":["Showcase.ts"],"names":[],"mappings":";;AAuBA,MAAqB,QAAQ;IAMzB,YACI,IAAY,EACZ,YAA2B,EAC3B,UAAgC,IAAI;;QANvB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,uBAAkB,GAAgB,IAAI,CAAC;QAOpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC;QAC1C,IAAI,CAAC,kBAAkB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,IAAI,CAAC;IAClE,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,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,EAAE;YAC3B,UAAU,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/D,CAAC,CAAC;SACV;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AArCD,2BAqCC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import SalesItem from "./SalesItem";
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
import SalesItem from "../SalesItem";
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
import SalesItem from "../SalesItem";
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
import SalesItem from "../SalesItem";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { VerifyAction } from "../../../core/model";
|
|
1
2
|
import { ConsumeAction } from "../../../core/model";
|
|
2
3
|
export interface RandomDisplayItemModelOptions {
|
|
3
4
|
metadata?: string | null;
|
|
5
|
+
verifyActions?: VerifyAction[] | null;
|
|
4
6
|
consumeActions?: ConsumeAction[] | null;
|
|
5
7
|
}
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
|
|
19
20
|
export interface RandomDisplayItemModelOptions {
|
|
20
21
|
metadata?: string|null;
|
|
22
|
+
verifyActions?: VerifyAction[]|null;
|
|
21
23
|
consumeActions?: ConsumeAction[]|null;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
import RandomDisplayItemModel from "../RandomDisplayItemModel";
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
import SalesItem from "../SalesItem";
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
|
|
19
20
|
export interface SalesItemOptions {
|
|
20
21
|
metadata?: string|null;
|
|
22
|
+
verifyActions?: VerifyAction[]|null;
|
|
21
23
|
consumeActions?: ConsumeAction[]|null;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
import SalesItem from "../SalesItem";
|
|
@@ -5,6 +5,7 @@ export default class NodeModel {
|
|
|
5
5
|
private readonly releaseConsumeActions;
|
|
6
6
|
private readonly restrainReturnRate;
|
|
7
7
|
private readonly metadata;
|
|
8
|
+
private readonly releaseVerifyActions;
|
|
8
9
|
private readonly returnAcquireActions;
|
|
9
10
|
private readonly premiseNodeNames;
|
|
10
11
|
constructor(name: string, releaseConsumeActions: ConsumeAction[], restrainReturnRate: number, options?: NodeModelOptions | null);
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
class NodeModel {
|
|
4
4
|
constructor(name, releaseConsumeActions, restrainReturnRate, options = null) {
|
|
5
|
-
var _a, _b, _c;
|
|
5
|
+
var _a, _b, _c, _d;
|
|
6
6
|
this.metadata = null;
|
|
7
|
+
this.releaseVerifyActions = null;
|
|
7
8
|
this.returnAcquireActions = null;
|
|
8
9
|
this.premiseNodeNames = null;
|
|
9
10
|
this.name = name;
|
|
10
11
|
this.releaseConsumeActions = releaseConsumeActions;
|
|
11
12
|
this.restrainReturnRate = restrainReturnRate;
|
|
12
13
|
this.metadata = (_a = options === null || options === void 0 ? void 0 : options.metadata) !== null && _a !== void 0 ? _a : null;
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
14
|
+
this.releaseVerifyActions = (_b = options === null || options === void 0 ? void 0 : options.releaseVerifyActions) !== null && _b !== void 0 ? _b : null;
|
|
15
|
+
this.returnAcquireActions = (_c = options === null || options === void 0 ? void 0 : options.returnAcquireActions) !== null && _c !== void 0 ? _c : null;
|
|
16
|
+
this.premiseNodeNames = (_d = options === null || options === void 0 ? void 0 : options.premiseNodeNames) !== null && _d !== void 0 ? _d : null;
|
|
15
17
|
}
|
|
16
18
|
properties() {
|
|
17
19
|
let properties = {};
|
|
@@ -21,6 +23,9 @@ class NodeModel {
|
|
|
21
23
|
if (this.metadata != null) {
|
|
22
24
|
properties["metadata"] = this.metadata;
|
|
23
25
|
}
|
|
26
|
+
if (this.releaseVerifyActions != null) {
|
|
27
|
+
properties["releaseVerifyActions"] = this.releaseVerifyActions.map(v => v.properties());
|
|
28
|
+
}
|
|
24
29
|
if (this.releaseConsumeActions != null) {
|
|
25
30
|
properties["releaseConsumeActions"] = this.releaseConsumeActions.map(v => v.properties());
|
|
26
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeModel.js","sourceRoot":"","sources":["NodeModel.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"N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C,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAC/E,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,qBAAqB,IAAI,IAAI,EAAE;YACpC,UAAU,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EACjF,CAAC,CAAC;SACV;QACD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE;YACjC,UAAU,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC;SAC9D;QACD,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;YAC/B,UAAU,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC;SAC1D;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAnDD,4BAmDC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../core/model";
|
|
18
19
|
import { NodeModelOptions } from "./options/NodeModelOptions";
|
|
@@ -22,6 +23,7 @@ export default class NodeModel {
|
|
|
22
23
|
private readonly releaseConsumeActions: ConsumeAction[];
|
|
23
24
|
private readonly restrainReturnRate: number;
|
|
24
25
|
private readonly metadata: string|null = null;
|
|
26
|
+
private readonly releaseVerifyActions: VerifyAction[]|null = null;
|
|
25
27
|
private readonly returnAcquireActions: AcquireAction[]|null = null;
|
|
26
28
|
private readonly premiseNodeNames: string[]|null = null;
|
|
27
29
|
|
|
@@ -35,6 +37,7 @@ export default class NodeModel {
|
|
|
35
37
|
this.releaseConsumeActions = releaseConsumeActions;
|
|
36
38
|
this.restrainReturnRate = restrainReturnRate;
|
|
37
39
|
this.metadata = options?.metadata ?? null;
|
|
40
|
+
this.releaseVerifyActions = options?.releaseVerifyActions ?? null;
|
|
38
41
|
this.returnAcquireActions = options?.returnAcquireActions ?? null;
|
|
39
42
|
this.premiseNodeNames = options?.premiseNodeNames ?? null;
|
|
40
43
|
}
|
|
@@ -49,6 +52,10 @@ export default class NodeModel {
|
|
|
49
52
|
if (this.metadata != null) {
|
|
50
53
|
properties["metadata"] = this.metadata;
|
|
51
54
|
}
|
|
55
|
+
if (this.releaseVerifyActions != null) {
|
|
56
|
+
properties["releaseVerifyActions"] = this.releaseVerifyActions.map(v => v.properties(
|
|
57
|
+
));
|
|
58
|
+
}
|
|
52
59
|
if (this.releaseConsumeActions != null) {
|
|
53
60
|
properties["releaseConsumeActions"] = this.releaseConsumeActions.map(v => v.properties(
|
|
54
61
|
));
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { VerifyAction } from "../../../core/model";
|
|
1
2
|
import { AcquireAction } from "../../../core/model";
|
|
2
3
|
export interface NodeModelOptions {
|
|
3
4
|
metadata?: string | null;
|
|
5
|
+
releaseVerifyActions?: VerifyAction[] | null;
|
|
4
6
|
returnAcquireActions?: AcquireAction[] | null;
|
|
5
7
|
premiseNodeNames?: string[] | null;
|
|
6
8
|
}
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* express or implied. See the License for the specific language governing
|
|
14
14
|
* permissions and limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { VerifyAction } from "../../../core/model";
|
|
16
17
|
import { ConsumeAction } from "../../../core/model";
|
|
17
18
|
import { AcquireAction } from "../../../core/model";
|
|
18
19
|
|
|
19
20
|
export interface NodeModelOptions {
|
|
20
21
|
metadata?: string|null;
|
|
22
|
+
releaseVerifyActions?: VerifyAction[]|null;
|
|
21
23
|
returnAcquireActions?: AcquireAction[]|null;
|
|
22
24
|
premiseNodeNames?: string[]|null;
|
|
23
25
|
}
|