@compassdigital/sdk.typescript 3.45.0 → 3.45.2
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 +260 -136
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +271 -136
- package/lib/index.js.map +1 -1
- package/lib/interface/delivery.d.ts +73 -0
- package/lib/interface/delivery.d.ts.map +1 -0
- package/lib/interface/delivery.js +4 -0
- package/lib/interface/delivery.js.map +1 -0
- package/lib/interface/menu.d.ts +299 -169
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +10 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +682 -353
- package/src/interface/delivery.ts +101 -0
- package/src/interface/menu.ts +476 -247
- package/src/interface/order.ts +21 -0
package/lib/index.js
CHANGED
|
@@ -1958,403 +1958,519 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1958
1958
|
return this.request("file", "delete_file", "delete", `/file`, body, options);
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
1961
|
-
* GET /menu/
|
|
1961
|
+
* GET /menu/v3/modifiers
|
|
1962
1962
|
*
|
|
1963
1963
|
* @param options - additional request options
|
|
1964
1964
|
*/
|
|
1965
|
-
|
|
1966
|
-
return this.request("menu", "
|
|
1965
|
+
get_menu_v3_modifiers(options) {
|
|
1966
|
+
return this.request("menu", "get_menu_v3_modifiers", "get", `/menu/v3/modifiers`, null, options);
|
|
1967
1967
|
}
|
|
1968
1968
|
/**
|
|
1969
|
-
* GET /menu/
|
|
1969
|
+
* GET /menu/v3/modifier/{id}
|
|
1970
1970
|
*
|
|
1971
1971
|
* @param id
|
|
1972
1972
|
* @param options - additional request options
|
|
1973
1973
|
*/
|
|
1974
|
-
|
|
1975
|
-
return this.request("menu", "
|
|
1974
|
+
get_menu_v3_modifier(id, options) {
|
|
1975
|
+
return this.request("menu", "get_menu_v3_modifier", "get", `/menu/v3/modifier/${id}`, null, options);
|
|
1976
1976
|
}
|
|
1977
1977
|
/**
|
|
1978
|
-
* PATCH /menu/
|
|
1978
|
+
* PATCH /menu/v3/modifier/{id}
|
|
1979
1979
|
*
|
|
1980
1980
|
* @param id
|
|
1981
1981
|
* @param body
|
|
1982
1982
|
* @param options - additional request options
|
|
1983
1983
|
*/
|
|
1984
|
-
|
|
1985
|
-
return this.request("menu", "
|
|
1984
|
+
patch_menu_v3_modifier(id, body, options) {
|
|
1985
|
+
return this.request("menu", "patch_menu_v3_modifier", "patch", `/menu/v3/modifier/${id}`, body, options);
|
|
1986
1986
|
}
|
|
1987
1987
|
/**
|
|
1988
|
-
* POST /menu/
|
|
1988
|
+
* POST /menu/v3/modifier
|
|
1989
1989
|
*
|
|
1990
1990
|
* @param body
|
|
1991
1991
|
* @param options - additional request options
|
|
1992
1992
|
*/
|
|
1993
|
-
|
|
1994
|
-
return this.request("menu", "
|
|
1993
|
+
post_menu_v3_modifier(body, options) {
|
|
1994
|
+
return this.request("menu", "post_menu_v3_modifier", "post", `/menu/v3/modifier`, body, options);
|
|
1995
1995
|
}
|
|
1996
1996
|
/**
|
|
1997
|
-
* GET /menu/
|
|
1997
|
+
* GET /menu/v3/modifier/count
|
|
1998
1998
|
*
|
|
1999
1999
|
* @param options - additional request options
|
|
2000
2000
|
*/
|
|
2001
|
-
|
|
2002
|
-
return this.request("menu", "
|
|
2001
|
+
get_menu_v3_modifier_count(options) {
|
|
2002
|
+
return this.request("menu", "get_menu_v3_modifier_count", "get", `/menu/v3/modifier/count`, null, options);
|
|
2003
2003
|
}
|
|
2004
2004
|
/**
|
|
2005
|
-
* GET /menu/
|
|
2005
|
+
* GET /menu/v3/modifier-groups
|
|
2006
2006
|
*
|
|
2007
2007
|
* @param options - additional request options
|
|
2008
2008
|
*/
|
|
2009
|
-
|
|
2010
|
-
return this.request("menu", "
|
|
2009
|
+
get_menu_v3_modifier_groups(options) {
|
|
2010
|
+
return this.request("menu", "get_menu_v3_modifier_groups", "get", `/menu/v3/modifier-groups`, null, options);
|
|
2011
2011
|
}
|
|
2012
2012
|
/**
|
|
2013
|
-
* POST /menu/
|
|
2013
|
+
* POST /menu/v3/modifier-group
|
|
2014
2014
|
*
|
|
2015
2015
|
* @param body
|
|
2016
2016
|
* @param options - additional request options
|
|
2017
2017
|
*/
|
|
2018
|
-
|
|
2019
|
-
return this.request("menu", "
|
|
2018
|
+
post_menu_v3_modifier_group(body, options) {
|
|
2019
|
+
return this.request("menu", "post_menu_v3_modifier_group", "post", `/menu/v3/modifier-group`, body, options);
|
|
2020
2020
|
}
|
|
2021
2021
|
/**
|
|
2022
|
-
* GET /menu/
|
|
2022
|
+
* GET /menu/v3/modifier-group/{id}
|
|
2023
2023
|
*
|
|
2024
2024
|
* @param id
|
|
2025
2025
|
* @param options - additional request options
|
|
2026
2026
|
*/
|
|
2027
|
-
|
|
2028
|
-
return this.request("menu", "
|
|
2027
|
+
get_menu_v3_modifier_group(id, options) {
|
|
2028
|
+
return this.request("menu", "get_menu_v3_modifier_group", "get", `/menu/v3/modifier-group/${id}`, null, options);
|
|
2029
2029
|
}
|
|
2030
2030
|
/**
|
|
2031
|
-
* PATCH /menu/
|
|
2031
|
+
* PATCH /menu/v3/modifier-group/{id}
|
|
2032
2032
|
*
|
|
2033
2033
|
* @param id
|
|
2034
2034
|
* @param body
|
|
2035
2035
|
* @param options - additional request options
|
|
2036
2036
|
*/
|
|
2037
|
-
|
|
2038
|
-
return this.request("menu", "
|
|
2037
|
+
patch_menu_v3_modifier_group(id, body, options) {
|
|
2038
|
+
return this.request("menu", "patch_menu_v3_modifier_group", "patch", `/menu/v3/modifier-group/${id}`, body, options);
|
|
2039
2039
|
}
|
|
2040
2040
|
/**
|
|
2041
|
-
* GET /menu/
|
|
2041
|
+
* GET /menu/v3/modifier-group/count
|
|
2042
2042
|
*
|
|
2043
2043
|
* @param options - additional request options
|
|
2044
2044
|
*/
|
|
2045
|
-
|
|
2046
|
-
return this.request("menu", "
|
|
2045
|
+
get_menu_v3_modifier_group_count(options) {
|
|
2046
|
+
return this.request("menu", "get_menu_v3_modifier_group_count", "get", `/menu/v3/modifier-group/count`, null, options);
|
|
2047
2047
|
}
|
|
2048
2048
|
/**
|
|
2049
|
-
* GET /menu/
|
|
2049
|
+
* GET /menu/v3/modifier-group/relationships/modifiers
|
|
2050
2050
|
*
|
|
2051
2051
|
* @param options - additional request options
|
|
2052
2052
|
*/
|
|
2053
|
-
|
|
2054
|
-
return this.request("menu", "
|
|
2053
|
+
get_menu_v3_modifier_group_relationships_modifiers(options) {
|
|
2054
|
+
return this.request("menu", "get_menu_v3_modifier_group_relationships_modifiers", "get", `/menu/v3/modifier-group/relationships/modifiers`, null, options);
|
|
2055
2055
|
}
|
|
2056
2056
|
/**
|
|
2057
|
-
* POST /menu/
|
|
2057
|
+
* POST /menu/v3/modifier-group/relationships/modifiers
|
|
2058
2058
|
*
|
|
2059
2059
|
* @param body
|
|
2060
2060
|
* @param options - additional request options
|
|
2061
2061
|
*/
|
|
2062
|
-
|
|
2063
|
-
return this.request("menu", "
|
|
2062
|
+
post_menu_v3_modifier_group_relationships_modifiers(body, options) {
|
|
2063
|
+
return this.request("menu", "post_menu_v3_modifier_group_relationships_modifiers", "post", `/menu/v3/modifier-group/relationships/modifiers`, body, options);
|
|
2064
2064
|
}
|
|
2065
2065
|
/**
|
|
2066
|
-
*
|
|
2066
|
+
* POST /menu/v3/modifier-group/relationships/modifier
|
|
2067
|
+
*
|
|
2068
|
+
* @param body
|
|
2069
|
+
* @param options - additional request options
|
|
2070
|
+
*/
|
|
2071
|
+
post_menu_v3_modifier_group_relationships_modifier(body, options) {
|
|
2072
|
+
return this.request("menu", "post_menu_v3_modifier_group_relationships_modifier", "post", `/menu/v3/modifier-group/relationships/modifier`, body, options);
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* GET /menu/v3/modifier-group/relationships/modifier/{id}
|
|
2067
2076
|
*
|
|
2068
2077
|
* @param id
|
|
2069
2078
|
* @param options - additional request options
|
|
2070
2079
|
*/
|
|
2071
|
-
|
|
2072
|
-
return this.request("menu", "
|
|
2080
|
+
get_menu_v3_modifier_group_relationships_modifier(id, options) {
|
|
2081
|
+
return this.request("menu", "get_menu_v3_modifier_group_relationships_modifier", "get", `/menu/v3/modifier-group/relationships/modifier/${id}`, null, options);
|
|
2073
2082
|
}
|
|
2074
2083
|
/**
|
|
2075
|
-
* PATCH /menu/
|
|
2084
|
+
* PATCH /menu/v3/modifier-group/relationships/modifier/{id}
|
|
2076
2085
|
*
|
|
2077
2086
|
* @param id
|
|
2078
2087
|
* @param body
|
|
2079
2088
|
* @param options - additional request options
|
|
2080
2089
|
*/
|
|
2081
|
-
|
|
2082
|
-
return this.request("menu", "
|
|
2090
|
+
patch_menu_v3_modifier_group_relationships_modifier(id, body, options) {
|
|
2091
|
+
return this.request("menu", "patch_menu_v3_modifier_group_relationships_modifier", "patch", `/menu/v3/modifier-group/relationships/modifier/${id}`, body, options);
|
|
2083
2092
|
}
|
|
2084
2093
|
/**
|
|
2085
|
-
* GET /menu/
|
|
2094
|
+
* GET /menu/v3/items
|
|
2086
2095
|
*
|
|
2087
2096
|
* @param options - additional request options
|
|
2088
2097
|
*/
|
|
2089
|
-
|
|
2090
|
-
return this.request("menu", "
|
|
2098
|
+
get_menu_v3_items(options) {
|
|
2099
|
+
return this.request("menu", "get_menu_v3_items", "get", `/menu/v3/items`, null, options);
|
|
2091
2100
|
}
|
|
2092
2101
|
/**
|
|
2093
|
-
* GET /menu/
|
|
2102
|
+
* GET /menu/v3/item/{id}
|
|
2094
2103
|
*
|
|
2095
2104
|
* @param id
|
|
2096
2105
|
* @param options - additional request options
|
|
2097
2106
|
*/
|
|
2098
|
-
|
|
2099
|
-
return this.request("menu", "
|
|
2107
|
+
get_menu_v3_item(id, options) {
|
|
2108
|
+
return this.request("menu", "get_menu_v3_item", "get", `/menu/v3/item/${id}`, null, options);
|
|
2100
2109
|
}
|
|
2101
2110
|
/**
|
|
2102
|
-
* PATCH /menu/
|
|
2111
|
+
* PATCH /menu/v3/item/{id}
|
|
2103
2112
|
*
|
|
2104
2113
|
* @param id
|
|
2105
2114
|
* @param body
|
|
2106
2115
|
* @param options - additional request options
|
|
2107
2116
|
*/
|
|
2108
|
-
|
|
2109
|
-
return this.request("menu", "
|
|
2117
|
+
patch_menu_v3_item(id, body, options) {
|
|
2118
|
+
return this.request("menu", "patch_menu_v3_item", "patch", `/menu/v3/item/${id}`, body, options);
|
|
2110
2119
|
}
|
|
2111
2120
|
/**
|
|
2112
|
-
* POST /menu/
|
|
2121
|
+
* POST /menu/v3/item
|
|
2113
2122
|
*
|
|
2114
2123
|
* @param body
|
|
2115
2124
|
* @param options - additional request options
|
|
2116
2125
|
*/
|
|
2117
|
-
|
|
2118
|
-
return this.request("menu", "
|
|
2126
|
+
post_menu_v3_item(body, options) {
|
|
2127
|
+
return this.request("menu", "post_menu_v3_item", "post", `/menu/v3/item`, body, options);
|
|
2119
2128
|
}
|
|
2120
2129
|
/**
|
|
2121
|
-
* GET /menu/
|
|
2130
|
+
* GET /menu/v3/items/count
|
|
2122
2131
|
*
|
|
2123
2132
|
* @param options - additional request options
|
|
2124
2133
|
*/
|
|
2125
|
-
|
|
2126
|
-
return this.request("menu", "
|
|
2134
|
+
get_menu_v3_items_count(options) {
|
|
2135
|
+
return this.request("menu", "get_menu_v3_items_count", "get", `/menu/v3/items/count`, null, options);
|
|
2127
2136
|
}
|
|
2128
2137
|
/**
|
|
2129
|
-
* GET /menu/
|
|
2138
|
+
* GET /menu/v3/item/relationships/modifier-groups
|
|
2130
2139
|
*
|
|
2131
2140
|
* @param options - additional request options
|
|
2132
2141
|
*/
|
|
2133
|
-
|
|
2134
|
-
return this.request("menu", "
|
|
2142
|
+
get_menu_v3_item_relationships_modifier_groups(options) {
|
|
2143
|
+
return this.request("menu", "get_menu_v3_item_relationships_modifier_groups", "get", `/menu/v3/item/relationships/modifier-groups`, null, options);
|
|
2144
|
+
}
|
|
2145
|
+
/**
|
|
2146
|
+
* POST /menu/v3/item/relationships/modifier-groups
|
|
2147
|
+
*
|
|
2148
|
+
* @param body
|
|
2149
|
+
* @param options - additional request options
|
|
2150
|
+
*/
|
|
2151
|
+
post_menu_v3_item_relationships_modifier_groups(body, options) {
|
|
2152
|
+
return this.request("menu", "post_menu_v3_item_relationships_modifier_groups", "post", `/menu/v3/item/relationships/modifier-groups`, body, options);
|
|
2135
2153
|
}
|
|
2136
2154
|
/**
|
|
2137
|
-
* POST /menu/
|
|
2155
|
+
* POST /menu/v3/item/relationships/modifier-group
|
|
2138
2156
|
*
|
|
2139
2157
|
* @param body
|
|
2140
2158
|
* @param options - additional request options
|
|
2141
2159
|
*/
|
|
2142
|
-
|
|
2143
|
-
return this.request("menu", "
|
|
2160
|
+
post_menu_v3_item_relationships_modifier_group(body, options) {
|
|
2161
|
+
return this.request("menu", "post_menu_v3_item_relationships_modifier_group", "post", `/menu/v3/item/relationships/modifier-group`, body, options);
|
|
2144
2162
|
}
|
|
2145
2163
|
/**
|
|
2146
|
-
* PATCH /menu/
|
|
2164
|
+
* PATCH /menu/v3/item/relationships/modifier-group/{id}
|
|
2147
2165
|
*
|
|
2148
2166
|
* @param id
|
|
2149
2167
|
* @param body
|
|
2150
2168
|
* @param options - additional request options
|
|
2151
2169
|
*/
|
|
2152
|
-
|
|
2153
|
-
return this.request("menu", "
|
|
2170
|
+
patch_menu_v3_item_relationships_modifier_group(id, body, options) {
|
|
2171
|
+
return this.request("menu", "patch_menu_v3_item_relationships_modifier_group", "patch", `/menu/v3/item/relationships/modifier-group/${id}`, body, options);
|
|
2154
2172
|
}
|
|
2155
2173
|
/**
|
|
2156
|
-
* DELETE /menu/
|
|
2174
|
+
* DELETE /menu/v3/item/relationships/modifier-group/{id}
|
|
2157
2175
|
*
|
|
2158
2176
|
* @param id
|
|
2159
2177
|
* @param options - additional request options
|
|
2160
2178
|
*/
|
|
2161
|
-
|
|
2162
|
-
return this.request("menu", "
|
|
2179
|
+
delete_menu_v3_item_relationships_modifier_group(id, options) {
|
|
2180
|
+
return this.request("menu", "delete_menu_v3_item_relationships_modifier_group", "delete", `/menu/v3/item/relationships/modifier-group/${id}`, null, options);
|
|
2163
2181
|
}
|
|
2164
2182
|
/**
|
|
2165
|
-
* GET /menu/
|
|
2183
|
+
* GET /menu/v3/layouts
|
|
2166
2184
|
*
|
|
2167
2185
|
* @param options - additional request options
|
|
2168
2186
|
*/
|
|
2169
|
-
|
|
2170
|
-
return this.request("menu", "
|
|
2187
|
+
get_menu_v3_layouts(options) {
|
|
2188
|
+
return this.request("menu", "get_menu_v3_layouts", "get", `/menu/v3/layouts`, null, options);
|
|
2171
2189
|
}
|
|
2172
2190
|
/**
|
|
2173
|
-
* GET /menu/
|
|
2191
|
+
* GET /menu/v3/layout/{id}/categories
|
|
2174
2192
|
*
|
|
2175
2193
|
* @param id
|
|
2176
2194
|
* @param options - additional request options
|
|
2177
2195
|
*/
|
|
2178
|
-
|
|
2179
|
-
return this.request("menu", "
|
|
2196
|
+
get_menu_v3_layout_categories(id, options) {
|
|
2197
|
+
return this.request("menu", "get_menu_v3_layout_categories", "get", `/menu/v3/layout/${id}/categories`, null, options);
|
|
2180
2198
|
}
|
|
2181
2199
|
/**
|
|
2182
|
-
*
|
|
2200
|
+
* GET /menu/v3/layout/{id}
|
|
2201
|
+
*
|
|
2202
|
+
* @param id
|
|
2203
|
+
* @param options - additional request options
|
|
2204
|
+
*/
|
|
2205
|
+
get_menu_v3_layout(id, options) {
|
|
2206
|
+
return this.request("menu", "get_menu_v3_layout", "get", `/menu/v3/layout/${id}`, null, options);
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* PATCH /menu/v3/layout/{id}
|
|
2183
2210
|
*
|
|
2184
2211
|
* @param id
|
|
2185
2212
|
* @param body
|
|
2186
2213
|
* @param options - additional request options
|
|
2187
2214
|
*/
|
|
2188
|
-
|
|
2189
|
-
return this.request("menu", "
|
|
2215
|
+
patch_menu_v3_layout(id, body, options) {
|
|
2216
|
+
return this.request("menu", "patch_menu_v3_layout", "patch", `/menu/v3/layout/${id}`, body, options);
|
|
2190
2217
|
}
|
|
2191
2218
|
/**
|
|
2192
|
-
* DELETE /menu/
|
|
2219
|
+
* DELETE /menu/v3/layout/{id}
|
|
2193
2220
|
*
|
|
2194
2221
|
* @param id
|
|
2195
2222
|
* @param options - additional request options
|
|
2196
2223
|
*/
|
|
2197
|
-
|
|
2198
|
-
return this.request("menu", "
|
|
2224
|
+
delete_menu_v3_layout(id, options) {
|
|
2225
|
+
return this.request("menu", "delete_menu_v3_layout", "delete", `/menu/v3/layout/${id}`, null, options);
|
|
2199
2226
|
}
|
|
2200
2227
|
/**
|
|
2201
|
-
* POST /menu/
|
|
2228
|
+
* POST /menu/v3/layout
|
|
2202
2229
|
*
|
|
2203
2230
|
* @param body
|
|
2204
2231
|
* @param options - additional request options
|
|
2205
2232
|
*/
|
|
2206
|
-
|
|
2207
|
-
return this.request("menu", "
|
|
2233
|
+
post_menu_v3_layout(body, options) {
|
|
2234
|
+
return this.request("menu", "post_menu_v3_layout", "post", `/menu/v3/layout`, body, options);
|
|
2208
2235
|
}
|
|
2209
2236
|
/**
|
|
2210
|
-
* GET /menu/
|
|
2237
|
+
* GET /menu/v3/layouts/count
|
|
2211
2238
|
*
|
|
2212
2239
|
* @param options - additional request options
|
|
2213
2240
|
*/
|
|
2214
|
-
|
|
2215
|
-
return this.request("menu", "
|
|
2241
|
+
get_menu_v3_layouts_count(options) {
|
|
2242
|
+
return this.request("menu", "get_menu_v3_layouts_count", "get", `/menu/v3/layouts/count`, null, options);
|
|
2216
2243
|
}
|
|
2217
2244
|
/**
|
|
2218
|
-
* GET /menu/
|
|
2245
|
+
* GET /menu/v3/categories
|
|
2219
2246
|
*
|
|
2220
2247
|
* @param options - additional request options
|
|
2221
2248
|
*/
|
|
2222
|
-
|
|
2223
|
-
return this.request("menu", "
|
|
2249
|
+
get_menu_v3_categories(options) {
|
|
2250
|
+
return this.request("menu", "get_menu_v3_categories", "get", `/menu/v3/categories`, null, options);
|
|
2224
2251
|
}
|
|
2225
2252
|
/**
|
|
2226
|
-
* GET /menu/
|
|
2253
|
+
* GET /menu/v3/category/{id}
|
|
2227
2254
|
*
|
|
2228
2255
|
* @param id
|
|
2229
2256
|
* @param options - additional request options
|
|
2230
2257
|
*/
|
|
2231
|
-
|
|
2232
|
-
return this.request("menu", "
|
|
2258
|
+
get_menu_v3_category(id, options) {
|
|
2259
|
+
return this.request("menu", "get_menu_v3_category", "get", `/menu/v3/category/${id}`, null, options);
|
|
2233
2260
|
}
|
|
2234
2261
|
/**
|
|
2235
|
-
* PATCH /menu/
|
|
2262
|
+
* PATCH /menu/v3/category/{id}
|
|
2236
2263
|
*
|
|
2237
2264
|
* @param id
|
|
2238
2265
|
* @param body
|
|
2239
2266
|
* @param options - additional request options
|
|
2240
2267
|
*/
|
|
2241
|
-
|
|
2242
|
-
return this.request("menu", "
|
|
2268
|
+
patch_menu_v3_category(id, body, options) {
|
|
2269
|
+
return this.request("menu", "patch_menu_v3_category", "patch", `/menu/v3/category/${id}`, body, options);
|
|
2243
2270
|
}
|
|
2244
2271
|
/**
|
|
2245
|
-
* DELETE /menu/
|
|
2272
|
+
* DELETE /menu/v3/category/{id}
|
|
2246
2273
|
*
|
|
2247
2274
|
* @param id
|
|
2248
2275
|
* @param options - additional request options
|
|
2249
2276
|
*/
|
|
2250
|
-
|
|
2251
|
-
return this.request("menu", "
|
|
2277
|
+
delete_menu_v3_category(id, options) {
|
|
2278
|
+
return this.request("menu", "delete_menu_v3_category", "delete", `/menu/v3/category/${id}`, null, options);
|
|
2252
2279
|
}
|
|
2253
2280
|
/**
|
|
2254
|
-
* POST /menu/
|
|
2281
|
+
* POST /menu/v3/category
|
|
2255
2282
|
*
|
|
2256
2283
|
* @param body
|
|
2257
2284
|
* @param options - additional request options
|
|
2258
2285
|
*/
|
|
2259
|
-
|
|
2260
|
-
return this.request("menu", "
|
|
2286
|
+
post_menu_v3_category(body, options) {
|
|
2287
|
+
return this.request("menu", "post_menu_v3_category", "post", `/menu/v3/category`, body, options);
|
|
2261
2288
|
}
|
|
2262
2289
|
/**
|
|
2263
|
-
* GET /menu/
|
|
2290
|
+
* GET /menu/v3/categories/count
|
|
2264
2291
|
*
|
|
2265
2292
|
* @param options - additional request options
|
|
2266
2293
|
*/
|
|
2267
|
-
|
|
2268
|
-
return this.request("menu", "
|
|
2294
|
+
get_menu_v3_categories_count(options) {
|
|
2295
|
+
return this.request("menu", "get_menu_v3_categories_count", "get", `/menu/v3/categories/count`, null, options);
|
|
2269
2296
|
}
|
|
2270
2297
|
/**
|
|
2271
|
-
* GET /menu/
|
|
2298
|
+
* GET /menu/v3/category/relationships/items
|
|
2272
2299
|
*
|
|
2273
2300
|
* @param options - additional request options
|
|
2274
2301
|
*/
|
|
2275
|
-
|
|
2276
|
-
return this.request("menu", "
|
|
2302
|
+
get_menu_v3_category_relationships_items(options) {
|
|
2303
|
+
return this.request("menu", "get_menu_v3_category_relationships_items", "get", `/menu/v3/category/relationships/items`, null, options);
|
|
2277
2304
|
}
|
|
2278
2305
|
/**
|
|
2279
|
-
*
|
|
2306
|
+
* POST /menu/v3/category/relationships/items
|
|
2307
|
+
*
|
|
2308
|
+
* @param body
|
|
2309
|
+
* @param options - additional request options
|
|
2310
|
+
*/
|
|
2311
|
+
post_menu_v3_category_relationships_items(body, options) {
|
|
2312
|
+
return this.request("menu", "post_menu_v3_category_relationships_items", "post", `/menu/v3/category/relationships/items`, body, options);
|
|
2313
|
+
}
|
|
2314
|
+
/**
|
|
2315
|
+
* POST /menu/v3/category/relationships/item
|
|
2316
|
+
*
|
|
2317
|
+
* @param body
|
|
2318
|
+
* @param options - additional request options
|
|
2319
|
+
*/
|
|
2320
|
+
post_menu_v3_category_relationships_item(body, options) {
|
|
2321
|
+
return this.request("menu", "post_menu_v3_category_relationships_item", "post", `/menu/v3/category/relationships/item`, body, options);
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* PATCH /menu/v3/category/relationships/item/{id}
|
|
2325
|
+
*
|
|
2326
|
+
* @param id
|
|
2327
|
+
* @param body
|
|
2328
|
+
* @param options - additional request options
|
|
2329
|
+
*/
|
|
2330
|
+
patch_menu_v3_category_relationships_item(id, body, options) {
|
|
2331
|
+
return this.request("menu", "patch_menu_v3_category_relationships_item", "patch", `/menu/v3/category/relationships/item/${id}`, body, options);
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* DELETE /menu/v3/category/relationships/item/{id}
|
|
2280
2335
|
*
|
|
2281
2336
|
* @param id
|
|
2282
2337
|
* @param options - additional request options
|
|
2283
2338
|
*/
|
|
2284
|
-
|
|
2285
|
-
return this.request("menu", "
|
|
2339
|
+
delete_menu_v3_category_relationships_item(id, options) {
|
|
2340
|
+
return this.request("menu", "delete_menu_v3_category_relationships_item", "delete", `/menu/v3/category/relationships/item/${id}`, null, options);
|
|
2286
2341
|
}
|
|
2287
2342
|
/**
|
|
2288
|
-
*
|
|
2343
|
+
* GET /menu/v3/brands
|
|
2344
|
+
*
|
|
2345
|
+
* @param options - additional request options
|
|
2346
|
+
*/
|
|
2347
|
+
get_menu_v3_brands(options) {
|
|
2348
|
+
return this.request("menu", "get_menu_v3_brands", "get", `/menu/v3/brands`, null, options);
|
|
2349
|
+
}
|
|
2350
|
+
/**
|
|
2351
|
+
* GET /menu/v3/brand/{id}/modifiers
|
|
2352
|
+
*
|
|
2353
|
+
* @param id
|
|
2354
|
+
* @param options - additional request options
|
|
2355
|
+
*/
|
|
2356
|
+
get_menu_v3_brand_modifiers(id, options) {
|
|
2357
|
+
return this.request("menu", "get_menu_v3_brand_modifiers", "get", `/menu/v3/brand/${id}/modifiers`, null, options);
|
|
2358
|
+
}
|
|
2359
|
+
/**
|
|
2360
|
+
* GET /menu/v3/brand/{id}/modifier_groups
|
|
2361
|
+
*
|
|
2362
|
+
* @param id
|
|
2363
|
+
* @param options - additional request options
|
|
2364
|
+
*/
|
|
2365
|
+
get_menu_v3_brand_modifier_groups(id, options) {
|
|
2366
|
+
return this.request("menu", "get_menu_v3_brand_modifier_groups", "get", `/menu/v3/brand/${id}/modifier_groups`, null, options);
|
|
2367
|
+
}
|
|
2368
|
+
/**
|
|
2369
|
+
* GET /menu/v3/brand/{id}/items
|
|
2370
|
+
*
|
|
2371
|
+
* @param id
|
|
2372
|
+
* @param options - additional request options
|
|
2373
|
+
*/
|
|
2374
|
+
get_menu_v3_brand_items(id, options) {
|
|
2375
|
+
return this.request("menu", "get_menu_v3_brand_items", "get", `/menu/v3/brand/${id}/items`, null, options);
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* GET /menu/v3/brand/{id}
|
|
2379
|
+
*
|
|
2380
|
+
* @param id
|
|
2381
|
+
* @param options - additional request options
|
|
2382
|
+
*/
|
|
2383
|
+
get_menu_v3_brand(id, options) {
|
|
2384
|
+
return this.request("menu", "get_menu_v3_brand", "get", `/menu/v3/brand/${id}`, null, options);
|
|
2385
|
+
}
|
|
2386
|
+
/**
|
|
2387
|
+
* PATCH /menu/v3/brand/{id}
|
|
2289
2388
|
*
|
|
2290
2389
|
* @param id
|
|
2291
2390
|
* @param body
|
|
2292
2391
|
* @param options - additional request options
|
|
2293
2392
|
*/
|
|
2294
|
-
|
|
2295
|
-
return this.request("menu", "
|
|
2393
|
+
patch_menu_v3_brand(id, body, options) {
|
|
2394
|
+
return this.request("menu", "patch_menu_v3_brand", "patch", `/menu/v3/brand/${id}`, body, options);
|
|
2296
2395
|
}
|
|
2297
2396
|
/**
|
|
2298
|
-
* DELETE /menu/
|
|
2397
|
+
* DELETE /menu/v3/brand/{id}
|
|
2299
2398
|
*
|
|
2300
2399
|
* @param id
|
|
2301
2400
|
* @param options - additional request options
|
|
2302
2401
|
*/
|
|
2303
|
-
|
|
2304
|
-
return this.request("menu", "
|
|
2402
|
+
delete_menu_v3_brand(id, options) {
|
|
2403
|
+
return this.request("menu", "delete_menu_v3_brand", "delete", `/menu/v3/brand/${id}`, null, options);
|
|
2305
2404
|
}
|
|
2306
2405
|
/**
|
|
2307
|
-
* POST /menu/
|
|
2406
|
+
* POST /menu/v3/brand
|
|
2308
2407
|
*
|
|
2309
2408
|
* @param body
|
|
2310
2409
|
* @param options - additional request options
|
|
2311
2410
|
*/
|
|
2312
|
-
|
|
2313
|
-
return this.request("menu", "
|
|
2411
|
+
post_menu_v3_brand(body, options) {
|
|
2412
|
+
return this.request("menu", "post_menu_v3_brand", "post", `/menu/v3/brand`, body, options);
|
|
2314
2413
|
}
|
|
2315
2414
|
/**
|
|
2316
|
-
* GET /menu/
|
|
2415
|
+
* GET /menu/v3/brands/count
|
|
2317
2416
|
*
|
|
2318
2417
|
* @param options - additional request options
|
|
2319
2418
|
*/
|
|
2320
|
-
|
|
2321
|
-
return this.request("menu", "
|
|
2419
|
+
get_menu_v3_brands_count(options) {
|
|
2420
|
+
return this.request("menu", "get_menu_v3_brands_count", "get", `/menu/v3/brands/count`, null, options);
|
|
2322
2421
|
}
|
|
2323
2422
|
/**
|
|
2324
|
-
* GET /menu/
|
|
2423
|
+
* GET /menu/v3/stations
|
|
2325
2424
|
*
|
|
2326
2425
|
* @param options - additional request options
|
|
2327
2426
|
*/
|
|
2328
|
-
|
|
2329
|
-
return this.request("menu", "
|
|
2427
|
+
get_menu_v3_stations(options) {
|
|
2428
|
+
return this.request("menu", "get_menu_v3_stations", "get", `/menu/v3/stations`, null, options);
|
|
2330
2429
|
}
|
|
2331
2430
|
/**
|
|
2332
|
-
*
|
|
2431
|
+
* GET /menu/v3/station/{id}
|
|
2333
2432
|
*
|
|
2334
|
-
* @param
|
|
2433
|
+
* @param id
|
|
2335
2434
|
* @param options - additional request options
|
|
2336
2435
|
*/
|
|
2337
|
-
|
|
2338
|
-
return this.request("menu", "
|
|
2436
|
+
get_menu_v3_station(id, options) {
|
|
2437
|
+
return this.request("menu", "get_menu_v3_station", "get", `/menu/v3/station/${id}`, null, options);
|
|
2339
2438
|
}
|
|
2340
2439
|
/**
|
|
2341
|
-
* PATCH /menu/
|
|
2440
|
+
* PATCH /menu/v3/station/{id}
|
|
2342
2441
|
*
|
|
2343
2442
|
* @param id
|
|
2344
2443
|
* @param body
|
|
2345
2444
|
* @param options - additional request options
|
|
2346
2445
|
*/
|
|
2347
|
-
|
|
2348
|
-
return this.request("menu", "
|
|
2446
|
+
patch_menu_v3_station(id, body, options) {
|
|
2447
|
+
return this.request("menu", "patch_menu_v3_station", "patch", `/menu/v3/station/${id}`, body, options);
|
|
2349
2448
|
}
|
|
2350
2449
|
/**
|
|
2351
|
-
* DELETE /menu/
|
|
2450
|
+
* DELETE /menu/v3/station/{id}
|
|
2352
2451
|
*
|
|
2353
2452
|
* @param id
|
|
2354
2453
|
* @param options - additional request options
|
|
2355
2454
|
*/
|
|
2356
|
-
|
|
2357
|
-
return this.request("menu", "
|
|
2455
|
+
delete_menu_v3_station(id, options) {
|
|
2456
|
+
return this.request("menu", "delete_menu_v3_station", "delete", `/menu/v3/station/${id}`, null, options);
|
|
2457
|
+
}
|
|
2458
|
+
/**
|
|
2459
|
+
* POST /menu/v3/station
|
|
2460
|
+
*
|
|
2461
|
+
* @param body
|
|
2462
|
+
* @param options - additional request options
|
|
2463
|
+
*/
|
|
2464
|
+
post_menu_v3_station(body, options) {
|
|
2465
|
+
return this.request("menu", "post_menu_v3_station", "post", `/menu/v3/station`, body, options);
|
|
2466
|
+
}
|
|
2467
|
+
/**
|
|
2468
|
+
* GET /menu/v3/stations/count
|
|
2469
|
+
*
|
|
2470
|
+
* @param options - additional request options
|
|
2471
|
+
*/
|
|
2472
|
+
get_menu_v3_stations_count(options) {
|
|
2473
|
+
return this.request("menu", "get_menu_v3_stations_count", "get", `/menu/v3/stations/count`, null, options);
|
|
2358
2474
|
}
|
|
2359
2475
|
/**
|
|
2360
2476
|
* GET /menu/client/{client_id} - Get menu client
|
|
@@ -2916,6 +3032,25 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
2916
3032
|
delete_permission_role_user(user_id, body, options) {
|
|
2917
3033
|
return this.request("permission", "delete_permission_role_user", "delete", `/permission/role/user/${user_id}`, body, options);
|
|
2918
3034
|
}
|
|
3035
|
+
/**
|
|
3036
|
+
* GET /delivery/{id}/order/{order_id} - get delivery for order
|
|
3037
|
+
*
|
|
3038
|
+
* @param id - delivery provider id
|
|
3039
|
+
* @param order_id - order id
|
|
3040
|
+
* @param options - additional request options
|
|
3041
|
+
*/
|
|
3042
|
+
get_delivery_order(id, order_id, options) {
|
|
3043
|
+
return this.request("delivery", "get_delivery_order", "get", `/delivery/${id}/order/${order_id}`, null, options);
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* GET /delivery/{id} - Get all Deliveries for delivery provider
|
|
3047
|
+
*
|
|
3048
|
+
* @param id - delivery provider id
|
|
3049
|
+
* @param options - additional request options
|
|
3050
|
+
*/
|
|
3051
|
+
get_delivery(id, options) {
|
|
3052
|
+
return this.request("delivery", "get_delivery", "get", `/delivery/${id}`, null, options);
|
|
3053
|
+
}
|
|
2919
3054
|
/**
|
|
2920
3055
|
* POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
|
|
2921
3056
|
*
|