@compassdigital/sdk.typescript 3.77.0 → 3.77.1
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/lib/index.d.ts +91 -76
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +79 -61
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +50 -0
- package/lib/interface/ai.d.ts.map +1 -0
- package/lib/interface/ai.js +5 -0
- package/lib/interface/ai.js.map +1 -0
- package/lib/interface/datalake.d.ts +3 -3
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +22 -22
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/location.d.ts +8 -8
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +87 -86
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/payment.js +1 -1
- package/lib/interface/payment.js.map +1 -1
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +222 -188
- package/src/interface/ai.ts +72 -0
- package/src/interface/datalake.ts +5 -3
- package/src/interface/frictionless.ts +28 -34
- package/src/interface/location.ts +12 -12
- package/src/interface/menu.ts +116 -115
- package/src/interface/payment.ts +1 -1
package/lib/index.js
CHANGED
|
@@ -1207,8 +1207,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1207
1207
|
*
|
|
1208
1208
|
* @param options - additional request options
|
|
1209
1209
|
*/
|
|
1210
|
-
|
|
1211
|
-
return this.request("datalake", "
|
|
1210
|
+
get_datalake_swagger(options) {
|
|
1211
|
+
return this.request("datalake", "get_datalake_swagger", "get", `/swagger.json`, null, options);
|
|
1212
1212
|
}
|
|
1213
1213
|
/**
|
|
1214
1214
|
* POST /promo - Create a new promotion
|
|
@@ -1941,8 +1941,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1941
1941
|
* @param body
|
|
1942
1942
|
* @param options - additional request options
|
|
1943
1943
|
*/
|
|
1944
|
-
|
|
1945
|
-
return this.request("menu", "
|
|
1944
|
+
create_menu(body, options) {
|
|
1945
|
+
return this.request("menu", "create_menu", "post", `/menu`, body, options);
|
|
1946
1946
|
}
|
|
1947
1947
|
/**
|
|
1948
1948
|
* HEAD /menu/{id} - Get an individual Menu
|
|
@@ -1950,8 +1950,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1950
1950
|
* @param id - menu
|
|
1951
1951
|
* @param options - additional request options
|
|
1952
1952
|
*/
|
|
1953
|
-
|
|
1954
|
-
return this.request("menu", "
|
|
1953
|
+
get_menu_headers(id, options) {
|
|
1954
|
+
return this.request("menu", "get_menu_headers", "head", `/menu/${id}`, null, options);
|
|
1955
1955
|
}
|
|
1956
1956
|
/**
|
|
1957
1957
|
* GET /menu/{id} - Get an individual Menu
|
|
@@ -1969,8 +1969,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1969
1969
|
* @param body
|
|
1970
1970
|
* @param options - additional request options
|
|
1971
1971
|
*/
|
|
1972
|
-
|
|
1973
|
-
return this.request("menu", "
|
|
1972
|
+
update_menu(id, body, options) {
|
|
1973
|
+
return this.request("menu", "update_menu", "put", `/menu/${id}`, body, options);
|
|
1974
1974
|
}
|
|
1975
1975
|
/**
|
|
1976
1976
|
* DELETE /menu/{id} - Delete a Menu
|
|
@@ -1997,8 +1997,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1997
1997
|
* @param body
|
|
1998
1998
|
* @param options - additional request options
|
|
1999
1999
|
*/
|
|
2000
|
-
|
|
2001
|
-
return this.request("menu", "
|
|
2000
|
+
import_menu(body, options) {
|
|
2001
|
+
return this.request("menu", "import_menu", "post", `/menu/import`, body, options);
|
|
2002
2002
|
}
|
|
2003
2003
|
/**
|
|
2004
2004
|
* GET /menu/item/{id} - Get menu item
|
|
@@ -2006,8 +2006,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2006
2006
|
* @param id - Item ID
|
|
2007
2007
|
* @param options - additional request options
|
|
2008
2008
|
*/
|
|
2009
|
-
|
|
2010
|
-
return this.request("menu", "
|
|
2009
|
+
get_item(id, options) {
|
|
2010
|
+
return this.request("menu", "get_item", "get", `/menu/item/${id}`, null, options);
|
|
2011
2011
|
}
|
|
2012
2012
|
/**
|
|
2013
2013
|
* DELETE /menu/item/{id} - Delete a menu item
|
|
@@ -2015,8 +2015,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2015
2015
|
* @param id - Item ID
|
|
2016
2016
|
* @param options - additional request options
|
|
2017
2017
|
*/
|
|
2018
|
-
|
|
2019
|
-
return this.request("menu", "
|
|
2018
|
+
delete_item(id, options) {
|
|
2019
|
+
return this.request("menu", "delete_item", "delete", `/menu/item/${id}`, null, options);
|
|
2020
2020
|
}
|
|
2021
2021
|
/**
|
|
2022
2022
|
* POST /menu/item - Create a menu item
|
|
@@ -2024,8 +2024,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2024
2024
|
* @param body
|
|
2025
2025
|
* @param options - additional request options
|
|
2026
2026
|
*/
|
|
2027
|
-
|
|
2028
|
-
return this.request("menu", "
|
|
2027
|
+
create_item(body, options) {
|
|
2028
|
+
return this.request("menu", "create_item", "post", `/menu/item`, body, options);
|
|
2029
2029
|
}
|
|
2030
2030
|
/**
|
|
2031
2031
|
* GET /menu/items - Search for menu items
|
|
@@ -2041,8 +2041,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2041
2041
|
* @param location - Location ID
|
|
2042
2042
|
* @param options - additional request options
|
|
2043
2043
|
*/
|
|
2044
|
-
|
|
2045
|
-
return this.request("menu", "
|
|
2044
|
+
import_items_canteen(location, options) {
|
|
2045
|
+
return this.request("menu", "import_items_canteen", "post", `/menu/items/import/${location}`, null, options);
|
|
2046
2046
|
}
|
|
2047
2047
|
/**
|
|
2048
2048
|
* GET /menu/items/location/{location} - Get all menu items for a location
|
|
@@ -2050,8 +2050,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2050
2050
|
* @param location - Location ID
|
|
2051
2051
|
* @param options - additional request options
|
|
2052
2052
|
*/
|
|
2053
|
-
|
|
2054
|
-
return this.request("menu", "
|
|
2053
|
+
get_location_items(location, options) {
|
|
2054
|
+
return this.request("menu", "get_location_items", "get", `/menu/items/location/${location}`, null, options);
|
|
2055
2055
|
}
|
|
2056
2056
|
/**
|
|
2057
2057
|
* GET /menu/item/random/location/{location} - Get a random item
|
|
@@ -2059,8 +2059,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2059
2059
|
* @param location - Location ID
|
|
2060
2060
|
* @param options - additional request options
|
|
2061
2061
|
*/
|
|
2062
|
-
|
|
2063
|
-
return this.request("menu", "
|
|
2062
|
+
get_location_item_random(location, options) {
|
|
2063
|
+
return this.request("menu", "get_location_item_random", "get", `/menu/item/random/location/${location}`, null, options);
|
|
2064
2064
|
}
|
|
2065
2065
|
/**
|
|
2066
2066
|
* GET /menu/items/random/location/{location} - Get a set of random items
|
|
@@ -2068,8 +2068,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2068
2068
|
* @param location - Location ID
|
|
2069
2069
|
* @param options - additional request options
|
|
2070
2070
|
*/
|
|
2071
|
-
|
|
2072
|
-
return this.request("menu", "
|
|
2071
|
+
get_location_items_random(location, options) {
|
|
2072
|
+
return this.request("menu", "get_location_items_random", "get", `/menu/items/random/location/${location}`, null, options);
|
|
2073
2073
|
}
|
|
2074
2074
|
/**
|
|
2075
2075
|
* GET /menu/sector/{sector} - Get menus that belong to sector
|
|
@@ -2077,8 +2077,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2077
2077
|
* @param sector - Sector ID
|
|
2078
2078
|
* @param options - additional request options
|
|
2079
2079
|
*/
|
|
2080
|
-
|
|
2081
|
-
return this.request("menu", "
|
|
2080
|
+
get_sector_menus(sector, options) {
|
|
2081
|
+
return this.request("menu", "get_sector_menus", "get", `/menu/sector/${sector}`, null, options);
|
|
2082
2082
|
}
|
|
2083
2083
|
/**
|
|
2084
2084
|
* GET /menu/company/{company} - Get menus that belong to company
|
|
@@ -2086,8 +2086,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2086
2086
|
* @param company - Company ID
|
|
2087
2087
|
* @param options - additional request options
|
|
2088
2088
|
*/
|
|
2089
|
-
|
|
2090
|
-
return this.request("menu", "
|
|
2089
|
+
get_company_menus(company, options) {
|
|
2090
|
+
return this.request("menu", "get_company_menus", "get", `/menu/company/${company}`, null, options);
|
|
2091
2091
|
}
|
|
2092
2092
|
/**
|
|
2093
2093
|
* POST /menu/modifier/group - Create a new Menu Modifier Group
|
|
@@ -2095,8 +2095,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2095
2095
|
* @param body
|
|
2096
2096
|
* @param options - additional request options
|
|
2097
2097
|
*/
|
|
2098
|
-
|
|
2099
|
-
return this.request("menu", "
|
|
2098
|
+
create_modifier_group(body, options) {
|
|
2099
|
+
return this.request("menu", "create_modifier_group", "post", `/menu/modifier/group`, body, options);
|
|
2100
2100
|
}
|
|
2101
2101
|
/**
|
|
2102
2102
|
* GET /menu/modifier/group/{id} - Get a Menu Modifier Group
|
|
@@ -2104,8 +2104,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2104
2104
|
* @param id - modifier_group
|
|
2105
2105
|
* @param options - additional request options
|
|
2106
2106
|
*/
|
|
2107
|
-
|
|
2108
|
-
return this.request("menu", "
|
|
2107
|
+
get_modifier_group(id, options) {
|
|
2108
|
+
return this.request("menu", "get_modifier_group", "get", `/menu/modifier/group/${id}`, null, options);
|
|
2109
2109
|
}
|
|
2110
2110
|
/**
|
|
2111
2111
|
* PUT /menu/modifier/group/{id} - Update a Menu Modifier Group
|
|
@@ -2114,8 +2114,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2114
2114
|
* @param body
|
|
2115
2115
|
* @param options - additional request options
|
|
2116
2116
|
*/
|
|
2117
|
-
|
|
2118
|
-
return this.request("menu", "
|
|
2117
|
+
update_modifier_group(id, body, options) {
|
|
2118
|
+
return this.request("menu", "update_modifier_group", "put", `/menu/modifier/group/${id}`, body, options);
|
|
2119
2119
|
}
|
|
2120
2120
|
/**
|
|
2121
2121
|
* DELETE /menu/modifier/group/{id} - Delete a Menu Modifier Group
|
|
@@ -2123,8 +2123,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2123
2123
|
* @param id - modifier_group
|
|
2124
2124
|
* @param options - additional request options
|
|
2125
2125
|
*/
|
|
2126
|
-
|
|
2127
|
-
return this.request("menu", "
|
|
2126
|
+
delete_modifier_group(id, options) {
|
|
2127
|
+
return this.request("menu", "delete_modifier_group", "delete", `/menu/modifier/group/${id}`, null, options);
|
|
2128
2128
|
}
|
|
2129
2129
|
/**
|
|
2130
2130
|
* GET /menu/modifier/group/company/{company} - Get the modifier groups that belong to company
|
|
@@ -2132,8 +2132,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2132
2132
|
* @param company - Company ID
|
|
2133
2133
|
* @param options - additional request options
|
|
2134
2134
|
*/
|
|
2135
|
-
|
|
2136
|
-
return this.request("menu", "
|
|
2135
|
+
get_company_modifier_groups(company, options) {
|
|
2136
|
+
return this.request("menu", "get_company_modifier_groups", "get", `/menu/modifier/group/company/${company}`, null, options);
|
|
2137
2137
|
}
|
|
2138
2138
|
/**
|
|
2139
2139
|
* GET /menu/modifier/group/company/{company}/export - Export company modifier groups to zipped excel file.
|
|
@@ -2141,8 +2141,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2141
2141
|
* @param company - Company ID
|
|
2142
2142
|
* @param options - additional request options
|
|
2143
2143
|
*/
|
|
2144
|
-
|
|
2145
|
-
return this.request("menu", "
|
|
2144
|
+
get_company_modifier_groups_export(company, options) {
|
|
2145
|
+
return this.request("menu", "get_company_modifier_groups_export", "get", `/menu/modifier/group/company/${company}/export`, null, options);
|
|
2146
2146
|
}
|
|
2147
2147
|
/**
|
|
2148
2148
|
* GET /menu/{id}/export - Export menu set to zipped excel file.
|
|
@@ -2878,29 +2878,29 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2878
2878
|
return this.request("menu", "get_menu_v3_draft_category_relationships_items_count", "get", `/menu/v3/draft/category/relationships/items/count`, null, options);
|
|
2879
2879
|
}
|
|
2880
2880
|
/**
|
|
2881
|
-
* GET /menu/v3/category/relationships/
|
|
2881
|
+
* GET /menu/v3/category/relationships/item/{id}
|
|
2882
2882
|
*
|
|
2883
2883
|
* @param id
|
|
2884
2884
|
* @param options - additional request options
|
|
2885
2885
|
*/
|
|
2886
|
-
|
|
2887
|
-
return this.request("menu", "
|
|
2886
|
+
get_menu_v3_category_relationships_item(id, options) {
|
|
2887
|
+
return this.request("menu", "get_menu_v3_category_relationships_item", "get", `/menu/v3/category/relationships/item/${id}`, null, options);
|
|
2888
2888
|
}
|
|
2889
2889
|
/**
|
|
2890
|
-
* GET /menu/v3/category/relationships/
|
|
2890
|
+
* GET /menu/v3/category/relationships/items
|
|
2891
2891
|
*
|
|
2892
2892
|
* @param options - additional request options
|
|
2893
2893
|
*/
|
|
2894
|
-
|
|
2895
|
-
return this.request("menu", "
|
|
2894
|
+
get_menu_v3_category_relationships_items(options) {
|
|
2895
|
+
return this.request("menu", "get_menu_v3_category_relationships_items", "get", `/menu/v3/category/relationships/items`, null, options);
|
|
2896
2896
|
}
|
|
2897
2897
|
/**
|
|
2898
|
-
* GET /menu/v3/category/relationships/
|
|
2898
|
+
* GET /menu/v3/category/relationships/items/count
|
|
2899
2899
|
*
|
|
2900
2900
|
* @param options - additional request options
|
|
2901
2901
|
*/
|
|
2902
|
-
|
|
2903
|
-
return this.request("menu", "
|
|
2902
|
+
get_menu_v3_category_relationships_items_count(options) {
|
|
2903
|
+
return this.request("menu", "get_menu_v3_category_relationships_items_count", "get", `/menu/v3/category/relationships/items/count`, null, options);
|
|
2904
2904
|
}
|
|
2905
2905
|
/**
|
|
2906
2906
|
* POST /menu/v3/draft/item
|
|
@@ -3662,8 +3662,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3662
3662
|
* @param body
|
|
3663
3663
|
* @param options - additional request options
|
|
3664
3664
|
*/
|
|
3665
|
-
|
|
3666
|
-
return this.request("frictionless", "
|
|
3665
|
+
StandardCognitionEventWebhookController_execute(body, options) {
|
|
3666
|
+
return this.request("frictionless", "StandardCognitionEventWebhookController_execute", "post", `/frictionless/webhook/standardcognition`, body, options);
|
|
3667
3667
|
}
|
|
3668
3668
|
/**
|
|
3669
3669
|
* GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
|
|
@@ -3671,8 +3671,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3671
3671
|
* @param id_brand - Brand ID as Encoded CDL ID
|
|
3672
3672
|
* @param options - additional request options
|
|
3673
3673
|
*/
|
|
3674
|
-
|
|
3675
|
-
return this.request("frictionless", "
|
|
3674
|
+
CheckFrictionlessSupportController_execute(id_brand, options) {
|
|
3675
|
+
return this.request("frictionless", "CheckFrictionlessSupportController_execute", "get", `/frictionless/brand/${id_brand}/frictionless-status`, null, options);
|
|
3676
3676
|
}
|
|
3677
3677
|
/**
|
|
3678
3678
|
* POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
|
|
@@ -3680,16 +3680,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3680
3680
|
* @param body
|
|
3681
3681
|
* @param options - additional request options
|
|
3682
3682
|
*/
|
|
3683
|
-
|
|
3684
|
-
return this.request("frictionless", "
|
|
3683
|
+
CreateQRCodeUserCheckInController_execute(body, options) {
|
|
3684
|
+
return this.request("frictionless", "CreateQRCodeUserCheckInController_execute", "post", `/frictionless/qrcode`, body, options);
|
|
3685
3685
|
}
|
|
3686
3686
|
/**
|
|
3687
3687
|
* GET /frictionless/failed-checkins - List check-ins on error
|
|
3688
3688
|
*
|
|
3689
3689
|
* @param options - additional request options
|
|
3690
3690
|
*/
|
|
3691
|
-
|
|
3692
|
-
return this.request("frictionless", "
|
|
3691
|
+
ListFailedCheckinsController_execute(options) {
|
|
3692
|
+
return this.request("frictionless", "ListFailedCheckinsController_execute", "get", `/frictionless/failed-checkins`, null, options);
|
|
3693
3693
|
}
|
|
3694
3694
|
/**
|
|
3695
3695
|
* POST /frictionless/checkin/{id_checkin}/reprocess - Reprocess checkin on error
|
|
@@ -3697,8 +3697,8 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3697
3697
|
* @param id_checkin - TODO: add parameter to swagger.json
|
|
3698
3698
|
* @param options - additional request options
|
|
3699
3699
|
*/
|
|
3700
|
-
|
|
3701
|
-
return this.request("frictionless", "
|
|
3700
|
+
ReprocessCheckinOnErrorController_execute(id_checkin, options) {
|
|
3701
|
+
return this.request("frictionless", "ReprocessCheckinOnErrorController_execute", "post", `/frictionless/checkin/${id_checkin}/reprocess`, null, options);
|
|
3702
3702
|
}
|
|
3703
3703
|
/**
|
|
3704
3704
|
* GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn status
|
|
@@ -3706,8 +3706,26 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
3706
3706
|
* @param id_checkin - TODO: add parameter to swagger.json
|
|
3707
3707
|
* @param options - additional request options
|
|
3708
3708
|
*/
|
|
3709
|
-
|
|
3710
|
-
return this.request("frictionless", "
|
|
3709
|
+
CheckCheckinStatusController_execute(id_checkin, options) {
|
|
3710
|
+
return this.request("frictionless", "CheckCheckinStatusController_execute", "get", `/frictionless/checkin/${id_checkin}/status`, null, options);
|
|
3711
|
+
}
|
|
3712
|
+
/**
|
|
3713
|
+
* POST /ai/language/generate - Generate text from a given prompt
|
|
3714
|
+
*
|
|
3715
|
+
* @param body
|
|
3716
|
+
* @param options - additional request options
|
|
3717
|
+
*/
|
|
3718
|
+
post_ai_language_generate(body, options) {
|
|
3719
|
+
return this.request("ai", "post_ai_language_generate", "post", `/ai/language/generate`, body, options);
|
|
3720
|
+
}
|
|
3721
|
+
/**
|
|
3722
|
+
* POST /ai/image/generate - Generate image from a given prompt
|
|
3723
|
+
*
|
|
3724
|
+
* @param body
|
|
3725
|
+
* @param options - additional request options
|
|
3726
|
+
*/
|
|
3727
|
+
post_ai_image_generate(body, options) {
|
|
3728
|
+
return this.request("ai", "post_ai_image_generate", "post", `/ai/image/generate`, body, options);
|
|
3711
3729
|
}
|
|
3712
3730
|
}
|
|
3713
3731
|
exports.ServiceClient = ServiceClient;
|