@compassdigital/sdk.typescript 4.345.0 → 4.347.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 +19 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +65 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +21 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +48 -0
- package/src/interface/consumer.ts +72 -0
- package/src/interface/menu.ts +31 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1043,6 +1043,8 @@ import {
|
|
|
1043
1043
|
PostMenuV4UnscheduleMenuResponse,
|
|
1044
1044
|
GetMenuV4MenuQuery,
|
|
1045
1045
|
GetMenuV4MenuResponse,
|
|
1046
|
+
GetMenuV4SizeQuery,
|
|
1047
|
+
GetMenuV4SizeResponse,
|
|
1046
1048
|
GetMenuV4CategoryQuery,
|
|
1047
1049
|
GetMenuV4CategoryResponse,
|
|
1048
1050
|
PostMenuV4CategoryAttachmentQuery,
|
|
@@ -1214,6 +1216,8 @@ import {
|
|
|
1214
1216
|
DeleteConsumerUserResponse,
|
|
1215
1217
|
PutConsumerUserBody,
|
|
1216
1218
|
PutConsumerUserResponse$0,
|
|
1219
|
+
PatchConsumerUserBody,
|
|
1220
|
+
PatchConsumerUserResponse$0,
|
|
1217
1221
|
GetConsumerUserQuery,
|
|
1218
1222
|
GetConsumerUserResponse$0,
|
|
1219
1223
|
DeleteConsumerLogoutResponse,
|
|
@@ -11643,6 +11647,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11643
11647
|
);
|
|
11644
11648
|
}
|
|
11645
11649
|
|
|
11650
|
+
/**
|
|
11651
|
+
* GET /menu/v4/{id}/size
|
|
11652
|
+
*
|
|
11653
|
+
* @param id
|
|
11654
|
+
* @param options - additional request options
|
|
11655
|
+
*/
|
|
11656
|
+
get_menu_v4_size(
|
|
11657
|
+
id: string,
|
|
11658
|
+
options?: {
|
|
11659
|
+
query?: GetMenuV4SizeQuery;
|
|
11660
|
+
} & RequestOptions,
|
|
11661
|
+
): ResponsePromise<GetMenuV4SizeResponse> {
|
|
11662
|
+
return this.request(
|
|
11663
|
+
'menu',
|
|
11664
|
+
'/menu/v4/{id}/size',
|
|
11665
|
+
'GET',
|
|
11666
|
+
`/menu/v4/${id}/size`,
|
|
11667
|
+
null,
|
|
11668
|
+
options,
|
|
11669
|
+
);
|
|
11670
|
+
}
|
|
11671
|
+
|
|
11646
11672
|
/**
|
|
11647
11673
|
* GET /menu/v4/category/{id}
|
|
11648
11674
|
*
|
|
@@ -13265,6 +13291,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13265
13291
|
);
|
|
13266
13292
|
}
|
|
13267
13293
|
|
|
13294
|
+
/**
|
|
13295
|
+
* PATCH /consumer/user/{id} - Update user
|
|
13296
|
+
*
|
|
13297
|
+
* @param id
|
|
13298
|
+
* @param body
|
|
13299
|
+
* @param options - additional request options
|
|
13300
|
+
*/
|
|
13301
|
+
patch_consumer_user(
|
|
13302
|
+
id: string,
|
|
13303
|
+
body: PatchConsumerUserBody,
|
|
13304
|
+
options?: RequestOptions,
|
|
13305
|
+
): ResponsePromise<PatchConsumerUserResponse$0> {
|
|
13306
|
+
return this.request(
|
|
13307
|
+
'consumer',
|
|
13308
|
+
'/consumer/user/{id}',
|
|
13309
|
+
'PATCH',
|
|
13310
|
+
`/consumer/user/${id}`,
|
|
13311
|
+
body,
|
|
13312
|
+
options,
|
|
13313
|
+
);
|
|
13314
|
+
}
|
|
13315
|
+
|
|
13268
13316
|
/**
|
|
13269
13317
|
* GET /consumer/user/{id} - Get user
|
|
13270
13318
|
*
|
|
@@ -2076,6 +2076,68 @@ export interface PutConsumerUserResponse {
|
|
|
2076
2076
|
ssoId?: string;
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
+
export interface PatchConsumerUserRequest {
|
|
2080
|
+
id?: string;
|
|
2081
|
+
email?: string;
|
|
2082
|
+
name?: {
|
|
2083
|
+
first?: string;
|
|
2084
|
+
last?: string;
|
|
2085
|
+
};
|
|
2086
|
+
date?: {
|
|
2087
|
+
created?: string;
|
|
2088
|
+
modified?: string;
|
|
2089
|
+
};
|
|
2090
|
+
birthday?: string;
|
|
2091
|
+
password?: string;
|
|
2092
|
+
phone?: number;
|
|
2093
|
+
phone_country_code?: string;
|
|
2094
|
+
realm?: string;
|
|
2095
|
+
gender?: Record<string, any>;
|
|
2096
|
+
meta?: ConsumerUserMeta;
|
|
2097
|
+
is?: {
|
|
2098
|
+
disabled?: boolean;
|
|
2099
|
+
locked_out?: boolean;
|
|
2100
|
+
verified?: boolean;
|
|
2101
|
+
phone_verified?: boolean;
|
|
2102
|
+
deleted?: boolean;
|
|
2103
|
+
placeholder?: boolean;
|
|
2104
|
+
};
|
|
2105
|
+
permissions?: ConsumerScopes;
|
|
2106
|
+
location_group?: string;
|
|
2107
|
+
ssoId?: string;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
export interface PatchConsumerUserResponse {
|
|
2111
|
+
id?: string;
|
|
2112
|
+
email?: string;
|
|
2113
|
+
name?: {
|
|
2114
|
+
first?: string;
|
|
2115
|
+
last?: string;
|
|
2116
|
+
};
|
|
2117
|
+
date?: {
|
|
2118
|
+
created?: string;
|
|
2119
|
+
modified?: string;
|
|
2120
|
+
};
|
|
2121
|
+
birthday?: string;
|
|
2122
|
+
password?: string;
|
|
2123
|
+
phone?: number;
|
|
2124
|
+
phone_country_code?: string;
|
|
2125
|
+
realm?: string;
|
|
2126
|
+
gender?: Record<string, any>;
|
|
2127
|
+
meta?: ConsumerUserMeta;
|
|
2128
|
+
is?: {
|
|
2129
|
+
disabled?: boolean;
|
|
2130
|
+
locked_out?: boolean;
|
|
2131
|
+
verified?: boolean;
|
|
2132
|
+
phone_verified?: boolean;
|
|
2133
|
+
deleted?: boolean;
|
|
2134
|
+
placeholder?: boolean;
|
|
2135
|
+
};
|
|
2136
|
+
permissions?: ConsumerScopes;
|
|
2137
|
+
location_group?: string;
|
|
2138
|
+
ssoId?: string;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2079
2141
|
export interface GetConsumerUserResponse {
|
|
2080
2142
|
// The ID of the user
|
|
2081
2143
|
id: string;
|
|
@@ -3212,6 +3274,16 @@ export type PutConsumerUserBody = PutConsumerUserRequest;
|
|
|
3212
3274
|
|
|
3213
3275
|
export type PutConsumerUserResponse$0 = PutConsumerUserResponse;
|
|
3214
3276
|
|
|
3277
|
+
// PATCH /consumer/user/{id} - Update user
|
|
3278
|
+
|
|
3279
|
+
export interface PatchConsumerUserPath {
|
|
3280
|
+
id: string;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
export type PatchConsumerUserBody = PatchConsumerUserRequest;
|
|
3284
|
+
|
|
3285
|
+
export type PatchConsumerUserResponse$0 = PatchConsumerUserResponse;
|
|
3286
|
+
|
|
3215
3287
|
// GET /consumer/user/{id} - Get user
|
|
3216
3288
|
|
|
3217
3289
|
export interface GetConsumerUserPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -2023,6 +2023,13 @@ export interface PartialModifierDTO {
|
|
|
2023
2023
|
[index: string]: any;
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
+
export interface MenuSizeDTO {
|
|
2027
|
+
format: string;
|
|
2028
|
+
raw: number;
|
|
2029
|
+
compressed: number;
|
|
2030
|
+
[index: string]: any;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2026
2033
|
export interface HealthDependencyDTO {
|
|
2027
2034
|
name: string;
|
|
2028
2035
|
status: string;
|
|
@@ -10661,6 +10668,30 @@ export interface GetMenuV4MenuRequest
|
|
|
10661
10668
|
RequestQuery<GetMenuV4MenuQuery>,
|
|
10662
10669
|
GetMenuV4MenuPath {}
|
|
10663
10670
|
|
|
10671
|
+
// GET /menu/v4/{id}/size
|
|
10672
|
+
|
|
10673
|
+
export interface GetMenuV4SizePath {
|
|
10674
|
+
id: string;
|
|
10675
|
+
}
|
|
10676
|
+
|
|
10677
|
+
export interface GetMenuV4SizeQuery {
|
|
10678
|
+
with_parent?: boolean;
|
|
10679
|
+
// Graphql query string
|
|
10680
|
+
_query?: string;
|
|
10681
|
+
}
|
|
10682
|
+
|
|
10683
|
+
export interface GetMenuV4SizeResponse {
|
|
10684
|
+
id: string;
|
|
10685
|
+
name: string;
|
|
10686
|
+
size: MenuSizeDTO;
|
|
10687
|
+
[index: string]: any;
|
|
10688
|
+
}
|
|
10689
|
+
|
|
10690
|
+
export interface GetMenuV4SizeRequest
|
|
10691
|
+
extends BaseRequest,
|
|
10692
|
+
RequestQuery<GetMenuV4SizeQuery>,
|
|
10693
|
+
GetMenuV4SizePath {}
|
|
10694
|
+
|
|
10664
10695
|
// GET /menu/v4/category/{id}
|
|
10665
10696
|
|
|
10666
10697
|
export interface GetMenuV4CategoryPath {
|