@livechat/developer-studio-api 2.0.51 → 2.0.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.
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +29 -1
- package/dist/index.mjs +29 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1944,6 +1944,21 @@ declare const api: {
|
|
|
1944
1944
|
getVariables(appId: string, decrypted?: boolean | undefined, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable[]>;
|
|
1945
1945
|
getVariable(appId: string, key: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable>;
|
|
1946
1946
|
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1947
|
+
createVariable(appId: string, data: {
|
|
1948
|
+
appId: string;
|
|
1949
|
+
key: string;
|
|
1950
|
+
value: string;
|
|
1951
|
+
}, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1952
|
+
editVariable(appId: string, data: {
|
|
1953
|
+
appId: string;
|
|
1954
|
+
key: string;
|
|
1955
|
+
localValue: string;
|
|
1956
|
+
externalValue: string;
|
|
1957
|
+
}, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1958
|
+
deleteVariable(data: {
|
|
1959
|
+
appId: string;
|
|
1960
|
+
key: string;
|
|
1961
|
+
}): Promise<any>;
|
|
1947
1962
|
};
|
|
1948
1963
|
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
1949
1964
|
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1944,6 +1944,21 @@ declare const api: {
|
|
|
1944
1944
|
getVariables(appId: string, decrypted?: boolean | undefined, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable[]>;
|
|
1945
1945
|
getVariable(appId: string, key: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable>;
|
|
1946
1946
|
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1947
|
+
createVariable(appId: string, data: {
|
|
1948
|
+
appId: string;
|
|
1949
|
+
key: string;
|
|
1950
|
+
value: string;
|
|
1951
|
+
}, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1952
|
+
editVariable(appId: string, data: {
|
|
1953
|
+
appId: string;
|
|
1954
|
+
key: string;
|
|
1955
|
+
localValue: string;
|
|
1956
|
+
externalValue: string;
|
|
1957
|
+
}, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1958
|
+
deleteVariable(data: {
|
|
1959
|
+
appId: string;
|
|
1960
|
+
key: string;
|
|
1961
|
+
}): Promise<any>;
|
|
1947
1962
|
};
|
|
1948
1963
|
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
1949
1964
|
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
package/dist/index.js
CHANGED
|
@@ -1811,7 +1811,7 @@ var textAppMonitoringEventsApi = {
|
|
|
1811
1811
|
search: (_b = payload.search) != null ? _b : ""
|
|
1812
1812
|
});
|
|
1813
1813
|
if (payload.type) {
|
|
1814
|
-
payload.type.forEach((type) => searchParams.append("type", type));
|
|
1814
|
+
payload.type.forEach((type) => searchParams.append("type[]", type));
|
|
1815
1815
|
}
|
|
1816
1816
|
const response = yield textClientInstance.get(
|
|
1817
1817
|
`/app_monitoring/${appId}/events?${searchParams.toString()}`,
|
|
@@ -5134,6 +5134,34 @@ var platformAdapterAppVariablesApi = {
|
|
|
5134
5134
|
);
|
|
5135
5135
|
return response.data;
|
|
5136
5136
|
});
|
|
5137
|
+
},
|
|
5138
|
+
createVariable(appId, data, authorization) {
|
|
5139
|
+
return __async(this, null, function* () {
|
|
5140
|
+
const response = yield platformAdapterClientInstance.post(
|
|
5141
|
+
`/console/app/${appId}/variables/${data.key}`,
|
|
5142
|
+
data,
|
|
5143
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5144
|
+
);
|
|
5145
|
+
return response.data;
|
|
5146
|
+
});
|
|
5147
|
+
},
|
|
5148
|
+
editVariable(appId, data, authorization) {
|
|
5149
|
+
return __async(this, null, function* () {
|
|
5150
|
+
const response = yield platformAdapterClientInstance.put(
|
|
5151
|
+
`/console/app/${appId}/variables/${data.key}`,
|
|
5152
|
+
data,
|
|
5153
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5154
|
+
);
|
|
5155
|
+
return response.data;
|
|
5156
|
+
});
|
|
5157
|
+
},
|
|
5158
|
+
deleteVariable(data) {
|
|
5159
|
+
return __async(this, null, function* () {
|
|
5160
|
+
const response = yield platformAdapterClientInstance.delete(
|
|
5161
|
+
`/console/app/${data.appId}/variables/${data.key}`
|
|
5162
|
+
);
|
|
5163
|
+
return response.data;
|
|
5164
|
+
});
|
|
5137
5165
|
}
|
|
5138
5166
|
};
|
|
5139
5167
|
|
package/dist/index.mjs
CHANGED
|
@@ -1723,7 +1723,7 @@ var textAppMonitoringEventsApi = {
|
|
|
1723
1723
|
search: (_b = payload.search) != null ? _b : ""
|
|
1724
1724
|
});
|
|
1725
1725
|
if (payload.type) {
|
|
1726
|
-
payload.type.forEach((type) => searchParams.append("type", type));
|
|
1726
|
+
payload.type.forEach((type) => searchParams.append("type[]", type));
|
|
1727
1727
|
}
|
|
1728
1728
|
const response = yield textClientInstance.get(
|
|
1729
1729
|
`/app_monitoring/${appId}/events?${searchParams.toString()}`,
|
|
@@ -5046,6 +5046,34 @@ var platformAdapterAppVariablesApi = {
|
|
|
5046
5046
|
);
|
|
5047
5047
|
return response.data;
|
|
5048
5048
|
});
|
|
5049
|
+
},
|
|
5050
|
+
createVariable(appId, data, authorization) {
|
|
5051
|
+
return __async(this, null, function* () {
|
|
5052
|
+
const response = yield platformAdapterClientInstance.post(
|
|
5053
|
+
`/console/app/${appId}/variables/${data.key}`,
|
|
5054
|
+
data,
|
|
5055
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5056
|
+
);
|
|
5057
|
+
return response.data;
|
|
5058
|
+
});
|
|
5059
|
+
},
|
|
5060
|
+
editVariable(appId, data, authorization) {
|
|
5061
|
+
return __async(this, null, function* () {
|
|
5062
|
+
const response = yield platformAdapterClientInstance.put(
|
|
5063
|
+
`/console/app/${appId}/variables/${data.key}`,
|
|
5064
|
+
data,
|
|
5065
|
+
getPlatformAdapterClientConfig(authorization)
|
|
5066
|
+
);
|
|
5067
|
+
return response.data;
|
|
5068
|
+
});
|
|
5069
|
+
},
|
|
5070
|
+
deleteVariable(data) {
|
|
5071
|
+
return __async(this, null, function* () {
|
|
5072
|
+
const response = yield platformAdapterClientInstance.delete(
|
|
5073
|
+
`/console/app/${data.appId}/variables/${data.key}`
|
|
5074
|
+
);
|
|
5075
|
+
return response.data;
|
|
5076
|
+
});
|
|
5049
5077
|
}
|
|
5050
5078
|
};
|
|
5051
5079
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.53",
|
|
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,9 +18,9 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"config": "0.0.0",
|
|
21
|
-
"types": "0.0.1",
|
|
22
21
|
"tsconfig": "0.0.0",
|
|
23
|
-
"eslint-config-custom-lib": "0.0.1"
|
|
22
|
+
"eslint-config-custom-lib": "0.0.1",
|
|
23
|
+
"types": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|