order3000 0.8.0 → 0.8.2
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 +18 -3
- package/dist/client.d.mts +18 -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,12 +429,15 @@ 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 {
|
|
425
437
|
id: string;
|
|
426
438
|
accessor: string;
|
|
427
439
|
name: Record<string, string>;
|
|
440
|
+
shortName?: Record<string, string>;
|
|
428
441
|
description: Record<string, string> | null;
|
|
429
442
|
isVegetarian: boolean | null;
|
|
430
443
|
isVegan: boolean | null;
|
|
@@ -436,7 +449,9 @@ interface MenuBeverage {
|
|
|
436
449
|
id: string;
|
|
437
450
|
accessor: string;
|
|
438
451
|
name: Record<string, string>;
|
|
452
|
+
shortName?: Record<string, string>;
|
|
439
453
|
description: Record<string, string> | null;
|
|
454
|
+
assets?: MenuAsset[];
|
|
440
455
|
}
|
|
441
456
|
interface MenuItem {
|
|
442
457
|
id: string;
|
|
@@ -672,4 +687,4 @@ declare class Order3000Client {
|
|
|
672
687
|
constructor(config: Order3000ClientConfig);
|
|
673
688
|
}
|
|
674
689
|
|
|
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 };
|
|
690
|
+
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,12 +429,15 @@ 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 {
|
|
425
437
|
id: string;
|
|
426
438
|
accessor: string;
|
|
427
439
|
name: Record<string, string>;
|
|
440
|
+
shortName?: Record<string, string>;
|
|
428
441
|
description: Record<string, string> | null;
|
|
429
442
|
isVegetarian: boolean | null;
|
|
430
443
|
isVegan: boolean | null;
|
|
@@ -436,7 +449,9 @@ interface MenuBeverage {
|
|
|
436
449
|
id: string;
|
|
437
450
|
accessor: string;
|
|
438
451
|
name: Record<string, string>;
|
|
452
|
+
shortName?: Record<string, string>;
|
|
439
453
|
description: Record<string, string> | null;
|
|
454
|
+
assets?: MenuAsset[];
|
|
440
455
|
}
|
|
441
456
|
interface MenuItem {
|
|
442
457
|
id: string;
|
|
@@ -672,4 +687,4 @@ declare class Order3000Client {
|
|
|
672
687
|
constructor(config: Order3000ClientConfig);
|
|
673
688
|
}
|
|
674
689
|
|
|
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 };
|
|
690
|
+
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.2",
|
|
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
32
|
"@kolaveri/eslint-config": "1.0.9",
|
|
33
|
-
"@kolaveri/
|
|
34
|
-
"@kolaveri/
|
|
33
|
+
"@kolaveri/prettier-config": "1.0.6",
|
|
34
|
+
"@kolaveri/tsconfig": "1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist"
|