starta.apiclient 1.37.1521 → 1.37.1561
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/lib/services/chats.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ export default class Chats {
|
|
|
9
9
|
setLastSeenMessageTime(login: any, loginWith: any, { time }: {
|
|
10
10
|
time: any;
|
|
11
11
|
}): Promise<import("../types").StartaResponse>;
|
|
12
|
-
addMessage(login: any, loginWith: any, { message: { text } }: {
|
|
12
|
+
addMessage(login: any, loginWith: any, { message: { text, imageIds, } }: {
|
|
13
13
|
message: {
|
|
14
|
-
text:
|
|
14
|
+
text: string;
|
|
15
|
+
imageIds?: string[];
|
|
15
16
|
};
|
|
16
17
|
}): Promise<import("../types").StartaResponse>;
|
|
17
18
|
}
|
package/lib/services/chats.js
CHANGED
|
@@ -44,13 +44,14 @@ var Chats = /** @class */ (function () {
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
Chats.prototype.addMessage = function (login, loginWith, _a) {
|
|
47
|
-
var
|
|
47
|
+
var _b = _a.message, text = _b.text, imageIds = _b.imageIds;
|
|
48
48
|
return this._requestRunner.performRequest({
|
|
49
49
|
url: "accounts/".concat(login, "/chats/").concat(loginWith, "/messages"),
|
|
50
50
|
method: 'POST',
|
|
51
51
|
body: {
|
|
52
52
|
message: {
|
|
53
|
-
text: text
|
|
53
|
+
text: text,
|
|
54
|
+
imageIds: imageIds,
|
|
54
55
|
},
|
|
55
56
|
},
|
|
56
57
|
config: {
|
|
@@ -2,10 +2,11 @@ import { StartaRequestRunner } from '../types';
|
|
|
2
2
|
export default class LogItems {
|
|
3
3
|
private _requestRunner;
|
|
4
4
|
constructor(requestRunner: StartaRequestRunner);
|
|
5
|
-
create({ level, message, location, app }: {
|
|
5
|
+
create({ level, message, location, app, appVersion }: {
|
|
6
6
|
level: 'debug' | 'info' | 'warn' | 'error';
|
|
7
7
|
message: string;
|
|
8
8
|
location?: string;
|
|
9
9
|
app: 'web' | 'ios' | 'android';
|
|
10
|
+
appVersion?: string;
|
|
10
11
|
}): Promise<import("../types").StartaResponse>;
|
|
11
12
|
}
|
package/lib/services/logItems.js
CHANGED
|
@@ -5,11 +5,11 @@ var LogItems = /** @class */ (function () {
|
|
|
5
5
|
this._requestRunner = requestRunner;
|
|
6
6
|
}
|
|
7
7
|
LogItems.prototype.create = function (_a) {
|
|
8
|
-
var level = _a.level, message = _a.message, location = _a.location, app = _a.app;
|
|
8
|
+
var level = _a.level, message = _a.message, location = _a.location, app = _a.app, appVersion = _a.appVersion;
|
|
9
9
|
return this._requestRunner.performRequest({
|
|
10
10
|
url: "logItems",
|
|
11
11
|
method: 'POST',
|
|
12
|
-
body: { level: level, message: message, app: app, location: location },
|
|
12
|
+
body: { level: level, message: message, app: app, appVersion: appVersion, location: location },
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
return LogItems;
|
|
@@ -6,11 +6,12 @@ export default class EmailConfirmations {
|
|
|
6
6
|
email: any;
|
|
7
7
|
recaptchaToken: any;
|
|
8
8
|
}): Promise<import("../types").StartaResponse>;
|
|
9
|
-
setPassword({ token, email, password, passwordConfirm, recaptchaToken }: {
|
|
9
|
+
setPassword({ token, email, password, passwordConfirm, recaptchaToken, authMethod }: {
|
|
10
10
|
token: any;
|
|
11
11
|
email: any;
|
|
12
12
|
password: any;
|
|
13
13
|
passwordConfirm: any;
|
|
14
14
|
recaptchaToken: any;
|
|
15
|
+
authMethod?: 'cookie' | 'header';
|
|
15
16
|
}): Promise<import("../types").StartaResponse>;
|
|
16
17
|
}
|
|
@@ -13,11 +13,11 @@ var EmailConfirmations = /** @class */ (function () {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
EmailConfirmations.prototype.setPassword = function (_a) {
|
|
16
|
-
var token = _a.token, email = _a.email, password = _a.password, passwordConfirm = _a.passwordConfirm, recaptchaToken = _a.recaptchaToken;
|
|
16
|
+
var token = _a.token, email = _a.email, password = _a.password, passwordConfirm = _a.passwordConfirm, recaptchaToken = _a.recaptchaToken, authMethod = _a.authMethod;
|
|
17
17
|
return this._requestRunner.performRequest({
|
|
18
18
|
url: "passwordResets/".concat(token),
|
|
19
19
|
method: 'PUT',
|
|
20
|
-
body: { password: password, email: email, passwordConfirm: passwordConfirm, recaptchaToken: recaptchaToken },
|
|
20
|
+
body: { password: password, email: email, passwordConfirm: passwordConfirm, recaptchaToken: recaptchaToken, authMethod: authMethod || 'cookie' },
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
return EmailConfirmations;
|