gs2 1.4.51 → 1.4.53

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.
Files changed (59) hide show
  1. package/account/model/Namespace.d.ts +4 -0
  2. package/account/model/Namespace.js +16 -2
  3. package/account/model/Namespace.js.map +1 -1
  4. package/account/model/Namespace.ts +14 -0
  5. package/account/request/CreateNamespaceRequest.d.ts +4 -0
  6. package/account/request/CreateNamespaceRequest.js +16 -2
  7. package/account/request/CreateNamespaceRequest.js.map +1 -1
  8. package/account/request/CreateNamespaceRequest.ts +14 -0
  9. package/account/request/UpdateNamespaceRequest.d.ts +4 -0
  10. package/account/request/UpdateNamespaceRequest.js +16 -2
  11. package/account/request/UpdateNamespaceRequest.js.map +1 -1
  12. package/account/request/UpdateNamespaceRequest.ts +14 -0
  13. package/account/rest.js +6 -4
  14. package/account/rest.js.map +1 -1
  15. package/account/rest.ts +2 -0
  16. package/formation/rest.js +2 -2
  17. package/formation/rest.js.map +1 -1
  18. package/formation/rest.ts +2 -2
  19. package/inbox/request/BatchReadMessagesByUserIdRequest.d.ts +42 -0
  20. package/inbox/request/BatchReadMessagesByUserIdRequest.js +151 -0
  21. package/inbox/request/BatchReadMessagesByUserIdRequest.js.map +1 -0
  22. package/inbox/request/BatchReadMessagesByUserIdRequest.ts +163 -0
  23. package/inbox/request/BatchReadMessagesRequest.d.ts +38 -0
  24. package/inbox/request/BatchReadMessagesRequest.js +137 -0
  25. package/inbox/request/BatchReadMessagesRequest.js.map +1 -0
  26. package/inbox/request/BatchReadMessagesRequest.ts +149 -0
  27. package/inbox/request/index.d.ts +3 -1
  28. package/inbox/request/index.js +5 -1
  29. package/inbox/request/index.js.map +1 -1
  30. package/inbox/request/index.ts +4 -0
  31. package/inbox/rest.d.ts +2 -0
  32. package/inbox/rest.js +69 -0
  33. package/inbox/rest.js.map +1 -1
  34. package/inbox/rest.ts +77 -0
  35. package/inbox/result/BatchReadMessagesByUserIdResult.d.ts +43 -0
  36. package/inbox/result/BatchReadMessagesByUserIdResult.js +153 -0
  37. package/inbox/result/BatchReadMessagesByUserIdResult.js.map +1 -0
  38. package/inbox/result/BatchReadMessagesByUserIdResult.ts +175 -0
  39. package/inbox/result/BatchReadMessagesResult.d.ts +43 -0
  40. package/inbox/result/BatchReadMessagesResult.js +153 -0
  41. package/inbox/result/BatchReadMessagesResult.js.map +1 -0
  42. package/inbox/result/BatchReadMessagesResult.ts +175 -0
  43. package/inbox/result/index.d.ts +3 -1
  44. package/inbox/result/index.js +5 -1
  45. package/inbox/result/index.js.map +1 -1
  46. package/inbox/result/index.ts +4 -0
  47. package/package.json +1 -1
  48. package/script/result/DebugInvokeResult.d.ts +9 -0
  49. package/script/result/DebugInvokeResult.js +30 -1
  50. package/script/result/DebugInvokeResult.js.map +1 -1
  51. package/script/result/DebugInvokeResult.ts +35 -0
  52. package/script/result/InvokeByStampSheetResult.d.ts +9 -0
  53. package/script/result/InvokeByStampSheetResult.js +30 -1
  54. package/script/result/InvokeByStampSheetResult.js.map +1 -1
  55. package/script/result/InvokeByStampSheetResult.ts +35 -0
  56. package/script/result/InvokeScriptResult.d.ts +9 -0
  57. package/script/result/InvokeScriptResult.js +30 -1
  58. package/script/result/InvokeScriptResult.js.map +1 -1
  59. package/script/result/InvokeScriptResult.ts +35 -0
