@seatsio/seatsio-types 5.7.0 → 5.8.0
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/index.d.ts +33 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -350,6 +350,8 @@ export interface BaseEventManagerConfigOptions extends CommonConfigOptions, Extr
|
|
|
350
350
|
* Allows to toggle on or off some features of the cursor tooltip, displayed when hovering objects when using pointing devices like a mouse, or when tapping on an object on touch devices.
|
|
351
351
|
*/
|
|
352
352
|
messages?: EventAndChartManagerStrings;
|
|
353
|
+
selectedObjects?: (string | SelectedAmount)[];
|
|
354
|
+
extraConfig?: ExtraConfig;
|
|
353
355
|
objectTooltip?: {
|
|
354
356
|
/**
|
|
355
357
|
* Show the orderId in the tooltip if present.
|
|
@@ -412,7 +414,6 @@ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerCon
|
|
|
412
414
|
maxSelectedObjects?: SelectionLimiter;
|
|
413
415
|
numberOfPlacesToSelect?: number;
|
|
414
416
|
isObjectSelectable?: (object: SelectableObject) => boolean;
|
|
415
|
-
selectedObjects?: (string | SelectedAmount)[];
|
|
416
417
|
selectionBy?: 'places' | 'objects';
|
|
417
418
|
ticketTypes?: TicketTypeJsonWithoutPrice[];
|
|
418
419
|
tooltipContents?: (object: object) => string;
|
|
@@ -442,13 +443,42 @@ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerCon
|
|
|
442
443
|
showChannel?: boolean;
|
|
443
444
|
};
|
|
444
445
|
}
|
|
446
|
+
export interface EventManagerCreateOrderModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
447
|
+
mode: 'createOrder';
|
|
448
|
+
pricing?: Pricing;
|
|
449
|
+
priceFormatter?: (price: number) => string;
|
|
450
|
+
selectionValidators?: SelectionValidator[];
|
|
451
|
+
maxSelectedObjects?: SelectionLimiter;
|
|
452
|
+
objectWithoutPricingSelectable?: boolean;
|
|
453
|
+
categoryFilter?: CategoryFilter;
|
|
454
|
+
availableCategories?: CategoryKey[];
|
|
455
|
+
unavailableCategories?: CategoryKey[];
|
|
456
|
+
filteredCategories?: CategoryKey[];
|
|
457
|
+
session?: Session;
|
|
458
|
+
holdToken?: string;
|
|
459
|
+
showLegend?: boolean;
|
|
460
|
+
legend?: Legend;
|
|
461
|
+
channels?: string[];
|
|
462
|
+
numberOfPlacesToSelect?: number;
|
|
463
|
+
onFilteredCategoriesChanged?: (categories: Category[]) => void;
|
|
464
|
+
onHoldFailed?: (objects: BookableObject[], ticketTypes: TicketTypeJson[]) => void;
|
|
465
|
+
onHoldSucceeded?: (objects: BookableObject[], ticketTypes: TicketTypeJson[]) => void;
|
|
466
|
+
onHoldTokenExpired?: () => void;
|
|
467
|
+
onReleaseHoldFailed?: (objects: BookableObject[], ticketTypes: TicketTypeJson[]) => void;
|
|
468
|
+
onReleaseHoldSucceeded?: (objects: BookableObject[], ticketTypes: TicketTypeJson[]) => void;
|
|
469
|
+
onSelectionInvalid?: (violations: string[]) => void;
|
|
470
|
+
onSelectionValid?: () => void;
|
|
471
|
+
onSessionInitialized?: (holdToken: HoldToken) => void;
|
|
472
|
+
onHoldCallsInProgress?: () => void;
|
|
473
|
+
onHoldCallsComplete?: () => void;
|
|
474
|
+
}
|
|
445
475
|
export interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
446
476
|
mode: 'static';
|
|
447
477
|
onObjectMouseOver?: (object: SelectableObject) => void;
|
|
448
478
|
onObjectMouseOut?: (object: SelectableObject) => void;
|
|
449
479
|
tooltipContents?: (object: object) => string;
|
|
450
480
|
}
|
|
451
|
-
export type EventManagerConfigOptions = EventManagerManageObjectStatusesModeConfigOptions | EventManagerManageChannelsModeConfigOptions | EventManagerManageCategoriesModeConfigOptions | EventManagerSelectModeConfigOptions | EventManagerFilterSectionsModeConfigOptions | EventManagerStaticModeConfigOptions | (BaseEventManagerConfigOptions & WithEvent);
|
|
481
|
+
export type EventManagerConfigOptions = EventManagerManageObjectStatusesModeConfigOptions | EventManagerManageChannelsModeConfigOptions | EventManagerManageCategoriesModeConfigOptions | EventManagerSelectModeConfigOptions | EventManagerFilterSectionsModeConfigOptions | EventManagerStaticModeConfigOptions | EventManagerCreateOrderModeConfigOptions | (BaseEventManagerConfigOptions & WithEvent);
|
|
452
482
|
export type ChartDesignerConfigOptions = ChartDesignerNormalModeConfigOptions | ChartDesignerReadOnlyModeConfigOptions | ChartDesignerSafeModeConfigOptions;
|
|
453
483
|
export type ChartDesignerMode = 'normal' | 'readOnly' | 'safe';
|
|
454
484
|
export interface BaseChartDesignerConfigOptions {
|
|
@@ -818,7 +848,7 @@ export type DeprecatedConfigProperties = {
|
|
|
818
848
|
showRowLines?: boolean;
|
|
819
849
|
};
|
|
820
850
|
export type ChartRendererMode = 'normal' | 'print' | 'spotlight' | 'static';
|
|
821
|
-
export type EventManagerMode = 'filterSections' | 'manageCategories' | 'manageChannels' | 'manageForSaleConfig' | 'manageObjectStatuses' | 'manageTableBooking' | 'select' | 'static';
|
|
851
|
+
export type EventManagerMode = 'filterSections' | 'manageCategories' | 'manageChannels' | 'manageForSaleConfig' | 'manageObjectStatuses' | 'manageTableBooking' | 'select' | 'static' | 'createOrder';
|
|
822
852
|
export type SimplePricing = {
|
|
823
853
|
category: CategoryKey;
|
|
824
854
|
originalPrice?: number;
|