@munchi_oy/core 1.8.4 → 1.8.5

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,16 +13,6 @@ 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];
26
16
  /**
27
17
  *
28
18
  * @export
@@ -4739,6 +4729,12 @@ export interface GetStationResponseDtoStation {
4739
4729
  * @memberof GetStationResponseDtoStation
4740
4730
  */
4741
4731
  'prefix': string;
4732
+ /**
4733
+ *
4734
+ * @type {object}
4735
+ * @memberof GetStationResponseDtoStation
4736
+ */
4737
+ 'settings'?: object;
4742
4738
  /**
4743
4739
  *
4744
4740
  * @type {object}
@@ -5172,161 +5168,6 @@ export interface ItemPriceDto {
5172
5168
  */
5173
5169
  'priceBreakdown': ItemPriceBreakdownDto;
5174
5170
  }
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
- }
5330
5171
  /**
5331
5172
  *
5332
5173
  * @export
@@ -5465,30 +5306,6 @@ export interface KdsOrderDto {
5465
5306
  * @memberof KdsOrderDto
5466
5307
  */
5467
5308
  '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;
5492
5309
  /**
5493
5310
  *
5494
5311
  * @type {Array<KdsOrderItemDto>}
@@ -5796,69 +5613,6 @@ export interface KdsPaginationDto {
5796
5613
  */
5797
5614
  'hasPreviousPage': boolean;
5798
5615
  }
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
- }
5862
5616
  /**
5863
5617
  *
5864
5618
  * @export
@@ -6115,30 +5869,6 @@ export interface KdsReadyOrderResponseDtoOrder {
6115
5869
  * @memberof KdsReadyOrderResponseDtoOrder
6116
5870
  */
6117
5871
  '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;
6142
5872
  /**
6143
5873
  *
6144
5874
  * @type {Array<KdsOrderItemDto>}
@@ -6309,30 +6039,6 @@ export interface KdsRevertOrderResponseDtoOrder {
6309
6039
  * @memberof KdsRevertOrderResponseDtoOrder
6310
6040
  */
6311
6041
  '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;
6336
6042
  /**
6337
6043
  *
6338
6044
  * @type {Array<KdsOrderItemDto>}
@@ -14562,7 +14268,6 @@ export declare const SYNCKEY: {
14562
14268
  readonly InvoiceCompanies: "INVOICE_COMPANIES";
14563
14269
  readonly BusinessTax: "BUSINESS_TAX";
14564
14270
  readonly Transaction: "TRANSACTION";
14565
- readonly DiscountsV2: "DISCOUNTS_V2";
14566
14271
  };
14567
14272
  export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
14568
14273
  /**
@@ -15025,6 +14730,12 @@ export interface StationDetailsDto {
15025
14730
  * @memberof StationDetailsDto
15026
14731
  */
15027
14732
  'prefix': string;
14733
+ /**
14734
+ *
14735
+ * @type {object}
14736
+ * @memberof StationDetailsDto
14737
+ */
14738
+ 'settings'?: object;
15028
14739
  /**
15029
14740
  *
15030
14741
  * @type {object}
@@ -15112,11 +14823,96 @@ export interface StationDetailsDtoPaymentTerminal {
15112
14823
  */
15113
14824
  export interface StationSyncResponseDto {
15114
14825
  /**
15115
- * A success message indicating the sync was successful
15116
- * @type {string}
14826
+ *
14827
+ * @type {StationSyncResponseDtoStation}
15117
14828
  * @memberof StationSyncResponseDto
15118
14829
  */
15119
- 'message': string;
14830
+ 'station': StationSyncResponseDtoStation;
14831
+ }
14832
+ /**
14833
+ * The synced station data
14834
+ * @export
14835
+ * @interface StationSyncResponseDtoStation
14836
+ */
14837
+ export interface StationSyncResponseDtoStation {
14838
+ /**
14839
+ *
14840
+ * @type {string}
14841
+ * @memberof StationSyncResponseDtoStation
14842
+ */
14843
+ 'id': string;
14844
+ /**
14845
+ *
14846
+ * @type {string}
14847
+ * @memberof StationSyncResponseDtoStation
14848
+ */
14849
+ 'name': string;
14850
+ /**
14851
+ *
14852
+ * @type {string}
14853
+ * @memberof StationSyncResponseDtoStation
14854
+ */
14855
+ 'hardwareId': string;
14856
+ /**
14857
+ *
14858
+ * @type {StationType}
14859
+ * @memberof StationSyncResponseDtoStation
14860
+ */
14861
+ 'type': StationType;
14862
+ /**
14863
+ *
14864
+ * @type {DeviceType}
14865
+ * @memberof StationSyncResponseDtoStation
14866
+ */
14867
+ 'deviceType'?: DeviceType;
14868
+ /**
14869
+ *
14870
+ * @type {Status}
14871
+ * @memberof StationSyncResponseDtoStation
14872
+ */
14873
+ 'status': Status;
14874
+ /**
14875
+ *
14876
+ * @type {number}
14877
+ * @memberof StationSyncResponseDtoStation
14878
+ */
14879
+ 'orderingBusinessId': number;
14880
+ /**
14881
+ *
14882
+ * @type {string}
14883
+ * @memberof StationSyncResponseDtoStation
14884
+ */
14885
+ 'prefix': string;
14886
+ /**
14887
+ *
14888
+ * @type {object}
14889
+ * @memberof StationSyncResponseDtoStation
14890
+ */
14891
+ 'settings'?: object;
14892
+ /**
14893
+ *
14894
+ * @type {object}
14895
+ * @memberof StationSyncResponseDtoStation
14896
+ */
14897
+ 'metadata'?: object;
14898
+ /**
14899
+ * Timestamp when the station record was created.
14900
+ * @type {string}
14901
+ * @memberof StationSyncResponseDtoStation
14902
+ */
14903
+ 'createdAt': string;
14904
+ /**
14905
+ * Timestamp when the station record was last updated.
14906
+ * @type {string}
14907
+ * @memberof StationSyncResponseDtoStation
14908
+ */
14909
+ 'updatedAt': string;
14910
+ /**
14911
+ *
14912
+ * @type {StationDetailsDtoPaymentTerminal}
14913
+ * @memberof StationSyncResponseDtoStation
14914
+ */
14915
+ 'paymentTerminal'?: StationDetailsDtoPaymentTerminal | null;
15120
14916
  }