@@ -0,0 +1,153 @@
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
+ var tslib_1 = require("tslib");
19
+ var Gs2Inbox = tslib_1.__importStar(require("../model"));
20
+ var Gs2Core = tslib_1.__importStar(require("../../core"));
21
+ var BatchReadMessagesByUserIdResult = /** @class */ (function () {
22
+ function BatchReadMessagesByUserIdResult() {
23
+ this.items = null;
24
+ this.transactionId = null;
25
+ this.stampSheet = null;
26
+ this.stampSheetEncryptionKeyId = null;
27
+ this.autoRunStampSheet = null;
28
+ this.atomicCommit = null;
29
+ this.transaction = null;
30
+ this.transactionResult = null;
31
+ }
32
+ BatchReadMessagesByUserIdResult.prototype.getItems = function () {
33
+ return this.items;
34
+ };
35
+ BatchReadMessagesByUserIdResult.prototype.setItems = function (items) {
36
+ this.items = items;
37
+ return this;
38
+ };
39
+ BatchReadMessagesByUserIdResult.prototype.withItems = function (items) {
40
+ this.items = items;
41
+ return this;
42
+ };
43
+ BatchReadMessagesByUserIdResult.prototype.getTransactionId = function () {
44
+ return this.transactionId;
45
+ };
46
+ BatchReadMessagesByUserIdResult.prototype.setTransactionId = function (transactionId) {
47
+ this.transactionId = transactionId;
48
+ return this;
49
+ };
50
+ BatchReadMessagesByUserIdResult.prototype.withTransactionId = function (transactionId) {
51
+ this.transactionId = transactionId;
52
+ return this;
53
+ };
54
+ BatchReadMessagesByUserIdResult.prototype.getStampSheet = function () {
55
+ return this.stampSheet;
56
+ };
57
+ BatchReadMessagesByUserIdResult.prototype.setStampSheet = function (stampSheet) {
58
+ this.stampSheet = stampSheet;
59
+ return this;
60
+ };
61
+ BatchReadMessagesByUserIdResult.prototype.withStampSheet = function (stampSheet) {
62
+ this.stampSheet = stampSheet;
63
+ return this;
64
+ };
65
+ BatchReadMessagesByUserIdResult.prototype.getStampSheetEncryptionKeyId = function () {
66
+ return this.stampSheetEncryptionKeyId;
67
+ };
68
+ BatchReadMessagesByUserIdResult.prototype.setStampSheetEncryptionKeyId = function (stampSheetEncryptionKeyId) {
69
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
70
+ return this;
71
+ };
72
+ BatchReadMessagesByUserIdResult.prototype.withStampSheetEncryptionKeyId = function (stampSheetEncryptionKeyId) {
73
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
74
+ return this;
75
+ };
76
+ BatchReadMessagesByUserIdResult.prototype.getAutoRunStampSheet = function () {
77
+ return this.autoRunStampSheet;
78
+ };
79
+ BatchReadMessagesByUserIdResult.prototype.setAutoRunStampSheet = function (autoRunStampSheet) {
80
+ this.autoRunStampSheet = autoRunStampSheet;
81
+ return this;
82
+ };
83
+ BatchReadMessagesByUserIdResult.prototype.withAutoRunStampSheet = function (autoRunStampSheet) {
84
+ this.autoRunStampSheet = autoRunStampSheet;
85
+ return this;
86
+ };
87
+ BatchReadMessagesByUserIdResult.prototype.getAtomicCommit = function () {
88
+ return this.atomicCommit;
89
+ };
90
+ BatchReadMessagesByUserIdResult.prototype.setAtomicCommit = function (atomicCommit) {
91
+ this.atomicCommit = atomicCommit;
92
+ return this;
93
+ };
94
+ BatchReadMessagesByUserIdResult.prototype.withAtomicCommit = function (atomicCommit) {
95
+ this.atomicCommit = atomicCommit;
96
+ return this;
97
+ };
98
+ BatchReadMessagesByUserIdResult.prototype.getTransaction = function () {
99
+ return this.transaction;
100
+ };
101
+ BatchReadMessagesByUserIdResult.prototype.setTransaction = function (transaction) {
102
+ this.transaction = transaction;
103
+ return this;
104
+ };
105
+ BatchReadMessagesByUserIdResult.prototype.withTransaction = function (transaction) {
106
+ this.transaction = transaction;
107
+ return this;
108
+ };
109
+ BatchReadMessagesByUserIdResult.prototype.getTransactionResult = function () {
110
+ return this.transactionResult;
111
+ };
112
+ BatchReadMessagesByUserIdResult.prototype.setTransactionResult = function (transactionResult) {
113
+ this.transactionResult = transactionResult;
114
+ return this;
115
+ };
116
+ BatchReadMessagesByUserIdResult.prototype.withTransactionResult = function (transactionResult) {
117
+ this.transactionResult = transactionResult;
118
+ return this;
119
+ };
120
+ BatchReadMessagesByUserIdResult.fromDict = function (data) {
121
+ return new BatchReadMessagesByUserIdResult()
122
+ .withItems(data.items ?
123
+ data.items.map(function (item) {
124
+ return Gs2Inbox.Message.fromDict(item);
125
+ }) : null)
126
+ .withTransactionId(data["transactionId"])
127
+ .withStampSheet(data["stampSheet"])
128
+ .withStampSheetEncryptionKeyId(data["stampSheetEncryptionKeyId"])
129
+ .withAutoRunStampSheet(data["autoRunStampSheet"])
130
+ .withAtomicCommit(data["atomicCommit"])
131
+ .withTransaction(data["transaction"])
132
+ .withTransactionResult(Gs2Core.TransactionResult.fromDict(data["transactionResult"]));
133
+ };
134
+ BatchReadMessagesByUserIdResult.prototype.toDict = function () {
135
+ var _a;
136
+ return {
137
+ "items": this.getItems() ?
138
+ this.getItems().map(function (item) {
139
+ return item.toDict();
140
+ }) : null,
141
+ "transactionId": this.getTransactionId(),
142
+ "stampSheet": this.getStampSheet(),
143
+ "stampSheetEncryptionKeyId": this.getStampSheetEncryptionKeyId(),
144
+ "autoRunStampSheet": this.getAutoRunStampSheet(),
145
+ "atomicCommit": this.getAtomicCommit(),
146
+ "transaction": this.getTransaction(),
147
+ "transactionResult": (_a = this.getTransactionResult()) === null || _a === void 0 ? void 0 : _a.toDict(),
148
+ };
149
+ };
150
+ return BatchReadMessagesByUserIdResult;
151
+ }());
152
+ exports.default = BatchReadMessagesByUserIdResult;
153
+ //# sourceMappingURL=BatchReadMessagesByUserIdResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BatchReadMessagesByUserIdResult.js","sourceRoot":"","sources":["BatchReadMessagesByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yDAAoC;AACpC,0DAAqC;AAErC;IAAA;QACY,UAAK,GAA4B,IAAI,CAAC;QACtC,kBAAa,GAAgB,IAAI,CAAC;QAClC,eAAU,GAAgB,IAAI,CAAC;QAC/B,8BAAyB,GAAgB,IAAI,CAAC;QAC9C,sBAAiB,GAAiB,IAAI,CAAC;QACvC,iBAAY,GAAiB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CA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pC,mBAAmB,EAAE,MAAA,IAAI,CAAC,oBAAoB,EAAE,0CAAE,MAAM,EAAE;SAC7D,CAAC;IACN,CAAC;IACL,sCAAC;AAAD,CAAC,AA1JD,IA0JC"}
@@ -0,0 +1,175 @@
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 IResult from '../../core/interface/IResult';
18
+ import * as Gs2Inbox from '../model'
19
+ import * as Gs2Core from '../../core'
20
+
21
+ export default class BatchReadMessagesByUserIdResult implements IResult {
22
+ private items: Gs2Inbox.Message[]|null = null;
23
+ private transactionId: string|null = null;
24
+ private stampSheet: string|null = null;
25
+ private stampSheetEncryptionKeyId: string|null = null;
26
+ private autoRunStampSheet: boolean|null = null;
27
+ private atomicCommit: boolean|null = null;
28
+ private transaction: string|null = null;
29
+ private transactionResult: Gs2Core.TransactionResult|null = null;
30
+
31
+ public getItems(): Gs2Inbox.Message[]|null {
32
+ return this.items;
33
+ }
34
+
35
+ public setItems(items: Gs2Inbox.Message[]|null) {
36
+ this.items = items;
37
+ return this;
38
+ }
39
+
40
+ public withItems(items: Gs2Inbox.Message[]|null): this {
41
+ this.items = items;
42
+ return this;
43
+ }
44
+
45
+ public getTransactionId(): string|null {
46
+ return this.transactionId;
47
+ }
48
+
49
+ public setTransactionId(transactionId: string|null) {
50
+ this.transactionId = transactionId;
51
+ return this;
52
+ }
53
+
54
+ public withTransactionId(transactionId: string|null): this {
55
+ this.transactionId = transactionId;
56
+ return this;
57
+ }
58
+
59
+ public getStampSheet(): string|null {
60
+ return this.stampSheet;
61
+ }
62
+
63
+ public setStampSheet(stampSheet: string|null) {
64
+ this.stampSheet = stampSheet;
65
+ return this;
66
+ }
67
+
68
+ public withStampSheet(stampSheet: string|null): this {
69
+ this.stampSheet = stampSheet;
70
+ return this;
71
+ }
72
+
73
+ public getStampSheetEncryptionKeyId(): string|null {
74
+ return this.stampSheetEncryptionKeyId;
75
+ }
76
+
77
+ public setStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string|null) {
78
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
79
+ return this;
80
+ }
81
+
82
+ public withStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string|null): this {
83
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
84
+ return this;
85
+ }
86
+
87
+ public getAutoRunStampSheet(): boolean|null {
88
+ return this.autoRunStampSheet;
89
+ }
90
+
91
+ public setAutoRunStampSheet(autoRunStampSheet: boolean|null) {
92
+ this.autoRunStampSheet = autoRunStampSheet;
93
+ return this;
94
+ }
95
+
96
+ public withAutoRunStampSheet(autoRunStampSheet: boolean|null): this {
97
+ this.autoRunStampSheet = autoRunStampSheet;
98
+ return this;
99
+ }
100
+
101
+ public getAtomicCommit(): boolean|null {
102
+ return this.atomicCommit;
103
+ }
104
+
105
+ public setAtomicCommit(atomicCommit: boolean|null) {
106
+ this.atomicCommit = atomicCommit;
107
+ return this;
108
+ }
109
+
110
+ public withAtomicCommit(atomicCommit: boolean|null): this {
111
+ this.atomicCommit = atomicCommit;
112
+ return this;
113
+ }
114
+
115
+ public getTransaction(): string|null {
116
+ return this.transaction;
117
+ }
118
+
119
+ public setTransaction(transaction: string|null) {
120
+ this.transaction = transaction;
121
+ return this;
122
+ }
123
+
124
+ public withTransaction(transaction: string|null): this {
125
+ this.transaction = transaction;
126
+ return this;
127
+ }
128
+
129
+ public getTransactionResult(): Gs2Core.TransactionResult|null {
130
+ return this.transactionResult;
131
+ }
132
+
133
+ public setTransactionResult(transactionResult: Gs2Core.TransactionResult|null) {
134
+ this.transactionResult = transactionResult;
135
+ return this;
136
+ }
137
+
138
+ public withTransactionResult(transactionResult: Gs2Core.TransactionResult|null): this {
139
+ this.transactionResult = transactionResult;
140
+ return this;
141
+ }
142
+
143
+ public static fromDict(data: {[key: string]: any}): BatchReadMessagesByUserIdResult {
144
+ return new BatchReadMessagesByUserIdResult()
145
+ .withItems(data.items ?
146
+ data.items.map((item: {[key: string]: any}) => {
147
+ return Gs2Inbox.Message.fromDict(item);
148
+ }
149
+ ) : null)
150
+ .withTransactionId(data["transactionId"])
151
+ .withStampSheet(data["stampSheet"])
152
+ .withStampSheetEncryptionKeyId(data["stampSheetEncryptionKeyId"])
153
+ .withAutoRunStampSheet(data["autoRunStampSheet"])
154
+ .withAtomicCommit(data["atomicCommit"])
155
+ .withTransaction(data["transaction"])
156
+ .withTransactionResult(Gs2Core.TransactionResult.fromDict(data["transactionResult"]));
157
+ }
158
+
159
+ public toDict(): {[key: string]: any} {
160
+ return {
161
+ "items": this.getItems() ?
162
+ this.getItems()!.map((item: Gs2Inbox.Message) => {
163
+ return item.toDict();
164
+ }
165
+ ) : null,
166
+ "transactionId": this.getTransactionId(),
167
+ "stampSheet": this.getStampSheet(),
168
+ "stampSheetEncryptionKeyId": this.getStampSheetEncryptionKeyId(),
169
+ "autoRunStampSheet": this.getAutoRunStampSheet(),
170
+ "atomicCommit": this.getAtomicCommit(),
171
+ "transaction": this.getTransaction(),
172
+ "transactionResult": this.getTransactionResult()?.toDict(),
173
+ };
174
+ }
175
+ }
@@ -0,0 +1,43 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Inbox from '../model';
3
+ import * as Gs2Core from '../../core';
4
+ export default class BatchReadMessagesResult implements IResult {
5
+ private items;
6
+ private transactionId;
7
+ private stampSheet;
8
+ private stampSheetEncryptionKeyId;
9
+ private autoRunStampSheet;
10
+ private atomicCommit;
11
+ private transaction;
12
+ private transactionResult;
13
+ getItems(): Gs2Inbox.Message[] | null;
14
+ setItems(items: Gs2Inbox.Message[] | null): this;
15
+ withItems(items: Gs2Inbox.Message[] | null): this;
16
+ getTransactionId(): string | null;
17
+ setTransactionId(transactionId: string | null): this;
18
+ withTransactionId(transactionId: string | null): this;
19
+ getStampSheet(): string | null;
20
+ setStampSheet(stampSheet: string | null): this;
21
+ withStampSheet(stampSheet: string | null): this;
22
+ getStampSheetEncryptionKeyId(): string | null;
23
+ setStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string | null): this;
24
+ withStampSheetEncryptionKeyId(stampSheetEncryptionKeyId: string | null): this;
25
+ getAutoRunStampSheet(): boolean | null;
26
+ setAutoRunStampSheet(autoRunStampSheet: boolean | null): this;
27
+ withAutoRunStampSheet(autoRunStampSheet: boolean | null): this;
28
+ getAtomicCommit(): boolean | null;
29
+ setAtomicCommit(atomicCommit: boolean | null): this;
30
+ withAtomicCommit(atomicCommit: boolean | null): this;
31
+ getTransaction(): string | null;
32
+ setTransaction(transaction: string | null): this;
33
+ withTransaction(transaction: string | null): this;
34
+ getTransactionResult(): Gs2Core.TransactionResult | null;
35
+ setTransactionResult(transactionResult: Gs2Core.TransactionResult | null): this;
36
+ withTransactionResult(transactionResult: Gs2Core.TransactionResult | null): this;
37
+ static fromDict(data: {
38
+ [key: string]: any;
39
+ }): BatchReadMessagesResult;
40
+ toDict(): {
41
+ [key: string]: any;
42
+ };
43
+ }
@@ -0,0 +1,153 @@
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
+ var tslib_1 = require("tslib");
19
+ var Gs2Inbox = tslib_1.__importStar(require("../model"));
20
+ var Gs2Core = tslib_1.__importStar(require("../../core"));
21
+ var BatchReadMessagesResult = /** @class */ (function () {
22
+ function BatchReadMessagesResult() {
23
+ this.items = null;
24
+ this.transactionId = null;
25
+ this.stampSheet = null;
26
+ this.stampSheetEncryptionKeyId = null;
27
+ this.autoRunStampSheet = null;
28
+ this.atomicCommit = null;
29
+ this.transaction = null;
30
+ this.transactionResult = null;
31
+ }
32
+ BatchReadMessagesResult.prototype.getItems = function () {
33
+ return this.items;
34
+ };
35
+ BatchReadMessagesResult.prototype.setItems = function (items) {
36
+ this.items = items;
37
+ return this;
38
+ };
39
+ BatchReadMessagesResult.prototype.withItems = function (items) {
40
+ this.items = items;
41
+ return this;
42
+ };
43
+ BatchReadMessagesResult.prototype.getTransactionId = function () {
44
+ return this.transactionId;
45
+ };
46
+ BatchReadMessagesResult.prototype.setTransactionId = function (transactionId) {
47
+ this.transactionId = transactionId;
48
+ return this;
49
+ };
50
+ BatchReadMessagesResult.prototype.withTransactionId = function (transactionId) {
51
+ this.transactionId = transactionId;
52
+ return this;
53
+ };
54
+ BatchReadMessagesResult.prototype.getStampSheet = function () {
55
+ return this.stampSheet;
56
+ };
57
+ BatchReadMessagesResult.prototype.setStampSheet = function (stampSheet) {
58
+ this.stampSheet = stampSheet;
59
+ return this;
60
+ };
61
+ BatchReadMessagesResult.prototype.withStampSheet = function (stampSheet) {
62
+ this.stampSheet = stampSheet;
63
+ return this;
64
+ };
65
+ BatchReadMessagesResult.prototype.getStampSheetEncryptionKeyId = function () {
66
+ return this.stampSheetEncryptionKeyId;
67
+ };
68
+ BatchReadMessagesResult.prototype.setStampSheetEncryptionKeyId = function (stampSheetEncryptionKeyId) {
69
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
70
+ return this;
71
+ };
72
+ BatchReadMessagesResult.prototype.withStampSheetEncryptionKeyId = function (stampSheetEncryptionKeyId) {
73
+ this.stampSheetEncryptionKeyId = stampSheetEncryptionKeyId;
74
+ return this;
75
+ };
76
+ BatchReadMessagesResult.prototype.getAutoRunStampSheet = function () {
77
+ return this.autoRunStampSheet;
78
+ };
79
+ BatchReadMessagesResult.prototype.setAutoRunStampSheet = function (autoRunStampSheet) {
80
+ this.autoRunStampSheet = autoRunStampSheet;
81
+ return this;
82
+ };
83
+ BatchReadMessagesResult.prototype.withAutoRunStampSheet = function (autoRunStampSheet) {
84
+ this.autoRunStampSheet = autoRunStampSheet;
85
+ return this;
86
+ };
87
+ BatchReadMessagesResult.prototype.getAtomicCommit = function () {
88
+ return this.atomicCommit;
89
+ };
90
+ BatchReadMessagesResult.prototype.setAtomicCommit = function (atomicCommit) {
91
+ this.atomicCommit = atomicCommit;
92
+ return this;
93
+ };
94
+ BatchReadMessagesResult.prototype.withAtomicCommit = function (atomicCommit) {
95
+ this.atomicCommit = atomicCommit;
96
+ return this;
97
+ };
98
+ BatchReadMessagesResult.prototype.getTransaction = function () {
99
+ return this.transaction;
100
+ };
101
+ BatchReadMessagesResult.prototype.setTransaction = function (transaction) {
102
+ this.transaction = transaction;
103
+ return this;
104
+ };
105
+ BatchReadMessagesResult.prototype.withTransaction = function (transaction) {
106
+ this.transaction = transaction;
107
+ return this;
108
+ };
109
+ BatchReadMessagesResult.prototype.getTransactionResult = function () {
110
+ return this.transactionResult;
111
+ };
112
+ BatchReadMessagesResult.prototype.setTransactionResult = function (transactionResult) {
113
+ this.transactionResult = transactionResult;
114
+ return this;
115
+ };
116
+ BatchReadMessagesResult.prototype.withTransactionResult = function (transactionResult) {
117
+ this.transactionResult = transactionResult;
118
+ return this;
119
+ };
120
+ BatchReadMessagesResult.fromDict = function (data) {
121
+ return new BatchReadMessagesResult()
122
+ .withItems(data.items ?
123
+ data.items.map(function (item) {
124
+ return Gs2Inbox.Message.fromDict(item);
125
+ }) : null)
126
+ .withTransactionId(data["transactionId"])
127
+ .withStampSheet(data["stampSheet"])
128
+ .withStampSheetEncryptionKeyId(data["stampSheetEncryptionKeyId"])
129
+ .withAutoRunStampSheet(data["autoRunStampSheet"])
130
+ .withAtomicCommit(data["atomicCommit"])
131
+ .withTransaction(data["transaction"])
132
+ .withTransactionResult(Gs2Core.TransactionResult.fromDict(data["transactionResult"]));
133
+ };
134
+ BatchReadMessagesResult.prototype.toDict = function () {
135
+ var _a;
136
+ return {
137
+ "items": this.getItems() ?
138
+ this.getItems().map(function (item) {
139
+ return item.toDict();
140
+ }) : null,
141
+ "transactionId": this.getTransactionId(),
142
+ "stampSheet": this.getStampSheet(),
143
+ "stampSheetEncryptionKeyId": this.getStampSheetEncryptionKeyId(),
144
+ "autoRunStampSheet": this.getAutoRunStampSheet(),
145
+ "atomicCommit": this.getAtomicCommit(),
146
+ "transaction": this.getTransaction(),
147
+ "transactionResult": (_a = this.getTransactionResult()) === null || _a === void 0 ? void 0 : _a.toDict(),
148
+ };
149
+ };
150
+ return BatchReadMessagesResult;
151
+ }());
152
+ exports.default = BatchReadMessagesResult;
153
+ //# sourceMappingURL=BatchReadMessagesResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BatchReadMessagesResult.js","sourceRoot":"","sources":["BatchReadMessagesResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,yDAAoC;AACpC,0DAAqC;AAErC;IAAA;QACY,UAAK,GAA4B,IAAI,CAAC;QACtC,kBAAa,GAAgB,IAAI,CAAC;QAClC,eAAU,GAAgB,IAAI,CAAC;QAC/B,8BAAyB,GAAgB,IAAI,CAAC;QAC9C,sBAAiB,GAAiB,IAAI,CAAC;QACvC,iBAAY,GAAiB,IAAI,CAAC;QAClC,gBAAW,GAAgB,IAAI,CAAC;QAChC,sBAAiB,GAAmC,IAAI,CAAC;IAkJrE,CAAC;IAhJU,0CAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,0CAAQ,GAAf,UAAgB,KAA8B;QAC1C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