@compassdigital/sdk.typescript 3.51.0 → 3.52.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/.editorconfig +0 -1
- package/lib/index.d.ts +111 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +119 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +1 -0
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +1 -0
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +1 -0
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +1 -0
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +1 -0
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/delivery.d.ts +19 -0
- package/lib/interface/delivery.d.ts.map +1 -1
- package/lib/interface/email.d.ts +1 -0
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +1 -0
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +1 -0
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +1 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +1 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +745 -103
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +1 -0
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +1 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +1 -0
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +1 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +1 -0
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +1 -0
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +1 -0
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +12 -4
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +1 -0
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +1 -0
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +1 -0
- package/lib/interface/vendor.d.ts.map +1 -1
- package/manifest.json +39 -39
- package/package.json +2 -2
- package/src/index.ts +305 -0
- package/src/interface/announcement.ts +1 -0
- package/src/interface/calendar.ts +1 -0
- package/src/interface/compassconnect.ts +1 -0
- package/src/interface/config.ts +1 -0
- package/src/interface/datalake.ts +1 -0
- package/src/interface/delivery.ts +28 -0
- package/src/interface/email.ts +1 -0
- package/src/interface/file.ts +1 -0
- package/src/interface/kds.ts +1 -0
- package/src/interface/location.ts +1 -0
- package/src/interface/mealplan.ts +1 -0
- package/src/interface/menu.ts +960 -183
- package/src/interface/notification.ts +1 -0
- package/src/interface/order.ts +1 -0
- package/src/interface/partner.ts +1 -0
- package/src/interface/payment.ts +1 -0
- package/src/interface/permission.ts +1 -0
- package/src/interface/promo.ts +1 -0
- package/src/interface/report.ts +1 -0
- package/src/interface/shoppingcart.ts +13 -4
- package/src/interface/task.ts +1 -0
- package/src/interface/user.ts +1 -0
- package/src/interface/vendor.ts +1 -0
package/manifest.json
CHANGED
|
@@ -2,63 +2,63 @@
|
|
|
2
2
|
"services": [
|
|
3
3
|
{
|
|
4
4
|
"name": "payment",
|
|
5
|
-
"swagger": "../../platform2/
|
|
5
|
+
"swagger": "../../platform2/payment/service/swagger.json"
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "order",
|
|
9
|
-
"swagger": "../../platform2/
|
|
9
|
+
"swagger": "../../platform2/order/service/swagger.json"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "location",
|
|
13
|
-
"swagger": "../../platform2/
|
|
13
|
+
"swagger": "../../platform2/location/service/swagger.json"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "shoppingcart",
|
|
17
|
-
"swagger": "../../platform2/
|
|
17
|
+
"swagger": "../../platform2/shoppingcart/swagger.json"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"name": "partner",
|
|
21
|
-
"swagger": "../../platform2/
|
|
21
|
+
"swagger": "../../platform2/partner/swagger.json"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "email",
|
|
25
|
-
"swagger": "../../platform2/
|
|
25
|
+
"swagger": "../../platform2/email/swagger.json"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "task",
|
|
29
|
-
"swagger": "../../platform2/
|
|
29
|
+
"swagger": "../../platform2/task/swagger.json"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "kds",
|
|
33
|
-
"swagger": "../../platform2/
|
|
33
|
+
"swagger": "../../platform2/kds/swagger.json"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "mealplan",
|
|
37
|
-
"swagger": "../../platform2/
|
|
37
|
+
"swagger": "../../platform2/mealplan/service/swagger.json"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "datalake",
|
|
41
|
-
"swagger": "../../platform2/
|
|
41
|
+
"swagger": "../../platform2/datalake/swagger.json"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"name": "promo",
|
|
45
|
-
"swagger": "../../platform2/
|
|
45
|
+
"swagger": "../../platform2/promo/service/swagger.json"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"name": "config",
|
|
49
|
-
"swagger": "../../platform2/
|
|
49
|
+
"swagger": "../../platform2/config/service/swagger.json"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"name": "announcement",
|
|
53
|
-
"swagger": "../../platform2/
|
|
53
|
+
"swagger": "../../platform2/announcement/service/swagger.json"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "report",
|
|
57
|
-
"swagger": "../../platform2/
|
|
57
|
+
"swagger": "../../platform2/report/service/swagger.json"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "user",
|
|
61
|
-
"swagger": "../../platform2/
|
|
61
|
+
"swagger": "../../platform2/user/service/swagger.json"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"name": "calendar",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "file",
|
|
69
|
-
"swagger": "../../platform2/
|
|
69
|
+
"swagger": "../../platform2/file/swagger.json"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"name": "menu",
|
|
@@ -74,31 +74,31 @@
|
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "notification",
|
|
77
|
-
"swagger": "../../platform2/
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
77
|
+
"swagger": "../../platform2/notification/swagger.json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "compassconnect",
|
|
81
|
+
"swagger": "../../platform2/compassconnect/swagger.json"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "vendor",
|
|
85
|
+
"swagger": "../../platform2/vendor/swagger.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "sms",
|
|
89
|
+
"swagger": "../../platform2/sms/swagger.json"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "permission",
|
|
93
|
+
"swagger": "../../platform2/permission/swagger.json"
|
|
94
|
+
},
|
|
95
95
|
{
|
|
96
96
|
"name": "delivery",
|
|
97
|
-
"swagger": "../../platform2/
|
|
97
|
+
"swagger": "../../platform2/delivery/swagger.json"
|
|
98
98
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
{
|
|
100
|
+
"name": "loyalty",
|
|
101
|
+
"swagger": "https://api.compassdigital.org/dev/loyalty/swagger.json"
|
|
102
|
+
}
|
|
103
103
|
]
|
|
104
104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compassdigital/sdk.typescript",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.52.0",
|
|
4
4
|
"description": "Compass Digital Labs TypeScript SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@compassdigital/sdk.typescript.cli": "^3.27.2",
|
|
46
46
|
"@types/jest": "^29.2.4",
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^20.1.0",
|
|
48
48
|
"esbuild": "^0.17.0",
|
|
49
49
|
"esbuild-jest": "^0.5.0",
|
|
50
50
|
"jest": "^29.3.1",
|
package/src/index.ts
CHANGED
|
@@ -779,6 +779,29 @@ import {
|
|
|
779
779
|
GetMenuV3CategorysCountQuery,
|
|
780
780
|
GetMenuV3CategorysCountResponse,
|
|
781
781
|
PostMenuV3BrandLocalResponse,
|
|
782
|
+
PostMenuV3ItemAttachmentQuery,
|
|
783
|
+
PostMenuV3ItemAttachmentResponse,
|
|
784
|
+
PostMenuV3BrandAttachmentQuery,
|
|
785
|
+
PostMenuV3BrandAttachmentResponse,
|
|
786
|
+
PostMenuV3BrandGroupBody,
|
|
787
|
+
PostMenuV3BrandGroupResponse,
|
|
788
|
+
GetMenuV3BrandGroupQuery,
|
|
789
|
+
GetMenuV3BrandGroupResponse,
|
|
790
|
+
PatchMenuV3BrandGroupBody,
|
|
791
|
+
PatchMenuV3BrandGroupResponse,
|
|
792
|
+
DeleteMenuV3BrandGroupResponse,
|
|
793
|
+
GetMenuV3BrandGroupsQuery,
|
|
794
|
+
GetMenuV3BrandGroupsResponse,
|
|
795
|
+
PostMenuV3BrandGroupsBody,
|
|
796
|
+
PostMenuV3BrandGroupsResponse,
|
|
797
|
+
GetMenuV3BrandGroupsCountQuery,
|
|
798
|
+
GetMenuV3BrandGroupsCountResponse,
|
|
799
|
+
GetMenuV3BrandGroupDraftBrandsQuery,
|
|
800
|
+
GetMenuV3BrandGroupDraftBrandsResponse,
|
|
801
|
+
GetMenuV3BrandGroupBrandsQuery,
|
|
802
|
+
GetMenuV3BrandGroupBrandsResponse,
|
|
803
|
+
GetMenuV3DraftBrandGroupBrandsQuery,
|
|
804
|
+
GetMenuV3DraftBrandGroupBrandsResponse,
|
|
782
805
|
} from "./interface/menu";
|
|
783
806
|
|
|
784
807
|
import {
|
|
@@ -861,6 +884,8 @@ import {
|
|
|
861
884
|
GetDeliveryOrderResponse,
|
|
862
885
|
GetDeliveryQuery,
|
|
863
886
|
GetDeliveryResponse,
|
|
887
|
+
PostDeliveryAvailabilityBody,
|
|
888
|
+
PostDeliveryAvailabilityResponse,
|
|
864
889
|
} from "./interface/delivery";
|
|
865
890
|
|
|
866
891
|
import {
|
|
@@ -8250,6 +8275,264 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
8250
8275
|
);
|
|
8251
8276
|
}
|
|
8252
8277
|
|
|
8278
|
+
/**
|
|
8279
|
+
* POST /menu/v3/item/{id}/attachment/{name}
|
|
8280
|
+
*
|
|
8281
|
+
* @param id
|
|
8282
|
+
* @param name
|
|
8283
|
+
* @param options - additional request options
|
|
8284
|
+
*/
|
|
8285
|
+
post_menu_v3_item_attachment(
|
|
8286
|
+
id: string,
|
|
8287
|
+
name: string,
|
|
8288
|
+
options?: {
|
|
8289
|
+
query?: PostMenuV3ItemAttachmentQuery;
|
|
8290
|
+
} & RequestOptions
|
|
8291
|
+
): ResponsePromise<PostMenuV3ItemAttachmentResponse> {
|
|
8292
|
+
return this.request(
|
|
8293
|
+
"menu",
|
|
8294
|
+
"post_menu_v3_item_attachment",
|
|
8295
|
+
"post",
|
|
8296
|
+
`/menu/v3/item/${id}/attachment/${name}`,
|
|
8297
|
+
null,
|
|
8298
|
+
options
|
|
8299
|
+
);
|
|
8300
|
+
}
|
|
8301
|
+
|
|
8302
|
+
/**
|
|
8303
|
+
* POST /menu/v3/brand/{id}/attachment/{name}
|
|
8304
|
+
*
|
|
8305
|
+
* @param id
|
|
8306
|
+
* @param name
|
|
8307
|
+
* @param options - additional request options
|
|
8308
|
+
*/
|
|
8309
|
+
post_menu_v3_brand_attachment(
|
|
8310
|
+
id: string,
|
|
8311
|
+
name: string,
|
|
8312
|
+
options?: {
|
|
8313
|
+
query?: PostMenuV3BrandAttachmentQuery;
|
|
8314
|
+
} & RequestOptions
|
|
8315
|
+
): ResponsePromise<PostMenuV3BrandAttachmentResponse> {
|
|
8316
|
+
return this.request(
|
|
8317
|
+
"menu",
|
|
8318
|
+
"post_menu_v3_brand_attachment",
|
|
8319
|
+
"post",
|
|
8320
|
+
`/menu/v3/brand/${id}/attachment/${name}`,
|
|
8321
|
+
null,
|
|
8322
|
+
options
|
|
8323
|
+
);
|
|
8324
|
+
}
|
|
8325
|
+
|
|
8326
|
+
/**
|
|
8327
|
+
* POST /menu/v3/brand-group
|
|
8328
|
+
*
|
|
8329
|
+
* @param body
|
|
8330
|
+
* @param options - additional request options
|
|
8331
|
+
*/
|
|
8332
|
+
post_menu_v3_brand_group(
|
|
8333
|
+
body: PostMenuV3BrandGroupBody,
|
|
8334
|
+
options?: RequestOptions
|
|
8335
|
+
): ResponsePromise<PostMenuV3BrandGroupResponse> {
|
|
8336
|
+
return this.request(
|
|
8337
|
+
"menu",
|
|
8338
|
+
"post_menu_v3_brand_group",
|
|
8339
|
+
"post",
|
|
8340
|
+
`/menu/v3/brand-group`,
|
|
8341
|
+
body,
|
|
8342
|
+
options
|
|
8343
|
+
);
|
|
8344
|
+
}
|
|
8345
|
+
|
|
8346
|
+
/**
|
|
8347
|
+
* GET /menu/v3/brand-group/{id}
|
|
8348
|
+
*
|
|
8349
|
+
* @param id
|
|
8350
|
+
* @param options - additional request options
|
|
8351
|
+
*/
|
|
8352
|
+
get_menu_v3_brand_group(
|
|
8353
|
+
id: string,
|
|
8354
|
+
options?: {
|
|
8355
|
+
query?: GetMenuV3BrandGroupQuery;
|
|
8356
|
+
} & RequestOptions
|
|
8357
|
+
): ResponsePromise<GetMenuV3BrandGroupResponse> {
|
|
8358
|
+
return this.request(
|
|
8359
|
+
"menu",
|
|
8360
|
+
"get_menu_v3_brand_group",
|
|
8361
|
+
"get",
|
|
8362
|
+
`/menu/v3/brand-group/${id}`,
|
|
8363
|
+
null,
|
|
8364
|
+
options
|
|
8365
|
+
);
|
|
8366
|
+
}
|
|
8367
|
+
|
|
8368
|
+
/**
|
|
8369
|
+
* PATCH /menu/v3/brand-group/{id}
|
|
8370
|
+
*
|
|
8371
|
+
* @param id
|
|
8372
|
+
* @param body - A partially populated BrandGroupEntity
|
|
8373
|
+
* @param options - additional request options
|
|
8374
|
+
*/
|
|
8375
|
+
patch_menu_v3_brand_group(
|
|
8376
|
+
id: string,
|
|
8377
|
+
body: PatchMenuV3BrandGroupBody,
|
|
8378
|
+
options?: RequestOptions
|
|
8379
|
+
): ResponsePromise<PatchMenuV3BrandGroupResponse> {
|
|
8380
|
+
return this.request(
|
|
8381
|
+
"menu",
|
|
8382
|
+
"patch_menu_v3_brand_group",
|
|
8383
|
+
"patch",
|
|
8384
|
+
`/menu/v3/brand-group/${id}`,
|
|
8385
|
+
body,
|
|
8386
|
+
options
|
|
8387
|
+
);
|
|
8388
|
+
}
|
|
8389
|
+
|
|
8390
|
+
/**
|
|
8391
|
+
* DELETE /menu/v3/brand-group/{id}
|
|
8392
|
+
*
|
|
8393
|
+
* @param id
|
|
8394
|
+
* @param options - additional request options
|
|
8395
|
+
*/
|
|
8396
|
+
delete_menu_v3_brand_group(
|
|
8397
|
+
id: string,
|
|
8398
|
+
options?: RequestOptions
|
|
8399
|
+
): ResponsePromise<DeleteMenuV3BrandGroupResponse> {
|
|
8400
|
+
return this.request(
|
|
8401
|
+
"menu",
|
|
8402
|
+
"delete_menu_v3_brand_group",
|
|
8403
|
+
"delete",
|
|
8404
|
+
`/menu/v3/brand-group/${id}`,
|
|
8405
|
+
null,
|
|
8406
|
+
options
|
|
8407
|
+
);
|
|
8408
|
+
}
|
|
8409
|
+
|
|
8410
|
+
/**
|
|
8411
|
+
* GET /menu/v3/brand-groups
|
|
8412
|
+
*
|
|
8413
|
+
* @param options - additional request options
|
|
8414
|
+
*/
|
|
8415
|
+
get_menu_v3_brand_groups(
|
|
8416
|
+
options?: {
|
|
8417
|
+
query?: GetMenuV3BrandGroupsQuery;
|
|
8418
|
+
} & RequestOptions
|
|
8419
|
+
): ResponsePromise<GetMenuV3BrandGroupsResponse> {
|
|
8420
|
+
return this.request(
|
|
8421
|
+
"menu",
|
|
8422
|
+
"get_menu_v3_brand_groups",
|
|
8423
|
+
"get",
|
|
8424
|
+
`/menu/v3/brand-groups`,
|
|
8425
|
+
null,
|
|
8426
|
+
options
|
|
8427
|
+
);
|
|
8428
|
+
}
|
|
8429
|
+
|
|
8430
|
+
/**
|
|
8431
|
+
* POST /menu/v3/brand-groups
|
|
8432
|
+
*
|
|
8433
|
+
* @param body
|
|
8434
|
+
* @param options - additional request options
|
|
8435
|
+
*/
|
|
8436
|
+
post_menu_v3_brand_groups(
|
|
8437
|
+
body: PostMenuV3BrandGroupsBody,
|
|
8438
|
+
options?: RequestOptions
|
|
8439
|
+
): ResponsePromise<PostMenuV3BrandGroupsResponse> {
|
|
8440
|
+
return this.request(
|
|
8441
|
+
"menu",
|
|
8442
|
+
"post_menu_v3_brand_groups",
|
|
8443
|
+
"post",
|
|
8444
|
+
`/menu/v3/brand-groups`,
|
|
8445
|
+
body,
|
|
8446
|
+
options
|
|
8447
|
+
);
|
|
8448
|
+
}
|
|
8449
|
+
|
|
8450
|
+
/**
|
|
8451
|
+
* GET /menu/v3/brand-groups/count
|
|
8452
|
+
*
|
|
8453
|
+
* @param options - additional request options
|
|
8454
|
+
*/
|
|
8455
|
+
get_menu_v3_brand_groups_count(
|
|
8456
|
+
options?: {
|
|
8457
|
+
query?: GetMenuV3BrandGroupsCountQuery;
|
|
8458
|
+
} & RequestOptions
|
|
8459
|
+
): ResponsePromise<GetMenuV3BrandGroupsCountResponse> {
|
|
8460
|
+
return this.request(
|
|
8461
|
+
"menu",
|
|
8462
|
+
"get_menu_v3_brand_groups_count",
|
|
8463
|
+
"get",
|
|
8464
|
+
`/menu/v3/brand-groups/count`,
|
|
8465
|
+
null,
|
|
8466
|
+
options
|
|
8467
|
+
);
|
|
8468
|
+
}
|
|
8469
|
+
|
|
8470
|
+
/**
|
|
8471
|
+
* GET /menu/v3/brand-group/{id}/draft/brands
|
|
8472
|
+
*
|
|
8473
|
+
* @param id
|
|
8474
|
+
* @param options - additional request options
|
|
8475
|
+
*/
|
|
8476
|
+
get_menu_v3_brand_group_draft_brands(
|
|
8477
|
+
id: string,
|
|
8478
|
+
options?: {
|
|
8479
|
+
query?: GetMenuV3BrandGroupDraftBrandsQuery;
|
|
8480
|
+
} & RequestOptions
|
|
8481
|
+
): ResponsePromise<GetMenuV3BrandGroupDraftBrandsResponse> {
|
|
8482
|
+
return this.request(
|
|
8483
|
+
"menu",
|
|
8484
|
+
"get_menu_v3_brand_group_draft_brands",
|
|
8485
|
+
"get",
|
|
8486
|
+
`/menu/v3/brand-group/${id}/draft/brands`,
|
|
8487
|
+
null,
|
|
8488
|
+
options
|
|
8489
|
+
);
|
|
8490
|
+
}
|
|
8491
|
+
|
|
8492
|
+
/**
|
|
8493
|
+
* GET /menu/v3/brand-group/{id}/brands
|
|
8494
|
+
*
|
|
8495
|
+
* @param id
|
|
8496
|
+
* @param options - additional request options
|
|
8497
|
+
*/
|
|
8498
|
+
get_menu_v3_brand_group_brands(
|
|
8499
|
+
id: string,
|
|
8500
|
+
options?: {
|
|
8501
|
+
query?: GetMenuV3BrandGroupBrandsQuery;
|
|
8502
|
+
} & RequestOptions
|
|
8503
|
+
): ResponsePromise<GetMenuV3BrandGroupBrandsResponse> {
|
|
8504
|
+
return this.request(
|
|
8505
|
+
"menu",
|
|
8506
|
+
"get_menu_v3_brand_group_brands",
|
|
8507
|
+
"get",
|
|
8508
|
+
`/menu/v3/brand-group/${id}/brands`,
|
|
8509
|
+
null,
|
|
8510
|
+
options
|
|
8511
|
+
);
|
|
8512
|
+
}
|
|
8513
|
+
|
|
8514
|
+
/**
|
|
8515
|
+
* GET /menu/v3/draft/brand-group/{id}/brands
|
|
8516
|
+
*
|
|
8517
|
+
* @param id
|
|
8518
|
+
* @param options - additional request options
|
|
8519
|
+
*/
|
|
8520
|
+
get_menu_v3_draft_brand_group_brands(
|
|
8521
|
+
id: string,
|
|
8522
|
+
options?: {
|
|
8523
|
+
query?: GetMenuV3DraftBrandGroupBrandsQuery;
|
|
8524
|
+
} & RequestOptions
|
|
8525
|
+
): ResponsePromise<GetMenuV3DraftBrandGroupBrandsResponse> {
|
|
8526
|
+
return this.request(
|
|
8527
|
+
"menu",
|
|
8528
|
+
"get_menu_v3_draft_brand_group_brands",
|
|
8529
|
+
"get",
|
|
8530
|
+
`/menu/v3/draft/brand-group/${id}/brands`,
|
|
8531
|
+
null,
|
|
8532
|
+
options
|
|
8533
|
+
);
|
|
8534
|
+
}
|
|
8535
|
+
|
|
8253
8536
|
/**
|
|
8254
8537
|
* GET /notification - Get all notifications
|
|
8255
8538
|
*
|
|
@@ -8916,6 +9199,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
8916
9199
|
return this.request("delivery", "get_delivery", "get", `/delivery/${id}`, null, options);
|
|
8917
9200
|
}
|
|
8918
9201
|
|
|
9202
|
+
/**
|
|
9203
|
+
* POST /delivery/{id}/availability - Get delivery availability for provided brand and coordinates
|
|
9204
|
+
*
|
|
9205
|
+
* @param id - delivery provider id
|
|
9206
|
+
* @param body - Order object that needs to be created
|
|
9207
|
+
* @param options - additional request options
|
|
9208
|
+
*/
|
|
9209
|
+
post_delivery_availability(
|
|
9210
|
+
id: string,
|
|
9211
|
+
body: PostDeliveryAvailabilityBody,
|
|
9212
|
+
options?: RequestOptions
|
|
9213
|
+
): ResponsePromise<PostDeliveryAvailabilityResponse> {
|
|
9214
|
+
return this.request(
|
|
9215
|
+
"delivery",
|
|
9216
|
+
"post_delivery_availability",
|
|
9217
|
+
"post",
|
|
9218
|
+
`/delivery/${id}/availability`,
|
|
9219
|
+
body,
|
|
9220
|
+
options
|
|
9221
|
+
);
|
|
9222
|
+
}
|
|
9223
|
+
|
|
8919
9224
|
/**
|
|
8920
9225
|
* POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
|
|
8921
9226
|
*
|
package/src/interface/config.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
|
|
|
6
6
|
export interface Error {
|
|
7
7
|
message?: string;
|
|
8
8
|
code?: number;
|
|
9
|
+
data?: any;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export interface Delivery {
|
|
@@ -61,6 +62,18 @@ export interface Delivery {
|
|
|
61
62
|
tracker_url?: string;
|
|
62
63
|
}
|
|
63
64
|
|
|
65
|
+
export interface Available {
|
|
66
|
+
deliverable: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface PostAvailabilityBody {
|
|
70
|
+
destination: {
|
|
71
|
+
latitude: any;
|
|
72
|
+
longitude: any;
|
|
73
|
+
};
|
|
74
|
+
brand_id: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
64
77
|
// GET /delivery/{id}/order/{order_id} - get delivery for order
|
|
65
78
|
|
|
66
79
|
export interface GetDeliveryOrderPath {
|
|
@@ -100,3 +113,18 @@ export interface GetDeliveryRequest
|
|
|
100
113
|
extends BaseRequest,
|
|
101
114
|
RequestQuery<GetDeliveryQuery>,
|
|
102
115
|
GetDeliveryPath {}
|
|
116
|
+
|
|
117
|
+
// POST /delivery/{id}/availability - Get delivery availability for provided brand and coordinates
|
|
118
|
+
|
|
119
|
+
export interface PostDeliveryAvailabilityPath {
|
|
120
|
+
// delivery provider id
|
|
121
|
+
id: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type PostDeliveryAvailabilityBody = PostAvailabilityBody;
|
|
125
|
+
|
|
126
|
+
export type PostDeliveryAvailabilityResponse = Available;
|
|
127
|
+
|
|
128
|
+
export interface PostDeliveryAvailabilityRequest extends BaseRequest, PostDeliveryAvailabilityPath {
|
|
129
|
+
body: PostDeliveryAvailabilityBody;
|
|
130
|
+
}
|
package/src/interface/email.ts
CHANGED
package/src/interface/file.ts
CHANGED
package/src/interface/kds.ts
CHANGED