@constructor-io/constructorio-node
Advanced tools
+1
-1
| { | ||
| "name": "@constructor-io/constructorio-node", | ||
| "version": "5.5.1", | ||
| "version": "5.7.0", | ||
| "description": "Constructor.io Node.js client", | ||
@@ -5,0 +5,0 @@ "main": "src/constructorio.js", |
+184
-0
@@ -18,2 +18,6 @@ import type fs from 'fs'; | ||
| SearchabilityConfigurationResponse, | ||
| FacetConfigurationV2, | ||
| FacetConfigurationV2Response, | ||
| SearchabilityConfigurationV2, | ||
| SearchabilityConfigurationV2Response, | ||
| } from '.'; | ||
@@ -177,2 +181,3 @@ | ||
| itemGroups?: File | fs.ReadStream | Duplex; | ||
| format?: 'csv' | 'jsonl'; | ||
| } | ||
@@ -190,2 +195,3 @@ | ||
| itemGroups?: File | fs.ReadStream | Duplex; | ||
| format?: 'csv' | 'jsonl'; | ||
| } | ||
@@ -198,2 +204,3 @@ | ||
| tarArchive?: File | fs.ReadStream | Duplex; | ||
| format?: 'csv' | 'jsonl'; | ||
| } | ||
@@ -279,2 +286,82 @@ | ||
| // V2 Facet Configuration Parameters | ||
| export type AddFacetConfigurationV2Parameters = FacetConfigurationV2; | ||
| export type ReplaceFacetConfigurationV2Parameters = FacetConfigurationV2; | ||
| export interface GetFacetConfigurationsV2Parameters { | ||
| page?: number; | ||
| numResultsPerPage?: number; | ||
| offset?: number; | ||
| section?: string; | ||
| } | ||
| export interface GetFacetConfigurationV2Parameters { | ||
| name: string; | ||
| section?: string; | ||
| } | ||
| export interface CreateOrReplaceFacetConfigurationsV2Parameters { | ||
| facetConfigurations: FacetConfigurationV2[]; | ||
| section?: string; | ||
| } | ||
| export interface ModifyFacetConfigurationsV2Parameters { | ||
| facetConfigurations: (Partial<FacetConfigurationV2> & { name: string })[]; | ||
| section?: string; | ||
| } | ||
| export interface RemoveFacetConfigurationV2Parameters { | ||
| name: string; | ||
| section?: string; | ||
| } | ||
| // V2 Searchabilities Parameters | ||
| export interface RetrieveSearchabilitiesV2Parameters { | ||
| name?: string; | ||
| page?: number; | ||
| offset?: number; | ||
| numResultsPerPage?: number; | ||
| fuzzySearchable?: boolean; | ||
| exactSearchable?: boolean; | ||
| displayable?: boolean; | ||
| matchType?: 'and' | 'or'; | ||
| sortBy?: 'name'; | ||
| sortOrder?: 'ascending' | 'descending'; | ||
| section?: string; | ||
| } | ||
| export interface RetrieveSearchabilityV2Parameters { | ||
| name: string; | ||
| section?: string; | ||
| } | ||
| export interface PatchSearchabilitiesV2Parameters { | ||
| searchabilities: SearchabilityConfigurationV2[]; | ||
| skipRebuild?: boolean; | ||
| section?: string; | ||
| } | ||
| export interface PatchSearchabilityV2Parameters { | ||
| name: string; | ||
| fuzzySearchable?: boolean; | ||
| exactSearchable?: boolean; | ||
| displayable?: boolean; | ||
| hidden?: boolean; | ||
| skipRebuild?: boolean; | ||
| section?: string; | ||
| } | ||
| export interface DeleteSearchabilitiesV2Parameters { | ||
| searchabilities: { name: string }[]; | ||
| skipRebuild?: boolean; | ||
| section?: string; | ||
| } | ||
| export interface DeleteSearchabilityV2Parameters { | ||
| name: string; | ||
| skipRebuild?: boolean; | ||
| section?: string; | ||
| } | ||
| interface CatalogMutationResponse { | ||
@@ -520,2 +607,3 @@ task_id: string; | ||
| /** @deprecated Use addFacetConfigurationV2 instead. */ | ||
| addFacetConfiguration( | ||
@@ -526,2 +614,3 @@ parameters: FacetConfiguration, | ||
| /** @deprecated Use getFacetConfigurationsV2 instead. */ | ||
| getFacetConfigurations( | ||
@@ -536,2 +625,3 @@ parameters: GetFacetConfigurationsParameters, | ||
| /** @deprecated Use getFacetConfigurationV2 instead. */ | ||
| getFacetConfiguration( | ||
@@ -542,2 +632,3 @@ parameters: GetFacetConfigurationParameters, | ||
| /** @deprecated Use modifyFacetConfigurationsV2 instead. */ | ||
| modifyFacetConfigurations( | ||
@@ -548,2 +639,3 @@ parameters?: ModifyFacetConfigurationsParameters, | ||
| /** @deprecated Use replaceFacetConfigurationV2 instead. */ | ||
| replaceFacetConfiguration( | ||
@@ -554,2 +646,3 @@ parameters: FacetConfiguration, | ||
| /** @deprecated Use modifyFacetConfigurationV2 instead. */ | ||
| modifyFacetConfiguration( | ||
@@ -560,2 +653,3 @@ parameters: FacetConfiguration, | ||
| /** @deprecated Use removeFacetConfigurationV2 instead. */ | ||
| removeFacetConfiguration( | ||
@@ -605,2 +699,3 @@ parameters?: RemoveFacetConfigurationParameters, | ||
| /** @deprecated Use retrieveSearchabilitiesV2 instead. */ | ||
| retrieveSearchabilities( | ||
@@ -614,2 +709,3 @@ parameters?: RetrieveSearchabilitiesParameters, | ||
| /** @deprecated Use patchSearchabilitiesV2 instead. */ | ||
| patchSearchabilities( | ||
@@ -621,2 +717,90 @@ parameters: PatchSearchabilitiesParameters, | ||
| }>; | ||
| // V2 Facet Configuration Methods | ||
| addFacetConfigurationV2( | ||
| parameters: AddFacetConfigurationV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<FacetConfigurationV2Response>; | ||
| getFacetConfigurationsV2( | ||
| parameters?: GetFacetConfigurationsV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<{ | ||
| facets: FacetConfigurationV2Response[]; | ||
| total_count: number; | ||
| }>; | ||
| getFacetConfigurationV2( | ||
| parameters: GetFacetConfigurationV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<FacetConfigurationV2Response>; | ||
| createOrReplaceFacetConfigurationsV2( | ||
| parameters: CreateOrReplaceFacetConfigurationsV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<{ | ||
| facets: FacetConfigurationV2Response[]; | ||
| }>; | ||
| modifyFacetConfigurationsV2( | ||
| parameters: ModifyFacetConfigurationsV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<{ | ||
| facets: FacetConfigurationV2Response[]; | ||
| }>; | ||
| replaceFacetConfigurationV2( | ||
| parameters: ReplaceFacetConfigurationV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<FacetConfigurationV2Response>; | ||
| modifyFacetConfigurationV2( | ||
| parameters: Partial<FacetConfigurationV2> & { name: string }, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<FacetConfigurationV2Response>; | ||
| removeFacetConfigurationV2( | ||
| parameters: RemoveFacetConfigurationV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<FacetConfigurationV2Response>; | ||
| // V2 Searchabilities Methods | ||
| retrieveSearchabilitiesV2( | ||
| parameters?: RetrieveSearchabilitiesV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<{ | ||
| searchabilities: SearchabilityConfigurationV2Response[]; | ||
| total_count: number; | ||
| }>; | ||
| retrieveSearchabilityV2( | ||
| parameters: RetrieveSearchabilityV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<SearchabilityConfigurationV2Response>; | ||
| patchSearchabilitiesV2( | ||
| parameters: PatchSearchabilitiesV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<{ | ||
| searchabilities: SearchabilityConfigurationV2Response[]; | ||
| total_count: number; | ||
| }>; | ||
| patchSearchabilityV2( | ||
| parameters: PatchSearchabilityV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<SearchabilityConfigurationV2Response>; | ||
| deleteSearchabilitiesV2( | ||
| parameters: DeleteSearchabilitiesV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<{ | ||
| searchabilities: SearchabilityConfigurationV2Response[]; | ||
| total_count: number; | ||
| }>; | ||
| deleteSearchabilityV2( | ||
| parameters: DeleteSearchabilityV2Parameters, | ||
| networkParameters?: NetworkParameters | ||
| ): Promise<SearchabilityConfigurationV2Response>; | ||
| } |
+64
-0
@@ -338,2 +338,66 @@ export * from './autocomplete'; | ||
| // V2 Facet Types | ||
| export interface FacetConfigurationV2Base { | ||
| name: string; | ||
| pathInMetadata: string; | ||
| displayName?: string; | ||
| sortOrder?: 'relevance' | 'value' | 'num_matches'; | ||
| sortDescending?: boolean; | ||
| matchType?: 'any' | 'all' | 'none'; | ||
| position?: number | null; | ||
| hidden?: boolean; | ||
| protected?: boolean; | ||
| countable?: boolean; | ||
| optionsLimit?: number; | ||
| data?: Record<string, unknown>; | ||
| section?: string; | ||
| } | ||
| export type FacetConfigurationV2 = FacetConfigurationV2Base & ( | ||
| | { type: 'multiple' | 'hierarchical'; rangeType?: null; rangeFormat?: null; rangeInclusive?: null; rangeLimits?: null } | ||
| | { type: 'range'; rangeFormat: 'boundaries'; rangeType?: 'static'; rangeInclusive?: 'above' | 'below' | null; rangeLimits?: null } | ||
| | { type: 'range'; rangeFormat: 'options'; rangeLimits: number[]; rangeType?: 'static'; rangeInclusive?: 'above' | 'below' | null } | ||
| ); | ||
| export interface FacetConfigurationV2Response { | ||
| name: string; | ||
| path_in_metadata: string; | ||
| type: 'multiple' | 'hierarchical' | 'range'; | ||
| display_name?: string | null; | ||
| sort_order?: 'relevance' | 'value' | 'num_matches'; | ||
| sort_descending?: boolean; | ||
| range_type?: 'static' | null; | ||
| range_format?: 'boundaries' | 'options' | null; | ||
| range_inclusive?: 'above' | 'below' | null; | ||
| range_limits?: number[] | null; | ||
| match_type?: 'any' | 'all' | 'none'; | ||
| position?: number | null; | ||
| hidden?: boolean; | ||
| protected?: boolean; | ||
| countable?: boolean; | ||
| options_limit?: number; | ||
| data?: Record<string, unknown>; | ||
| created_at: string; | ||
| updated_at?: string; | ||
| } | ||
| // V2 Searchability Types | ||
| export interface SearchabilityConfigurationV2 { | ||
| name: string; | ||
| fuzzySearchable?: boolean; | ||
| exactSearchable?: boolean; | ||
| displayable?: boolean; | ||
| hidden?: boolean; | ||
| } | ||
| export interface SearchabilityConfigurationV2Response { | ||
| name: string; | ||
| fuzzy_searchable: boolean; | ||
| exact_searchable: boolean; | ||
| displayable: boolean; | ||
| hidden: boolean; | ||
| created_at: string; | ||
| updated_at?: string; | ||
| } | ||
| export interface ItemTracked { | ||
@@ -340,0 +404,0 @@ itemName?: string; |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
418153
14.48%10459
12.43%47
38.24%189
17.39%