@munchi_oy/core 1.9.72 → 1.9.73

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.
@@ -156,6 +156,21 @@ export interface ActionPasscodeResponseDto {
156
156
  */
157
157
  'permissionRules': Array<PermissionRuleResponseDto>;
158
158
  }
159
+ /**
160
+ *
161
+ * @export
162
+ * @enum {string}
163
+ */
164
+ export declare const ActionsEnum: {
165
+ readonly Ticketing: "Ticketing";
166
+ readonly OrderChange: "OrderChange";
167
+ readonly NewOrder: "NewOrder";
168
+ readonly Printing: "Printing";
169
+ readonly PosOrderChange: "PosOrderChange";
170
+ readonly UpdateLoyaltyPoints: "UpdateLoyaltyPoints";
171
+ readonly CourseFire: "CourseFire";
172
+ };
173
+ export type ActionsEnum = typeof ActionsEnum[keyof typeof ActionsEnum];
159
174
  /**
160
175
  *
161
176
  * @export
@@ -15838,7 +15853,7 @@ export type PrinterTypeEnum = typeof PrinterTypeEnum[keyof typeof PrinterTypeEnu
15838
15853
  export interface ProcessOrderActionsDto {
15839
15854
  /**
15840
15855
  * Array of actions to process
15841
- * @type {Array<string>}
15856
+ * @type {Array<ActionsEnum>}
15842
15857
  * @memberof ProcessOrderActionsDto
15843
15858
  */
15844
15859
  'actions': Array<ActionsEnum>;
@@ -15849,16 +15864,6 @@ export interface ProcessOrderActionsDto {
15849
15864
  */
15850
15865
  'data': ProcessOrderActionsDtoData;
15851
15866
  }
15852
- export declare const ActionsEnum: {
15853
- readonly Ticketing: "Ticketing";
15854
- readonly OrderChange: "OrderChange";
15855
- readonly NewOrder: "NewOrder";
15856
- readonly Printing: "Printing";
15857
- readonly PosOrderChange: "PosOrderChange";
15858
- readonly UpdateLoyaltyPoints: "UpdateLoyaltyPoints";
15859
- readonly CourseFire: "CourseFire";
15860
- };
15861
- export type ActionsEnum = typeof ActionsEnum[keyof typeof ActionsEnum];
15862
15867
  /**
15863
15868
  * Action-specific data
15864
15869
  * @export
@@ -16156,6 +16161,19 @@ export interface ProcessOrderActionsResponseDtoOrder {
16156
16161
  */
16157
16162
  'tableGroupId'?: string | null;
16158
16163
  }
16164
+ /**
16165
+ *
16166
+ * @export
16167
+ * @interface ProcessPosOrderActionsQueueDto
16168
+ */
16169
+ export interface ProcessPosOrderActionsQueueDto {
16170
+ /**
16171
+ * qid of the enqueued order-actions job to process.
16172
+ * @type {string}
16173
+ * @memberof ProcessPosOrderActionsQueueDto
16174
+ */
16175
+ 'qid': string;
16176
+ }
16159
16177
  /**
16160
16178
  *
16161
16179
  * @export
@@ -19142,6 +19160,304 @@ export interface SupportedChannelDto {
19142
19160
  */
19143
19161
  'label': string;
19144
19162
  }
