@livechat/developer-studio-api 3.0.29 → 3.0.31
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/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1288,7 +1288,6 @@ type AppMonetizationData = {
|
|
|
1288
1288
|
price: number;
|
|
1289
1289
|
frequency: "monthly" | "once";
|
|
1290
1290
|
trialDays: number;
|
|
1291
|
-
creditCardRequired: boolean;
|
|
1292
1291
|
} & ({
|
|
1293
1292
|
charge: "account";
|
|
1294
1293
|
tiers?: {
|
|
@@ -1616,7 +1615,6 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1616
1615
|
}): void;
|
|
1617
1616
|
|
|
1618
1617
|
interface ApplicationPaymentDto {
|
|
1619
|
-
creditCardRequired: boolean;
|
|
1620
1618
|
frequency: "monthly" | "once";
|
|
1621
1619
|
perAccount: boolean;
|
|
1622
1620
|
price: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1288,7 +1288,6 @@ type AppMonetizationData = {
|
|
|
1288
1288
|
price: number;
|
|
1289
1289
|
frequency: "monthly" | "once";
|
|
1290
1290
|
trialDays: number;
|
|
1291
|
-
creditCardRequired: boolean;
|
|
1292
1291
|
} & ({
|
|
1293
1292
|
charge: "account";
|
|
1294
1293
|
tiers?: {
|
|
@@ -1616,7 +1615,6 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1616
1615
|
}): void;
|
|
1617
1616
|
|
|
1618
1617
|
interface ApplicationPaymentDto {
|
|
1619
|
-
creditCardRequired: boolean;
|
|
1620
1618
|
frequency: "monthly" | "once";
|
|
1621
1619
|
perAccount: boolean;
|
|
1622
1620
|
price: number;
|
package/dist/index.js
CHANGED
|
@@ -3459,7 +3459,6 @@ var appTemplates = {
|
|
|
3459
3459
|
monetization: {
|
|
3460
3460
|
frequency: "monthly",
|
|
3461
3461
|
charge: "organization",
|
|
3462
|
-
creditCardRequired: true,
|
|
3463
3462
|
price: 500,
|
|
3464
3463
|
trialDays: 7
|
|
3465
3464
|
}
|
|
@@ -3984,7 +3983,10 @@ var platformDpsApplicationPaymentApi = {
|
|
|
3984
3983
|
return __async(this, null, function* () {
|
|
3985
3984
|
yield platformDpsClientInstance.put(
|
|
3986
3985
|
`/v2/applications/${appId}/payment`,
|
|
3987
|
-
|
|
3986
|
+
{
|
|
3987
|
+
payment,
|
|
3988
|
+
creditCardRequired: true
|
|
3989
|
+
},
|
|
3988
3990
|
getPlatformDpsClientConfig(authorization)
|
|
3989
3991
|
).catch((error) => {
|
|
3990
3992
|
throw error.withCustomMessage(
|
package/dist/index.mjs
CHANGED
|
@@ -3357,7 +3357,6 @@ var appTemplates = {
|
|
|
3357
3357
|
monetization: {
|
|
3358
3358
|
frequency: "monthly",
|
|
3359
3359
|
charge: "organization",
|
|
3360
|
-
creditCardRequired: true,
|
|
3361
3360
|
price: 500,
|
|
3362
3361
|
trialDays: 7
|
|
3363
3362
|
}
|
|
@@ -3882,7 +3881,10 @@ var platformDpsApplicationPaymentApi = {
|
|
|
3882
3881
|
return __async(this, null, function* () {
|
|
3883
3882
|
yield platformDpsClientInstance.put(
|
|
3884
3883
|
`/v2/applications/${appId}/payment`,
|
|
3885
|
-
|
|
3884
|
+
{
|
|
3885
|
+
payment,
|
|
3886
|
+
creditCardRequired: true
|
|
3887
|
+
},
|
|
3886
3888
|
getPlatformDpsClientConfig(authorization)
|
|
3887
3889
|
).catch((error) => {
|
|
3888
3890
|
throw error.withCustomMessage(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.31",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"eslint-config-custom": "0.0.7",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"tsconfig": "0.0.1",
|
|
22
|
+
"utils": "0.0.3"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup",
|