@land-catalyst/batch-data-sdk 1.2.10 → 1.2.11

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.
@@ -749,6 +749,8 @@ export declare class PropertySubscriptionBuilder extends BaseBuilder<PropertySub
749
749
  searchCriteria(configurator: (builder: SearchCriteriaBuilder) => void): this;
750
750
  deliveryConfig(config: DeliveryConfig): this;
751
751
  deliveryConfig(configurator: (builder: DeliveryConfigBuilder) => void): this;
752
+ options(options: PropertyLookupOptions): this;
753
+ options(configurator: (builder: PropertyLookupOptionsBuilder) => void): this;
752
754
  build(): PropertySubscriptionRequest;
753
755
  }
754
756
  /**
@@ -2214,6 +2214,9 @@ class PropertySubscriptionBuilder extends BaseBuilder {
2214
2214
  const builder = new PropertySubscriptionBuilder();
2215
2215
  builder.searchCriteria(request.searchCriteria);
2216
2216
  builder.deliveryConfig(request.deliveryConfig);
2217
+ if (request.options) {
2218
+ builder.options(request.options);
2219
+ }
2217
2220
  return builder;
2218
2221
  }
2219
2222
  searchCriteria(criteriaOrConfigurator) {
@@ -2242,6 +2245,9 @@ class PropertySubscriptionBuilder extends BaseBuilder {
2242
2245
  }
2243
2246
  return this;
2244
2247
  }
2248
+ options(optionsOrConfigurator) {
2249
+ return this.setPropertyWithBuilderClass("options", optionsOrConfigurator, PropertyLookupOptionsBuilder);
2250
+ }
2245
2251
  build() {
2246
2252
  if (!this.criteria.searchCriteria) {
2247
2253
  throw new Error("Search criteria is required");
@@ -2249,10 +2255,17 @@ class PropertySubscriptionBuilder extends BaseBuilder {
2249
2255
  if (!this.criteria.deliveryConfig) {
2250
2256
  throw new Error("Delivery configuration is required");
2251
2257
  }
2252
- return {
2258
+ const request = {
2253
2259
  searchCriteria: this.criteria.searchCriteria,
2254
2260
  deliveryConfig: this.criteria.deliveryConfig,
2255
2261
  };
2262
+ if (this.builders.options) {
2263
+ request.options = this.builders.options.build();
2264
+ }
2265
+ else if (this.criteria.options) {
2266
+ request.options = this.criteria.options;
2267
+ }
2268
+ return request;
2256
2269
  }
2257
2270
  }
2258
2271
  exports.PropertySubscriptionBuilder = PropertySubscriptionBuilder;
@@ -481,6 +481,7 @@ export interface DeliveryConfig {
481
481
  export interface PropertySubscriptionRequest {
482
482
  searchCriteria: SearchCriteria;
483
483
  deliveryConfig: DeliveryConfig;
484
+ options?: PropertyLookupOptions;
484
485
  }
485
486
  /**
486
487
  * Property subscription response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@land-catalyst/batch-data-sdk",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "TypeScript SDK for BatchData.io Property API - Types, Builders, and Utilities",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "build": "tsc",
14
14
  "prepublishOnly": "npm run build",
15
- "test": "jest",
15
+ "test": "jest --testPathIgnorePatterns=integration",
16
16
  "test:integration": "jest --testMatch=\"**/*integration*.test.ts\"",
17
17
  "lint": "eslint src",
18
18
  "lint:fix": "eslint src --fix",