Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/applications

Package Overview
Dependencies
Maintainers
43
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/applications - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

18

dist/lib/applications.js

@@ -1,8 +0,11 @@

import { AuthenticationType, Client } from '@vonage/server-client';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Applications = void 0;
const server_client_1 = require("@vonage/server-client");
const apiToApplication = (response) => {
delete response._links;
return Client.transformers.camelCaseObjectKeys(response, true, true);
return server_client_1.Client.transformers.camelCaseObjectKeys(response, true, true);
};
export class Applications extends Client {
authType = AuthenticationType.BASIC;
class Applications extends server_client_1.Client {
authType = server_client_1.AuthenticationType.BASIC;
/**

@@ -93,3 +96,3 @@ * Retrieves a list of applications with optional pagination parameters.

async getApplicationPage(filter) {
const resp = await this.sendGetRequest(`${this.config.apiHost}/v2/applications`, Client.transformers.snakeCaseObjectKeys(filter));
const resp = await this.sendGetRequest(`${this.config.apiHost}/v2/applications`, server_client_1.Client.transformers.snakeCaseObjectKeys(filter));
if (resp.data._embedded?.applications) {

@@ -140,3 +143,3 @@ resp.data._embedded.applications

async createApplication(application) {
const resp = await this.sendPostRequest(`${this.config.apiHost}/v2/applications`, Client.transformers.snakeCaseObjectKeys(application, true));
const resp = await this.sendPostRequest(`${this.config.apiHost}/v2/applications`, server_client_1.Client.transformers.snakeCaseObjectKeys(application, true));
return apiToApplication(resp.data);

@@ -184,3 +187,3 @@ }

async updateApplication(application) {
const resp = await this.sendPutRequest(`${this.config.apiHost}/v2/applications/${application.id}`, Client.transformers.snakeCaseObjectKeys(application, true));
const resp = await this.sendPutRequest(`${this.config.apiHost}/v2/applications/${application.id}`, server_client_1.Client.transformers.snakeCaseObjectKeys(application, true));
return apiToApplication(resp.data);

@@ -207,2 +210,3 @@ }

}
exports.Applications = Applications;
//# sourceMappingURL=applications.js.map

@@ -1,2 +0,18 @@

export * from './VoiceRegions';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./VoiceRegions"), exports);
//# sourceMappingURL=index.js.map

@@ -0,1 +1,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VoiceRegions = void 0;
/**

@@ -9,3 +12,3 @@ * Enumeration representing different voice regions.

*/
export var VoiceRegions;
var VoiceRegions;
(function (VoiceRegions) {

@@ -36,3 +39,3 @@ /**

VoiceRegions["APAC_AUSTRALIA"] = "apac-australia";
})(VoiceRegions || (VoiceRegions = {}));
})(VoiceRegions || (exports.VoiceRegions = VoiceRegions = {}));
//# sourceMappingURL=VoiceRegions.js.map

@@ -0,1 +1,17 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -14,5 +30,5 @@ * A library to allow management of your Vonage Applications.

*/
export * from './types';
export * from './enums';
export * from './applications';
__exportStar(require("./types"), exports);
__exportStar(require("./enums"), exports);
__exportStar(require("./applications"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Application.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ApplicationPageList.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityBulk.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityMeetings.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityMessages.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityRTC.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityVerify.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityVoice.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityWebhook.js.map

@@ -1,12 +0,28 @@

export * from './Application';
export * from './ApplicationPageList';
export * from './CapabilityBulk';
export * from './CapabilityMeetings';
export * from './CapabilityMessages';
export * from './CapabilityRTC';
export * from './CapabilityVerify';
export * from './CapabilityVoice';
export * from './CapabilityWebhook';
export * from './ListApplicationParams';
export * from './Response';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./Application"), exports);
__exportStar(require("./ApplicationPageList"), exports);
__exportStar(require("./CapabilityBulk"), exports);
__exportStar(require("./CapabilityMeetings"), exports);
__exportStar(require("./CapabilityMessages"), exports);
__exportStar(require("./CapabilityRTC"), exports);
__exportStar(require("./CapabilityVerify"), exports);
__exportStar(require("./CapabilityVoice"), exports);
__exportStar(require("./CapabilityWebhook"), exports);
__exportStar(require("./ListApplicationParams"), exports);
__exportStar(require("./Response"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ListApplicationParams.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ApplicationPageResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ApplicationResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityBulkResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityMeetingsResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityMessagesResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityRTCResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityVerifyResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityVoiceResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=CapabilityWebhookResponse.js.map

@@ -1,10 +0,26 @@

export * from './ApplicationPageResponse';
export * from './ApplicationResponse';
export * from './CapabilityBulkResponse';
export * from './CapabilityMeetingsResponse';
export * from './CapabilityMessagesResponse';
export * from './CapabilityRTCResponse';
export * from './CapabilityVerifyResponse';
export * from './CapabilityVoiceResponse';
export * from './CapabilityWebhookResponse';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./ApplicationPageResponse"), exports);
__exportStar(require("./ApplicationResponse"), exports);
__exportStar(require("./CapabilityBulkResponse"), exports);
__exportStar(require("./CapabilityMeetingsResponse"), exports);
__exportStar(require("./CapabilityMessagesResponse"), exports);
__exportStar(require("./CapabilityRTCResponse"), exports);
__exportStar(require("./CapabilityVerifyResponse"), exports);
__exportStar(require("./CapabilityVoiceResponse"), exports);
__exportStar(require("./CapabilityWebhookResponse"), exports);
//# sourceMappingURL=index.js.map
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@vonage/applications",
"version": "1.12.1",
"version": "1.13.0",
"description": "Vonage Applications API",

@@ -28,3 +28,2 @@ "keywords": [

],
"type": "module",
"main": "dist/lib/index.js",

@@ -46,3 +45,3 @@ "types": "dist/lib/index.d.ts",

"dependencies": {
"@vonage/server-client": "^1.12.1"
"@vonage/server-client": "^1.13.0"
},

@@ -49,0 +48,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc