starta.apiclient 1.112.12699 → 1.112.12732
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.
|
@@ -88,6 +88,10 @@ export default class Accounts {
|
|
|
88
88
|
os: 'ios' | 'android';
|
|
89
89
|
name?: string;
|
|
90
90
|
}): Promise<import("../types").StartaResponse>;
|
|
91
|
+
setReviewFlow(login: string, platform: 'ios' | 'android', { attempted, attemptedAt }: {
|
|
92
|
+
attempted: boolean;
|
|
93
|
+
attemptedAt?: Date;
|
|
94
|
+
}): Promise<import("../types").StartaResponse>;
|
|
91
95
|
setDeviceUISettings(login: string, deviceId: 'web' | string, { theme }: {
|
|
92
96
|
theme: 'light' | 'dark' | 'system';
|
|
93
97
|
}): Promise<import("../types").StartaResponse>;
|
package/lib/services/accounts.js
CHANGED
|
@@ -184,6 +184,13 @@ class Accounts {
|
|
|
184
184
|
body: { expoPushToken, os, name },
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
+
setReviewFlow(login, platform, { attempted, attemptedAt }) {
|
|
188
|
+
return this._requestRunner.performRequest({
|
|
189
|
+
url: `accounts/${login}/reviewFlow/${platform}`,
|
|
190
|
+
method: 'PUT',
|
|
191
|
+
body: { attempted, attemptedAt },
|
|
192
|
+
});
|
|
193
|
+
}
|
|
187
194
|
setDeviceUISettings(login, deviceId, { theme }) {
|
|
188
195
|
return this._requestRunner.performRequest({
|
|
189
196
|
url: `accounts/${login}/devices/${deviceId}/ui-settings`,
|
|
@@ -6,8 +6,8 @@ export default class Billing {
|
|
|
6
6
|
deletePaymentMethod(organizationLogin: string, paymentMethodId: string): Promise<import("../../types").StartaResponse>;
|
|
7
7
|
setDefaultPaymentMethod(organizationLogin: string, paymentMethodId: string): Promise<import("../../types").StartaResponse>;
|
|
8
8
|
activateCoupon(organizationLogin: string, couponCode: string): Promise<import("../../types").StartaResponse>;
|
|
9
|
-
cancelSubscription(organizationLogin: string, { reason, comment }: {
|
|
10
|
-
reason:
|
|
11
|
-
comment
|
|
9
|
+
cancelSubscription(organizationLogin: string, { reason, comment, }: {
|
|
10
|
+
reason: 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused' | 'updating_to_other_plan';
|
|
11
|
+
comment?: string;
|
|
12
12
|
}): Promise<import("../../types").StartaResponse>;
|
|
13
13
|
}
|
|
@@ -28,7 +28,7 @@ class Billing {
|
|
|
28
28
|
method: 'PUT',
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
cancelSubscription(organizationLogin, { reason, comment }) {
|
|
31
|
+
cancelSubscription(organizationLogin, { reason, comment, }) {
|
|
32
32
|
return this._requestRunner.performRequest({
|
|
33
33
|
url: `accounts/${organizationLogin}/subscription`,
|
|
34
34
|
method: 'DELETE',
|