19163
+ /**
19164
+ *
19165
+ * @export
19166
+ * @interface SyncPosOrderDto
19167
+ */
19168
+ export interface SyncPosOrderDto {
19169
+ /**
19170
+ *
19171
+ * @type {SyncPosOrderDtoOrder}
19172
+ * @memberof SyncPosOrderDto
19173
+ */
19174
+ 'order': SyncPosOrderDtoOrder;
19175
+ /**
19176
+ *
19177
+ * @type {SyncPosOrderDtoWorkflow}
19178
+ * @memberof SyncPosOrderDto
19179
+ */
19180
+ 'workflow'?: SyncPosOrderDtoWorkflow;
19181
+ }
19182
+ /**
19183
+ * POS order snapshot to persist. paymentEvents are ignored (server-owned).
19184
+ * @export
19185
+ * @interface SyncPosOrderDtoOrder
19186
+ */
19187
+ export interface SyncPosOrderDtoOrder {
19188
+ /**
19189
+ *
19190
+ * @type {string}
19191
+ * @memberof SyncPosOrderDtoOrder
19192
+ */
19193
+ 'id': string;
19194
+ /**
19195
+ *
19196
+ * @type {string}
19197
+ * @memberof SyncPosOrderDtoOrder
19198
+ */
19199
+ 'businessId': string;
19200
+ /**
19201
+ *
19202
+ * @type {ProviderEnum}
19203
+ * @memberof SyncPosOrderDtoOrder
19204
+ */
19205
+ 'provider': ProviderEnum;
19206
+ /**
19207
+ *
19208
+ * @type {CurrencyCode}
19209
+ * @memberof SyncPosOrderDtoOrder
19210
+ */
19211
+ 'currency': CurrencyCode;
19212
+ /**
19213
+ *
19214
+ * @type {PosBusinessDto}
19215
+ * @memberof SyncPosOrderDtoOrder
19216
+ */
19217
+ 'business': PosBusinessDto;
19218
+ /**
19219
+ *
19220
+ * @type {string}
19221
+ * @memberof SyncPosOrderDtoOrder
19222
+ */
19223
+ 'createdAt': string;
19224
+ /**
19225
+ *
19226
+ * @type {OrderStatusEnum}
19227
+ * @memberof SyncPosOrderDtoOrder
19228
+ */
19229
+ 'status': OrderStatusEnum;
19230
+ /**
19231
+ *
19232
+ * @type {string}
19233
+ * @memberof SyncPosOrderDtoOrder
19234
+ */
19235
+ 'updatedAt': string;
19236
+ /**
19237
+ *
19238
+ * @type {string}
19239
+ * @memberof SyncPosOrderDtoOrder
19240
+ */
19241
+ 'completedAt'?: string;
19242
+ /**
19243
+ *
19244
+ * @type {string}
19245
+ * @memberof SyncPosOrderDtoOrder
19246
+ */
19247
+ 'orderNumber': string;
19248
+ /**
19249
+ *
19250
+ * @type {CheckoutModelEnum}
19251
+ * @memberof SyncPosOrderDtoOrder
19252
+ */
19253
+ 'checkoutModel': CheckoutModelEnum;
19254
+ /**
19255
+ *
19256
+ * @type {OrderTypePOS}
19257
+ * @memberof SyncPosOrderDtoOrder
19258
+ */
19259
+ 'orderType': OrderTypePOS;
19260
+ /**
19261
+ *
19262
+ * @type {string}
19263
+ * @memberof SyncPosOrderDtoOrder
19264
+ */
19265
+ 'spotNumber': string | null;
19266
+ /**
19267
+ * ID of the floor plan dining table linked to this order
19268
+ * @type {string}
19269
+ * @memberof SyncPosOrderDtoOrder
19270
+ */
19271
+ 'tableId'?: string | null;
19272
+ /**
19273
+ *
19274
+ * @type {string}
19275
+ * @memberof SyncPosOrderDtoOrder
19276
+ */
19277
+ 'comments': string | null;
19278
+ /**
19279
+ *
19280
+ * @type {PosOrderDtoTableService}
19281
+ * @memberof SyncPosOrderDtoOrder
19282
+ */
19283
+ 'tableService'?: PosOrderDtoTableService | null;
19284
+ /**
19285
+ *
19286
+ * @type {PosOrderDtoEqualSplitState}
19287
+ * @memberof SyncPosOrderDtoOrder
19288
+ */
19289
+ 'equalSplitState'?: PosOrderDtoEqualSplitState | null;
19290
+ /**
19291
+ * Id of the staff in shift
19292
+ * @type {string}
19293
+ * @memberof SyncPosOrderDtoOrder
19294
+ */
19295
+ 'staffId': string | null;
19296
+ /**
19297
+ * Id of the shift
19298
+ * @type {string}
19299
+ * @memberof SyncPosOrderDtoOrder
19300
+ */
19301
+ 'shiftId': string | null;
19302
+ /**
19303
+ *
19304
+ * @type {OrderRefundStatus}
19305
+ * @memberof SyncPosOrderDtoOrder
19306
+ */
19307
+ 'orderRefundStatus': OrderRefundStatus;
19308
+ /**
19309
+ *
19310
+ * @type {LocatorType}
19311
+ * @memberof SyncPosOrderDtoOrder
19312
+ */
19313
+ 'locatorType': LocatorType;
19314
+ /**
19315
+ *
19316
+ * @type {PosOrderPriceDto}
19317
+ * @memberof SyncPosOrderDtoOrder
19318
+ */
19319
+ 'basketPrice': PosOrderPriceDto;
19320
+ /**
19321
+ *
19322
+ * @type {Array<PosOrderItemDto>}
19323
+ * @memberof SyncPosOrderDtoOrder
19324
+ */
19325
+ 'items': Array<PosOrderItemDto>;
19326
+ /**
19327
+ *
19328
+ * @type {Array<PosDiscountDto>}
19329
+ * @memberof SyncPosOrderDtoOrder
19330
+ */
19331
+ 'discounts': Array<PosDiscountDto>;
19332
+ /**
19333
+ *
19334
+ * @type {PosCustomerDto}
19335
+ * @memberof SyncPosOrderDtoOrder
19336
+ */
19337
+ 'customer': PosCustomerDto | null;
19338
+ /**
19339
+ *
19340
+ * @type {Array<TransactionDto>}
19341
+ * @memberof SyncPosOrderDtoOrder
19342
+ */
19343
+ 'paymentEvents': Array<TransactionDto>;
19344
+ /**
19345
+ *
19346
+ * @type {Array<PaymentRefundDto>}
19347
+ * @memberof SyncPosOrderDtoOrder
19348
+ */
19349
+ 'refunds'?: Array<PaymentRefundDto>;
19350
+ /**
19351
+ * Data version code
19352
+ * @type {string}
19353
+ * @memberof SyncPosOrderDtoOrder
19354
+ */
19355
+ 'version': string;
19356
+ /**
19357
+ *
19358
+ * @type {OrderFormat}
19359
+ * @memberof SyncPosOrderDtoOrder
19360
+ */
19361
+ 'orderFormat'?: OrderFormat;
19362
+ /**
19363
+ * The ID of the loyalty program active during this order.
19364
+ * @type {string}
19365
+ * @memberof SyncPosOrderDtoOrder
19366
+ */
19367
+ 'loyaltyProgramId': string | null;
19368
+ /**
19369
+ * An array of loyalty transaction IDs related to this order.
19370
+ * @type {Array<string>}
19371
+ * @memberof SyncPosOrderDtoOrder
19372
+ */
19373
+ 'loyaltyTransactionIds': Array<string>;
19374
+ /**
19375
+ *
19376
+ * @type {PosOrderDtoTaxSummary}
19377
+ * @memberof SyncPosOrderDtoOrder
19378
+ */
19379
+ 'taxSummary'?: PosOrderDtoTaxSummary;
19380
+ /**
19381
+ * Name of staff member who created the order
19382
+ * @type {string}
19383
+ * @memberof SyncPosOrderDtoOrder
19384
+ */
19385
+ 'staffName'?: string | null;
19386
+ /**
19387
+ *
19388
+ * @type {PosOrderDtoInvoiceCompany}
19389
+ * @memberof SyncPosOrderDtoOrder
19390
+ */
19391
+ 'invoiceCompany'?: PosOrderDtoInvoiceCompany | null;
19392
+ /**
19393
+ *
19394
+ * @type {object}
19395
+ * @memberof SyncPosOrderDtoOrder
19396
+ */
19397
+ 'lastPaymentError'?: object;
19398
+ /**
19399
+ *
19400
+ * @type {Array<OrderFeeDto>}
19401
+ * @memberof SyncPosOrderDtoOrder
19402
+ */
19403
+ 'fees'?: Array<OrderFeeDto> | null;
19404
+ /**
19405
+ * Loyalty user ID associated with this order
19406
+ * @type {number}
19407
+ * @memberof SyncPosOrderDtoOrder
19408
+ */
19409
+ 'targetUserId'?: number;
19410
+ /**
19411
+ * ID of the table group this order belongs to
19412
+ * @type {string}
19413
+ * @memberof SyncPosOrderDtoOrder
19414
+ */
19415
+ 'tableGroupId'?: string | null;
19416
+ }
19417
+ /**
19418
+ * POS order actions to run in the background after persist (same shape as /pos/actions). Omit to only sync the order.
19419
+ * @export
19420
+ * @interface SyncPosOrderDtoWorkflow
19421
+ */
19422
+ export interface SyncPosOrderDtoWorkflow {
19423
+ /**
19424
+ * Array of actions to process
19425
+ * @type {Array<ActionsEnum>}
19426
+ * @memberof SyncPosOrderDtoWorkflow
19427
+ */
19428
+ 'actions': Array<ActionsEnum>;
19429
+ /**
19430
+ *
19431
+ * @type {ProcessOrderActionsDtoData}
19432
+ * @memberof SyncPosOrderDtoWorkflow
19433
+ */
19434
+ 'data': ProcessOrderActionsDtoData;
19435
+ }
19436
+ /**
19437
+ *
19438
+ * @export
19439
+ * @interface SyncPosOrderResponseDto
19440
+ */
19441
+ export interface SyncPosOrderResponseDto {
19442
+ /**
19443
+ * Whether the order snapshot was persisted.
19444
+ * @type {boolean}
19445
+ * @memberof SyncPosOrderResponseDto
19446
+ */
19447
+ 'synced': boolean;
19448
+ /**
19449
+ * Id of the synced order.
19450
+ * @type {string}
19451
+ * @memberof SyncPosOrderResponseDto
19452
+ */
19453
+ 'orderId': string;
19454
+ /**
19455
+ * Enqueued order-actions job id, or null when no workflow was provided.
19456
+ * @type {string}
19457
+ * @memberof SyncPosOrderResponseDto
19458
+ */
19459
+ 'jobId': string | null;
19460
+ }
19145
19461
  /**
19146
19462
  *
19147
19463
  * @export
@@ -30907,6 +31223,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
30907
31223
  * @throws {RequiredError}
30908
31224
  */
