Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

version 1.3.5 doesn't have a new delete method #8

@sviatoslav-lebediev

Description

@sviatoslav-lebediev

It looks like a new 1.3.5 version doesn't have a delete method.
When I download a source code archive https://github.com/MadKudu/node-eloqua/archive/1.3.5.zip it contains all changes. But when I install it using npm this method is absent.

package.json

  "name": "eloqua",
  "version": "1.3.5",
  "description": "A node wrapper for the Eloqua API",
  "repository": {
    "type": "git",
    "url": "git://github.com/MadKudu/node-eloqua.git"
  },

dist/client.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const field_1 = require("./field");
const contact_list_1 = require("./contact_list");
const contact_segment_1 = require("./contact_segment");
class Contact {
    constructor(client) {
        this.client = client;
        this.fields = new field_1.default(this.client, 'contact');
        this.lists = new contact_list_1.default(this.client);
        this.segments = new contact_segment_1.default(this.client);
    }
    get(id, options) {
        return this.client._request({
            method: 'GET',
            url: `/api/REST/1.0/data/contact/${id}`,
            params: options
        });
    }
    getAll(options) {
        return this.client._request({
            method: 'GET',
            url: '/api/REST/1.0/data/contacts',
            params: options
        });
    }
    getSegment(segmentId, options) {
        return this.client._request({
            method: 'GET',
            url: `/api/REST/2.0/data/contacts/segment/${segmentId}`,
            // somehow, this call seems to be undocumented (https://community.oracle.com/thread/3900099)
            params: options
        });
    }
    update(id, data) {
        return this.client._request({
            data,
            method: 'PUT',
            url: `/api/REST/1.0/data/contact/${id}`
        });
    }
}
exports.default = Contact;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions