@land-catalyst/batch-data-sdk 1.1.12 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builders.d.ts → builders/builders.d.ts} +75 -1
- package/dist/{builders.js → builders/builders.js} +90 -0
- package/dist/builders/property-field-builder-mixin.d.ts +47 -0
- package/dist/builders/property-field-builder-mixin.js +35 -0
- package/dist/{client.d.ts → client/client.d.ts} +2 -2
- package/dist/{client.interface.d.ts → client/client.interface.d.ts} +1 -1
- package/dist/{client.js → client/client.js} +2 -2
- package/dist/{types.d.ts → core/types.d.ts} +217 -0
- package/dist/index.d.ts +11 -7
- package/dist/index.js +8 -6
- package/dist/property-field/metadata.d.ts +105 -0
- package/dist/property-field/metadata.js +6251 -0
- package/dist/property-field/types.d.ts +33 -0
- package/dist/property-field/types.js +9 -0
- package/dist/property-field/utils.d.ts +306 -0
- package/dist/property-field/utils.js +479 -0
- package/package.json +5 -2
- /package/dist/{client.interface.js → client/client.interface.js} +0 -0
- /package/dist/{errors.d.ts → core/errors.d.ts} +0 -0
- /package/dist/{errors.js → core/errors.js} +0 -0
- /package/dist/{logger.interface.d.ts → core/logger.interface.d.ts} +0 -0
- /package/dist/{logger.interface.js → core/logger.interface.js} +0 -0
- /package/dist/{types.js → core/types.js} +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property Field Metadata
|
|
3
|
+
*
|
|
4
|
+
* This file contains metadata about all available property response fields,
|
|
5
|
+
* generated from the property-details-data-dictionary.csv file.
|
|
6
|
+
*
|
|
7
|
+
* This metadata can be used for:
|
|
8
|
+
* - Type-safe field path access
|
|
9
|
+
* - Documentation generation
|
|
10
|
+
* - Field validation
|
|
11
|
+
* - IDE autocomplete
|
|
12
|
+
*
|
|
13
|
+
* @generated This file is auto-generated. Do not edit manually.
|
|
14
|
+
* Run: node scripts/generate-property-field-metadata.js
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Property field data type
|
|
18
|
+
*/
|
|
19
|
+
export type PropertyFieldType = "string" | "number" | "boolean" | "date" | "array[string]" | "array[number]" | "object";
|
|
20
|
+
/**
|
|
21
|
+
* Property field metadata entry
|
|
22
|
+
*/
|
|
23
|
+
export interface PropertyFieldMetadata {
|
|
24
|
+
/**
|
|
25
|
+
* The field path in the response (e.g., "address.city", "owner.names.[n].first")
|
|
26
|
+
*/
|
|
27
|
+
fieldPath: string;
|
|
28
|
+
/**
|
|
29
|
+
* The dataset this field belongs to
|
|
30
|
+
*/
|
|
31
|
+
dataset: string;
|
|
32
|
+
/**
|
|
33
|
+
* The top-level response group name (e.g., "address", "owner")
|
|
34
|
+
*/
|
|
35
|
+
responseGroupName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The resource sub-group name (e.g., "mailingAddress", "names")
|
|
38
|
+
*/
|
|
39
|
+
resourceSubGroupName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The field name
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The data type
|
|
46
|
+
*/
|
|
47
|
+
dataType: PropertyFieldType;
|
|
48
|
+
/**
|
|
49
|
+
* Human-readable description
|
|
50
|
+
*/
|
|
51
|
+
description: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether this field is an array element (indicated by [n] in the path)
|
|
54
|
+
*/
|
|
55
|
+
isArrayElement: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Registry of all property field metadata, indexed by field path
|
|
59
|
+
*/
|
|
60
|
+
export declare const PROPERTY_FIELD_METADATA: Record<string, PropertyFieldMetadata>;
|
|
61
|
+
/**
|
|
62
|
+
* Get metadata for a specific field path
|
|
63
|
+
* @param fieldPath The field path (e.g., "address.city")
|
|
64
|
+
* @returns The field metadata, or undefined if not found
|
|
65
|
+
*/
|
|
66
|
+
export declare function getFieldMetadata(fieldPath: string): PropertyFieldMetadata | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Get all fields for a specific dataset
|
|
69
|
+
* @param dataset The dataset name
|
|
70
|
+
* @returns Array of field metadata
|
|
71
|
+
*/
|
|
72
|
+
export declare function getFieldsByDataset(dataset: string): PropertyFieldMetadata[];
|
|
73
|
+
/**
|
|
74
|
+
* Get all fields for a specific response group
|
|
75
|
+
* @param responseGroupName The response group name (e.g., "address", "owner")
|
|
76
|
+
* @returns Array of field metadata
|
|
77
|
+
*/
|
|
78
|
+
export declare function getFieldsByResponseGroup(responseGroupName: string): PropertyFieldMetadata[];
|
|
79
|
+
/**
|
|
80
|
+
* Get all available field paths
|
|
81
|
+
* @returns Array of field paths
|
|
82
|
+
*/
|
|
83
|
+
export declare function getAllFieldPaths(): string[];
|
|
84
|
+
/**
|
|
85
|
+
* Get all available datasets
|
|
86
|
+
* @returns Array of unique dataset names
|
|
87
|
+
*/
|
|
88
|
+
export declare function getAllDatasets(): string[];
|
|
89
|
+
/**
|
|
90
|
+
* Get all available response groups
|
|
91
|
+
* @returns Array of unique response group names
|
|
92
|
+
*/
|
|
93
|
+
export declare function getAllResponseGroups(): string[];
|
|
94
|
+
/**
|
|
95
|
+
* Check if a field path exists in the metadata
|
|
96
|
+
* @param fieldPath The field path to check
|
|
97
|
+
* @returns True if the field exists
|
|
98
|
+
*/
|
|
99
|
+
export declare function hasField(fieldPath: string): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Get the TypeScript type for a field based on its data type
|
|
102
|
+
* @param dataType The property field data type
|
|
103
|
+
* @returns The TypeScript type string
|
|
104
|
+
*/
|
|
105
|
+
export declare function getTypeScriptType(dataType: PropertyFieldType): string;
|