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

@planet-a/affinity-node

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@planet-a/affinity-node - npm Package Compare versions

Comparing version 0.0.1-test.11 to 0.0.1-test.12

esm/_dnt.shims.js

2

esm/v1/field_values.js

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

import { fieldValuesUrl } from './urls.js';
import { defaultTransformers } from './axios_default_transformers.js';
import { FieldValueType } from './lists.js';
import { fieldValuesUrl } from './urls.js';
/**

@@ -5,0 +5,0 @@ * @module

@@ -10,2 +10,3 @@ import axios from 'axios';

import { Persons } from './persons.js';
import { EntityFiles } from './entity_files.js';
export { EntityType, FieldValueType, RoleId } from './lists.js';

@@ -78,2 +79,8 @@ export { AffinityApiError } from './errors.js';

});
Object.defineProperty(this, "entityFiles", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.axios = axiosInstance || axios.create();

@@ -95,3 +102,4 @@ this.axios.defaults.headers.common['X-Requested-With'] =

this.persons = new Persons(this.axios);
this.entityFiles = new EntityFiles(this.axios);
}
}

@@ -68,1 +68,11 @@ /**

export const personFieldsUrl = () => personsUrl('fields');
/**
* @hidden
* See [here](https://api-docs.affinity.co/#entity-files) for more info.
*/
export const entityFilesUrl = (entity_file_id, is_download = false) => {
return entity_file_id
? `/entity-files` + (is_download ? '/download' : '') +
`/${encodeURIComponent(entity_file_id)}`
: '/entity-files';
};
{
"name": "@planet-a/affinity-node",
"version": "0.0.1-test.11",
"version": "0.0.1-test.12",
"description": "API wrapper for the affinity.co API",

@@ -42,3 +42,4 @@ "keywords": [

"dependencies": {
"axios": "^1.7.2"
"axios": "^1.7.2",
"undici": "^6.0.0"
},

@@ -45,0 +46,0 @@ "devDependencies": {

@@ -41,3 +41,3 @@ # [![Test, Lint & Deploy](https://github.com/planet-a-ventures/affinity-node/actions/workflows/main.yml/badge.svg)](https://github.com/planet-a-ventures/affinity-node/actions/workflows/main.yml) affinity-node

- ❌ Notes
- ❌ Entity Files
- ✅ [Entity Files](src/v1/entity_files.ts)
- ❌ Reminders

@@ -44,0 +44,0 @@ - ❌ Webhooks

@@ -75,6 +75,3 @@ import type { AxiosInstance } from 'axios';

export type FieldValueChangeResponse = FieldValueChange[];
/**
* Only one of these properties can be present at a time
*/
export interface GetFieldValueChangesRequestFilter {
export interface EntityRequestFilter {
/**

@@ -92,2 +89,7 @@ * A unique ID that represents a person object whose field value changes are to be retrieved.

opportunity_id: number;
}
/**
* Only one of these properties can be present at a time
*/
export interface GetFieldValueChangesRequestFilter extends EntityRequestFilter {
/**

@@ -94,0 +96,0 @@ * A unique ID that represents a list entry object whose field value changes are to be retrieved.

import type { AxiosInstance } from 'axios';
import type { FieldBase } from './fields.js';
import { FieldValueType } from './lists.js';
import type { DateTime, Replace } from './types.js';
import { FieldBase } from './fields.js';
export type { DateTime } from './types.js';

@@ -6,0 +6,0 @@ export type DropdownValue = {

@@ -10,2 +10,3 @@ import { type AxiosInstance } from 'axios';

import { Persons } from './persons.js';
import { EntityFiles } from './entity_files.js';
export type * as ListEntries from './list_entries.js';

@@ -20,2 +21,3 @@ export type * as Lists from './lists.js';

export type * as Persons from './persons.js';
export type * as EntityFiles from './entity_files.js';
export { EntityType, FieldValueType, RoleId } from './lists.js';

@@ -44,2 +46,3 @@ export { AffinityApiError } from './errors.js';

readonly persons: Persons;
readonly entityFiles: EntityFiles;
}

@@ -6,2 +6,3 @@ import type { AxiosInstance } from 'axios';

import { Organization } from './organizations.js';
import { PagedResponse } from './paged_response.js';
export type Person = {

@@ -57,8 +58,3 @@ id: number;

list_entries: ListEntryResponseRaw[];
/**
* The absence of a {@link PagedResponse.next_page_token} indicates that all the records have been fetched, though its presence does not necessarily indicate that there are more resources to be fetched.
* The next page may be empty (but then {@link PagedResponse.next_page_token} would be `null` to confirm that there are no more resources).
*/
next_page_token: string | null;
};
} & PagedResponse;
export type ListEntryResponse = Replace<ListEntryResponseRaw, {

@@ -65,0 +61,0 @@ created_at: Date;

export type PagedResponse = {
/**
* The absence of a {@link PagedResponse.next_page_token} indicates that all the records have been fetched, though its presence does not necessarily indicate that there are more resources to be fetched.
* The next page may be empty (but then {@link PagedResponse.next_page_token} would be `null` to confirm that there are no more resources).
*/
next_page_token: string | null;
};

@@ -56,1 +56,6 @@ /**

export declare const personFieldsUrl: () => string;
/**
* @hidden
* See [here](https://api-docs.affinity.co/#entity-files) for more info.
*/
export declare const entityFilesUrl: (entity_file_id?: number, is_download?: boolean) => string;
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