@planet-a/affinity-node
Advanced tools
Comparing version 0.0.1-test.8 to 0.0.1-test.9
{ | ||
"name": "@planet-a/affinity-node", | ||
"version": "0.0.1-test.8", | ||
"version": "0.0.1-test.9", | ||
"description": "API wrapper for the affinity.co API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -37,3 +37,3 @@ import type { AxiosInstance } from 'axios'; | ||
export type ValueRaw = DropdownValue | RankedDropdownValue | NumberValue | PersonValue | OrganizationValue | LocationValue | DateTime | TextValue; | ||
export type Value = Omit<ValueRaw, DateTime> | Date; | ||
export type Value = Exclude<ValueRaw, DateTime> | Date; | ||
export interface FieldValueRawValues extends Record<keyof FieldValueType, ValueRaw> { | ||
@@ -124,3 +124,3 @@ [FieldValueType.RANKED_DROPDOWN]: RankedDropdownValue; | ||
export type FieldValueResponseRaw = FieldValueRaw[]; | ||
export type FieldValue = Omit<FieldValueRaw, 'value' | 'updated_at' | 'created_at'> & { | ||
export type FieldValue = Omit<FieldValueRaw, 'value' | 'updated_at' | 'created_at' | 'value_type'> & { | ||
updated_at: Date | null; | ||
@@ -133,3 +133,7 @@ created_at: Date; | ||
entity_id: number; | ||
value: Value; | ||
/** | ||
* The value of the field value. | ||
* In case of a {@link FieldValueType.DROPDOWN} or {@link FieldValueType.RANKED_DROPDOWN} field, this should be the text of the value. | ||
*/ | ||
value: Exclude<Value, DropdownValue | RankedDropdownValue>; | ||
list_entry_id?: number; | ||
@@ -136,0 +140,0 @@ }; |
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
106577
2743