@compassdigital/sdk.typescript 4.562.0 → 4.564.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 +13 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/email.d.ts +29 -0
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +6 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -1
- package/src/interface/email.ts +47 -0
- package/src/interface/menu.ts +7 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -224,7 +224,12 @@ import {
|
|
|
224
224
|
GetPartnerExternalMenuItemsResponse,
|
|
225
225
|
} from './interface/partner';
|
|
226
226
|
|
|
227
|
-
import {
|
|
227
|
+
import {
|
|
228
|
+
PostEmailBody,
|
|
229
|
+
PostEmailResponse,
|
|
230
|
+
GetEmailPingResponse,
|
|
231
|
+
GetEmailHealthResponse,
|
|
232
|
+
} from './interface/email';
|
|
228
233
|
|
|
229
234
|
import {
|
|
230
235
|
PostTaskBody,
|
|
@@ -3639,6 +3644,24 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3639
3644
|
return this.request('email', '/email', 'POST', `/email`, body, options);
|
|
3640
3645
|
}
|
|
3641
3646
|
|
|
3647
|
+
/**
|
|
3648
|
+
* GET /email/ping - Service ping endpoint for basic connectivity check
|
|
3649
|
+
*
|
|
3650
|
+
* @param options - additional request options
|
|
3651
|
+
*/
|
|
3652
|
+
get_email_ping(options?: RequestOptions): ResponsePromise<GetEmailPingResponse> {
|
|
3653
|
+
return this.request('email', '/email/ping', 'GET', `/email/ping`, null, options);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* GET /email/health - Service health endpoint for dependency checks
|
|
3658
|
+
*
|
|
3659
|
+
* @param options - additional request options
|
|
3660
|
+
*/
|
|
3661
|
+
get_email_health(options?: RequestOptions): ResponsePromise<GetEmailHealthResponse> {
|
|
3662
|
+
return this.request('email', '/email/health', 'GET', `/email/health`, null, options);
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3642
3665
|
/**
|
|
3643
3666
|
* POST /task - Create new Task
|
|
3644
3667
|
*
|
package/src/interface/email.ts
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
|
|
4
4
|
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
|
+
export interface PingResponse {
|
|
7
|
+
status?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
timestamp?: string;
|
|
10
|
+
service?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface HealthResponse {
|
|
14
|
+
// Overall health status of the service
|
|
15
|
+
status: 'healthy' | 'unhealthy' | 'degraded';
|
|
16
|
+
// ISO timestamp of the health check
|
|
17
|
+
timestamp: string;
|
|
18
|
+
// Service version
|
|
19
|
+
version: string;
|
|
20
|
+
// Status of service dependencies
|
|
21
|
+
dependencies: HealthDependency[];
|
|
22
|
+
metadata: HealthMetadata;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface HealthDependency {
|
|
26
|
+
// Name of the dependency
|
|
27
|
+
name: string;
|
|
28
|
+
// Health status of the dependency
|
|
29
|
+
status: 'healthy' | 'unhealthy' | 'degraded';
|
|
30
|
+
// Response time in milliseconds
|
|
31
|
+
responseTimeMs: number;
|
|
32
|
+
// Additional details about the dependency status
|
|
33
|
+
details: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HealthMetadata {
|
|
37
|
+
region?: string;
|
|
38
|
+
service?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
6
41
|
export interface Error {
|
|
7
42
|
message?: string;
|
|
8
43
|
code?: number;
|
|
@@ -32,3 +67,15 @@ export type PostEmailResponse = Success;
|
|
|
32
67
|
export interface PostEmailRequest extends BaseRequest {
|
|
33
68
|
body: PostEmailBody;
|
|
34
69
|
}
|
|
70
|
+
|
|
71
|
+
// GET /email/ping - Service ping endpoint for basic connectivity check
|
|
72
|
+
|
|
73
|
+
export type GetEmailPingResponse = PingResponse;
|
|
74
|
+
|
|
75
|
+
export interface GetEmailPingRequest extends BaseRequest {}
|
|
76
|
+
|
|
77
|
+
// GET /email/health - Service health endpoint for dependency checks
|
|
78
|
+
|
|
79
|
+
export type GetEmailHealthResponse = HealthResponse;
|
|
80
|
+
|
|
81
|
+
export interface GetEmailHealthRequest extends BaseRequest {}
|
package/src/interface/menu.ts
CHANGED
|
@@ -2076,6 +2076,12 @@ export interface SwappedCategoryDTO {
|
|
|
2076
2076
|
sequence?: number;
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
+
export interface SwapOriginalStatesDTO {
|
|
2080
|
+
swap_out_was_visible: boolean;
|
|
2081
|
+
swap_in_was_visible: boolean;
|
|
2082
|
+
[index: string]: any;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2079
2085
|
export interface CatalogBackupVersionDTO {
|
|
2080
2086
|
version_id?: string;
|
|
2081
2087
|
last_modified?: string;
|
|
@@ -8843,6 +8849,7 @@ export interface PostMenuV4BrandSwapCategoryItemsBody {
|
|
|
8843
8849
|
export interface PostMenuV4BrandSwapCategoryItemsResponse {
|
|
8844
8850
|
status?: string;
|
|
8845
8851
|
swapped_categories?: SwappedCategoryDTO[];
|
|
8852
|
+
original_states?: SwapOriginalStatesDTO;
|
|
8846
8853
|
}
|
|
8847
8854
|
|
|
8848
8855
|
export interface PostMenuV4BrandSwapCategoryItemsRequest
|