Skip to content

Commit

Permalink
Add more optional querystring and header attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed Jun 4, 2019
1 parent 13b56a7 commit 0daf0bf
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
27 changes: 27 additions & 0 deletions lib/resources/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,42 @@ import { HttpResponse } from "../agent";
* Query
*/
interface Query extends OptionalStringMap {
// Authentication
api_key?: string;
licensee?: string;

// Result Filtering
filter?: string;

// Query options
page?: string;
limit?: string;

// Misc
tags?: string;

// Filters
postcode?: string;
postcode_outward?: string;
post_town?: string;
dependant_locality?: string;
organisation_name?: string;
thoroughfare?: string;
dependant_thoroughfare?: string;
building_name?: string;
building_number?: string;
sub_building_name?: string;
district?: string;
ward?: string;
postcode_type?: string;
su_organisation_indicator?: string;
country?: string;
box?: string;
}

interface Header extends OptionalStringMap {
Authorization?: string;
"IDPC-Source-IP"?: string;
}

interface Request {
Expand Down
29 changes: 29 additions & 0 deletions lib/resources/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,37 @@ import { Client } from "../client";
import { HttpResponse } from "../agent";

interface Query extends OptionalStringMap {
// Authentication
api_key?: string;
licensee?: string;

// Result Filtering
filter?: string;

// Query options
page?: string;
limit?: string;

// Misc
tags?: string;

// Filters
postcode?: string;
postcode_outward?: string;
post_town?: string;
dependant_locality?: string;
organisation_name?: string;
thoroughfare?: string;
dependant_thoroughfare?: string;
building_name?: string;
building_number?: string;
sub_building_name?: string;
district?: string;
ward?: string;
postcode_type?: string;
su_organisation_indicator?: string;
country?: string;
box?: string;
}

interface Header extends OptionalStringMap {
Expand Down
2 changes: 2 additions & 0 deletions lib/resources/postcodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ interface Query extends OptionalStringMap {
licensee?: string;
filter?: string;
page?: string;
tags?: string;
}

interface Header extends OptionalStringMap {
Authorization?: string;
"IDPC-Source-IP"?: string;
}

interface Request {
Expand Down
7 changes: 7 additions & 0 deletions lib/resources/udprn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ import { Client } from "../client";
import { HttpResponse } from "../agent";

interface Query extends OptionalStringMap {
// Authentication
api_key?: string;
licensee?: string;

// Result Filtering
filter?: string;

// Misc
tags?: string;
}

interface Header extends OptionalStringMap {
Authorization?: string;
"IDPC-Source-IP"?: string;
}

interface Request {
Expand Down
7 changes: 7 additions & 0 deletions lib/resources/umprn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ import { Client } from "../client";
import { HttpResponse } from "../agent";

interface Query extends OptionalStringMap {
// Authentication
api_key?: string;
licensee?: string;

// Result Filtering
filter?: string;

// Misc
tags?: string;
}

interface Header extends OptionalStringMap {
Authorization?: string;
"IDPC-Source-IP"?: string;
}

interface Request {
Expand Down

0 comments on commit 0daf0bf

Please sign in to comment.