@compassdigital/sdk.typescript 4.837.0 → 4.839.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/lib/index.d.ts +49 -45
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +61 -43
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +22 -0
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +37 -38
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +0 -27
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +148 -116
- package/src/interface/auth.ts +49 -0
- package/src/interface/consumer.ts +72 -73
- package/src/interface/menu.ts +0 -37
package/lib/index.js
CHANGED
|
@@ -4837,16 +4837,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
4837
4837
|
post_menu_v4_brand_category_attach_items(id, body, options) {
|
|
4838
4838
|
return this.request('menu', '/menu/v4/brand/{id}/category/attach-items', 'POST', `/menu/v4/brand/${id}/category/attach-items`, body, options);
|
|
4839
4839
|
}
|
|
4840
|
-
/**
|
|
4841
|
-
* POST /menu/v4/brand/{id}/swap-category-items
|
|
4842
|
-
*
|
|
4843
|
-
* @param id
|
|
4844
|
-
* @param body
|
|
4845
|
-
* @param options - additional request options
|
|
4846
|
-
*/
|
|
4847
|
-
post_menu_v4_brand_swap_category_items(id, body, options) {
|
|
4848
|
-
return this.request('menu', '/menu/v4/brand/{id}/swap-category-items', 'POST', `/menu/v4/brand/${id}/swap-category-items`, body, options);
|
|
4849
|
-
}
|
|
4850
4840
|
/**
|
|
4851
4841
|
* GET /menu/v4/brand/{id}/catalog-backup/versions
|
|
4852
4842
|
*
|
|
@@ -6193,24 +6183,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6193
6183
|
get_consumer_menu_items(id, options) {
|
|
6194
6184
|
return this.request('consumer', '/consumer/menu/{id}/items', 'GET', `/consumer/menu/${id}/items`, null, options);
|
|
6195
6185
|
}
|
|
6196
|
-
/**
|
|
6197
|
-
* POST /consumer/location/marketplace/timeslots - Get Marketplace timeslots
|
|
6198
|
-
*
|
|
6199
|
-
* @param body - Request body for marketplace timeslots
|
|
6200
|
-
* @param options - additional request options
|
|
6201
|
-
*/
|
|
6202
|
-
post_consumer_locations_marketplace_timeslots(body, options) {
|
|
6203
|
-
return this.request('consumer', '/consumer/location/marketplace/timeslots', 'POST', `/consumer/location/marketplace/timeslots`, body, options);
|
|
6204
|
-
}
|
|
6205
|
-
/**
|
|
6206
|
-
* POST /consumer/location/marketplace/timeslots/delivery - Get Marketplace timeslots
|
|
6207
|
-
*
|
|
6208
|
-
* @param body - Request body for marketplace timeslots delivery
|
|
6209
|
-
* @param options - additional request options
|
|
6210
|
-
*/
|
|
6211
|
-
post_consumer_locations_marketplace_timeslots_delivery(body, options) {
|
|
6212
|
-
return this.request('consumer', '/consumer/location/marketplace/timeslots/delivery', 'POST', `/consumer/location/marketplace/timeslots/delivery`, body, options);
|
|
6213
|
-
}
|
|
6214
6186
|
/**
|
|
6215
6187
|
* DELETE /consumer/user/{id} - Delete user
|
|
6216
6188
|
*
|
|
@@ -6502,24 +6474,13 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6502
6474
|
return this.request('consumer', '/consumer/app-theme/{siteId}', 'GET', `/consumer/app-theme/${siteId}`, null, options);
|
|
6503
6475
|
}
|
|
6504
6476
|
/**
|
|
6505
|
-
*
|
|
6506
|
-
*
|
|
6507
|
-
* @param brandId - Brand ID as Encoded CDL ID
|
|
6508
|
-
* @param menuId - Menu ID as Encoded CDL ID
|
|
6509
|
-
* @param options - additional request options
|
|
6510
|
-
*/
|
|
6511
|
-
get_consumer_brand_menu_timeslots(brandId, menuId, options) {
|
|
6512
|
-
return this.request('consumer', '/consumer/location/brand/{brandId}/timeslots/menu/{menuId}', 'GET', `/consumer/location/brand/${brandId}/timeslots/menu/${menuId}`, null, options);
|
|
6513
|
-
}
|
|
6514
|
-
/**
|
|
6515
|
-
* GET /consumer/location/brand/{brandId}/timeslots/delivery/menu/{menuId} - Get location brand menu delivery timeslots
|
|
6477
|
+
* POST /consumer/location/timeslots - Get timeslots
|
|
6516
6478
|
*
|
|
6517
|
-
* @param
|
|
6518
|
-
* @param menuId - Menu ID as Encoded CDL ID
|
|
6479
|
+
* @param body - Which timeslots to fetch
|
|
6519
6480
|
* @param options - additional request options
|
|
6520
6481
|
*/
|
|
6521
|
-
|
|
6522
|
-
return this.request('consumer', '/consumer/location/
|
|
6482
|
+
post_consumer_timeslots(body, options) {
|
|
6483
|
+
return this.request('consumer', '/consumer/location/timeslots', 'POST', `/consumer/location/timeslots`, body, options);
|
|
6523
6484
|
}
|
|
6524
6485
|
/**
|
|
6525
6486
|
* GET /consumer/config/public/{id} - Get consumer public config
|
|
@@ -7476,6 +7437,63 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
7476
7437
|
post_auth_authorize_sso(body, options) {
|
|
7477
7438
|
return this.request('auth', '/auth/authorize/sso', 'POST', `/auth/authorize/sso`, body, options);
|
|
7478
7439
|
}
|
|
7440
|
+
/**
|
|
7441
|
+
* POST /auth/authorize/deny - User declined the authorization request (RFC 6749 s4.1.2.1 access_denied).
|
|
7442
|
+
*
|
|
7443
|
+
* @param body
|
|
7444
|
+
* @param options - additional request options
|
|
7445
|
+
*/
|
|
7446
|
+
post_auth_authorize_deny(body, options) {
|
|
7447
|
+
return this.request('auth', '/auth/authorize/deny', 'POST', `/auth/authorize/deny`, body, options);
|
|
7448
|
+
}
|
|
7449
|
+
/**
|
|
7450
|
+
* GET /.well-known/oauth-authorization-server - Authorization-server metadata at the root path (RFC 8414).
|
|
7451
|
+
*
|
|
7452
|
+
* @param options - additional request options
|
|
7453
|
+
*/
|
|
7454
|
+
get_well_known_oauth_authorization_server(options) {
|
|
7455
|
+
return this.request('auth', '/.well-known/oauth-authorization-server', 'GET', `/.well-known/oauth-authorization-server`, null, options);
|
|
7456
|
+
}
|
|
7457
|
+
/**
|
|
7458
|
+
* GET /.well-known/oauth-authorization-server/auth - Authorization-server metadata with the issuer path inserted (RFC 8414).
|
|
7459
|
+
*
|
|
7460
|
+
* @param options - additional request options
|
|
7461
|
+
*/
|
|
7462
|
+
get_well_known_oauth_authorization_server_auth(options) {
|
|
7463
|
+
return this.request('auth', '/.well-known/oauth-authorization-server/auth', 'GET', `/.well-known/oauth-authorization-server/auth`, null, options);
|
|
7464
|
+
}
|
|
7465
|
+
/**
|
|
7466
|
+
* GET /.well-known/openid-configuration - OpenID Provider metadata at the root path (OIDC discovery).
|
|
7467
|
+
*
|
|
7468
|
+
* @param options - additional request options
|
|
7469
|
+
*/
|
|
7470
|
+
get_well_known_openid_configuration(options) {
|
|
7471
|
+
return this.request('auth', '/.well-known/openid-configuration', 'GET', `/.well-known/openid-configuration`, null, options);
|
|
7472
|
+
}
|
|
7473
|
+
/**
|
|
7474
|
+
* GET /.well-known/openid-configuration/auth - OpenID Provider metadata with the issuer path inserted (OIDC discovery).
|
|
7475
|
+
*
|
|
7476
|
+
* @param options - additional request options
|
|
7477
|
+
*/
|
|
7478
|
+
get_well_known_openid_configuration_auth(options) {
|
|
7479
|
+
return this.request('auth', '/.well-known/openid-configuration/auth', 'GET', `/.well-known/openid-configuration/auth`, null, options);
|
|
7480
|
+
}
|
|
7481
|
+
/**
|
|
7482
|
+
* GET /.well-known/oauth-protected-resource - Protected-resource metadata when the URL names no resource (RFC 9728).
|
|
7483
|
+
*
|
|
7484
|
+
* @param options - additional request options
|
|
7485
|
+
*/
|
|
7486
|
+
get_well_known_oauth_protected_resource(options) {
|
|
7487
|
+
return this.request('auth', '/.well-known/oauth-protected-resource', 'GET', `/.well-known/oauth-protected-resource`, null, options);
|
|
7488
|
+
}
|
|
7489
|
+
/**
|
|
7490
|
+
* GET /.well-known/oauth-protected-resource/agent/thrive/mcp - Protected-resource metadata for the thrive MCP endpoint (RFC 9728 §3.1).
|
|
7491
|
+
*
|
|
7492
|
+
* @param options - additional request options
|
|
7493
|
+
*/
|
|
7494
|
+
get_well_known_oauth_protected_resource_agent_thrive_mcp(options) {
|
|
7495
|
+
return this.request('auth', '/.well-known/oauth-protected-resource/agent/thrive/mcp', 'GET', `/.well-known/oauth-protected-resource/agent/thrive/mcp`, null, options);
|
|
7496
|
+
}
|
|
7479
7497
|
/**
|
|
7480
7498
|
* GET /review - Get reviews by taxonomy
|
|
7481
7499
|
*
|