@compassdigital/sdk.typescript 4.139.0 → 4.142.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 +130 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +149 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/catalog.d.ts +202 -0
- package/lib/interface/catalog.d.ts.map +1 -0
- package/lib/interface/catalog.js +5 -0
- package/lib/interface/catalog.js.map +1 -0
- package/lib/messages/commands/FakeCommand.d.ts +14 -0
- package/lib/messages/commands/FakeCommand.d.ts.map +1 -0
- package/lib/messages/commands/FakeCommand.js +4 -0
- package/lib/messages/commands/FakeCommand.js.map +1 -0
- package/lib/messages/commands/index.d.ts +1 -0
- package/lib/messages/commands/index.d.ts.map +1 -1
- package/lib/messages/events/FakeEvent.d.ts +14 -0
- package/lib/messages/events/FakeEvent.d.ts.map +1 -0
- package/lib/messages/events/FakeEvent.js +4 -0
- package/lib/messages/events/FakeEvent.js.map +1 -0
- package/lib/messages/events/index.d.ts +1 -0
- package/lib/messages/events/index.d.ts.map +1 -1
- package/lib/messages/events/index.js +1 -0
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +365 -0
- package/src/interface/catalog.ts +325 -0
- package/src/messages/commands/FakeCommand.ts +15 -0
- package/src/messages/commands/index.ts +2 -0
- package/src/messages/events/FakeEvent.ts +15 -0
- package/src/messages/events/index.ts +2 -0
package/src/index.ts
CHANGED
|
@@ -1008,6 +1008,39 @@ import {
|
|
|
1008
1008
|
DeleteMenuV4CategoryDetachItemsResponse,
|
|
1009
1009
|
} from './interface/menu';
|
|
1010
1010
|
|
|
1011
|
+
import {
|
|
1012
|
+
GetCatalogStatusQuery,
|
|
1013
|
+
GetCatalogStatusResponse,
|
|
1014
|
+
GetCatalogConnectionsStatusQuery,
|
|
1015
|
+
GetCatalogConnectionsStatusResponse,
|
|
1016
|
+
PostCatalogBody,
|
|
1017
|
+
PostCatalogResponse,
|
|
1018
|
+
PatchCatalogBody,
|
|
1019
|
+
PatchCatalogResponse,
|
|
1020
|
+
GetCatalogQuery,
|
|
1021
|
+
GetCatalogResponse,
|
|
1022
|
+
DeleteCatalogResponse,
|
|
1023
|
+
PostCatalogItemBody,
|
|
1024
|
+
PostCatalogItemResponse,
|
|
1025
|
+
PostCatalogItemsBulkBody,
|
|
1026
|
+
PostCatalogItemsBulkResponse,
|
|
1027
|
+
PatchCatalogItemBody,
|
|
1028
|
+
PatchCatalogItemResponse,
|
|
1029
|
+
DeleteCatalogItemResponse,
|
|
1030
|
+
PostListCatalogItemsBody,
|
|
1031
|
+
PostListCatalogItemsResponse,
|
|
1032
|
+
GetListCatalogItemsQuery,
|
|
1033
|
+
GetListCatalogItemsResponse,
|
|
1034
|
+
PostCloneCatalogResponse,
|
|
1035
|
+
PostCatalogBaseItemBody,
|
|
1036
|
+
PostCatalogBaseItemResponse,
|
|
1037
|
+
GetCatalogBaseItemsQuery,
|
|
1038
|
+
GetCatalogBaseItemsBody,
|
|
1039
|
+
GetCatalogBaseItemsResponse,
|
|
1040
|
+
GetCatalogBaseItemQuery,
|
|
1041
|
+
GetCatalogBaseItemResponse,
|
|
1042
|
+
} from './interface/catalog';
|
|
1043
|
+
|
|
1011
1044
|
import {
|
|
1012
1045
|
GetNotificationsQuery,
|
|
1013
1046
|
GetNotificationsResponse,
|
|
@@ -10928,6 +10961,338 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10928
10961
|
);
|
|
10929
10962
|
}
|
|
10930
10963
|
|
|
10964
|
+
/**
|
|
10965
|
+
* GET /catalog/status - Get the status of the Catalog service
|
|
10966
|
+
*
|
|
10967
|
+
* @param options - additional request options
|
|
10968
|
+
*/
|
|
10969
|
+
get_catalog_status(
|
|
10970
|
+
options?: {
|
|
10971
|
+
query?: GetCatalogStatusQuery;
|
|
10972
|
+
} & RequestOptions,
|
|
10973
|
+
): ResponsePromise<GetCatalogStatusResponse> {
|
|
10974
|
+
return this.request('catalog', '/catalog/status', 'GET', `/catalog/status`, null, options);
|
|
10975
|
+
}
|
|
10976
|
+
|
|
10977
|
+
/**
|
|
10978
|
+
* GET /catalog/status/connections - Get the status of Catalog database connections
|
|
10979
|
+
*
|
|
10980
|
+
* @param options - additional request options
|
|
10981
|
+
*/
|
|
10982
|
+
get_catalog_connections_status(
|
|
10983
|
+
options?: {
|
|
10984
|
+
query?: GetCatalogConnectionsStatusQuery;
|
|
10985
|
+
} & RequestOptions,
|
|
10986
|
+
): ResponsePromise<GetCatalogConnectionsStatusResponse> {
|
|
10987
|
+
return this.request(
|
|
10988
|
+
'catalog',
|
|
10989
|
+
'/catalog/status/connections',
|
|
10990
|
+
'GET',
|
|
10991
|
+
`/catalog/status/connections`,
|
|
10992
|
+
null,
|
|
10993
|
+
options,
|
|
10994
|
+
);
|
|
10995
|
+
}
|
|
10996
|
+
|
|
10997
|
+
/**
|
|
10998
|
+
* POST /catalog/v1/catalog - Create a new catalog
|
|
10999
|
+
*
|
|
11000
|
+
* @param body
|
|
11001
|
+
* @param options - additional request options
|
|
11002
|
+
*/
|
|
11003
|
+
post_catalog(
|
|
11004
|
+
body: PostCatalogBody,
|
|
11005
|
+
options?: RequestOptions,
|
|
11006
|
+
): ResponsePromise<PostCatalogResponse> {
|
|
11007
|
+
return this.request(
|
|
11008
|
+
'catalog',
|
|
11009
|
+
'/catalog/v1/catalog',
|
|
11010
|
+
'POST',
|
|
11011
|
+
`/catalog/v1/catalog`,
|
|
11012
|
+
body,
|
|
11013
|
+
options,
|
|
11014
|
+
);
|
|
11015
|
+
}
|
|
11016
|
+
|
|
11017
|
+
/**
|
|
11018
|
+
* PATCH /catalog/v1/catalog/{id} - Update a catalog
|
|
11019
|
+
*
|
|
11020
|
+
* @param id
|
|
11021
|
+
* @param body
|
|
11022
|
+
* @param options - additional request options
|
|
11023
|
+
*/
|
|
11024
|
+
patch_catalog(
|
|
11025
|
+
id: number,
|
|
11026
|
+
body: PatchCatalogBody,
|
|
11027
|
+
options?: RequestOptions,
|
|
11028
|
+
): ResponsePromise<PatchCatalogResponse> {
|
|
11029
|
+
return this.request(
|
|
11030
|
+
'catalog',
|
|
11031
|
+
'/catalog/v1/catalog/{id}',
|
|
11032
|
+
'PATCH',
|
|
11033
|
+
`/catalog/v1/catalog/${id}`,
|
|
11034
|
+
body,
|
|
11035
|
+
options,
|
|
11036
|
+
);
|
|
11037
|
+
}
|
|
11038
|
+
|
|
11039
|
+
/**
|
|
11040
|
+
* GET /catalog/v1/catalog/{id} - Get a catalog
|
|
11041
|
+
*
|
|
11042
|
+
* @param id
|
|
11043
|
+
* @param options - additional request options
|
|
11044
|
+
*/
|
|
11045
|
+
get_catalog(
|
|
11046
|
+
id: number,
|
|
11047
|
+
options?: {
|
|
11048
|
+
query?: GetCatalogQuery;
|
|
11049
|
+
} & RequestOptions,
|
|
11050
|
+
): ResponsePromise<GetCatalogResponse> {
|
|
11051
|
+
return this.request(
|
|
11052
|
+
'catalog',
|
|
11053
|
+
'/catalog/v1/catalog/{id}',
|
|
11054
|
+
'GET',
|
|
11055
|
+
`/catalog/v1/catalog/${id}`,
|
|
11056
|
+
null,
|
|
11057
|
+
options,
|
|
11058
|
+
);
|
|
11059
|
+
}
|
|
11060
|
+
|
|
11061
|
+
/**
|
|
11062
|
+
* DELETE /catalog/v1/catalog/{id} - Delete a catalog
|
|
11063
|
+
*
|
|
11064
|
+
* @param id
|
|
11065
|
+
* @param options - additional request options
|
|
11066
|
+
*/
|
|
11067
|
+
delete_catalog(id: number, options?: RequestOptions): ResponsePromise<DeleteCatalogResponse> {
|
|
11068
|
+
return this.request(
|
|
11069
|
+
'catalog',
|
|
11070
|
+
'/catalog/v1/catalog/{id}',
|
|
11071
|
+
'DELETE',
|
|
11072
|
+
`/catalog/v1/catalog/${id}`,
|
|
11073
|
+
null,
|
|
11074
|
+
options,
|
|
11075
|
+
);
|
|
11076
|
+
}
|
|
11077
|
+
|
|
11078
|
+
/**
|
|
11079
|
+
* POST /catalog/v1/catalog/{id}/item - Create a new catalog item
|
|
11080
|
+
*
|
|
11081
|
+
* @param id
|
|
11082
|
+
* @param body
|
|
11083
|
+
* @param options - additional request options
|
|
11084
|
+
*/
|
|
11085
|
+
post_catalog_item(
|
|
11086
|
+
id: number,
|
|
11087
|
+
body: PostCatalogItemBody,
|
|
11088
|
+
options?: RequestOptions,
|
|
11089
|
+
): ResponsePromise<PostCatalogItemResponse> {
|
|
11090
|
+
return this.request(
|
|
11091
|
+
'catalog',
|
|
11092
|
+
'/catalog/v1/catalog/{id}/item',
|
|
11093
|
+
'POST',
|
|
11094
|
+
`/catalog/v1/catalog/${id}/item`,
|
|
11095
|
+
body,
|
|
11096
|
+
options,
|
|
11097
|
+
);
|
|
11098
|
+
}
|
|
11099
|
+
|
|
11100
|
+
/**
|
|
11101
|
+
* POST /catalog/v1/catalog/{id}/items/bulk - Bulk create catalog items
|
|
11102
|
+
*
|
|
11103
|
+
* @param id
|
|
11104
|
+
* @param body
|
|
11105
|
+
* @param options - additional request options
|
|
11106
|
+
*/
|
|
11107
|
+
post_catalog_items_bulk(
|
|
11108
|
+
id: number,
|
|
11109
|
+
body: PostCatalogItemsBulkBody,
|
|
11110
|
+
options?: RequestOptions,
|
|
11111
|
+
): ResponsePromise<PostCatalogItemsBulkResponse> {
|
|
11112
|
+
return this.request(
|
|
11113
|
+
'catalog',
|
|
11114
|
+
'/catalog/v1/catalog/{id}/items/bulk',
|
|
11115
|
+
'POST',
|
|
11116
|
+
`/catalog/v1/catalog/${id}/items/bulk`,
|
|
11117
|
+
body,
|
|
11118
|
+
options,
|
|
11119
|
+
);
|
|
11120
|
+
}
|
|
11121
|
+
|
|
11122
|
+
/**
|
|
11123
|
+
* PATCH /catalog/v1/catalog/{catalog_id}/item/{id} - Update a catalog item
|
|
11124
|
+
*
|
|
11125
|
+
* @param catalog_id
|
|
11126
|
+
* @param id
|
|
11127
|
+
* @param body
|
|
11128
|
+
* @param options - additional request options
|
|
11129
|
+
*/
|
|
11130
|
+
patch_catalog_item(
|
|
11131
|
+
catalog_id: number,
|
|
11132
|
+
id: number,
|
|
11133
|
+
body: PatchCatalogItemBody,
|
|
11134
|
+
options?: RequestOptions,
|
|
11135
|
+
): ResponsePromise<PatchCatalogItemResponse> {
|
|
11136
|
+
return this.request(
|
|
11137
|
+
'catalog',
|
|
11138
|
+
'/catalog/v1/catalog/{catalog_id}/item/{id}',
|
|
11139
|
+
'PATCH',
|
|
11140
|
+
`/catalog/v1/catalog/${catalog_id}/item/${id}`,
|
|
11141
|
+
body,
|
|
11142
|
+
options,
|
|
11143
|
+
);
|
|
11144
|
+
}
|
|
11145
|
+
|
|
11146
|
+
/**
|
|
11147
|
+
* DELETE /catalog/v1/catalog/{catalog_id}/item/{id} - Delete a catalog item
|
|
11148
|
+
*
|
|
11149
|
+
* @param catalog_id
|
|
11150
|
+
* @param id
|
|
11151
|
+
* @param options - additional request options
|
|
11152
|
+
*/
|
|
11153
|
+
delete_catalog_item(
|
|
11154
|
+
catalog_id: number,
|
|
11155
|
+
id: number,
|
|
11156
|
+
options?: RequestOptions,
|
|
11157
|
+
): ResponsePromise<DeleteCatalogItemResponse> {
|
|
11158
|
+
return this.request(
|
|
11159
|
+
'catalog',
|
|
11160
|
+
'/catalog/v1/catalog/{catalog_id}/item/{id}',
|
|
11161
|
+
'DELETE',
|
|
11162
|
+
`/catalog/v1/catalog/${catalog_id}/item/${id}`,
|
|
11163
|
+
null,
|
|
11164
|
+
options,
|
|
11165
|
+
);
|
|
11166
|
+
}
|
|
11167
|
+
|
|
11168
|
+
/**
|
|
11169
|
+
* POST /catalog/v1/catalog/{id}/items - List catalog items
|
|
11170
|
+
*
|
|
11171
|
+
* @param id
|
|
11172
|
+
* @param body
|
|
11173
|
+
* @param options - additional request options
|
|
11174
|
+
*/
|
|
11175
|
+
post_list_catalog_items(
|
|
11176
|
+
id: number,
|
|
11177
|
+
body: PostListCatalogItemsBody,
|
|
11178
|
+
options?: RequestOptions,
|
|
11179
|
+
): ResponsePromise<PostListCatalogItemsResponse> {
|
|
11180
|
+
return this.request(
|
|
11181
|
+
'catalog',
|
|
11182
|
+
'/catalog/v1/catalog/{id}/items',
|
|
11183
|
+
'POST',
|
|
11184
|
+
`/catalog/v1/catalog/${id}/items`,
|
|
11185
|
+
body,
|
|
11186
|
+
options,
|
|
11187
|
+
);
|
|
11188
|
+
}
|
|
11189
|
+
|
|
11190
|
+
/**
|
|
11191
|
+
* GET /catalog/v1/catalog/{id}/items - List catalog items
|
|
11192
|
+
*
|
|
11193
|
+
* @param id
|
|
11194
|
+
* @param options - additional request options
|
|
11195
|
+
*/
|
|
11196
|
+
get_list_catalog_items(
|
|
11197
|
+
id: number,
|
|
11198
|
+
options: {
|
|
11199
|
+
query: GetListCatalogItemsQuery;
|
|
11200
|
+
} & RequestOptions,
|
|
11201
|
+
): ResponsePromise<GetListCatalogItemsResponse> {
|
|
11202
|
+
return this.request(
|
|
11203
|
+
'catalog',
|
|
11204
|
+
'/catalog/v1/catalog/{id}/items',
|
|
11205
|
+
'GET',
|
|
11206
|
+
`/catalog/v1/catalog/${id}/items`,
|
|
11207
|
+
null,
|
|
11208
|
+
options,
|
|
11209
|
+
);
|
|
11210
|
+
}
|
|
11211
|
+
|
|
11212
|
+
/**
|
|
11213
|
+
* POST /catalog/v1/catalog/{id}/clone - Clone a catalog
|
|
11214
|
+
*
|
|
11215
|
+
* @param id
|
|
11216
|
+
* @param options - additional request options
|
|
11217
|
+
*/
|
|
11218
|
+
post_clone_catalog(
|
|
11219
|
+
id: number,
|
|
11220
|
+
options?: RequestOptions,
|
|
11221
|
+
): ResponsePromise<PostCloneCatalogResponse> {
|
|
11222
|
+
return this.request(
|
|
11223
|
+
'catalog',
|
|
11224
|
+
'/catalog/v1/catalog/{id}/clone',
|
|
11225
|
+
'POST',
|
|
11226
|
+
`/catalog/v1/catalog/${id}/clone`,
|
|
11227
|
+
null,
|
|
11228
|
+
options,
|
|
11229
|
+
);
|
|
11230
|
+
}
|
|
11231
|
+
|
|
11232
|
+
/**
|
|
11233
|
+
* POST /catalog/v1/base-item - Create a new base item
|
|
11234
|
+
*
|
|
11235
|
+
* @param body
|
|
11236
|
+
* @param options - additional request options
|
|
11237
|
+
*/
|
|
11238
|
+
post_catalog_base_item(
|
|
11239
|
+
body: PostCatalogBaseItemBody,
|
|
11240
|
+
options?: RequestOptions,
|
|
11241
|
+
): ResponsePromise<PostCatalogBaseItemResponse> {
|
|
11242
|
+
return this.request(
|
|
11243
|
+
'catalog',
|
|
11244
|
+
'/catalog/v1/base-item',
|
|
11245
|
+
'POST',
|
|
11246
|
+
`/catalog/v1/base-item`,
|
|
11247
|
+
body,
|
|
11248
|
+
options,
|
|
11249
|
+
);
|
|
11250
|
+
}
|
|
11251
|
+
|
|
11252
|
+
/**
|
|
11253
|
+
* GET /catalog/v1/base-item - List base items
|
|
11254
|
+
*
|
|
11255
|
+
* @param body
|
|
11256
|
+
* @param options - additional request options
|
|
11257
|
+
*/
|
|
11258
|
+
get_catalog_base_items(
|
|
11259
|
+
body: GetCatalogBaseItemsBody,
|
|
11260
|
+
options?: {
|
|
11261
|
+
query?: GetCatalogBaseItemsQuery;
|
|
11262
|
+
} & RequestOptions,
|
|
11263
|
+
): ResponsePromise<GetCatalogBaseItemsResponse> {
|
|
11264
|
+
return this.request(
|
|
11265
|
+
'catalog',
|
|
11266
|
+
'/catalog/v1/base-item',
|
|
11267
|
+
'GET',
|
|
11268
|
+
`/catalog/v1/base-item`,
|
|
11269
|
+
body,
|
|
11270
|
+
options,
|
|
11271
|
+
);
|
|
11272
|
+
}
|
|
11273
|
+
|
|
11274
|
+
/**
|
|
11275
|
+
* GET /catalog/v1/base-item/{id} - Get a base item by id
|
|
11276
|
+
*
|
|
11277
|
+
* @param id
|
|
11278
|
+
* @param options - additional request options
|
|
11279
|
+
*/
|
|
11280
|
+
get_catalog_base_item(
|
|
11281
|
+
id: string,
|
|
11282
|
+
options?: {
|
|
11283
|
+
query?: GetCatalogBaseItemQuery;
|
|
11284
|
+
} & RequestOptions,
|
|
11285
|
+
): ResponsePromise<GetCatalogBaseItemResponse> {
|
|
11286
|
+
return this.request(
|
|
11287
|
+
'catalog',
|
|
11288
|
+
'/catalog/v1/base-item/{id}',
|
|
11289
|
+
'GET',
|
|
11290
|
+
`/catalog/v1/base-item/${id}`,
|
|
11291
|
+
null,
|
|
11292
|
+
options,
|
|
11293
|
+
);
|
|
11294
|
+
}
|
|
11295
|
+
|
|
10931
11296
|
/**
|
|
10932
11297
|
* GET /notification - Get all notifications
|
|
10933
11298
|
*
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
+
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
|
+
|
|
6
|
+
export interface CatalogResponseDTO {
|
|
7
|
+
id: number;
|
|
8
|
+
parent_id: number | null;
|
|
9
|
+
name: string;
|
|
10
|
+
display: Record<string, any>;
|
|
11
|
+
meta: Record<string, any> | null;
|
|
12
|
+
items: Record<string, any> | null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type CatalogItemResponseDTO = Record<string, any>;
|
|
16
|
+
|
|
17
|
+
export interface PaginationQueryDTO {
|
|
18
|
+
// Page number
|
|
19
|
+
page?: number;
|
|
20
|
+
// Number of items per page
|
|
21
|
+
limit?: number;
|
|
22
|
+
// Field to sort by
|
|
23
|
+
sort_by?: string;
|
|
24
|
+
// Sort order
|
|
25
|
+
order?: 'ASC' | 'DESC';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type FilterQueryDTO = Record<string, any>;
|
|
29
|
+
|
|
30
|
+
export interface ListParamsDTO {
|
|
31
|
+
pagination?: PaginationQueryDTO;
|
|
32
|
+
filter?: FilterQueryDTO;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type CatalogItemsListResponseDTO = Record<string, any>;
|
|
36
|
+
|
|
37
|
+
export interface SearchConditionDTO {
|
|
38
|
+
// Contains search term
|
|
39
|
+
contains?: string;
|
|
40
|
+
// Exact match
|
|
41
|
+
equals?: Record<string, any>;
|
|
42
|
+
// Value greater than this
|
|
43
|
+
moreThan?: Record<string, any>;
|
|
44
|
+
// Value less than this
|
|
45
|
+
lessThan?: Record<string, any>;
|
|
46
|
+
// Negate condition (e.g., not equal). Accepts: `true` (boolean), `{ equals: 5 }` (object), `"sample string"` (string), or `123` (number).
|
|
47
|
+
not?: Record<string, any>;
|
|
48
|
+
// In the list of values
|
|
49
|
+
in?: string[];
|
|
50
|
+
// Array contains these values
|
|
51
|
+
arrayContains?: string[];
|
|
52
|
+
// Value greater than or equal to this
|
|
53
|
+
moreThanOrEqual?: Record<string, any>;
|
|
54
|
+
// Value less than or equal to this
|
|
55
|
+
lessThanOrEqual?: Record<string, any>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type BaseItemDTO = Record<string, any>;
|
|
59
|
+
|
|
60
|
+
// GET /catalog/status - Get the status of the Catalog service
|
|
61
|
+
|
|
62
|
+
export interface GetCatalogStatusQuery {
|
|
63
|
+
// Graphql query string
|
|
64
|
+
_query?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type GetCatalogStatusResponse = {};
|
|
68
|
+
|
|
69
|
+
export interface GetCatalogStatusRequest extends BaseRequest, RequestQuery<GetCatalogStatusQuery> {}
|
|
70
|
+
|
|
71
|
+
// GET /catalog/status/connections - Get the status of Catalog database connections
|
|
72
|
+
|
|
73
|
+
export interface GetCatalogConnectionsStatusQuery {
|
|
74
|
+
// Graphql query string
|
|
75
|
+
_query?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type GetCatalogConnectionsStatusResponse = {};
|
|
79
|
+
|
|
80
|
+
export interface GetCatalogConnectionsStatusRequest
|
|
81
|
+
extends BaseRequest,
|
|
82
|
+
RequestQuery<GetCatalogConnectionsStatusQuery> {}
|
|
83
|
+
|
|
84
|
+
// POST /catalog/v1/catalog - Create a new catalog
|
|
85
|
+
|
|
86
|
+
export interface PostCatalogBody {
|
|
87
|
+
name?: string;
|
|
88
|
+
display?: Record<string, any>;
|
|
89
|
+
parent_id?: number | null;
|
|
90
|
+
meta?: Record<string, any>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type PostCatalogResponse = CatalogResponseDTO;
|
|
94
|
+
|
|
95
|
+
export interface PostCatalogRequest extends BaseRequest {
|
|
96
|
+
body: PostCatalogBody;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// PATCH /catalog/v1/catalog/{id} - Update a catalog
|
|
100
|
+
|
|
101
|
+
export interface PatchCatalogPath {
|
|
102
|
+
id: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface PatchCatalogBody {
|
|
106
|
+
name?: string | null;
|
|
107
|
+
display?: Record<string, any> | null;
|
|
108
|
+
parent_id?: number | null;
|
|
109
|
+
meta?: Record<string, any> | null;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type PatchCatalogResponse = CatalogResponseDTO;
|
|
113
|
+
|
|
114
|
+
export interface PatchCatalogRequest extends BaseRequest, PatchCatalogPath {
|
|
115
|
+
body: PatchCatalogBody;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// GET /catalog/v1/catalog/{id} - Get a catalog
|
|
119
|
+
|
|
120
|
+
export interface GetCatalogPath {
|
|
121
|
+
id: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface GetCatalogQuery {
|
|
125
|
+
// Graphql query string
|
|
126
|
+
_query?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type GetCatalogResponse = CatalogResponseDTO;
|
|
130
|
+
|
|
131
|
+
export interface GetCatalogRequest
|
|
132
|
+
extends BaseRequest,
|
|
133
|
+
RequestQuery<GetCatalogQuery>,
|
|
134
|
+
GetCatalogPath {}
|
|
135
|
+
|
|
136
|
+
// DELETE /catalog/v1/catalog/{id} - Delete a catalog
|
|
137
|
+
|
|
138
|
+
export interface DeleteCatalogPath {
|
|
139
|
+
id: number;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type DeleteCatalogResponse = CatalogResponseDTO;
|
|
143
|
+
|
|
144
|
+
export interface DeleteCatalogRequest extends BaseRequest, DeleteCatalogPath {}
|
|
145
|
+
|
|
146
|
+
// POST /catalog/v1/catalog/{id}/item - Create a new catalog item
|
|
147
|
+
|
|
148
|
+
export interface PostCatalogItemPath {
|
|
149
|
+
id: number;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface PostCatalogItemBody {
|
|
153
|
+
base_item_id?: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
catalog_item_id?: number | null;
|
|
156
|
+
label?: string | null;
|
|
157
|
+
description?: string | null;
|
|
158
|
+
price?: number | null;
|
|
159
|
+
overrides?: Record<string, any> | null;
|
|
160
|
+
options?: Record<string, any> | null;
|
|
161
|
+
meta?: Record<string, any> | null;
|
|
162
|
+
is_visible?: boolean | null;
|
|
163
|
+
is_out_of_stock?: boolean | null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type PostCatalogItemResponse = CatalogItemResponseDTO;
|
|
167
|
+
|
|
168
|
+
export interface PostCatalogItemRequest extends BaseRequest, PostCatalogItemPath {
|
|
169
|
+
body: PostCatalogItemBody;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// POST /catalog/v1/catalog/{id}/items/bulk - Bulk create catalog items
|
|
173
|
+
|
|
174
|
+
export interface PostCatalogItemsBulkPath {
|
|
175
|
+
id: number;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type PostCatalogItemsBulkBody = string[];
|
|
179
|
+
|
|
180
|
+
export type PostCatalogItemsBulkResponse = CatalogItemResponseDTO[];
|
|
181
|
+
|
|
182
|
+
export interface PostCatalogItemsBulkRequest extends BaseRequest, PostCatalogItemsBulkPath {
|
|
183
|
+
body: PostCatalogItemsBulkBody;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// PATCH /catalog/v1/catalog/{catalog_id}/item/{id} - Update a catalog item
|
|
187
|
+
|
|
188
|
+
export interface PatchCatalogItemPath {
|
|
189
|
+
catalog_id: number;
|
|
190
|
+
id: number;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface PatchCatalogItemBody {
|
|
194
|
+
base_item_id?: string;
|
|
195
|
+
name?: string | null;
|
|
196
|
+
label?: string | null;
|
|
197
|
+
description?: string | null;
|
|
198
|
+
price?: number | null;
|
|
199
|
+
overrides?: Record<string, any> | null;
|
|
200
|
+
options?: Record<string, any> | null;
|
|
201
|
+
meta?: Record<string, any> | null;
|
|
202
|
+
is_visible?: boolean | null;
|
|
203
|
+
is_out_of_stock?: boolean | null;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type PatchCatalogItemResponse = CatalogItemResponseDTO;
|
|
207
|
+
|
|
208
|
+
export interface PatchCatalogItemRequest extends BaseRequest, PatchCatalogItemPath {
|
|
209
|
+
body: PatchCatalogItemBody;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// DELETE /catalog/v1/catalog/{catalog_id}/item/{id} - Delete a catalog item
|
|
213
|
+
|
|
214
|
+
export interface DeleteCatalogItemPath {
|
|
215
|
+
catalog_id: number;
|
|
216
|
+
id: number;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type DeleteCatalogItemResponse = CatalogItemResponseDTO;
|
|
220
|
+
|
|
221
|
+
export interface DeleteCatalogItemRequest extends BaseRequest, DeleteCatalogItemPath {}
|
|
222
|
+
|
|
223
|
+
// POST /catalog/v1/catalog/{id}/items - List catalog items
|
|
224
|
+
|
|
225
|
+
export interface PostListCatalogItemsPath {
|
|
226
|
+
id: number;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type PostListCatalogItemsBody = ListParamsDTO;
|
|
230
|
+
|
|
231
|
+
export type PostListCatalogItemsResponse = CatalogItemsListResponseDTO;
|
|
232
|
+
|
|
233
|
+
export interface PostListCatalogItemsRequest extends BaseRequest, PostListCatalogItemsPath {
|
|
234
|
+
body: PostListCatalogItemsBody;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// GET /catalog/v1/catalog/{id}/items - List catalog items
|
|
238
|
+
|
|
239
|
+
export interface GetListCatalogItemsPath {
|
|
240
|
+
id: number;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface GetListCatalogItemsQuery {
|
|
244
|
+
page: number;
|
|
245
|
+
limit: number;
|
|
246
|
+
sort_by: string;
|
|
247
|
+
order: string;
|
|
248
|
+
filter: FilterQueryDTO;
|
|
249
|
+
// Graphql query string
|
|
250
|
+
_query?: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type GetListCatalogItemsResponse = CatalogItemsListResponseDTO;
|
|
254
|
+
|
|
255
|
+
export interface GetListCatalogItemsRequest
|
|
256
|
+
extends BaseRequest,
|
|
257
|
+
RequestQuery<GetListCatalogItemsQuery>,
|
|
258
|
+
GetListCatalogItemsPath {}
|
|
259
|
+
|
|
260
|
+
// POST /catalog/v1/catalog/{id}/clone - Clone a catalog
|
|
261
|
+
|
|
262
|
+
export interface PostCloneCatalogPath {
|
|
263
|
+
id: number;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type PostCloneCatalogResponse = CatalogResponseDTO;
|
|
267
|
+
|
|
268
|
+
export interface PostCloneCatalogRequest extends BaseRequest, PostCloneCatalogPath {}
|
|
269
|
+
|
|
270
|
+
// POST /catalog/v1/base-item - Create a new base item
|
|
271
|
+
|
|
272
|
+
export interface PostCatalogBaseItemBody {
|
|
273
|
+
name?: string;
|
|
274
|
+
description?: string | null;
|
|
275
|
+
price?: number | null;
|
|
276
|
+
barcode?: string | null;
|
|
277
|
+
reporting?: Record<string, any> | null;
|
|
278
|
+
tax?: Record<string, any> | null;
|
|
279
|
+
meta?: Record<string, any> | null;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type PostCatalogBaseItemResponse = BaseItemDTO;
|
|
283
|
+
|
|
284
|
+
export interface PostCatalogBaseItemRequest extends BaseRequest {
|
|
285
|
+
body: PostCatalogBaseItemBody;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// GET /catalog/v1/base-item - List base items
|
|
289
|
+
|
|
290
|
+
export interface GetCatalogBaseItemsQuery {
|
|
291
|
+
// Graphql query string
|
|
292
|
+
_query?: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface GetCatalogBaseItemsBody {
|
|
296
|
+
search?: string | null;
|
|
297
|
+
limit?: number;
|
|
298
|
+
offset?: number;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export type GetCatalogBaseItemsResponse = BaseItemDTO[];
|
|
302
|
+
|
|
303
|
+
export interface GetCatalogBaseItemsRequest
|
|
304
|
+
extends BaseRequest,
|
|
305
|
+
RequestQuery<GetCatalogBaseItemsQuery> {
|
|
306
|
+
body: GetCatalogBaseItemsBody;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// GET /catalog/v1/base-item/{id} - Get a base item by id
|
|
310
|
+
|
|
311
|
+
export interface GetCatalogBaseItemPath {
|
|
312
|
+
id: string;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export interface GetCatalogBaseItemQuery {
|
|
316
|
+
// Graphql query string
|
|
317
|
+
_query?: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export type GetCatalogBaseItemResponse = BaseItemDTO;
|
|
321
|
+
|
|
322
|
+
export interface GetCatalogBaseItemRequest
|
|
323
|
+
extends BaseRequest,
|
|
324
|
+
RequestQuery<GetCatalogBaseItemQuery>,
|
|
325
|
+
GetCatalogBaseItemPath {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
|
+
|
|
3
|
+
export interface FakeCommand {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'FakeCommand';
|
|
6
|
+
version: '0.0.1';
|
|
7
|
+
timestamp: string;
|
|
8
|
+
traceContext: {
|
|
9
|
+
traceId?: string;
|
|
10
|
+
};
|
|
11
|
+
payload: {
|
|
12
|
+
foo: string;
|
|
13
|
+
};
|
|
14
|
+
source: string;
|
|
15
|
+
}
|