30909
31225
  rejectOrder: (rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31226
+ /**
31227
+ *
31228
+ * @summary Sync a POS order and enqueue background order actions
31229
+ * @param {SyncPosOrderDto} syncPosOrderDto
31230
+ * @param {*} [options] Override http request option.
31231
+ * @throws {RequiredError}
31232
+ */
31233
+ syncPosOrder: (syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30910
31234
  /**
30911
31235
  *
30912
31236
  * @summary Update a POS order status
@@ -31020,6 +31344,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
31020
31344
  * @throws {RequiredError}
31021
31345
  */
31022
31346
  rejectOrder(rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderStatusResponseDto>>;
31347
+ /**
31348
+ *
31349
+ * @summary Sync a POS order and enqueue background order actions
31350
+ * @param {SyncPosOrderDto} syncPosOrderDto
31351
+ * @param {*} [options] Override http request option.
31352
+ * @throws {RequiredError}
31353
+ */
31354
+ syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncPosOrderResponseDto>>;
31023
31355
  /**
31024
31356
  *
31025
31357
  * @summary Update a POS order status
@@ -31133,6 +31465,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
31133
31465
  * @throws {RequiredError}
31134
31466
  */
31135
31467
  rejectOrder(rejectOrderDto: RejectOrderDto, options?: any): AxiosPromise<OrderStatusResponseDto>;
31468
+ /**
31469
+ *
31470
+ * @summary Sync a POS order and enqueue background order actions
31471
+ * @param {SyncPosOrderDto} syncPosOrderDto
31472
+ * @param {*} [options] Override http request option.
31473
+ * @throws {RequiredError}
31474
+ */
31475
+ syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: any): AxiosPromise<SyncPosOrderResponseDto>;
31136
31476
  /**
31137
31477
  *
31138
31478
  * @summary Update a POS order status
@@ -31259,6 +31599,15 @@ export interface OrdersApiInterface {
31259
31599
  * @memberof OrdersApiInterface
31260
31600
  */
31261
31601
  rejectOrder(rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig): AxiosPromise<OrderStatusResponseDto>;
31602
+ /**
31603
+ *
31604
+ * @summary Sync a POS order and enqueue background order actions
31605
+ * @param {SyncPosOrderDto} syncPosOrderDto
31606
+ * @param {*} [options] Override http request option.
31607
+ * @throws {RequiredError}
31608
+ * @memberof OrdersApiInterface
31609
+ */
31610
+ syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig): AxiosPromise<SyncPosOrderResponseDto>;
31262
31611
  /**
31263
31612
  *
31264
31613
  * @summary Update a POS order status
@@ -31387,6 +31736,15 @@ export declare class OrdersApi extends BaseAPI implements OrdersApiInterface {
31387
31736
  * @memberof OrdersApi
31388
31737
  */
31389
31738
  rejectOrder(rejectOrderDto: RejectOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderStatusResponseDto, any, {}>>;
31739
+ /**
31740
+ *
31741
+ * @summary Sync a POS order and enqueue background order actions
31742
+ * @param {SyncPosOrderDto} syncPosOrderDto
31743
+ * @param {*} [options] Override http request option.
31744
+ * @throws {RequiredError}
31745
+ * @memberof OrdersApi
31746
+ */
31747
+ syncPosOrder(syncPosOrderDto: SyncPosOrderDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncPosOrderResponseDto, any, {}>>;
31390
31748
  /**
31391
31749
  *
31392
31750
  * @summary Update a POS order status
@@ -35734,6 +36092,14 @@ export declare const WebhookApiAxiosParamCreator: (configuration?: Configuration
35734
36092
  * @throws {RequiredError}
35735
36093
  */
35736
36094
  handleWorldlineEvents: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
36095
+ /**
36096
+ *
36097
+ * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
36098
+ * @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
36099
+ * @param {*} [options] Override http request option.
36100
+ * @throws {RequiredError}
36101
+ */
36102
+ processPosOrderActionsQueue: (processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35737
36103
  /**
35738
36104
  *
35739
36105
  * @param {*} [options] Override http request option.
@@ -35858,6 +36224,14 @@ export declare const WebhookApiFp: (configuration?: Configuration) => {
35858
36224
  * @throws {RequiredError}
35859
36225
  */
35860
36226
  handleWorldlineEvents(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
36227
+ /**
36228
+ *
36229
+ * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
36230
+ * @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
36231
+ * @param {*} [options] Override http request option.
36232
+ * @throws {RequiredError}
36233
+ */
36234
+ processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
35861
36235
  /**
35862
36236
  *
35863
36237
  * @param {*} [options] Override http request option.
@@ -35982,6 +36356,14 @@ export declare const WebhookApiFactory: (configuration?: Configuration, basePath
35982
36356
  * @throws {RequiredError}
35983
36357
  */
35984
36358
  handleWorldlineEvents(options?: any): AxiosPromise<void>;
36359
+ /**
36360
+ *
36361
+ * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
36362
+ * @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
36363
+ * @param {*} [options] Override http request option.
36364
+ * @throws {RequiredError}
36365
+ */
36366
+ processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: any): AxiosPromise<void>;
35985
36367
  /**
35986
36368
  *
35987
36369
  * @param {*} [options] Override http request option.
@@ -36122,6 +36504,15 @@ export interface WebhookApiInterface {
36122
36504
  * @memberof WebhookApiInterface
36123
36505
  */
36124
36506
  handleWorldlineEvents(options?: AxiosRequestConfig): AxiosPromise<void>;
36507
+ /**
36508
+ *
36509
+ * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
36510
+ * @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
36511
+ * @param {*} [options] Override http request option.
36512
+ * @throws {RequiredError}
36513
+ * @memberof WebhookApiInterface
36514
+ */
36515
+ processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig): AxiosPromise<void>;
36125
36516
  /**
36126
36517
  *
36127
36518
  * @param {*} [options] Override http request option.
@@ -36266,6 +36657,15 @@ export declare class WebhookApi extends BaseAPI implements WebhookApiInterface {
36266
36657
  * @memberof WebhookApi
36267
36658
  */
36268
36659
  handleWorldlineEvents(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
36660
+ /**
36661
+ *
36662
+ * @summary Process a queued POS order-actions job (triggered by Cloud Tasks)
36663
+ * @param {ProcessPosOrderActionsQueueDto} processPosOrderActionsQueueDto
36664
+ * @param {*} [options] Override http request option.
36665
+ * @throws {RequiredError}
36666
+ * @memberof WebhookApi
36667
+ */
36668
+ processPosOrderActionsQueue(processPosOrderActionsQueueDto: ProcessPosOrderActionsQueueDto, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
36269
36669
  /**
36270
36670
  *
36271
36671
  * @param {*} [options] Override http request option.