@munchi_oy/core 1.8.2 → 1.8.4

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.
@@ -13,6 +13,16 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ export declare const ABLYEVENT: {
22
+ readonly Sync: "sync";
23
+ readonly KdsItemStatusSync: "kds_item_status_sync";
24
+ };
25
+ export type ABLYEVENT = typeof ABLYEVENT[keyof typeof ABLYEVENT];
16
26
  /**
17
27
  *
18
28
  * @export
@@ -5162,6 +5172,161 @@ export interface ItemPriceDto {
5162
5172
  */
5163
5173
  'priceBreakdown': ItemPriceBreakdownDto;
5164
5174
  }
5175
+ /**
5176
+ *
5177
+ * @export
5178
+ * @enum {string}
5179
+ */
5180
+ export declare const KDSEVENTNAME: {
5181
+ readonly OrderCreated: "order.created";
5182
+ readonly OrderReady: "order.ready";
5183
+ readonly OrderReverted: "order.reverted";
5184
+ readonly OrderDeleted: "order.deleted";
5185
+ readonly PrintingOrder: "printing.order";
5186
+ };
5187
+ export type KDSEVENTNAME = typeof KDSEVENTNAME[keyof typeof KDSEVENTNAME];
5188
+ /**
5189
+ *
5190
+ * @export
5191
+ * @interface KdsCoordinateDto
5192
+ */
5193
+ export interface KdsCoordinateDto {
5194
+ /**
5195
+ *
5196
+ * @type {string}
5197
+ * @memberof KdsCoordinateDto
5198
+ */
5199
+ 'id': string;
5200
+ /**
5201
+ *
5202
+ * @type {number}
5203
+ * @memberof KdsCoordinateDto
5204
+ */
5205
+ 'lat': number | null;
5206
+ /**
5207
+ *
5208
+ * @type {number}
5209
+ * @memberof KdsCoordinateDto
5210
+ */
5211
+ 'lon': number | null;
5212
+ }
5213
+ /**
5214
+ *
5215
+ * @export
5216
+ * @interface KdsCustomerDto
5217
+ */
5218
+ export interface KdsCustomerDto {
5219
+ /**
5220
+ *
5221
+ * @type {string}
5222
+ * @memberof KdsCustomerDto
5223
+ */
5224
+ 'id': string;
5225
+ /**
5226
+ *
5227
+ * @type {string}
5228
+ * @memberof KdsCustomerDto
5229
+ */
5230
+ 'name': string;
5231
+ /**
5232
+ *
5233
+ * @type {string}
5234
+ * @memberof KdsCustomerDto
5235
+ */
5236
+ 'phone': string | null;
5237
+ /**
5238
+ *
5239
+ * @type {string}
5240
+ * @memberof KdsCustomerDto
5241
+ */
5242
+ 'email': string | null;
5243
+ }
5244
+ /**
5245
+ *
5246
+ * @export
5247
+ * @interface KdsDeliveryDto
5248
+ */
5249
+ export interface KdsDeliveryDto {
5250
+ /**
5251
+ *
5252
+ * @type {string}
5253
+ * @memberof KdsDeliveryDto
5254
+ */
5255
+ 'id': string;
5256
+ /**
5257
+ *
5258
+ * @type {boolean}
5259
+ * @memberof KdsDeliveryDto
5260
+ */
5261
+ 'selfDelivery': boolean;
5262
+ /**
5263
+ *
5264
+ * @type {string}
5265
+ * @memberof KdsDeliveryDto
5266
+ */
5267
+ 'note': string | null;
5268
+ /**
5269
+ *
5270
+ * @type {DeliveryStatus}
5271
+ * @memberof KdsDeliveryDto
5272
+ */
5273
+ 'status': DeliveryStatus;
5274
+ /**
5275
+ *
5276
+ * @type {DeliveryType}
5277
+ * @memberof KdsDeliveryDto
5278
+ */
5279
+ 'type': DeliveryType;
5280
+ /**
5281
+ *
5282
+ * @type {number}
5283
+ * @memberof KdsDeliveryDto
5284
+ */
5285
+ 'deliveryFee': number;
5286
+ /**
5287
+ *
5288
+ * @type {KdsLocationDto}
5289
+ * @memberof KdsDeliveryDto
5290
+ */
5291
+ 'location': KdsLocationDto | null;
5292
+ }
5293
+ /**
5294
+ *
5295
+ * @export
5296
+ * @interface KdsLocationDto
5297
+ */
5298
+ export interface KdsLocationDto {
5299
+ /**
5300
+ *
5301
+ * @type {string}
5302
+ * @memberof KdsLocationDto
5303
+ */
5304
+ 'id': string;
5305
+ /**
5306
+ *
5307
+ * @type {string}
5308
+ * @memberof KdsLocationDto
5309
+ */
5310
+ 'formatted_address': string | null;
5311
+ /**
5312
+ *
5313
+ * @type {string}
5314
+ * @memberof KdsLocationDto
5315
+ */
5316
+ 'city': string | null;
5317
+ /**
5318
+ *
5319
+ * @type {string}
5320
+ * @memberof KdsLocationDto
5321
+ */
5322
+ 'country': string | null;
5323
+ /**
5324
+ *
5325
+ * @type {KdsCoordinateDto}
5326
+ * @memberof KdsLocationDto
5327
+ */
5328
+ 'coordinates': KdsCoordinateDto | null;
5329
+ }
5165
5330
  /**
5166
5331
  *
5167
5332
  * @export
@@ -5300,6 +5465,30 @@ export interface KdsOrderDto {
5300
5465
  * @memberof KdsOrderDto
5301
5466
  */
5302
5467
  'updatedAt': string;
