New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@or-sdk/contacts

Package Overview
Dependencies
Maintainers
2
Versions
618
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@or-sdk/contacts - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2-beta.585.0

dist/cjs/api/fieldSchemaApi.js

10

dist/cjs/api/contactApi.js

@@ -24,8 +24,16 @@ "use strict";

}
ContactApi.prototype.getContact = function (id) {
ContactApi.prototype.getContact = function (id, params) {
return this.apiCall({
method: 'GET',
route: "contact/".concat(id),
params: params,
});
};
ContactApi.prototype.getContactsList = function (params) {
return this.apiCall({
method: 'GET',
route: 'contact',
params: params,
});
};
ContactApi.prototype.updateContact = function (id, data) {

@@ -32,0 +40,0 @@ return this.apiCall({

14

dist/cjs/Contacts.js

@@ -17,5 +17,2 @@ "use strict";

})();
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -25,5 +22,3 @@ exports.Contacts = void 0;

var constants_1 = require("./constants");
var contactBookApi_1 = __importDefault(require("./api/contactBookApi"));
var migrationsApi_1 = __importDefault(require("./api/migrationsApi"));
var contactApi_1 = __importDefault(require("./api/contactApi"));
var api_1 = require("./api");
var Contacts = (function (_super) {

@@ -41,5 +36,6 @@ __extends(Contacts, _super);

var apiCall = _this.callApiV2.bind(_this);
_this.contactBookApi = new contactBookApi_1.default(apiCall);
_this.migrationsApi = new migrationsApi_1.default(apiCall);
_this.contactApi = new contactApi_1.default(apiCall);
_this.contactBookApi = new api_1.ContactBookApi(apiCall);
_this.migrationsApi = new api_1.MigrationsApi(apiCall);
_this.contactApi = new api_1.ContactApi(apiCall);
_this.fieldSchemaApi = new api_1.FieldSchemaApi(apiCall);
return _this;

@@ -46,0 +42,0 @@ }

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./types"), exports);
__exportStar(require("./api"), exports);
//# sourceMappingURL=index.js.map
import { BaseApi } from './baseApi';
export default class ContactApi extends BaseApi {
getContact(id) {
getContact(id, params) {
return this.apiCall({
method: 'GET',
route: `contact/${id}`,
params,
});
}
getContactsList(params) {
return this.apiCall({
method: 'GET',
route: 'contact',
params,
});
}
updateContact(id, data) {

@@ -10,0 +18,0 @@ return this.apiCall({

import { Base } from '@or-sdk/base';
import { CONTACTS_SERVICE_KEY } from './constants';
import ContactBookApi from './api/contactBookApi';
import MigrationsApi from './api/migrationsApi';
import ContactApi from './api/contactApi';
import { ContactBookApi, MigrationsApi, ContactApi, FieldSchemaApi } from './api';
export class Contacts extends Base {

@@ -19,4 +17,5 @@ constructor(params) {

this.contactApi = new ContactApi(apiCall);
this.fieldSchemaApi = new FieldSchemaApi(apiCall);
}
}
//# sourceMappingURL=Contacts.js.map
export { Contacts } from './Contacts';
export * from './types';
export * from './api';
//# sourceMappingURL=index.js.map
import { BaseApi } from './baseApi';
import { ContactResponseDto, CreateContactDto, UpdateContactDto } from '@onereach/types-contacts-api';
import { ContactResponseDto, CreateContactDto, UpdateContactDto, ContactParamsDto } from '@onereach/types-contacts-api';
export default class ContactApi extends BaseApi {
getContact(id: string): Promise<ContactResponseDto>;
getContact(id: string, params: ContactParamsDto): Promise<ContactResponseDto>;
getContactsList(params: ContactParamsDto): Promise<ContactResponseDto>;
updateContact(id: string, data: UpdateContactDto): Promise<ContactResponseDto>;

@@ -6,0 +7,0 @@ deleteContact(id: string): Promise<void>;

import { Base } from '@or-sdk/base';
import { ContactsConfig } from './types';
import ContactBookApi from './api/contactBookApi';
import MigrationsApi from './api/migrationsApi';
import ContactApi from './api/contactApi';
import { ContactBookApi, MigrationsApi, ContactApi, FieldSchemaApi } from './api';
export declare class Contacts extends Base {

@@ -10,4 +8,5 @@ readonly contactBookApi: ContactBookApi;

readonly contactApi: ContactApi;
readonly fieldSchemaApi: FieldSchemaApi;
constructor(params: ContactsConfig);
}
//# sourceMappingURL=Contacts.d.ts.map
export { Contacts } from './Contacts';
export * from './types';
export * from './api';
//# sourceMappingURL=index.d.ts.map
{
"version": "1.1.1",
"version": "1.1.2-beta.585.0",
"name": "@or-sdk/contacts",

@@ -20,3 +20,3 @@ "main": "dist/cjs/index.js",

"devDependencies": {
"@onereach/types-contacts-api": "^0.0.8",
"@onereach/types-contacts-api": "^0.0.9",
"concurrently": "^6.4.0",

@@ -30,4 +30,3 @@ "typescript": "^4.4.4"

"@or-sdk/base": "^0.26.4"
},
"gitHead": "1c9d1efad28b1257fb4eecae361b3fb817d48e8b"
}
}
import { BaseApi } from './baseApi';
import { ContactResponseDto, CreateContactDto, UpdateContactDto } from '@onereach/types-contacts-api';
import { ContactResponseDto, CreateContactDto, UpdateContactDto, ContactParamsDto } from '@onereach/types-contacts-api';

@@ -7,8 +7,10 @@ export default class ContactApi extends BaseApi {

* @description Get specific Contact
* @param params
* @param id
*/
getContact(id: string): Promise<ContactResponseDto> {
getContact(id: string, params: ContactParamsDto): Promise<ContactResponseDto> {
return this.apiCall({
method: 'GET',
route: `contact/${id}`,
params,
});

@@ -18,2 +20,14 @@ }

/**
* @description Get list of Contacts for specific contactBook
* @param params
*/
getContactsList(params: ContactParamsDto): Promise<ContactResponseDto> {
return this.apiCall({
method: 'GET',
route: 'contact',
params,
});
}
/**
* @description Update Contact

@@ -20,0 +34,0 @@ * @param data

import { Base } from '@or-sdk/base';
import { ContactsConfig } from './types';
import { CONTACTS_SERVICE_KEY } from './constants';
import ContactBookApi from './api/contactBookApi';
import MigrationsApi from './api/migrationsApi';
import ContactApi from './api/contactApi';
import { ContactBookApi, MigrationsApi, ContactApi, FieldSchemaApi } from './api';

@@ -20,2 +18,3 @@ /**

public readonly contactApi: ContactApi;
public readonly fieldSchemaApi: FieldSchemaApi;
/**

@@ -40,3 +39,4 @@ * ```typescript

this.contactApi = new ContactApi(apiCall);
this.fieldSchemaApi = new FieldSchemaApi(apiCall);
}
}
export { Contacts } from './Contacts';
export * from './types';
export * from './api';

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

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