pi-kiosk-shared 1.0.15 → 1.0.17

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/dist/api.d.ts CHANGED
@@ -5,6 +5,8 @@ export declare const API_ENDPOINTS: {
5
5
  readonly PAYMENT_CREATE_MULTI_QR: "/api/payments/create-multi-qr";
6
6
  readonly PAYMENT_CHECK_STATUS: "/api/payments/check-status/:paymentId";
7
7
  readonly PAYMENT_COMPLETE: "/api/payments/complete";
8
+ readonly PAYMENT_CANCEL: "/api/payments/cancel";
9
+ readonly PAYMENT_START_MONITORING: "/api/payments/start-monitoring";
8
10
  readonly ADMIN_LOGIN: "/admin/login";
9
11
  readonly ADMIN_PRODUCTS: "/admin/products";
10
12
  readonly ADMIN_PRODUCTS_INVENTORY: "/admin/products/inventory/:kioskId";
package/dist/api.js CHANGED
@@ -8,6 +8,8 @@ export const API_ENDPOINTS = {
8
8
  PAYMENT_CREATE_MULTI_QR: '/api/payments/create-multi-qr',
9
9
  PAYMENT_CHECK_STATUS: '/api/payments/check-status/:paymentId',
10
10
  PAYMENT_COMPLETE: '/api/payments/complete',
11
+ PAYMENT_CANCEL: '/api/payments/cancel',
12
+ PAYMENT_START_MONITORING: '/api/payments/start-monitoring',
11
13
  // Admin endpoints
12
14
  ADMIN_LOGIN: '/admin/login',
13
15
  ADMIN_PRODUCTS: '/admin/products',
package/dist/types.d.ts CHANGED
@@ -40,13 +40,13 @@ export interface AdminProduct {
40
40
  description: string;
41
41
  image: string;
42
42
  imageUrl?: string;
43
- active: boolean;
44
43
  clickedOn: number;
45
44
  qrCodesGenerated: number;
46
45
  numberOfPurchases: number;
47
46
  createdAt: string;
48
47
  updatedAt: string;
49
48
  quantityInStock?: number;
49
+ active?: boolean;
50
50
  }
51
51
  export interface ApiResponse<T> {
52
52
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-kiosk-shared",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "private": false,
5
5
  "description": "Shared components and utilities for Pi Kiosk system",
6
6
  "keywords": [