order3000 0.8.0 → 0.8.1
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/client.d.cts +16 -3
- package/dist/client.d.mts +16 -3
- package/package.json +4 -4
package/dist/client.d.cts
CHANGED
|
@@ -233,8 +233,8 @@ interface components {
|
|
|
233
233
|
schedule?: {
|
|
234
234
|
rrule?: string | null;
|
|
235
235
|
timezone?: string | null;
|
|
236
|
-
validFrom?:
|
|
237
|
-
validTo?:
|
|
236
|
+
validFrom?: string | null;
|
|
237
|
+
validTo?: string | null;
|
|
238
238
|
timeRanges: {
|
|
239
239
|
startTime: string;
|
|
240
240
|
endTime: string;
|
|
@@ -408,6 +408,16 @@ interface ListEventsOptions {
|
|
|
408
408
|
}
|
|
409
409
|
type ListEventsResponse = Event[];
|
|
410
410
|
type MenuItemType = 'dish' | 'beverage';
|
|
411
|
+
/**
|
|
412
|
+
* Crop area coordinates for assets.
|
|
413
|
+
* Re-exported from @kolaveri/molecules Cropper component for type consistency.
|
|
414
|
+
*/
|
|
415
|
+
interface CropArea {
|
|
416
|
+
x: number;
|
|
417
|
+
y: number;
|
|
418
|
+
width: number;
|
|
419
|
+
height: number;
|
|
420
|
+
}
|
|
411
421
|
interface MenuAsset {
|
|
412
422
|
id: string;
|
|
413
423
|
type: 'image' | 'video' | 'document';
|
|
@@ -419,6 +429,8 @@ interface MenuAsset {
|
|
|
419
429
|
height?: number;
|
|
420
430
|
duration?: number;
|
|
421
431
|
} | null;
|
|
432
|
+
/** Crop area to apply when processing this asset. Used by prebuild scripts. */
|
|
433
|
+
cropArea: CropArea | null;
|
|
422
434
|
publicUrl: string;
|
|
423
435
|
}
|
|
424
436
|
interface MenuDish {
|
|
@@ -437,6 +449,7 @@ interface MenuBeverage {
|
|
|
437
449
|
accessor: string;
|
|
438
450
|
name: Record<string, string>;
|
|
439
451
|
description: Record<string, string> | null;
|
|
452
|
+
assets?: MenuAsset[];
|
|
440
453
|
}
|
|
441
454
|
interface MenuItem {
|
|
442
455
|
id: string;
|
|
@@ -672,4 +685,4 @@ declare class Order3000Client {
|
|
|
672
685
|
constructor(config: Order3000ClientConfig);
|
|
673
686
|
}
|
|
674
687
|
|
|
675
|
-
export { type Event, type EventPoster, type EventRow, type GetMenuOptions, type ListEventsOptions, type ListEventsResponse, type Menu, type MenuAsset, type MenuBeverage, type MenuDish, type MenuItem, type MenuItemRow, type MenuItemType, Order3000Client, type Order3000ClientConfig, type Promotion, type RealtimeConfig, type RealtimeEvent, type RealtimeSubscription, type Schedule, type ScheduleOverride, type ScheduleOverrideRow, type ScheduleRow, type SubscriptionOptions, type TimeSlot };
|
|
688
|
+
export { type CropArea, type Event, type EventPoster, type EventRow, type GetMenuOptions, type ListEventsOptions, type ListEventsResponse, type Menu, type MenuAsset, type MenuBeverage, type MenuDish, type MenuItem, type MenuItemRow, type MenuItemType, Order3000Client, type Order3000ClientConfig, type Promotion, type RealtimeConfig, type RealtimeEvent, type RealtimeSubscription, type Schedule, type ScheduleOverride, type ScheduleOverrideRow, type ScheduleRow, type SubscriptionOptions, type TimeSlot };
|
package/dist/client.d.mts
CHANGED
|
@@ -233,8 +233,8 @@ interface components {
|
|
|
233
233
|
schedule?: {
|
|
234
234
|
rrule?: string | null;
|
|
235
235
|
timezone?: string | null;
|
|
236
|
-
validFrom?:
|
|
237
|
-
validTo?:
|
|
236
|
+
validFrom?: string | null;
|
|
237
|
+
validTo?: string | null;
|
|
238
238
|
timeRanges: {
|
|
239
239
|
startTime: string;
|
|
240
240
|
endTime: string;
|
|
@@ -408,6 +408,16 @@ interface ListEventsOptions {
|
|
|
408
408
|
}
|
|
409
409
|
type ListEventsResponse = Event[];
|
|
410
410
|
type MenuItemType = 'dish' | 'beverage';
|
|
411
|
+
/**
|
|
412
|
+
* Crop area coordinates for assets.
|
|
413
|
+
* Re-exported from @kolaveri/molecules Cropper component for type consistency.
|
|
414
|
+
*/
|
|
415
|
+
interface CropArea {
|
|
416
|
+
x: number;
|
|
417
|
+
y: number;
|
|
418
|
+
width: number;
|
|
419
|
+
height: number;
|
|
420
|
+
}
|
|
411
421
|
interface MenuAsset {
|
|
412
422
|
id: string;
|
|
413
423
|
type: 'image' | 'video' | 'document';
|
|
@@ -419,6 +429,8 @@ interface MenuAsset {
|
|
|
419
429
|
height?: number;
|
|
420
430
|
duration?: number;
|
|
421
431
|
} | null;
|
|
432
|
+
/** Crop area to apply when processing this asset. Used by prebuild scripts. */
|
|
433
|
+
cropArea: CropArea | null;
|
|
422
434
|
publicUrl: string;
|
|
423
435
|
}
|
|
424
436
|
interface MenuDish {
|
|
@@ -437,6 +449,7 @@ interface MenuBeverage {
|
|
|
437
449
|
accessor: string;
|
|
438
450
|
name: Record<string, string>;
|
|
439
451
|
description: Record<string, string> | null;
|
|
452
|
+
assets?: MenuAsset[];
|
|
440
453
|
}
|
|
441
454
|
interface MenuItem {
|
|
442
455
|
id: string;
|
|
@@ -672,4 +685,4 @@ declare class Order3000Client {
|
|
|
672
685
|
constructor(config: Order3000ClientConfig);
|
|
673
686
|
}
|
|
674
687
|
|
|
675
|
-
export { type Event, type EventPoster, type EventRow, type GetMenuOptions, type ListEventsOptions, type ListEventsResponse, type Menu, type MenuAsset, type MenuBeverage, type MenuDish, type MenuItem, type MenuItemRow, type MenuItemType, Order3000Client, type Order3000ClientConfig, type Promotion, type RealtimeConfig, type RealtimeEvent, type RealtimeSubscription, type Schedule, type ScheduleOverride, type ScheduleOverrideRow, type ScheduleRow, type SubscriptionOptions, type TimeSlot };
|
|
688
|
+
export { type CropArea, type Event, type EventPoster, type EventRow, type GetMenuOptions, type ListEventsOptions, type ListEventsResponse, type Menu, type MenuAsset, type MenuBeverage, type MenuDish, type MenuItem, type MenuItemRow, type MenuItemType, Order3000Client, type Order3000ClientConfig, type Promotion, type RealtimeConfig, type RealtimeEvent, type RealtimeSubscription, type Schedule, type ScheduleOverride, type ScheduleOverrideRow, type ScheduleRow, type SubscriptionOptions, type TimeSlot };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "order3000",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "order3000 node.js sdk",
|
|
5
5
|
"main": "./dist/client.cjs",
|
|
6
6
|
"module": "./dist/client.mjs",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"@types/node": "^24.10.0",
|
|
27
27
|
"openapi-typescript": "^7.6.1",
|
|
28
28
|
"pkgroll": "^2.11.2",
|
|
29
|
-
"prettier": "^3.
|
|
29
|
+
"prettier": "^3.7.4",
|
|
30
30
|
"tsx": "^4.19.2",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"@kolaveri/
|
|
32
|
+
"@kolaveri/prettier-config": "1.0.6",
|
|
33
33
|
"@kolaveri/tsconfig": "1.0.1",
|
|
34
|
-
"@kolaveri/
|
|
34
|
+
"@kolaveri/eslint-config": "1.0.9"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist"
|