15121
14917
  /**
15122
14918
  *
@@ -15359,49 +15155,6 @@ export interface SyncStationDto {
15359
15155
  */
15360
15156
  'metadata'?: object;
15361
15157
  }
15362
- /**
15363
- *
15364
- * @export
15365
- * @interface SyncTerminalDto
15366
- */
15367
- export interface SyncTerminalDto {
15368
- /**
15369
- * Hardware ID of the station to connect the terminal to
15370
- * @type {string}
15371
- * @memberof SyncTerminalDto
15372
- */
15373
- 'stationHardwareId': string;
15374
- /**
15375
- * Hardware ID of the payment terminal
15376
- * @type {string}
15377
- * @memberof SyncTerminalDto
15378
- */
15379
- 'terminalId': string;
15380
- /**
15381
- *
15382
- * @type {PaymentProvider}
15383
- * @memberof SyncTerminalDto
15384
- */
15385
- 'provider': PaymentProvider;
15386
- /**
15387
- * Label/name for the terminal
15388
- * @type {string}
15389
- * @memberof SyncTerminalDto
15390
- */
15391
- 'label'?: string;
15392
- /**
15393
- *
15394
- * @type {TerminalConnectionType}
15395
- * @memberof SyncTerminalDto
15396
- */
15397
- 'connectionType'?: TerminalConnectionType;
15398
- /**
15399
- * Business ID that owns the terminal
15400
- * @type {number}
15401
- * @memberof SyncTerminalDto
15402
- */
15403
- 'businessId': number;
15404
- }
15405
15158
  /**
15406
15159
  *
15407
15160
  * @export
@@ -27917,13 +27670,6 @@ export declare const StationsApiAxiosParamCreator: (configuration?: Configuratio
27917
27670
  * @throws {RequiredError}
27918
27671
  */
27919
27672
  syncStation: (syncStationDto: SyncStationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
27920
- /**
27921
- *
27922
- * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
27923
- * @param {*} [options] Override http request option.
27924
- * @throws {RequiredError}
27925
- */
27926
- syncTerminal: (syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
27927
27673
  };
27928
27674
  /**
27929
27675
  * StationsApi - functional programming interface
@@ -27949,13 +27695,6 @@ export declare const StationsApiFp: (configuration?: Configuration) => {
27949
27695
  * @throws {RequiredError}
27950
27696
  */
27951
27697
  syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationSyncResponseDto>>;
27952
- /**
27953
- *
27954
- * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
27955
- * @param {*} [options] Override http request option.
27956
- * @throws {RequiredError}
27957
- */
27958
- syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StationSyncResponseDto>>;
27959
27698
  };
27960
27699
  /**
27961
27700
  * StationsApi - factory interface
@@ -27981,13 +27720,6 @@ export declare const StationsApiFactory: (configuration?: Configuration, basePat
27981
27720
  * @throws {RequiredError}
27982
27721
  */
27983
27722
  syncStation(syncStationDto: SyncStationDto, options?: any): AxiosPromise<StationSyncResponseDto>;
27984
- /**
27985
- *
27986
- * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
27987
- * @param {*} [options] Override http request option.
27988
- * @throws {RequiredError}
27989
- */
27990
- syncTerminal(syncTerminalDto: SyncTerminalDto, options?: any): AxiosPromise<StationSyncResponseDto>;
27991
27723
  };
27992
27724
  /**
27993
27725
  * StationsApi - interface
@@ -28017,14 +27749,6 @@ export interface StationsApiInterface {
28017
27749
  * @memberof StationsApiInterface
28018
27750
  */
28019
27751
  syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
28020
- /**
28021
- *
28022
- * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
28023
- * @param {*} [options] Override http request option.
28024
- * @throws {RequiredError}
28025
- * @memberof StationsApiInterface
28026
- */
28027
- syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): AxiosPromise<StationSyncResponseDto>;
28028
27752
  }
28029
27753
  /**
28030
27754
  * StationsApi - object-oriented interface
@@ -28055,14 +27779,6 @@ export declare class StationsApi extends BaseAPI implements StationsApiInterface
28055
27779
  * @memberof StationsApi
28056
27780
  */
28057
27781
  syncStation(syncStationDto: SyncStationDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StationSyncResponseDto, any, {}>>;
28058
- /**
28059
- *
28060
- * @param {SyncTerminalDto} syncTerminalDto Connect payment terminal to station
28061
- * @param {*} [options] Override http request option.
28062
- * @throws {RequiredError}
28063
- * @memberof StationsApi
28064
- */
28065
- syncTerminal(syncTerminalDto: SyncTerminalDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StationSyncResponseDto, any, {}>>;
28066
27782
  }
28067
27783
  /**
28068
27784
  * TerminalApi - axios parameter creator