5468
+ /**
5469
+ *
5470
+ * @type {KdsCustomerDto}
5471
+ * @memberof KdsOrderDto
5472
+ */
5473
+ 'customer': KdsCustomerDto | null;
5474
+ /**
5475
+ *
5476
+ * @type {KdsDeliveryDto}
5477
+ * @memberof KdsOrderDto
5478
+ */
5479
+ 'delivery': KdsDeliveryDto | null;
5480
+ /**
5481
+ *
5482
+ * @type {KdsPreorderDto}
5483
+ * @memberof KdsOrderDto
5484
+ */
5485
+ 'preorder': KdsPreorderDto | null;
5486
+ /**
5487
+ *
5488
+ * @type {KdsPriceSummaryDto}
5489
+ * @memberof KdsOrderDto
5490
+ */
5491
+ 'priceSummary': KdsPriceSummaryDto | null;
5303
5492
  /**
5304
5493
  *
5305
5494
  * @type {Array<KdsOrderItemDto>}
@@ -5607,6 +5796,69 @@ export interface KdsPaginationDto {
5607
5796
  */
5608
5797
  'hasPreviousPage': boolean;
5609
5798
  }
5799
+ /**
5800
+ *
5801
+ * @export
5802
+ * @interface KdsPreorderDto
5803
+ */
5804
+ export interface KdsPreorderDto {
5805
+ /**
5806
+ *
5807
+ * @type {string}
5808
+ * @memberof KdsPreorderDto
5809
+ */
5810
+ 'id': string;
5811
+ /**
5812
+ *
5813
+ * @type {PreorderStatus}
5814
+ * @memberof KdsPreorderDto
5815
+ */
5816
+ 'status': PreorderStatus;
5817
+ /**
5818
+ *
5819
+ * @type {string}
5820
+ * @memberof KdsPreorderDto
5821
+ */
5822
+ 'preorderTime': string;
5823
+ }
5824
+ /**
5825
+ *
5826
+ * @export
5827
+ * @interface KdsPriceSummaryDto
5828
+ */
5829
+ export interface KdsPriceSummaryDto {
5830
+ /**
5831
+ *
5832
+ * @type {string}
5833
+ * @memberof KdsPriceSummaryDto
5834
+ */
5835
+ 'id': string;
5836
+ /**
5837
+ *
5838
+ * @type {number}
5839
+ * @memberof KdsPriceSummaryDto
5840
+ */
5841
+ 'totalNet': number;
5842
+ }
5843
+ /**
5844
+ *
5845
+ * @export
5846
+ * @interface KdsPrintingEventDto
5847
+ */
5848
+ export interface KdsPrintingEventDto {
5849
+ /**
5850
+ *
5851
+ * @type {KDSEVENTNAME}
5852
+ * @memberof KdsPrintingEventDto
5853
+ */
5854
+ 'event': KDSEVENTNAME;
5855
+ /**
5856
+ *
5857
+ * @type {KdsOrderDto}
5858
+ * @memberof KdsPrintingEventDto
5859
+ */
5860
+ 'order': KdsOrderDto;
5861
+ }
5610
5862
  /**
5611
5863
  *
5612
5864
  * @export
@@ -5863,6 +6115,30 @@ export interface KdsReadyOrderResponseDtoOrder {
5863
6115
  * @memberof KdsReadyOrderResponseDtoOrder
5864
6116
  */
5865
6117
  'updatedAt': string;
6118
+ /**
6119
+ *
6120
+ * @type {KdsCustomerDto}
6121
+ * @memberof KdsReadyOrderResponseDtoOrder
6122
+ */
6123
+ 'customer': KdsCustomerDto | null;
6124
+ /**
6125
+ *
6126
+ * @type {KdsDeliveryDto}
6127
+ * @memberof KdsReadyOrderResponseDtoOrder
6128
+ */
6129
+ 'delivery': KdsDeliveryDto | null;
6130
+ /**
6131
+ *
6132
+ * @type {KdsPreorderDto}
6133
+ * @memberof KdsReadyOrderResponseDtoOrder
6134
+ */
6135
+ 'preorder': KdsPreorderDto | null;
6136
+ /**
6137
+ *
6138
+ * @type {KdsPriceSummaryDto}
6139
+ * @memberof KdsReadyOrderResponseDtoOrder
6140
+ */
6141
+ 'priceSummary': KdsPriceSummaryDto | null;
5866
6142
  /**
5867
6143
  *
5868
6144
  * @type {Array<KdsOrderItemDto>}
@@ -6033,6 +6309,30 @@ export interface KdsRevertOrderResponseDtoOrder {
6033
6309
  * @memberof KdsRevertOrderResponseDtoOrder
6034
6310
  */
6035
6311
  'updatedAt': string;
6312
+ /**
6313
+ *
6314
+ * @type {KdsCustomerDto}
6315
+ * @memberof KdsRevertOrderResponseDtoOrder
6316
+ */
6317
+ 'customer': KdsCustomerDto | null;
6318
+ /**
6319
+ *
6320
+ * @type {KdsDeliveryDto}
6321
+ * @memberof KdsRevertOrderResponseDtoOrder
6322
+ */
6323
+ 'delivery': KdsDeliveryDto | null;
6324
+ /**
6325
+ *
6326
+ * @type {KdsPreorderDto}
6327
+ * @memberof KdsRevertOrderResponseDtoOrder
6328
+ */
6329
+ 'preorder': KdsPreorderDto | null;
6330
+ /**
6331
+ *
6332
+ * @type {KdsPriceSummaryDto}
6333
+ * @memberof KdsRevertOrderResponseDtoOrder
6334
+ */
6335
+ 'priceSummary': KdsPriceSummaryDto | null;
6036
6336
  /**
6037
6337
  *
6038
6338
  * @type {Array<KdsOrderItemDto>}