@livechat/developer-studio-api 2.0.52 → 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 +28 -0
- package/dist/index.mjs +28 -0
- package/package.json +1 -1
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
|
@@ -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
|
@@ -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
|
|