@localazy/ts-api
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -33,2 +33,4 @@ import Constructor from './models/arguments/constructor'; | ||
import UpdateKeyResult from './models/responses/update-key-result'; | ||
import GetWebhooksSecret from './models/arguments/get-webhooks-secret'; | ||
import GetWebhooksSecretResult from './models/responses/get-webhooks-secret-result'; | ||
declare class LocalazyService { | ||
@@ -75,6 +77,11 @@ private projectToken; | ||
* Store a new webhooks configuration for the project. | ||
* @see https://localazy.com/docs/api/screenshot-management#create-a-new-screenshot | ||
* @see https://localazy.com/docs/api/webhooks-api#update-webhooks-configuration | ||
*/ | ||
postWebhooks(options: PostWebhooks, config?: CommonConfig): Promise<PostWebhooksResult>; | ||
/** | ||
* Return webhooks secret, can be used to verify webhook body | ||
* @see https://localazy.com/docs/api/webhooks-api#get-projectsprojectidwebhookssecret | ||
*/ | ||
getWebhooksSecret(options: GetWebhooksSecret, config?: CommonConfig): Promise<GetWebhooksSecretResult>; | ||
/** | ||
* Retrieve list of screenshots for project. | ||
@@ -81,0 +88,0 @@ * @see https://localazy.com/docs/api/screenshot-management#list-screenshots |
@@ -227,3 +227,3 @@ "use strict"; | ||
* Store a new webhooks configuration for the project. | ||
* @see https://localazy.com/docs/api/screenshot-management#create-a-new-screenshot | ||
* @see https://localazy.com/docs/api/webhooks-api#update-webhooks-configuration | ||
*/ | ||
@@ -250,2 +250,24 @@ Object.defineProperty(LocalazyService.prototype, "postWebhooks", { | ||
/** | ||
* Return webhooks secret, can be used to verify webhook body | ||
* @see https://localazy.com/docs/api/webhooks-api#get-projectsprojectidwebhookssecret | ||
*/ | ||
Object.defineProperty(LocalazyService.prototype, "getWebhooksSecret", { | ||
enumerable: false, | ||
configurable: true, | ||
writable: true, | ||
value: function (options, config) { | ||
if (config === void 0) { config = {}; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var projectId; | ||
return __generator(this, function (_a) { | ||
projectId = options.projectId; | ||
return [2 /*return*/, api_1.default.get({ | ||
url: "".concat(config.baseUrl || this.baseUrl, "/projects/").concat(projectId, "/webhooks/secret"), | ||
projectToken: config.projectToken || this.projectToken, | ||
})]; | ||
}); | ||
}); | ||
} | ||
}); | ||
/** | ||
* Retrieve list of screenshots for project. | ||
@@ -252,0 +274,0 @@ * @see https://localazy.com/docs/api/screenshot-management#list-screenshots |
{ | ||
"name": "@localazy/ts-api", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "This is a Typescript library facilitating usage of Localazy's API.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76055
132
1266