@gethydra/sdk 0.6.0 → 0.8.0
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/index.d.ts +671 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,16 @@ interface components {
|
|
|
67
67
|
currency_rounding: "none" | "up" | "down";
|
|
68
68
|
/** @example America/New_York */
|
|
69
69
|
timezone: string;
|
|
70
|
+
/**
|
|
71
|
+
* @example metric
|
|
72
|
+
* @enum {string}
|
|
73
|
+
*/
|
|
74
|
+
unit_system: "metric" | "imperial";
|
|
75
|
+
/**
|
|
76
|
+
* @example kg
|
|
77
|
+
* @enum {string}
|
|
78
|
+
*/
|
|
79
|
+
default_weight_unit: "kg" | "g" | "lb" | "oz";
|
|
70
80
|
/**
|
|
71
81
|
* @example pro
|
|
72
82
|
* @enum {string}
|
|
@@ -260,6 +270,10 @@ interface components {
|
|
|
260
270
|
/** @example verified */
|
|
261
271
|
status?: string;
|
|
262
272
|
}[] | null;
|
|
273
|
+
/** @example false */
|
|
274
|
+
auto_publish: boolean;
|
|
275
|
+
/** @example 30 */
|
|
276
|
+
auto_publish_debounce_seconds: number;
|
|
263
277
|
/**
|
|
264
278
|
* Format: date-time
|
|
265
279
|
* @example 2026-09-08T10:00:00.000Z
|
|
@@ -518,6 +532,69 @@ interface components {
|
|
|
518
532
|
*/
|
|
519
533
|
updated_at: string;
|
|
520
534
|
};
|
|
535
|
+
DeployHook: {
|
|
536
|
+
/** @example dh_abc123 */
|
|
537
|
+
id: string;
|
|
538
|
+
/** @example Main Storefront */
|
|
539
|
+
name: string;
|
|
540
|
+
/**
|
|
541
|
+
* @example github_actions
|
|
542
|
+
* @enum {string}
|
|
543
|
+
*/
|
|
544
|
+
type: "github_actions" | "http";
|
|
545
|
+
/** @example bg-git/BROOKSANDGRANT-QUANTUM-STOREFRONT */
|
|
546
|
+
url: string;
|
|
547
|
+
/**
|
|
548
|
+
* @description Masked after creation. Full value only shown on create.
|
|
549
|
+
* @example ghp_****abcd
|
|
550
|
+
*/
|
|
551
|
+
secret: string | null;
|
|
552
|
+
/** @example rebuild */
|
|
553
|
+
event_type: string | null;
|
|
554
|
+
/**
|
|
555
|
+
* @example active
|
|
556
|
+
* @enum {string}
|
|
557
|
+
*/
|
|
558
|
+
status: "active" | "paused";
|
|
559
|
+
/**
|
|
560
|
+
* Format: date-time
|
|
561
|
+
* @example 2026-11-28T10:00:00.000Z
|
|
562
|
+
*/
|
|
563
|
+
last_triggered_at: string | null;
|
|
564
|
+
/**
|
|
565
|
+
* @example success
|
|
566
|
+
* @enum {string|null}
|
|
567
|
+
*/
|
|
568
|
+
last_status: "success" | "failed" | null;
|
|
569
|
+
/** @example 204 */
|
|
570
|
+
last_http_status: number | null;
|
|
571
|
+
/** @example null */
|
|
572
|
+
last_error: string | null;
|
|
573
|
+
/** @example 0 */
|
|
574
|
+
consecutive_failures: number;
|
|
575
|
+
/** @example 5 */
|
|
576
|
+
auto_pause_threshold: number;
|
|
577
|
+
/**
|
|
578
|
+
* Format: date-time
|
|
579
|
+
* @example 2026-11-01T00:00:00.000Z
|
|
580
|
+
*/
|
|
581
|
+
created_at: string;
|
|
582
|
+
/**
|
|
583
|
+
* Format: date-time
|
|
584
|
+
* @example 2026-11-28T10:00:00.000Z
|
|
585
|
+
*/
|
|
586
|
+
updated_at: string;
|
|
587
|
+
};
|
|
588
|
+
DeployHookTestResult: {
|
|
589
|
+
/** @example dh_abc123 */
|
|
590
|
+
hook_id: string;
|
|
591
|
+
/** @example true */
|
|
592
|
+
success: boolean;
|
|
593
|
+
/** @example 204 */
|
|
594
|
+
http_status: number | null;
|
|
595
|
+
/** @example null */
|
|
596
|
+
error: string | null;
|
|
597
|
+
};
|
|
521
598
|
ApiKey: {
|
|
522
599
|
/** @example key_abc123 */
|
|
523
600
|
id: string;
|
|
@@ -4661,6 +4738,16 @@ interface operations {
|
|
|
4661
4738
|
currency_rounding?: "none" | "up" | "down";
|
|
4662
4739
|
/** @example America/New_York */
|
|
4663
4740
|
timezone?: string;
|
|
4741
|
+
/**
|
|
4742
|
+
* @example metric
|
|
4743
|
+
* @enum {string}
|
|
4744
|
+
*/
|
|
4745
|
+
unit_system?: "metric" | "imperial";
|
|
4746
|
+
/**
|
|
4747
|
+
* @example kg
|
|
4748
|
+
* @enum {string}
|
|
4749
|
+
*/
|
|
4750
|
+
default_weight_unit?: "kg" | "g" | "lb" | "oz";
|
|
4664
4751
|
/**
|
|
4665
4752
|
* @example [
|
|
4666
4753
|
* "https://shop.acme.com"
|
|
@@ -4792,6 +4879,16 @@ interface operations {
|
|
|
4792
4879
|
* @example orders
|
|
4793
4880
|
*/
|
|
4794
4881
|
notification_from_email?: string | null;
|
|
4882
|
+
/**
|
|
4883
|
+
* @description When enabled, storefront changes are automatically published after a debounce period.
|
|
4884
|
+
* @example false
|
|
4885
|
+
*/
|
|
4886
|
+
auto_publish?: boolean;
|
|
4887
|
+
/**
|
|
4888
|
+
* @description Quiet period in seconds before auto-publish fires. Default 30.
|
|
4889
|
+
* @example 30
|
|
4890
|
+
*/
|
|
4891
|
+
auto_publish_debounce_seconds?: number;
|
|
4795
4892
|
/** @description Partial update — only provided fields are changed, others are preserved. */
|
|
4796
4893
|
booking_config?: {
|
|
4797
4894
|
/** @example 60 */
|
|
@@ -5999,6 +6096,203 @@ interface operations {
|
|
|
5999
6096
|
};
|
|
6000
6097
|
};
|
|
6001
6098
|
};
|
|
6099
|
+
listDeployHooks: {
|
|
6100
|
+
parameters: {
|
|
6101
|
+
query?: {
|
|
6102
|
+
limit?: number;
|
|
6103
|
+
cursor?: string;
|
|
6104
|
+
fields?: string;
|
|
6105
|
+
order?: "asc" | "desc";
|
|
6106
|
+
};
|
|
6107
|
+
header?: never;
|
|
6108
|
+
path?: never;
|
|
6109
|
+
cookie?: never;
|
|
6110
|
+
};
|
|
6111
|
+
requestBody?: never;
|
|
6112
|
+
responses: {
|
|
6113
|
+
/** @description Paginated deploy hook list */
|
|
6114
|
+
200: {
|
|
6115
|
+
headers: {
|
|
6116
|
+
[name: string]: unknown;
|
|
6117
|
+
};
|
|
6118
|
+
content: {
|
|
6119
|
+
"application/json": {
|
|
6120
|
+
data: components["schemas"]["DeployHook"][];
|
|
6121
|
+
pagination: {
|
|
6122
|
+
cursor: string | null;
|
|
6123
|
+
has_more: boolean;
|
|
6124
|
+
total: number;
|
|
6125
|
+
};
|
|
6126
|
+
};
|
|
6127
|
+
};
|
|
6128
|
+
};
|
|
6129
|
+
};
|
|
6130
|
+
};
|
|
6131
|
+
createDeployHook: {
|
|
6132
|
+
parameters: {
|
|
6133
|
+
query?: never;
|
|
6134
|
+
header?: never;
|
|
6135
|
+
path?: never;
|
|
6136
|
+
cookie?: never;
|
|
6137
|
+
};
|
|
6138
|
+
requestBody?: {
|
|
6139
|
+
content: {
|
|
6140
|
+
"application/json": {
|
|
6141
|
+
/** @example Main Storefront */
|
|
6142
|
+
name: string;
|
|
6143
|
+
/**
|
|
6144
|
+
* @example github_actions
|
|
6145
|
+
* @enum {string}
|
|
6146
|
+
*/
|
|
6147
|
+
type: "github_actions" | "http";
|
|
6148
|
+
/**
|
|
6149
|
+
* @description For github_actions: owner/repo. For http: a full HTTPS URL (e.g. Vercel, Netlify, or Cloudflare Pages deploy hook).
|
|
6150
|
+
* @example bg-git/BROOKSANDGRANT-QUANTUM-STOREFRONT
|
|
6151
|
+
*/
|
|
6152
|
+
url: string;
|
|
6153
|
+
/** @description For github_actions: a GitHub Personal Access Token with Actions write scope. For http: an optional Bearer token. */
|
|
6154
|
+
secret?: string;
|
|
6155
|
+
/**
|
|
6156
|
+
* @description GitHub Actions event_type for repository_dispatch. Defaults to "rebuild".
|
|
6157
|
+
* @example rebuild
|
|
6158
|
+
*/
|
|
6159
|
+
event_type?: string;
|
|
6160
|
+
/**
|
|
6161
|
+
* @description Auto-pause after N consecutive failures. 0 disables auto-pause.
|
|
6162
|
+
* @default 5
|
|
6163
|
+
* @example 5
|
|
6164
|
+
*/
|
|
6165
|
+
auto_pause_threshold?: number;
|
|
6166
|
+
};
|
|
6167
|
+
};
|
|
6168
|
+
};
|
|
6169
|
+
responses: {
|
|
6170
|
+
/** @description Deploy hook created */
|
|
6171
|
+
201: {
|
|
6172
|
+
headers: {
|
|
6173
|
+
[name: string]: unknown;
|
|
6174
|
+
};
|
|
6175
|
+
content: {
|
|
6176
|
+
"application/json": {
|
|
6177
|
+
data: components["schemas"]["DeployHook"];
|
|
6178
|
+
};
|
|
6179
|
+
};
|
|
6180
|
+
};
|
|
6181
|
+
};
|
|
6182
|
+
};
|
|
6183
|
+
getDeployHook: {
|
|
6184
|
+
parameters: {
|
|
6185
|
+
query?: {
|
|
6186
|
+
fields?: string;
|
|
6187
|
+
};
|
|
6188
|
+
header?: never;
|
|
6189
|
+
path: {
|
|
6190
|
+
id: string;
|
|
6191
|
+
};
|
|
6192
|
+
cookie?: never;
|
|
6193
|
+
};
|
|
6194
|
+
requestBody?: never;
|
|
6195
|
+
responses: {
|
|
6196
|
+
/** @description Deploy hook details */
|
|
6197
|
+
200: {
|
|
6198
|
+
headers: {
|
|
6199
|
+
[name: string]: unknown;
|
|
6200
|
+
};
|
|
6201
|
+
content: {
|
|
6202
|
+
"application/json": {
|
|
6203
|
+
data: components["schemas"]["DeployHook"];
|
|
6204
|
+
};
|
|
6205
|
+
};
|
|
6206
|
+
};
|
|
6207
|
+
};
|
|
6208
|
+
};
|
|
6209
|
+
deleteDeployHook: {
|
|
6210
|
+
parameters: {
|
|
6211
|
+
query?: never;
|
|
6212
|
+
header?: never;
|
|
6213
|
+
path: {
|
|
6214
|
+
id: string;
|
|
6215
|
+
};
|
|
6216
|
+
cookie?: never;
|
|
6217
|
+
};
|
|
6218
|
+
requestBody?: never;
|
|
6219
|
+
responses: {
|
|
6220
|
+
/** @description Deploy hook deleted */
|
|
6221
|
+
204: {
|
|
6222
|
+
headers: {
|
|
6223
|
+
[name: string]: unknown;
|
|
6224
|
+
};
|
|
6225
|
+
content?: never;
|
|
6226
|
+
};
|
|
6227
|
+
};
|
|
6228
|
+
};
|
|
6229
|
+
updateDeployHook: {
|
|
6230
|
+
parameters: {
|
|
6231
|
+
query?: never;
|
|
6232
|
+
header?: never;
|
|
6233
|
+
path: {
|
|
6234
|
+
id: string;
|
|
6235
|
+
};
|
|
6236
|
+
cookie?: never;
|
|
6237
|
+
};
|
|
6238
|
+
requestBody?: {
|
|
6239
|
+
content: {
|
|
6240
|
+
"application/json": {
|
|
6241
|
+
/** @example Main Storefront */
|
|
6242
|
+
name?: string;
|
|
6243
|
+
/** @example bg-git/BROOKSANDGRANT-QUANTUM-STOREFRONT */
|
|
6244
|
+
url?: string;
|
|
6245
|
+
secret?: string;
|
|
6246
|
+
/** @example rebuild */
|
|
6247
|
+
event_type?: string;
|
|
6248
|
+
/**
|
|
6249
|
+
* @example active
|
|
6250
|
+
* @enum {string}
|
|
6251
|
+
*/
|
|
6252
|
+
status?: "active" | "paused";
|
|
6253
|
+
/** @example 5 */
|
|
6254
|
+
auto_pause_threshold?: number;
|
|
6255
|
+
};
|
|
6256
|
+
};
|
|
6257
|
+
};
|
|
6258
|
+
responses: {
|
|
6259
|
+
/** @description Deploy hook updated */
|
|
6260
|
+
200: {
|
|
6261
|
+
headers: {
|
|
6262
|
+
[name: string]: unknown;
|
|
6263
|
+
};
|
|
6264
|
+
content: {
|
|
6265
|
+
"application/json": {
|
|
6266
|
+
data: components["schemas"]["DeployHook"];
|
|
6267
|
+
};
|
|
6268
|
+
};
|
|
6269
|
+
};
|
|
6270
|
+
};
|
|
6271
|
+
};
|
|
6272
|
+
testDeployHook: {
|
|
6273
|
+
parameters: {
|
|
6274
|
+
query?: never;
|
|
6275
|
+
header?: never;
|
|
6276
|
+
path: {
|
|
6277
|
+
id: string;
|
|
6278
|
+
};
|
|
6279
|
+
cookie?: never;
|
|
6280
|
+
};
|
|
6281
|
+
requestBody?: never;
|
|
6282
|
+
responses: {
|
|
6283
|
+
/** @description Test trigger result */
|
|
6284
|
+
200: {
|
|
6285
|
+
headers: {
|
|
6286
|
+
[name: string]: unknown;
|
|
6287
|
+
};
|
|
6288
|
+
content: {
|
|
6289
|
+
"application/json": {
|
|
6290
|
+
data: components["schemas"]["DeployHookTestResult"];
|
|
6291
|
+
};
|
|
6292
|
+
};
|
|
6293
|
+
};
|
|
6294
|
+
};
|
|
6295
|
+
};
|
|
6002
6296
|
listApiKeys: {
|
|
6003
6297
|
parameters: {
|
|
6004
6298
|
query?: never;
|
|
@@ -18553,6 +18847,18 @@ interface operations {
|
|
|
18553
18847
|
listing_tier?: string;
|
|
18554
18848
|
status?: "draft" | "active" | "pending" | "suspended";
|
|
18555
18849
|
search?: string;
|
|
18850
|
+
slug?: string;
|
|
18851
|
+
region?: string;
|
|
18852
|
+
postcode?: string;
|
|
18853
|
+
country?: string;
|
|
18854
|
+
service_mode?: "location" | "mobile" | "online" | "hybrid";
|
|
18855
|
+
price_range?: string;
|
|
18856
|
+
verified?: boolean | null;
|
|
18857
|
+
claimed?: boolean | null;
|
|
18858
|
+
services?: string;
|
|
18859
|
+
amenities?: string;
|
|
18860
|
+
brands?: string;
|
|
18861
|
+
accreditations?: string;
|
|
18556
18862
|
sort?: "created_at" | "updated_at" | "name" | "city";
|
|
18557
18863
|
order?: "asc" | "desc";
|
|
18558
18864
|
};
|
|
@@ -18578,6 +18884,7 @@ interface operations {
|
|
|
18578
18884
|
phone: string | null;
|
|
18579
18885
|
email: string | null;
|
|
18580
18886
|
website: string | null;
|
|
18887
|
+
booking_url: string | null;
|
|
18581
18888
|
address: string | null;
|
|
18582
18889
|
address_line_2: string | null;
|
|
18583
18890
|
address_line_3: string | null;
|
|
@@ -18644,6 +18951,8 @@ interface operations {
|
|
|
18644
18951
|
email?: string | null;
|
|
18645
18952
|
/** Format: uri */
|
|
18646
18953
|
website?: string | null;
|
|
18954
|
+
/** Format: uri */
|
|
18955
|
+
booking_url?: string | null;
|
|
18647
18956
|
address?: string | null;
|
|
18648
18957
|
address_line_2?: string | null;
|
|
18649
18958
|
address_line_3?: string | null;
|
|
@@ -18716,6 +19025,7 @@ interface operations {
|
|
|
18716
19025
|
phone: string | null;
|
|
18717
19026
|
email: string | null;
|
|
18718
19027
|
website: string | null;
|
|
19028
|
+
booking_url: string | null;
|
|
18719
19029
|
address: string | null;
|
|
18720
19030
|
address_line_2: string | null;
|
|
18721
19031
|
address_line_3: string | null;
|
|
@@ -18857,6 +19167,7 @@ interface operations {
|
|
|
18857
19167
|
phone: string | null;
|
|
18858
19168
|
email: string | null;
|
|
18859
19169
|
website: string | null;
|
|
19170
|
+
booking_url: string | null;
|
|
18860
19171
|
address: string | null;
|
|
18861
19172
|
address_line_2: string | null;
|
|
18862
19173
|
address_line_3: string | null;
|
|
@@ -18940,6 +19251,8 @@ interface operations {
|
|
|
18940
19251
|
email?: string | null;
|
|
18941
19252
|
/** Format: uri */
|
|
18942
19253
|
website?: string | null;
|
|
19254
|
+
/** Format: uri */
|
|
19255
|
+
booking_url?: string | null;
|
|
18943
19256
|
address?: string | null;
|
|
18944
19257
|
address_line_2?: string | null;
|
|
18945
19258
|
address_line_3?: string | null;
|
|
@@ -18948,47 +19261,31 @@ interface operations {
|
|
|
18948
19261
|
latitude?: number | null;
|
|
18949
19262
|
longitude?: number | null;
|
|
18950
19263
|
region?: string | null;
|
|
18951
|
-
/** @default United Kingdom */
|
|
18952
19264
|
country?: string | null;
|
|
18953
19265
|
category_key?: string;
|
|
18954
19266
|
logo_id?: string | null;
|
|
18955
|
-
/** @default [] */
|
|
18956
19267
|
image_ids?: string[];
|
|
18957
|
-
/** @default {} */
|
|
18958
19268
|
social?: {
|
|
18959
19269
|
[key: string]: string;
|
|
18960
19270
|
};
|
|
18961
19271
|
opening_hours?: unknown;
|
|
18962
|
-
/** @default [] */
|
|
18963
19272
|
services?: string[];
|
|
18964
|
-
/** @default [] */
|
|
18965
19273
|
amenities?: string[];
|
|
18966
|
-
/** @default [] */
|
|
18967
19274
|
brands?: string[];
|
|
18968
|
-
/** @default [] */
|
|
18969
19275
|
accreditations?: string[];
|
|
18970
19276
|
price_range?: string | null;
|
|
18971
|
-
/**
|
|
18972
|
-
* @default location
|
|
18973
|
-
* @enum {string}
|
|
18974
|
-
*/
|
|
19277
|
+
/** @enum {string} */
|
|
18975
19278
|
service_mode?: "location" | "mobile" | "online" | "hybrid";
|
|
18976
|
-
/** @default [] */
|
|
18977
19279
|
additional_details?: {
|
|
18978
19280
|
label: string;
|
|
18979
19281
|
value: string;
|
|
18980
19282
|
}[];
|
|
18981
|
-
/** @default {} */
|
|
18982
19283
|
accessibility?: {
|
|
18983
19284
|
[key: string]: boolean;
|
|
18984
19285
|
};
|
|
18985
19286
|
listing_tier?: string | null;
|
|
18986
|
-
/**
|
|
18987
|
-
* @default draft
|
|
18988
|
-
* @enum {string}
|
|
18989
|
-
*/
|
|
19287
|
+
/** @enum {string} */
|
|
18990
19288
|
status?: "draft" | "active" | "pending" | "suspended";
|
|
18991
|
-
/** @default null */
|
|
18992
19289
|
verified?: boolean | null;
|
|
18993
19290
|
/** Format: uri */
|
|
18994
19291
|
source_url?: string | null;
|
|
@@ -19012,6 +19309,7 @@ interface operations {
|
|
|
19012
19309
|
phone: string | null;
|
|
19013
19310
|
email: string | null;
|
|
19014
19311
|
website: string | null;
|
|
19312
|
+
booking_url: string | null;
|
|
19015
19313
|
address: string | null;
|
|
19016
19314
|
address_line_2: string | null;
|
|
19017
19315
|
address_line_3: string | null;
|
|
@@ -19614,6 +19912,361 @@ interface operations {
|
|
|
19614
19912
|
};
|
|
19615
19913
|
};
|
|
19616
19914
|
};
|
|
19915
|
+
listGeoCountries: {
|
|
19916
|
+
parameters: {
|
|
19917
|
+
query?: never;
|
|
19918
|
+
header?: never;
|
|
19919
|
+
path?: never;
|
|
19920
|
+
cookie?: never;
|
|
19921
|
+
};
|
|
19922
|
+
requestBody?: never;
|
|
19923
|
+
responses: {
|
|
19924
|
+
/** @description Country list */
|
|
19925
|
+
200: {
|
|
19926
|
+
headers: {
|
|
19927
|
+
[name: string]: unknown;
|
|
19928
|
+
};
|
|
19929
|
+
content: {
|
|
19930
|
+
"application/json": {
|
|
19931
|
+
data: {
|
|
19932
|
+
/** @example GB */
|
|
19933
|
+
code: string;
|
|
19934
|
+
/** @example United Kingdom */
|
|
19935
|
+
name: string;
|
|
19936
|
+
/** @example 99 */
|
|
19937
|
+
region_count: number;
|
|
19938
|
+
}[];
|
|
19939
|
+
};
|
|
19940
|
+
};
|
|
19941
|
+
};
|
|
19942
|
+
};
|
|
19943
|
+
};
|
|
19944
|
+
getGeoCountry: {
|
|
19945
|
+
parameters: {
|
|
19946
|
+
query?: never;
|
|
19947
|
+
header?: never;
|
|
19948
|
+
path: {
|
|
19949
|
+
code: string;
|
|
19950
|
+
};
|
|
19951
|
+
cookie?: never;
|
|
19952
|
+
};
|
|
19953
|
+
requestBody?: never;
|
|
19954
|
+
responses: {
|
|
19955
|
+
/** @description Country detail */
|
|
19956
|
+
200: {
|
|
19957
|
+
headers: {
|
|
19958
|
+
[name: string]: unknown;
|
|
19959
|
+
};
|
|
19960
|
+
content: {
|
|
19961
|
+
"application/json": {
|
|
19962
|
+
data: {
|
|
19963
|
+
/** @example GB */
|
|
19964
|
+
code: string;
|
|
19965
|
+
/** @example United Kingdom */
|
|
19966
|
+
name: string;
|
|
19967
|
+
/**
|
|
19968
|
+
* @example [
|
|
19969
|
+
* "England",
|
|
19970
|
+
* "Scotland",
|
|
19971
|
+
* "Wales",
|
|
19972
|
+
* "Northern Ireland"
|
|
19973
|
+
* ]
|
|
19974
|
+
*/
|
|
19975
|
+
subdivisions: string[];
|
|
19976
|
+
/** @example 99 */
|
|
19977
|
+
region_count: number;
|
|
19978
|
+
};
|
|
19979
|
+
};
|
|
19980
|
+
};
|
|
19981
|
+
};
|
|
19982
|
+
};
|
|
19983
|
+
};
|
|
19984
|
+
listGeoRegions: {
|
|
19985
|
+
parameters: {
|
|
19986
|
+
query?: {
|
|
19987
|
+
/** @description Filter by ISO country code */
|
|
19988
|
+
country?: string;
|
|
19989
|
+
/** @description Filter by parent subdivision */
|
|
19990
|
+
parent?: string;
|
|
19991
|
+
/** @description Filter by region type */
|
|
19992
|
+
type?: string;
|
|
19993
|
+
};
|
|
19994
|
+
header?: never;
|
|
19995
|
+
path?: never;
|
|
19996
|
+
cookie?: never;
|
|
19997
|
+
};
|
|
19998
|
+
requestBody?: never;
|
|
19999
|
+
responses: {
|
|
20000
|
+
/** @description Region list */
|
|
20001
|
+
200: {
|
|
20002
|
+
headers: {
|
|
20003
|
+
[name: string]: unknown;
|
|
20004
|
+
};
|
|
20005
|
+
content: {
|
|
20006
|
+
"application/json": {
|
|
20007
|
+
data: {
|
|
20008
|
+
/** @example derbyshire */
|
|
20009
|
+
slug: string;
|
|
20010
|
+
/** @example Derbyshire */
|
|
20011
|
+
name: string;
|
|
20012
|
+
/** @example GB */
|
|
20013
|
+
country_code: string;
|
|
20014
|
+
/** @example England */
|
|
20015
|
+
parent: string;
|
|
20016
|
+
/** @example county */
|
|
20017
|
+
type: string;
|
|
20018
|
+
}[];
|
|
20019
|
+
};
|
|
20020
|
+
};
|
|
20021
|
+
};
|
|
20022
|
+
};
|
|
20023
|
+
};
|
|
20024
|
+
getGeoRegion: {
|
|
20025
|
+
parameters: {
|
|
20026
|
+
query?: never;
|
|
20027
|
+
header?: never;
|
|
20028
|
+
path: {
|
|
20029
|
+
slug: string;
|
|
20030
|
+
};
|
|
20031
|
+
cookie?: never;
|
|
20032
|
+
};
|
|
20033
|
+
requestBody?: never;
|
|
20034
|
+
responses: {
|
|
20035
|
+
/** @description Region detail */
|
|
20036
|
+
200: {
|
|
20037
|
+
headers: {
|
|
20038
|
+
[name: string]: unknown;
|
|
20039
|
+
};
|
|
20040
|
+
content: {
|
|
20041
|
+
"application/json": {
|
|
20042
|
+
data: {
|
|
20043
|
+
/** @example derbyshire */
|
|
20044
|
+
slug: string;
|
|
20045
|
+
/** @example Derbyshire */
|
|
20046
|
+
name: string;
|
|
20047
|
+
/** @example GB */
|
|
20048
|
+
country_code: string;
|
|
20049
|
+
/** @example England */
|
|
20050
|
+
parent: string;
|
|
20051
|
+
/** @example county */
|
|
20052
|
+
type: string;
|
|
20053
|
+
};
|
|
20054
|
+
};
|
|
20055
|
+
};
|
|
20056
|
+
};
|
|
20057
|
+
};
|
|
20058
|
+
};
|
|
20059
|
+
listGeoOutcodes: {
|
|
20060
|
+
parameters: {
|
|
20061
|
+
query?: {
|
|
20062
|
+
/** @description Filter by postcode area (e.g. S, LE, DE) */
|
|
20063
|
+
area?: string;
|
|
20064
|
+
/** @description Filter by country name */
|
|
20065
|
+
country?: string;
|
|
20066
|
+
/** @description Search by outcode prefix */
|
|
20067
|
+
q?: string;
|
|
20068
|
+
};
|
|
20069
|
+
header?: never;
|
|
20070
|
+
path?: never;
|
|
20071
|
+
cookie?: never;
|
|
20072
|
+
};
|
|
20073
|
+
requestBody?: never;
|
|
20074
|
+
responses: {
|
|
20075
|
+
/** @description Outcode list */
|
|
20076
|
+
200: {
|
|
20077
|
+
headers: {
|
|
20078
|
+
[name: string]: unknown;
|
|
20079
|
+
};
|
|
20080
|
+
content: {
|
|
20081
|
+
"application/json": {
|
|
20082
|
+
data: {
|
|
20083
|
+
/** @example S40 */
|
|
20084
|
+
outcode: string;
|
|
20085
|
+
/** @example S */
|
|
20086
|
+
area: string;
|
|
20087
|
+
/** @example 53.235 */
|
|
20088
|
+
latitude: number;
|
|
20089
|
+
/** @example -1.4216 */
|
|
20090
|
+
longitude: number;
|
|
20091
|
+
/** @example 656 */
|
|
20092
|
+
postcode_count: number;
|
|
20093
|
+
/** @example Derbyshire */
|
|
20094
|
+
county?: string;
|
|
20095
|
+
/** @example East Midlands */
|
|
20096
|
+
region?: string;
|
|
20097
|
+
/** @example England */
|
|
20098
|
+
country?: string;
|
|
20099
|
+
}[];
|
|
20100
|
+
};
|
|
20101
|
+
};
|
|
20102
|
+
};
|
|
20103
|
+
};
|
|
20104
|
+
};
|
|
20105
|
+
getGeoOutcode: {
|
|
20106
|
+
parameters: {
|
|
20107
|
+
query?: never;
|
|
20108
|
+
header?: never;
|
|
20109
|
+
path: {
|
|
20110
|
+
outcode: string;
|
|
20111
|
+
};
|
|
20112
|
+
cookie?: never;
|
|
20113
|
+
};
|
|
20114
|
+
requestBody?: never;
|
|
20115
|
+
responses: {
|
|
20116
|
+
/** @description Outcode detail */
|
|
20117
|
+
200: {
|
|
20118
|
+
headers: {
|
|
20119
|
+
[name: string]: unknown;
|
|
20120
|
+
};
|
|
20121
|
+
content: {
|
|
20122
|
+
"application/json": {
|
|
20123
|
+
data: {
|
|
20124
|
+
/** @example S40 */
|
|
20125
|
+
outcode: string;
|
|
20126
|
+
/** @example S */
|
|
20127
|
+
area: string;
|
|
20128
|
+
/** @example 53.235 */
|
|
20129
|
+
latitude: number;
|
|
20130
|
+
/** @example -1.4216 */
|
|
20131
|
+
longitude: number;
|
|
20132
|
+
/** @example 656 */
|
|
20133
|
+
postcode_count: number;
|
|
20134
|
+
/** @example Derbyshire */
|
|
20135
|
+
county?: string;
|
|
20136
|
+
/** @example East Midlands */
|
|
20137
|
+
region?: string;
|
|
20138
|
+
/** @example England */
|
|
20139
|
+
country?: string;
|
|
20140
|
+
};
|
|
20141
|
+
};
|
|
20142
|
+
};
|
|
20143
|
+
};
|
|
20144
|
+
};
|
|
20145
|
+
};
|
|
20146
|
+
listGeoCities: {
|
|
20147
|
+
parameters: {
|
|
20148
|
+
query?: {
|
|
20149
|
+
/** @description Filter by region slug */
|
|
20150
|
+
region?: string;
|
|
20151
|
+
/** @description Filter by ISO country code */
|
|
20152
|
+
country?: string;
|
|
20153
|
+
/** @description Search by city name prefix */
|
|
20154
|
+
q?: string;
|
|
20155
|
+
};
|
|
20156
|
+
header?: never;
|
|
20157
|
+
path?: never;
|
|
20158
|
+
cookie?: never;
|
|
20159
|
+
};
|
|
20160
|
+
requestBody?: never;
|
|
20161
|
+
responses: {
|
|
20162
|
+
/** @description City list */
|
|
20163
|
+
200: {
|
|
20164
|
+
headers: {
|
|
20165
|
+
[name: string]: unknown;
|
|
20166
|
+
};
|
|
20167
|
+
content: {
|
|
20168
|
+
"application/json": {
|
|
20169
|
+
data: {
|
|
20170
|
+
/** @example chesterfield */
|
|
20171
|
+
slug: string;
|
|
20172
|
+
/** @example Chesterfield */
|
|
20173
|
+
name: string;
|
|
20174
|
+
/** @example derbyshire */
|
|
20175
|
+
region_slug: string;
|
|
20176
|
+
/** @example GB */
|
|
20177
|
+
country_code: string;
|
|
20178
|
+
/** @example 53.235 */
|
|
20179
|
+
latitude: number;
|
|
20180
|
+
/** @example -1.4216 */
|
|
20181
|
+
longitude: number;
|
|
20182
|
+
/** @example S40 */
|
|
20183
|
+
postcode_area: string;
|
|
20184
|
+
}[];
|
|
20185
|
+
};
|
|
20186
|
+
};
|
|
20187
|
+
};
|
|
20188
|
+
};
|
|
20189
|
+
};
|
|
20190
|
+
getGeoCity: {
|
|
20191
|
+
parameters: {
|
|
20192
|
+
query?: never;
|
|
20193
|
+
header?: never;
|
|
20194
|
+
path: {
|
|
20195
|
+
slug: string;
|
|
20196
|
+
};
|
|
20197
|
+
cookie?: never;
|
|
20198
|
+
};
|
|
20199
|
+
requestBody?: never;
|
|
20200
|
+
responses: {
|
|
20201
|
+
/** @description City detail */
|
|
20202
|
+
200: {
|
|
20203
|
+
headers: {
|
|
20204
|
+
[name: string]: unknown;
|
|
20205
|
+
};
|
|
20206
|
+
content: {
|
|
20207
|
+
"application/json": {
|
|
20208
|
+
data: {
|
|
20209
|
+
/** @example chesterfield */
|
|
20210
|
+
slug: string;
|
|
20211
|
+
/** @example Chesterfield */
|
|
20212
|
+
name: string;
|
|
20213
|
+
/** @example derbyshire */
|
|
20214
|
+
region_slug: string;
|
|
20215
|
+
/** @example GB */
|
|
20216
|
+
country_code: string;
|
|
20217
|
+
/** @example 53.235 */
|
|
20218
|
+
latitude: number;
|
|
20219
|
+
/** @example -1.4216 */
|
|
20220
|
+
longitude: number;
|
|
20221
|
+
/** @example S40 */
|
|
20222
|
+
postcode_area: string;
|
|
20223
|
+
};
|
|
20224
|
+
};
|
|
20225
|
+
};
|
|
20226
|
+
};
|
|
20227
|
+
};
|
|
20228
|
+
};
|
|
20229
|
+
getGeoPostcode: {
|
|
20230
|
+
parameters: {
|
|
20231
|
+
query?: never;
|
|
20232
|
+
header?: never;
|
|
20233
|
+
path: {
|
|
20234
|
+
postcode: string;
|
|
20235
|
+
};
|
|
20236
|
+
cookie?: never;
|
|
20237
|
+
};
|
|
20238
|
+
requestBody?: never;
|
|
20239
|
+
responses: {
|
|
20240
|
+
/** @description Postcode detail */
|
|
20241
|
+
200: {
|
|
20242
|
+
headers: {
|
|
20243
|
+
[name: string]: unknown;
|
|
20244
|
+
};
|
|
20245
|
+
content: {
|
|
20246
|
+
"application/json": {
|
|
20247
|
+
data: {
|
|
20248
|
+
/** @example S40 1AB */
|
|
20249
|
+
postcode: string;
|
|
20250
|
+
/** @example S40 */
|
|
20251
|
+
outcode: string;
|
|
20252
|
+
/** @example 53.2353 */
|
|
20253
|
+
latitude: number;
|
|
20254
|
+
/** @example -1.4216 */
|
|
20255
|
+
longitude: number;
|
|
20256
|
+
/** @example Derbyshire */
|
|
20257
|
+
county?: string;
|
|
20258
|
+
/** @example Chesterfield */
|
|
20259
|
+
district?: string;
|
|
20260
|
+
/** @example East Midlands */
|
|
20261
|
+
region?: string;
|
|
20262
|
+
/** @example England */
|
|
20263
|
+
country?: string;
|
|
20264
|
+
};
|
|
20265
|
+
};
|
|
20266
|
+
};
|
|
20267
|
+
};
|
|
20268
|
+
};
|
|
20269
|
+
};
|
|
19617
20270
|
listPosts: {
|
|
19618
20271
|
parameters: {
|
|
19619
20272
|
query?: {
|