@aws-sdk/client-ivschat 3.183.0 → 3.186.0
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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Ivschat.js +57 -50
- package/dist-es/IvschatClient.js +28 -22
- package/dist-es/commands/CreateChatTokenCommand.js +28 -21
- package/dist-es/commands/CreateRoomCommand.js +28 -21
- package/dist-es/commands/DeleteMessageCommand.js +28 -21
- package/dist-es/commands/DeleteRoomCommand.js +29 -22
- package/dist-es/commands/DisconnectUserCommand.js +28 -21
- package/dist-es/commands/GetRoomCommand.js +28 -21
- package/dist-es/commands/ListRoomsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/SendEventCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateRoomCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IvschatServiceException.js +10 -5
- package/dist-es/models/models_0.js +127 -178
- package/dist-es/pagination/ListRoomsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1339 -995
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,208 +1,157 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { IvschatServiceException as __BaseException } from "./IvschatServiceException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.$fault = "client";
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
return _this;
|
|
12
11
|
}
|
|
13
|
-
|
|
12
|
+
return AccessDeniedException;
|
|
13
|
+
}(__BaseException));
|
|
14
|
+
export { AccessDeniedException };
|
|
14
15
|
export var ChatTokenCapability;
|
|
15
16
|
(function (ChatTokenCapability) {
|
|
16
17
|
ChatTokenCapability["DELETE_MESSAGE"] = "DELETE_MESSAGE";
|
|
17
18
|
ChatTokenCapability["DISCONNECT_USER"] = "DISCONNECT_USER";
|
|
18
19
|
ChatTokenCapability["SEND_MESSAGE"] = "SEND_MESSAGE";
|
|
19
20
|
})(ChatTokenCapability || (ChatTokenCapability = {}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this.$fault = "client";
|
|
29
|
-
Object.setPrototypeOf(this, PendingVerification.prototype);
|
|
21
|
+
var PendingVerification = (function (_super) {
|
|
22
|
+
__extends(PendingVerification, _super);
|
|
23
|
+
function PendingVerification(opts) {
|
|
24
|
+
var _this = _super.call(this, __assign({ name: "PendingVerification", $fault: "client" }, opts)) || this;
|
|
25
|
+
_this.name = "PendingVerification";
|
|
26
|
+
_this.$fault = "client";
|
|
27
|
+
Object.setPrototypeOf(_this, PendingVerification.prototype);
|
|
28
|
+
return _this;
|
|
30
29
|
}
|
|
31
|
-
|
|
30
|
+
return PendingVerification;
|
|
31
|
+
}(__BaseException));
|
|
32
|
+
export { PendingVerification };
|
|
32
33
|
export var ResourceType;
|
|
33
34
|
(function (ResourceType) {
|
|
34
35
|
ResourceType["ROOM"] = "ROOM";
|
|
35
36
|
})(ResourceType || (ResourceType = {}));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.resourceId = opts.resourceId;
|
|
47
|
-
this.resourceType = opts.resourceType;
|
|
37
|
+
var ResourceNotFoundException = (function (_super) {
|
|
38
|
+
__extends(ResourceNotFoundException, _super);
|
|
39
|
+
function ResourceNotFoundException(opts) {
|
|
40
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
41
|
+
_this.name = "ResourceNotFoundException";
|
|
42
|
+
_this.$fault = "client";
|
|
43
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
44
|
+
_this.resourceId = opts.resourceId;
|
|
45
|
+
_this.resourceType = opts.resourceType;
|
|
46
|
+
return _this;
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
return ResourceNotFoundException;
|
|
49
|
+
}(__BaseException));
|
|
50
|
+
export { ResourceNotFoundException };
|
|
50
51
|
export var ValidationExceptionReason;
|
|
51
52
|
(function (ValidationExceptionReason) {
|
|
52
53
|
ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
|
|
53
54
|
ValidationExceptionReason["OTHER"] = "OTHER";
|
|
54
55
|
ValidationExceptionReason["UNKNOWN_OPERATION"] = "UNKNOWN_OPERATION";
|
|
55
56
|
})(ValidationExceptionReason || (ValidationExceptionReason = {}));
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this.reason = opts.reason;
|
|
67
|
-
this.fieldList = opts.fieldList;
|
|
57
|
+
var ValidationException = (function (_super) {
|
|
58
|
+
__extends(ValidationException, _super);
|
|
59
|
+
function ValidationException(opts) {
|
|
60
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
61
|
+
_this.name = "ValidationException";
|
|
62
|
+
_this.$fault = "client";
|
|
63
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
64
|
+
_this.reason = opts.reason;
|
|
65
|
+
_this.fieldList = opts.fieldList;
|
|
66
|
+
return _this;
|
|
68
67
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
return ValidationException;
|
|
69
|
+
}(__BaseException));
|
|
70
|
+
export { ValidationException };
|
|
71
|
+
var ConflictException = (function (_super) {
|
|
72
|
+
__extends(ConflictException, _super);
|
|
73
|
+
function ConflictException(opts) {
|
|
74
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
75
|
+
_this.name = "ConflictException";
|
|
76
|
+
_this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
78
|
+
_this.resourceId = opts.resourceId;
|
|
79
|
+
_this.resourceType = opts.resourceType;
|
|
80
|
+
return _this;
|
|
82
81
|
}
|
|
83
|
-
|
|
82
|
+
return ConflictException;
|
|
83
|
+
}(__BaseException));
|
|
84
|
+
export { ConflictException };
|
|
84
85
|
export var FallbackResult;
|
|
85
86
|
(function (FallbackResult) {
|
|
86
87
|
FallbackResult["ALLOW"] = "ALLOW";
|
|
87
88
|
FallbackResult["DENY"] = "DENY";
|
|
88
89
|
})(FallbackResult || (FallbackResult = {}));
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
this.resourceType = opts.resourceType;
|
|
101
|
-
this.limit = opts.limit;
|
|
90
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
91
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
92
|
+
function ServiceQuotaExceededException(opts) {
|
|
93
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
94
|
+
_this.name = "ServiceQuotaExceededException";
|
|
95
|
+
_this.$fault = "client";
|
|
96
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
97
|
+
_this.resourceId = opts.resourceId;
|
|
98
|
+
_this.resourceType = opts.resourceType;
|
|
99
|
+
_this.limit = opts.limit;
|
|
100
|
+
return _this;
|
|
102
101
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
102
|
+
return ServiceQuotaExceededException;
|
|
103
|
+
}(__BaseException));
|
|
104
|
+
export { ServiceQuotaExceededException };
|
|
105
|
+
var ThrottlingException = (function (_super) {
|
|
106
|
+
__extends(ThrottlingException, _super);
|
|
107
|
+
function ThrottlingException(opts) {
|
|
108
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
109
|
+
_this.name = "ThrottlingException";
|
|
110
|
+
_this.$fault = "client";
|
|
111
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
112
|
+
_this.resourceId = opts.resourceId;
|
|
113
|
+
_this.resourceType = opts.resourceType;
|
|
114
|
+
_this.limit = opts.limit;
|
|
115
|
+
return _this;
|
|
117
116
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
117
|
+
return ThrottlingException;
|
|
118
|
+
}(__BaseException));
|
|
119
|
+
export { ThrottlingException };
|
|
120
|
+
var InternalServerException = (function (_super) {
|
|
121
|
+
__extends(InternalServerException, _super);
|
|
122
|
+
function InternalServerException(opts) {
|
|
123
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
124
|
+
_this.name = "InternalServerException";
|
|
125
|
+
_this.$fault = "server";
|
|
126
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
127
|
+
return _this;
|
|
129
128
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
export
|
|
135
|
-
|
|
136
|
-
});
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
});
|
|
143
|
-
export
|
|
144
|
-
|
|
145
|
-
});
|
|
146
|
-
export
|
|
147
|
-
|
|
148
|
-
});
|
|
149
|
-
export
|
|
150
|
-
|
|
151
|
-
});
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
});
|
|
155
|
-
export
|
|
156
|
-
|
|
157
|
-
});
|
|
158
|
-
export
|
|
159
|
-
...obj,
|
|
160
|
-
});
|
|
161
|
-
export const DisconnectUserResponseFilterSensitiveLog = (obj) => ({
|
|
162
|
-
...obj,
|
|
163
|
-
});
|
|
164
|
-
export const GetRoomRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
-
...obj,
|
|
166
|
-
});
|
|
167
|
-
export const GetRoomResponseFilterSensitiveLog = (obj) => ({
|
|
168
|
-
...obj,
|
|
169
|
-
});
|
|
170
|
-
export const ListRoomsRequestFilterSensitiveLog = (obj) => ({
|
|
171
|
-
...obj,
|
|
172
|
-
});
|
|
173
|
-
export const RoomSummaryFilterSensitiveLog = (obj) => ({
|
|
174
|
-
...obj,
|
|
175
|
-
});
|
|
176
|
-
export const ListRoomsResponseFilterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
183
|
-
...obj,
|
|
184
|
-
});
|
|
185
|
-
export const SendEventRequestFilterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
export const SendEventResponseFilterSensitiveLog = (obj) => ({
|
|
189
|
-
...obj,
|
|
190
|
-
});
|
|
191
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
export const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
195
|
-
...obj,
|
|
196
|
-
});
|
|
197
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
198
|
-
...obj,
|
|
199
|
-
});
|
|
200
|
-
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
});
|
|
203
|
-
export const UpdateRoomRequestFilterSensitiveLog = (obj) => ({
|
|
204
|
-
...obj,
|
|
205
|
-
});
|
|
206
|
-
export const UpdateRoomResponseFilterSensitiveLog = (obj) => ({
|
|
207
|
-
...obj,
|
|
208
|
-
});
|
|
129
|
+
return InternalServerException;
|
|
130
|
+
}(__BaseException));
|
|
131
|
+
export { InternalServerException };
|
|
132
|
+
export var CreateChatTokenRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
133
|
+
export var CreateChatTokenResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
|
+
export var ValidationExceptionFieldFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
135
|
+
export var MessageReviewHandlerFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
136
|
+
export var CreateRoomRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
|
+
export var CreateRoomResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
138
|
+
export var DeleteMessageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
|
+
export var DeleteMessageResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
140
|
+
export var DeleteRoomRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
+
export var DisconnectUserRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
142
|
+
export var DisconnectUserResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
143
|
+
export var GetRoomRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
144
|
+
export var GetRoomResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
145
|
+
export var ListRoomsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
146
|
+
export var RoomSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
147
|
+
export var ListRoomsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
148
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
|
+
export var SendEventRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
|
+
export var SendEventResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
152
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
|
+
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
155
|
+
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
156
|
+
export var UpdateRoomRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
157
|
+
export var UpdateRoomResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListRoomsCommand } from "../commands/ListRoomsCommand";
|
|
2
3
|
import { Ivschat } from "../Ivschat";
|
|
3
4
|
import { IvschatClient } from "../IvschatClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListRoomsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listRooms.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.nextToken = token;
|
|
16
|
-
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Ivschat) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof IvschatClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Ivschat | IvschatClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.nextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListRooms(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListRooms_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Ivschat)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof IvschatClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Ivschat | IvschatClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.nextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|