@compassdigital/sdk.typescript 4.170.0 → 4.172.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 +10 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +15 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +5 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/location.ts +33 -0
- package/src/interface/menu.ts +5 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -108,6 +108,8 @@ import {
|
|
|
108
108
|
DeleteLocationGroupResponse,
|
|
109
109
|
PatchLocationGroupBody,
|
|
110
110
|
PatchLocationGroupResponse,
|
|
111
|
+
GetLocationGroupAppThemeQuery,
|
|
112
|
+
GetLocationGroupAppThemeResponse,
|
|
111
113
|
PostLocationGroupBatchGetBody,
|
|
112
114
|
PostLocationGroupBatchGetResponse,
|
|
113
115
|
GetLocationGroupWaittimesQuery,
|
|
@@ -2253,6 +2255,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2253
2255
|
);
|
|
2254
2256
|
}
|
|
2255
2257
|
|
|
2258
|
+
/**
|
|
2259
|
+
* GET /location/group/{id}/app-theme - Get the app theme for a location group
|
|
2260
|
+
*
|
|
2261
|
+
* @param id - group id
|
|
2262
|
+
* @param options - additional request options
|
|
2263
|
+
*/
|
|
2264
|
+
get_location_group_app_theme(
|
|
2265
|
+
id: string,
|
|
2266
|
+
options?: {
|
|
2267
|
+
query?: GetLocationGroupAppThemeQuery;
|
|
2268
|
+
} & RequestOptions,
|
|
2269
|
+
): ResponsePromise<GetLocationGroupAppThemeResponse> {
|
|
2270
|
+
return this.request(
|
|
2271
|
+
'location',
|
|
2272
|
+
'/location/group/{id}/app-theme',
|
|
2273
|
+
'GET',
|
|
2274
|
+
`/location/group/${id}/app-theme`,
|
|
2275
|
+
null,
|
|
2276
|
+
options,
|
|
2277
|
+
);
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2256
2280
|
/**
|
|
2257
2281
|
* POST /location/group/batch-get - Get multiple location groups by their IDs
|
|
2258
2282
|
*
|
|
@@ -330,6 +330,20 @@ export interface MultiGroup {
|
|
|
330
330
|
[index: string]: any;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
+
export interface AppTheme {
|
|
334
|
+
id: string;
|
|
335
|
+
seedColor: string;
|
|
336
|
+
dynamicSchemeVariant?:
|
|
337
|
+
| 'tonalSpot'
|
|
338
|
+
| 'fidelity'
|
|
339
|
+
| 'monochrome'
|
|
340
|
+
| 'neutral'
|
|
341
|
+
| 'vibrant'
|
|
342
|
+
| 'expressive'
|
|
343
|
+
| 'content';
|
|
344
|
+
logo?: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
333
347
|
export interface success {
|
|
334
348
|
success?: boolean;
|
|
335
349
|
}
|
|
@@ -851,6 +865,25 @@ export interface PatchLocationGroupRequest extends BaseRequest, PatchLocationGro
|
|
|
851
865
|
body: PatchLocationGroupBody;
|
|
852
866
|
}
|
|
853
867
|
|
|
868
|
+
// GET /location/group/{id}/app-theme - Get the app theme for a location group
|
|
869
|
+
|
|
870
|
+
export interface GetLocationGroupAppThemePath {
|
|
871
|
+
// group id
|
|
872
|
+
id: string;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
export interface GetLocationGroupAppThemeQuery {
|
|
876
|
+
// Graphql query string
|
|
877
|
+
_query?: string;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export type GetLocationGroupAppThemeResponse = AppTheme;
|
|
881
|
+
|
|
882
|
+
export interface GetLocationGroupAppThemeRequest
|
|
883
|
+
extends BaseRequest,
|
|
884
|
+
RequestQuery<GetLocationGroupAppThemeQuery>,
|
|
885
|
+
GetLocationGroupAppThemePath {}
|
|
886
|
+
|
|
854
887
|
// POST /location/group/batch-get - Get multiple location groups by their IDs
|
|
855
888
|
|
|
856
889
|
export interface PostLocationGroupBatchGetBody {
|
package/src/interface/menu.ts
CHANGED
|
@@ -8122,6 +8122,10 @@ export interface PatchMenuV4BrandCategoryBody {
|
|
|
8122
8122
|
export interface PatchMenuV4BrandCategoryResponse {
|
|
8123
8123
|
parent?: DraftCategoryDTO;
|
|
8124
8124
|
children?: DraftCategoryDTO[];
|
|
8125
|
+
id: string;
|
|
8126
|
+
created_at?: string;
|
|
8127
|
+
updated_at?: string;
|
|
8128
|
+
deleted_at?: string;
|
|
8125
8129
|
parent_id?: string;
|
|
8126
8130
|
name: string;
|
|
8127
8131
|
label?: string;
|
|
@@ -8131,6 +8135,7 @@ export interface PatchMenuV4BrandCategoryResponse {
|
|
|
8131
8135
|
menu_id: string;
|
|
8132
8136
|
translation?: NameTranslation;
|
|
8133
8137
|
applied_diff_snapshot?: Record<string, any>;
|
|
8138
|
+
version?: number;
|
|
8134
8139
|
menu?: DraftMenuDTO;
|
|
8135
8140
|
items?: DraftCategoryToItemRelationshipDTO[];
|
|
8136
8141
|
brand?: DraftBrandDTO;
|