@compassdigital/sdk.typescript 4.268.0 → 4.270.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 +29 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +27 -3
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +62 -3
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/messages/events/ReviewCreatedEvent.d.ts +0 -1
- package/lib/messages/events/ReviewCreatedEvent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +52 -7
- package/src/interface/menu.ts +97 -4
- package/src/messages/events/ReviewCreatedEvent.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/ReviewCreatedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,MAAM,EAAE;YAEP,EAAE,EAAE,MAAM,CAAC;YAEX,
|
|
1
|
+
{"version":3,"file":"ReviewCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/ReviewCreatedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,MAAM,EAAE;YAEP,EAAE,EAAE,MAAM,CAAC;YAEX,SAAS,EAAE,MAAM,CAAC;YAElB,SAAS,EAAE,MAAM,CAAC;YAElB,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf,OAAO,CAAC,EAAE,MAAM,CAAC;YAEjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;YAElB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAClC,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -535,6 +535,10 @@ import {
|
|
|
535
535
|
PostMenuPartialGroupItemOptionsQuery,
|
|
536
536
|
PostMenuPartialGroupItemOptionsBody,
|
|
537
537
|
PostMenuPartialGroupItemOptionsResponse,
|
|
538
|
+
PingQuery,
|
|
539
|
+
PingResponse$0,
|
|
540
|
+
HealthQuery,
|
|
541
|
+
HealthResponse$0,
|
|
538
542
|
PostMenuV3LocalMenuGroupBody,
|
|
539
543
|
PostMenuV3LocalMenuGroupResponse,
|
|
540
544
|
GetMenuV3LocalMenuGroupQuery,
|
|
@@ -1036,8 +1040,10 @@ import {
|
|
|
1036
1040
|
DeleteMenuV4CategoryDetachItemsResponse,
|
|
1037
1041
|
GetMenuV4CategoryAttachableItemsQuery,
|
|
1038
1042
|
GetMenuV4CategoryAttachableItemsResponse,
|
|
1039
|
-
|
|
1040
|
-
|
|
1043
|
+
GetMenuV3PingQuery,
|
|
1044
|
+
GetMenuV3PingResponse,
|
|
1045
|
+
GetMenuV3HealthQuery,
|
|
1046
|
+
GetMenuV3HealthResponse,
|
|
1041
1047
|
} from './interface/menu';
|
|
1042
1048
|
|
|
1043
1049
|
import {
|
|
@@ -5945,6 +5951,32 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5945
5951
|
);
|
|
5946
5952
|
}
|
|
5947
5953
|
|
|
5954
|
+
/**
|
|
5955
|
+
* GET /menu/ping - Service ping endpoint for basic connectivity check
|
|
5956
|
+
*
|
|
5957
|
+
* @param options - additional request options
|
|
5958
|
+
*/
|
|
5959
|
+
ping(
|
|
5960
|
+
options?: {
|
|
5961
|
+
query?: PingQuery;
|
|
5962
|
+
} & RequestOptions,
|
|
5963
|
+
): ResponsePromise<PingResponse$0> {
|
|
5964
|
+
return this.request('menu', '/menu/ping', 'GET', `/menu/ping`, null, options);
|
|
5965
|
+
}
|
|
5966
|
+
|
|
5967
|
+
/**
|
|
5968
|
+
* GET /menu/health - Service health check endpoint
|
|
5969
|
+
*
|
|
5970
|
+
* @param options - additional request options
|
|
5971
|
+
*/
|
|
5972
|
+
health(
|
|
5973
|
+
options?: {
|
|
5974
|
+
query?: HealthQuery;
|
|
5975
|
+
} & RequestOptions,
|
|
5976
|
+
): ResponsePromise<HealthResponse$0> {
|
|
5977
|
+
return this.request('menu', '/menu/health', 'GET', `/menu/health`, null, options);
|
|
5978
|
+
}
|
|
5979
|
+
|
|
5948
5980
|
/**
|
|
5949
5981
|
* POST /menu/v3/local-menu-group
|
|
5950
5982
|
*
|
|
@@ -11350,16 +11382,29 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11350
11382
|
}
|
|
11351
11383
|
|
|
11352
11384
|
/**
|
|
11353
|
-
* GET /menu/ping
|
|
11385
|
+
* GET /menu/v3/ping
|
|
11354
11386
|
*
|
|
11355
11387
|
* @param options - additional request options
|
|
11356
11388
|
*/
|
|
11357
|
-
|
|
11389
|
+
get_menu_v3_ping(
|
|
11358
11390
|
options?: {
|
|
11359
|
-
query?:
|
|
11391
|
+
query?: GetMenuV3PingQuery;
|
|
11360
11392
|
} & RequestOptions,
|
|
11361
|
-
): ResponsePromise<
|
|
11362
|
-
return this.request('menu', '/menu/ping', 'GET', `/menu/ping`, null, options);
|
|
11393
|
+
): ResponsePromise<GetMenuV3PingResponse> {
|
|
11394
|
+
return this.request('menu', '/menu/v3/ping', 'GET', `/menu/v3/ping`, null, options);
|
|
11395
|
+
}
|
|
11396
|
+
|
|
11397
|
+
/**
|
|
11398
|
+
* GET /menu/v3/health
|
|
11399
|
+
*
|
|
11400
|
+
* @param options - additional request options
|
|
11401
|
+
*/
|
|
11402
|
+
get_menu_v3_health(
|
|
11403
|
+
options?: {
|
|
11404
|
+
query?: GetMenuV3HealthQuery;
|
|
11405
|
+
} & RequestOptions,
|
|
11406
|
+
): ResponsePromise<GetMenuV3HealthResponse> {
|
|
11407
|
+
return this.request('menu', '/menu/v3/health', 'GET', `/menu/v3/health`, null, options);
|
|
11363
11408
|
}
|
|
11364
11409
|
|
|
11365
11410
|
/**
|
package/src/interface/menu.ts
CHANGED
|
@@ -425,6 +425,45 @@ export interface ZippedExcelExport {
|
|
|
425
425
|
format?: string;
|
|
426
426
|
}
|
|
427
427
|
|
|
428
|
+
export interface PingResponse {
|
|
429
|
+
// Status of the service
|
|
430
|
+
status: string;
|
|
431
|
+
// Response message
|
|
432
|
+
message: string;
|
|
433
|
+
// ISO timestamp of the response
|
|
434
|
+
timestamp: string;
|
|
435
|
+
// Service identifier
|
|
436
|
+
service: string;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export interface HealthResponse {
|
|
440
|
+
// Overall health status of the service
|
|
441
|
+
status: 'healthy' | 'unhealthy' | 'degraded';
|
|
442
|
+
// ISO timestamp of the health check
|
|
443
|
+
timestamp: string;
|
|
444
|
+
// Service version
|
|
445
|
+
version: string;
|
|
446
|
+
// Status of service dependencies
|
|
447
|
+
dependencies: HealthDependency[];
|
|
448
|
+
metadata: {
|
|
449
|
+
// AWS region
|
|
450
|
+
region: string;
|
|
451
|
+
// Service identifier
|
|
452
|
+
service: string;
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface HealthDependency {
|
|
457
|
+
// Name of the dependency
|
|
458
|
+
name: string;
|
|
459
|
+
// Health status of the dependency
|
|
460
|
+
status: 'healthy' | 'unhealthy' | 'degraded';
|
|
461
|
+
// Response time in milliseconds
|
|
462
|
+
responseTimeMs: number;
|
|
463
|
+
// Additional details about the dependency status
|
|
464
|
+
details: string | null;
|
|
465
|
+
}
|
|
466
|
+
|
|
428
467
|
export interface GlobalMenuGroupDTO {
|
|
429
468
|
name?: string;
|
|
430
469
|
is_active?: boolean;
|
|
@@ -1860,6 +1899,20 @@ export interface CategoryItemRelationshipDTO {
|
|
|
1860
1899
|
[index: string]: any;
|
|
1861
1900
|
}
|
|
1862
1901
|
|
|
1902
|
+
export interface HealthDependencyDTO {
|
|
1903
|
+
name: string;
|
|
1904
|
+
status: string;
|
|
1905
|
+
responseTimeMs?: number;
|
|
1906
|
+
details?: string;
|
|
1907
|
+
[index: string]: any;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
export interface HealthMetadataDTO {
|
|
1911
|
+
region: string;
|
|
1912
|
+
service: string;
|
|
1913
|
+
[index: string]: any;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1863
1916
|
// GET /menu - Get Menus or search for Menus
|
|
1864
1917
|
|
|
1865
1918
|
export interface GetMenusQuery {
|
|
@@ -2269,6 +2322,28 @@ export interface PostMenuPartialGroupItemOptionsRequest
|
|
|
2269
2322
|
body: PostMenuPartialGroupItemOptionsBody;
|
|
2270
2323
|
}
|
|
2271
2324
|
|
|
2325
|
+
// GET /menu/ping - Service ping endpoint for basic connectivity check
|
|
2326
|
+
|
|
2327
|
+
export interface PingQuery {
|
|
2328
|
+
// Graphql query string
|
|
2329
|
+
_query?: string;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
export type PingResponse$0 = PingResponse;
|
|
2333
|
+
|
|
2334
|
+
export interface PingRequest extends BaseRequest, RequestQuery<PingQuery> {}
|
|
2335
|
+
|
|
2336
|
+
// GET /menu/health - Service health check endpoint
|
|
2337
|
+
|
|
2338
|
+
export interface HealthQuery {
|
|
2339
|
+
// Graphql query string
|
|
2340
|
+
_query?: string;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export type HealthResponse$0 = HealthResponse;
|
|
2344
|
+
|
|
2345
|
+
export interface HealthRequest extends BaseRequest, RequestQuery<HealthQuery> {}
|
|
2346
|
+
|
|
2272
2347
|
// POST /menu/v3/local-menu-group
|
|
2273
2348
|
|
|
2274
2349
|
export interface PostMenuV3LocalMenuGroupBody {
|
|
@@ -10503,14 +10578,14 @@ export interface GetMenuV4CategoryAttachableItemsRequest
|
|
|
10503
10578
|
RequestQuery<GetMenuV4CategoryAttachableItemsQuery>,
|
|
10504
10579
|
GetMenuV4CategoryAttachableItemsPath {}
|
|
10505
10580
|
|
|
10506
|
-
// GET /menu/ping
|
|
10581
|
+
// GET /menu/v3/ping
|
|
10507
10582
|
|
|
10508
|
-
export interface
|
|
10583
|
+
export interface GetMenuV3PingQuery {
|
|
10509
10584
|
// Graphql query string
|
|
10510
10585
|
_query?: string;
|
|
10511
10586
|
}
|
|
10512
10587
|
|
|
10513
|
-
export interface
|
|
10588
|
+
export interface GetMenuV3PingResponse {
|
|
10514
10589
|
status: string;
|
|
10515
10590
|
message: string;
|
|
10516
10591
|
timestamp: string;
|
|
@@ -10518,4 +10593,22 @@ export interface GetMenuPingResponse {
|
|
|
10518
10593
|
[index: string]: any;
|
|
10519
10594
|
}
|
|
10520
10595
|
|
|
10521
|
-
export interface
|
|
10596
|
+
export interface GetMenuV3PingRequest extends BaseRequest, RequestQuery<GetMenuV3PingQuery> {}
|
|
10597
|
+
|
|
10598
|
+
// GET /menu/v3/health
|
|
10599
|
+
|
|
10600
|
+
export interface GetMenuV3HealthQuery {
|
|
10601
|
+
// Graphql query string
|
|
10602
|
+
_query?: string;
|
|
10603
|
+
}
|
|
10604
|
+
|
|
10605
|
+
export interface GetMenuV3HealthResponse {
|
|
10606
|
+
status: string;
|
|
10607
|
+
timestamp: string;
|
|
10608
|
+
version: string;
|
|
10609
|
+
dependencies: HealthDependencyDTO[];
|
|
10610
|
+
metadata: HealthMetadataDTO;
|
|
10611
|
+
[index: string]: any;
|
|
10612
|
+
}
|
|
10613
|
+
|
|
10614
|
+
export interface GetMenuV3HealthRequest extends BaseRequest, RequestQuery<GetMenuV3HealthQuery> {}
|