seatsio 75.0.0 → 75.1.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.
Files changed (55) hide show
  1. package/dist/src/Accounts/Account.d.ts +10 -0
  2. package/dist/src/Accounts/AccountSettings.d.ts +8 -0
  3. package/dist/src/Accounts/Accounts.d.ts +12 -0
  4. package/dist/src/Accounts/ChartValidationSettings.d.ts +9 -0
  5. package/dist/src/Accounts/DefaultRendererSettings.d.ts +5 -0
  6. package/dist/src/AsyncIterator.d.ts +25 -0
  7. package/dist/src/Charts/Category.d.ts +12 -0
  8. package/dist/src/Charts/Chart.d.ts +15 -0
  9. package/dist/src/Charts/ChartListParams.d.ts +20 -0
  10. package/dist/src/Charts/ChartObjectInfo.d.ts +17 -0
  11. package/dist/src/Charts/ChartValidation.d.ts +5 -0
  12. package/dist/src/Charts/Charts.d.ts +36 -0
  13. package/dist/src/Charts/SocialDistancingRuleset.d.ts +42 -0
  14. package/dist/src/Common/IDs.d.ts +6 -0
  15. package/dist/src/Common/Labels.d.ts +13 -0
  16. package/dist/src/Events/BestAvailableObjects.d.ts +6 -0
  17. package/dist/src/Events/ChangeObjectStatusResult.d.ts +4 -0
  18. package/dist/src/Events/Channel.d.ts +8 -0
  19. package/dist/src/Events/Channels.d.ts +11 -0
  20. package/dist/src/Events/Event.d.ts +20 -0
  21. package/dist/src/Events/EventDeserializer.d.ts +4 -0
  22. package/dist/src/Events/EventObjectInfo.d.ts +38 -0
  23. package/dist/src/Events/Events.d.ts +36 -0
  24. package/dist/src/Events/ForSaleConfig.d.ts +7 -0
  25. package/dist/src/Events/ObjectProperties.d.ts +10 -0
  26. package/dist/src/Events/StatusChange.d.ts +16 -0
  27. package/dist/src/Events/StatusChangeRequest.d.ts +13 -0
  28. package/dist/src/Events/StatusChangesParams.d.ts +18 -0
  29. package/dist/src/Events/TableBookingConfig.d.ts +9 -0
  30. package/dist/src/HoldTokens/HoldToken.d.ts +7 -0
  31. package/dist/src/HoldTokens/HoldTokens.d.ts +7 -0
  32. package/dist/src/Invitations/Invitation.d.ts +7 -0
  33. package/dist/src/Invitations/Invitations.d.ts +5 -0
  34. package/dist/src/Lister.d.ts +12 -0
  35. package/dist/src/Page.d.ts +15 -0
  36. package/dist/src/PageFetcher.d.ts +9 -0
  37. package/dist/src/Region.d.ts +9 -0
  38. package/dist/src/Reports/ChartReports.d.ts +15 -0
  39. package/dist/src/Reports/EventReports.d.ts +33 -0
  40. package/dist/src/Reports/UsageReports.d.ts +9 -0
  41. package/dist/src/Seasons/Season.d.ts +7 -0
  42. package/dist/src/Seasons/SeasonParams.d.ts +12 -0
  43. package/dist/src/Seasons/Seasons.d.ts +11 -0
  44. package/dist/src/SeatsioClient.d.ts +31 -0
  45. package/dist/src/Subaccounts/Subaccount.d.ts +9 -0
  46. package/dist/src/Subaccounts/Subaccounts.d.ts +21 -0
  47. package/dist/src/Users/User.d.ts +13 -0
  48. package/dist/src/Users/Users.d.ts +14 -0
  49. package/dist/src/Workspaces/Workspace.d.ts +11 -0
  50. package/dist/src/Workspaces/Workspaces.d.ts +27 -0
  51. package/dist/src/errorInterceptor.d.ts +1 -0
  52. package/dist/src/index.d.ts +7 -0
  53. package/dist/src/utilities/helperFunctions.d.ts +4 -0
  54. package/dist/src/utilities/reportUtility.d.ts +5 -0
  55. package/package.json +2 -2
@@ -0,0 +1,10 @@
1
+ export declare class Account {
2
+ company: any;
3
+ designerKey: any;
4
+ email: any;
5
+ publicKey: any;
6
+ role: any;
7
+ secretKey: any;
8
+ settings: any;
9
+ constructor(account: any);
10
+ }
@@ -0,0 +1,8 @@
1
+ export declare class AccountSettings {
2
+ chartValidation: any;
3
+ defaultRendererSettings: any;
4
+ draftChartDrawingsEnabled: any;
5
+ holdOnSelectForGAs: any;
6
+ holdPeriodInMinutes: any;
7
+ constructor(settings: any);
8
+ }
@@ -0,0 +1,12 @@
1
+ export declare class Accounts {
2
+ private client;
3
+ constructor(client: any);
4
+ retrieveMyAccount(): any;
5
+ regenerateSecretKey(): any;
6
+ regenerateDesignerKey(): any;
7
+ enableDraftChartDrawings(): any;
8
+ disableDraftChartDrawings(): any;
9
+ changePassword(password: any): any;
10
+ changeHoldPeriod(holdPeriodInMinutes: any): any;
11
+ updateSetting(key: any, value: any): any;
12
+ }
@@ -0,0 +1,9 @@
1
+ export declare class ChartValidationSettings {
2
+ VALIDATE_DUPLICATE_LABELS: any;
3
+ VALIDATE_EMPTY_FLOOR: any;
4
+ VALIDATE_FOCAL_POINT: any;
5
+ VALIDATE_OBJECTS_WITHOUT_CATEGORIES: any;
6
+ VALIDATE_OBJECT_TYPES_PER_CATEGORY: any;
7
+ VALIDATE_UNLABELED_OBJECTS: any;
8
+ constructor(chartValidations: any);
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare class DefaultRendererSettings {
2
+ multiSelectEnabled: any;
3
+ showFullScreenButton: any;
4
+ constructor(defaultRendererSettings: any);
5
+ }
@@ -0,0 +1,25 @@
1
+ export declare class AsyncIterator {
2
+ client: any;
3
+ index: any;
4
+ items: any;
5
+ nextPageMustBeFetched: any;
6
+ nextPageStartsAfter: any;
7
+ objType: any;
8
+ pages: any;
9
+ params: any;
10
+ url: any;
11
+ constructor(url: any, client: any, objType: any, params?: {});
12
+ charts(data: any): void;
13
+ events(data: any): void;
14
+ seasons(data: any): void;
15
+ statusChanges(data: any): void;
16
+ subaccounts(data: any): void;
17
+ workspaces(data: any): void;
18
+ users(data: any): void;
19
+ fetch(fetchParams?: {}): any;
20
+ [Symbol.asyncIterator](): {
21
+ next(): Promise<{
22
+ done: boolean;
23
+ }>;
24
+ };
25
+ }
@@ -0,0 +1,12 @@
1
+ export declare class Category {
2
+ accessible: any;
3
+ color: any;
4
+ key: any;
5
+ label: any;
6
+ constructor(key: any, label: any, color: any, accessible?: boolean);
7
+ setKey(key: any): this;
8
+ setLabel(label: any): this;
9
+ setColor(color: any): this;
10
+ setAccessible(accessible: any): this;
11
+ static fromJson(json: any): Category;
12
+ }
@@ -0,0 +1,15 @@
1
+ export declare class Chart {
2
+ archived: any;
3
+ draftVersionThumbnailUrl: any;
4
+ events: any;
5
+ id: any;
6
+ key: any;
7
+ name: any;
8
+ publishedVersionThumbnailUrl: any;
9
+ socialDistancingRulesets: any;
10
+ status: any;
11
+ tags: any;
12
+ validation: any;
13
+ constructor(chart: any);
14
+ static socialDistancingRulesetsFromJson(json: any): {} | undefined;
15
+ }
@@ -0,0 +1,20 @@
1
+ export declare class ChartListParams {
2
+ eventsLimit: any;
3
+ expand: any;
4
+ filter: any;
5
+ tag: any;
6
+ validation: any;
7
+ constructor(filter?: null, tag?: null, expandEvents?: null, withValidation?: boolean, eventsLimit?: null);
8
+ withFilter(filter: any): this;
9
+ withTag(tag: any): this;
10
+ withExpandEvents(expandEvents: any): this;
11
+ withEventsLimit(eventsLimit: any): this;
12
+ withValidation(validation: any): this;
13
+ serialize(): {
14
+ tag: any;
15
+ expand: any;
16
+ filter: any;
17
+ validation: any;
18
+ eventsLimit: any;
19
+ };
20
+ }
@@ -0,0 +1,17 @@
1
+ export declare class ChartObjectInfo {
2
+ bookAsAWhole: any;
3
+ capacity: any;
4
+ categoryKey: any;
5
+ categoryLabel: any;
6
+ distanceToFocalPoint: any;
7
+ entrance: any;
8
+ ids: any;
9
+ label: any;
10
+ labels: any;
11
+ leftNeighbour: any;
12
+ numSeats: any;
13
+ objectType: any;
14
+ rightNeighbour: any;
15
+ section: any;
16
+ constructor(chartReport: any);
17
+ }
@@ -0,0 +1,5 @@
1
+ export declare class ChartValidation {
2
+ errors: any;
3
+ warnings: any;
4
+ constructor(validation: any);
5
+ }
@@ -0,0 +1,36 @@
1
+ import { Lister } from '../Lister';
2
+ export declare class Charts {
3
+ archive: any;
4
+ client: any;
5
+ constructor(client: any);
6
+ create(name?: null, venueType?: null, categories?: null): any;
7
+ update(key: any, name?: null, categories?: null): any;
8
+ addCategory(key: any, category: any): any;
9
+ removeCategory(chartKey: any, categoryKey: any): any;
10
+ listCategories(key: any): any;
11
+ validatePublishedVersion(key: any): any;
12
+ validateDraftVersion(key: any): any;
13
+ retrieve(key: any): any;
14
+ retrieveWithEvents(key: any): any;
15
+ retrievePublishedVersion(key: any): any;
16
+ retrieveDraftVersion(key: any): any;
17
+ publishDraftVersion(key: any): any;
18
+ discardDraftVersion(key: any): any;
19
+ moveToArchive(key: any): any;
20
+ moveOutOfArchive(key: any): any;
21
+ copy(key: any): any;
22
+ copyDraftVersion(key: any): any;
23
+ copyToSubaccount(key: any, subaccountId: any): any;
24
+ copyToWorkspace(key: any, workspaceKey: any): any;
25
+ saveSocialDistancingRulesets(key: any, socialDistancingRulesets: any): any;
26
+ retrievePublishedVersionThumbnail(key: any): any;
27
+ retrieveDraftVersionThumbnail(key: any): any;
28
+ listAllTags(): any;
29
+ addTag(key: any, tag: any): any;
30
+ removeTag(key: any, tag: any): any;
31
+ listAll(requestParameters?: {}): import("../AsyncIterator").AsyncIterator;
32
+ listFirstPage(chartListParams?: null, pageSize?: null): any;
33
+ listPageAfter(afterId: any, chartListParameters?: null, pageSize?: null): any;
34
+ listPageBefore(beforeId: any, chartListParameters?: null, pageSize?: null): any;
35
+ iterator(): Lister;
36
+ }
@@ -0,0 +1,42 @@
1
+ export declare class SocialDistancingRuleset {
2
+ static fixed(name: any): FixedSocialDistancingRulesetBuilder;
3
+ static ruleBased(name: any): RuleBasedSocialDistancingRulesetBuilder;
4
+ static fromJson(json: any): SocialDistancingRuleset;
5
+ }
6
+ declare class FixedSocialDistancingRulesetBuilder {
7
+ disabledSeats: any;
8
+ index: any;
9
+ name: any;
10
+ constructor(name: any);
11
+ build(): SocialDistancingRuleset;
12
+ setIndex(index: any): this;
13
+ setDisabledSeats(disabledSeats: any): this;
14
+ }
15
+ declare class RuleBasedSocialDistancingRulesetBuilder {
16
+ disableDiagonalSeatsInFrontAndBehind: any;
17
+ disableSeatsInFrontAndBehind: any;
18
+ disabledSeats: any;
19
+ enabledSeats: any;
20
+ index: any;
21
+ maxGroupSize: any;
22
+ maxOccupancyAbsolute: any;
23
+ maxOccupancyPercentage: any;
24
+ name: any;
25
+ numberOfDisabledAisleSeats: any;
26
+ numberOfDisabledSeatsToTheSides: any;
27
+ oneGroupPerTable: any;
28
+ constructor(name: any);
29
+ build(): SocialDistancingRuleset;
30
+ setIndex(index: any): this;
31
+ setNumberOfDisabledSeatsToTheSides(numberOfDisabledSeatsToTheSides: any): this;
32
+ setDisableSeatsInFrontAndBehind(disableSeatsInFrontAndBehind: any): this;
33
+ setDisableDiagonalSeatsInFrontAndBehind(disableDiagonalSeatsInFrontAndBehind: any): this;
34
+ setNumberOfDisabledAisleSeats(numberOfDisabledAisleSeats: any): this;
35
+ setMaxGroupSize(maxGroupSize: any): this;
36
+ setMaxOccupancyAbsolute(maxOccupancyAbsolute: any): this;
37
+ setMaxOccupancyPercentage(maxOccupancyPercentage: any): this;
38
+ setOneGroupPerTable(oneGroupPerTable: any): this;
39
+ setDisabledSeats(disabledSeats: any): this;
40
+ setEnabledSeats(enabledSeats: any): this;
41
+ }
42
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare class IDs {
2
+ own: any;
3
+ parent: any;
4
+ section: any;
5
+ constructor(own: any, parent?: any, section?: any);
6
+ }
@@ -0,0 +1,13 @@
1
+ export declare class Labels {
2
+ own: any;
3
+ parent: any;
4
+ private section?;
5
+ constructor(own: any, parent?: any);
6
+ setSection(value: any): void;
7
+ getSection(): any;
8
+ }
9
+ export declare class LabelAndType {
10
+ label: any;
11
+ type: any;
12
+ constructor(label: any, type: any);
13
+ }
@@ -0,0 +1,6 @@
1
+ export declare class BestAvailableObjects {
2
+ nextToEachOther: any;
3
+ objectDetails: any;
4
+ objects: any;
5
+ constructor(data: any);
6
+ }
@@ -0,0 +1,4 @@
1
+ export declare class ChangeObjectStatusResult {
2
+ objects: any;
3
+ constructor(objects: any);
4
+ }
@@ -0,0 +1,8 @@
1
+ export declare class Channel {
2
+ color: any;
3
+ index: any;
4
+ key: any;
5
+ name: any;
6
+ objects: any;
7
+ constructor(channel: any);
8
+ }
@@ -0,0 +1,11 @@
1
+ export declare class Channels {
2
+ client: any;
3
+ constructor(client: any);
4
+ add(eventKey: any, channelKey: any, name: any, color: any, index: any, objects: any): any;
5
+ addMultiple(eventKey: any, channelCreationParams: any): any;
6
+ remove(eventKey: any, channelKey: any): any;
7
+ update(eventKey: any, channelKey: any, newChannelName: any, newColor: any, newObjects: any): any;
8
+ addObjects(eventKey: any, channelKey: any, objects: any): any;
9
+ removeObjects(eventKey: any, channelKey: any, objects: any): any;
10
+ replace(eventKey: any, channels: any): any;
11
+ }
@@ -0,0 +1,20 @@
1
+ export declare class Event {
2
+ categories: any;
3
+ channels: any;
4
+ chartKey: any;
5
+ createdOn: any;
6
+ forSaleConfig: any;
7
+ id: any;
8
+ isEventInSeason: any;
9
+ isPartialSeason: any;
10
+ isTopLevelSeason: any;
11
+ key: any;
12
+ objectCategories: any;
13
+ socialDistancingRulesetKey: any;
14
+ supportsBestAvailable: any;
15
+ tableBookingConfig: any;
16
+ topLevelSeasonKey: any;
17
+ updatedOn: any;
18
+ constructor(json: any);
19
+ isSeason(): boolean;
20
+ }
@@ -0,0 +1,4 @@
1
+ import { Event } from './Event';
2
+ export declare class EventDeserializer {
3
+ fromJson(event: any): Event;
4
+ }
@@ -0,0 +1,38 @@
1
+ export declare class EventObjectInfo {
2
+ static FREE: string;
3
+ static BOOKED: string;
4
+ static HELD: string;
5
+ availabilityReason: any;
6
+ bookAsAWhole: any;
7
+ capacity: any;
8
+ categoryKey: any;
9
+ categoryLabel: any;
10
+ channel: any;
11
+ displayedObjectType: any;
12
+ distanceToFocalPoint: any;
13
+ entrance: any;
14
+ extraData: any;
15
+ forSale: any;
16
+ hasRestrictedView: any;
17
+ holdToken: any;
18
+ holds: any;
19
+ ids: any;
20
+ isAccessible: any;
21
+ isAvailable: any;
22
+ isCompanionSeat: any;
23
+ isDisabledBySocialDistancing: any;
24
+ label: any;
25
+ labels: any;
26
+ leftNeighbour: any;
27
+ numBooked: any;
28
+ numFree: any;
29
+ numHeld: any;
30
+ numSeats: any;
31
+ objectType: any;
32
+ orderId: any;
33
+ rightNeighbour: any;
34
+ section: any;
35
+ status: any;
36
+ ticketType: any;
37
+ constructor(report: any);
38
+ }
@@ -0,0 +1,36 @@
1
+ import { Lister } from '../Lister';
2
+ export declare class Events {
3
+ channels: any;
4
+ client: any;
5
+ constructor(client: any);
6
+ create(chartKey: any, eventKey?: null, tableBookingConfig?: null, socialDistancingRulesetKey?: null, objectCategories?: null, categories?: null): any;
7
+ static eventCreationParams(eventKey?: null, tableBookingConfig?: null, socialDistancingRulesetKey?: null, objectCategories?: null, categories?: null): {};
8
+ createMultiple(chartKey: any, events: any): any;
9
+ retrieve(eventKey: any): any;
10
+ update(eventKey: any, chartKey?: null, newEventKey?: null, tableBookingConfig?: null, socialDistancingRulesetKey?: null, objectCategories?: null, categories?: null): any;
11
+ delete(eventKey: any): any;
12
+ listAll(requestParameters?: {}): import("../AsyncIterator").AsyncIterator;
13
+ listFirstPage(pageSize?: null): any;
14
+ listPageAfter(afterId: any, pageSize?: null): any;
15
+ listPageBefore(beforeId: any, pageSize?: null): any;
16
+ iterator(): Lister;
17
+ statusChanges(eventKey: any): Lister;
18
+ statusChangesForObject(eventKey: any, objectId?: null): Lister;
19
+ markAsForSale(eventKey: any, objects?: null, areaPlaces?: null, categories?: null): any;
20
+ markAsNotForSale(eventKey: any, objects?: null, areaPlaces?: null, categories?: null): any;
21
+ markEverythingAsForSale(eventKey: any): any;
22
+ updateExtraData(eventKey: any, obj: any, extraData: any): any;
23
+ updateExtraDatas(eventKey: any, extraData: any): any;
24
+ retrieveObjectInfo(eventKey: any, label: any): Promise<any>;
25
+ retrieveObjectInfos(eventKey: any, labels: any): any;
26
+ changeObjectStatus(eventKeyOrKeys: any, objectOrObjects: any, status: any, holdToken?: null, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null, ignoreSocialDistancing?: null, allowedPreviousStatuses?: null, rejectedPreviousStatuses?: null): any;
27
+ changeObjectStatusInBatch(statusChangeRequests: any): any;
28
+ changeObjectStatusRequest(objectOrObjects: any, status: any, holdToken: any, orderId: any, keepExtraData: any, ignoreChannels: any, channelKeys: any, ignoreSocialDistancing: any, allowedPreviousStatuses: any, rejectedPreviousStatuses: any): {};
29
+ book(eventKeyOrKeys: any, objectOrObjects: any, holdToken?: null, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null, ignoreSocialDistancing?: null): any;
30
+ bookBestAvailable(eventKey: any, number: any, categories?: null, holdToken?: null, extraData?: null, ticketTypes?: null, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null, tryToPreventOrphanSeats?: null): any;
31
+ release(eventKeyOrKeys: any, objectOrObjects: any, holdToken?: null, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null): any;
32
+ hold(eventKeyOrKeys: any, objectOrObjects: any, holdToken: any, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null, ignoreSocialDistancing?: null): any;
33
+ holdBestAvailable(eventKey: any, number: any, holdToken: any, categories?: null, extraData?: null, ticketTypes?: null, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null, tryToPreventOrphanSeats?: null): any;
34
+ changeBestAvailableObjectStatus(eventKey: any, number: any, status: any, categories?: null, holdToken?: null, extraData?: null, ticketTypes?: null, orderId?: null, keepExtraData?: null, ignoreChannels?: null, channelKeys?: null, tryToPreventOrphanSeats?: null): any;
35
+ normalizeObjects(objectOrObjects: any): any;
36
+ }
@@ -0,0 +1,7 @@
1
+ export declare class ForSaleConfig {
2
+ areaPlaces: any;
3
+ categories: any;
4
+ forSale: any;
5
+ objects: any;
6
+ constructor(forSale: any, objects: any, areaPlaces: any, categories: any);
7
+ }
@@ -0,0 +1,10 @@
1
+ export declare class ObjectProperties {
2
+ extraData: any;
3
+ objectId: any;
4
+ quantity: any;
5
+ ticketType: any;
6
+ constructor(objectId: any);
7
+ setTicketType(ticketType: any): this;
8
+ setQuantity(quantity: any): this;
9
+ setExtraData(extraData: any): this;
10
+ }
@@ -0,0 +1,16 @@
1
+ export declare class StatusChange {
2
+ date: any;
3
+ displayedLabel: any;
4
+ eventId: any;
5
+ extraData: any;
6
+ holdToken: any;
7
+ id: any;
8
+ isPresentOnChart: any;
9
+ notPresentOnChartReason: any;
10
+ objectLabel: any;
11
+ orderId: any;
12
+ origin: any;
13
+ quantity: any;
14
+ status: any;
15
+ constructor(statusChange: any);
16
+ }
@@ -0,0 +1,13 @@
1
+ export declare class StatusChangeRequest {
2
+ allowedPreviousStatuses: any;
3
+ channelKeys: any;
4
+ eventKey: any;
5
+ holdToken: any;
6
+ ignoreChannels: any;
7
+ keepExtraData: any;
8
+ objectOrObjects: any;
9
+ orderId: any;
10
+ rejectedPreviousStatuses: any;
11
+ status: any;
12
+ constructor(eventKey: any, objectOrObjects: any, status: any, holdToken: any, orderId: any, keepExtraData: any, ignoreChannels: any, channelKeys: any, allowedPreviousStatuses: any, rejectedPreviousStatuses: any);
13
+ }
@@ -0,0 +1,18 @@
1
+ export declare class StatusChangesParams {
2
+ filter: any;
3
+ filterType: any;
4
+ sortDirection: any;
5
+ sortField: any;
6
+ constructor(filter?: null, filterType?: string);
7
+ sortByObjectLabel(): this;
8
+ sortByStatus(): this;
9
+ sortByDate(): this;
10
+ sortAscending(): this;
11
+ sortDescending(): this;
12
+ withFilter(filter: any, filterType?: string): this;
13
+ serialize(): {
14
+ filter: any;
15
+ filterType: any;
16
+ sort: string | null;
17
+ };
18
+ }
@@ -0,0 +1,9 @@
1
+ export declare class TableBookingConfig {
2
+ mode: any;
3
+ tables: any;
4
+ constructor(mode: any, tables: any);
5
+ static inherit(): TableBookingConfig;
6
+ static allByTable(): TableBookingConfig;
7
+ static allBySeat(): TableBookingConfig;
8
+ static custom(tables: any): TableBookingConfig;
9
+ }
@@ -0,0 +1,7 @@
1
+ export declare class HoldToken {
2
+ expiresAt: any;
3
+ expiresInSeconds: any;
4
+ holdToken: any;
5
+ workspaceKey: any;
6
+ constructor(holdToken: any);
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class HoldTokens {
2
+ client: any;
3
+ constructor(client: any);
4
+ create(expiresInMinutes?: null): any;
5
+ expiresInMinutes(holdToken: any, minutes: any): any;
6
+ retrieve(holdToken: any): any;
7
+ }
@@ -0,0 +1,7 @@
1
+ export declare class Invitation {
2
+ date: any;
3
+ email: any;
4
+ id: any;
5
+ status: any;
6
+ constructor(json: any);
7
+ }
@@ -0,0 +1,5 @@
1
+ export declare class Invitations {
2
+ client: any;
3
+ constructor(client: any);
4
+ listAll(): any;
5
+ }
@@ -0,0 +1,12 @@
1
+ import { AsyncIterator } from './AsyncIterator';
2
+ export declare class Lister {
3
+ client: any;
4
+ pageFetcher: any;
5
+ type: any;
6
+ url: any;
7
+ constructor(url: any, client: any, type: any, pageCreatorFunction: any);
8
+ all(parameters?: {}): AsyncIterator;
9
+ firstPage(queryParams?: any, pageSize?: null): any;
10
+ pageAfter(afterId: any, queryParams?: any, pageSize?: null): any;
11
+ pageBefore(beforeId: any, queryParams?: any, pageSize?: null): any;
12
+ }
@@ -0,0 +1,15 @@
1
+ export declare class Page {
2
+ items: any;
3
+ nextPageStartsAfter: any;
4
+ previousPageEndsBefore: any;
5
+ constructor(items: any, afterId?: null, beforeId?: null);
6
+ [Symbol.iterator](): {
7
+ next(): {
8
+ value: any;
9
+ done: boolean;
10
+ } | {
11
+ done: boolean;
12
+ value?: undefined;
13
+ };
14
+ };
15
+ }
@@ -0,0 +1,9 @@
1
+ export declare class PageFetcher {
2
+ client: any;
3
+ pageCreator: any;
4
+ url: any;
5
+ constructor(url: any, client: any, pageCreator: any);
6
+ fetchAfter(afterId: any, queryParameters: any, pageSize: any): Promise<any>;
7
+ fetchBefore(beforeId: any, queryParameters: any, pageSize: any): Promise<any>;
8
+ fetch(queryParameters: any, pageSize: any): Promise<any>;
9
+ }
@@ -0,0 +1,9 @@
1
+ export declare class Region {
2
+ url: any;
3
+ static EU(): Region;
4
+ static NA(): Region;
5
+ static SA(): Region;
6
+ static OC(): Region;
7
+ constructor(url: any);
8
+ static urlForId(id: any): string;
9
+ }
@@ -0,0 +1,15 @@
1
+ export declare class ChartReports {
2
+ client: any;
3
+ constructor(client: any);
4
+ byLabel(chartKey: any, bookWholeTables?: undefined): any;
5
+ byObjectType(chartKey: any, bookWholeTables?: undefined): any;
6
+ summaryByObjectType(chartKey: any, bookWholeTables?: undefined): any;
7
+ byCategoryLabel(chartKey: any, bookWholeTables?: undefined): any;
8
+ summaryByCategoryLabel(chartKey: any, bookWholeTables?: undefined): any;
9
+ byCategoryKey(chartKey: any, bookWholeTables?: undefined): any;
10
+ summaryByCategoryKey(chartKey: any, bookWholeTables?: undefined): any;
11
+ bySection(chartKey: any, bookWholeTables?: undefined): any;
12
+ summaryBySection(chartKey: any, bookWholeTables?: undefined): any;
13
+ fetchReport(reportType: any, chartKey: any, bookWholeTables: any): any;
14
+ fetchSummaryReport(reportType: any, chartKey: any, bookWholeTables: any): any;
15
+ }
@@ -0,0 +1,33 @@
1
+ export declare class EventReports {
2
+ client: any;
3
+ constructor(client: any);
4
+ byStatus(eventKey: any, status?: null): any;
5
+ summaryByStatus(eventKey: any): any;
6
+ deepSummaryByStatus(eventKey: any): any;
7
+ byObjectType(eventKey: any, objectType?: null): any;
8
+ summaryByObjectType(eventKey: any): any;
9
+ deepSummaryByObjectType(eventKey: any): any;
10
+ byCategoryLabel(eventKey: any, categoryLabel?: null): any;
11
+ summaryByCategoryLabel(eventKey: any): any;
12
+ deepSummaryByCategoryLabel(eventKey: any): any;
13
+ byCategoryKey(eventKey: any, categoryKey?: null): any;
14
+ summaryByCategoryKey(eventKey: any): any;
15
+ deepSummaryByCategoryKey(eventKey: any): any;
16
+ byLabel(eventKey: any, label?: null): any;
17
+ byOrderId(eventKey: any, orderId?: null): any;
18
+ bySection(eventKey: any, section?: null): any;
19
+ summaryBySection(eventKey: any): any;
20
+ deepSummaryBySection(eventKey: any): any;
21
+ byAvailability(eventKey: any, availability?: null): any;
22
+ byAvailabilityReason(eventKey: any, availabilityReason?: null): any;
23
+ summaryByAvailability(eventKey: any): any;
24
+ summaryByAvailabilityReason(eventKey: any): any;
25
+ deepSummaryByAvailability(eventKey: any): any;
26
+ deepSummaryByAvailabilityReason(eventKey: any): any;
27
+ byChannel(eventKey: any, channel?: null): any;
28
+ summaryByChannel(eventKey: any): any;
29
+ deepSummaryByChannel(eventKey: any): any;
30
+ static reportUrl(reportType: any, eventKey: any, filter: any): string;
31
+ static summaryReportUrl(reportType: any, eventKey: any): string;
32
+ static deepSummaryReportUrl(reportType: any, eventKey: any): string;
33
+ }
@@ -0,0 +1,9 @@
1
+ export declare class UsageReports {
2
+ client: any;
3
+ constructor(client: any);
4
+ summaryForAllMonths(): any;
5
+ detailsForMonth(month: any): any;
6
+ detailsForEventInMonth(eventKey: any, month: any): any;
7
+ detailsForObjectInEventInMonth(objectLabel: any, eventKey: any, month: any): any;
8
+ subscription(): any;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { Event } from '../Events/Event';
2
+ export declare class Season extends Event {
3
+ events: any;
4
+ partialSeasonKeys: any;
5
+ constructor(season: any);
6
+ isSeason(): boolean;
7
+ }
@@ -0,0 +1,12 @@
1
+ export declare class SeasonParams {
2
+ _eventKeys: any;
3
+ _key: any;
4
+ _numberOfEvents: any;
5
+ _socialDistancingRulesetKey: any;
6
+ _tableBookingConfig: any;
7
+ key(key: any): this;
8
+ numberOfEvents(numberOfEvents: any): this;
9
+ eventKeys(eventKeys: any): this;
10
+ tableBookingConfig(tableBookingConfig: any): this;
11
+ socialDistancingRulesetKey(socialDistancingRulesetKey: any): this;
12
+ }
@@ -0,0 +1,11 @@
1
+ export declare class Seasons {
2
+ client: any;
3
+ seatsioClient: any;
4
+ constructor(client: any, seatsioClient: any);
5
+ create(chartKey: any, seasonParams?: null): any;
6
+ createPartialSeason(topLevelSeasonKey: any, partialSeasonKey?: null, eventKeys?: null): any;
7
+ createEvents(key: any, numberOfEvents?: null, eventKeys?: null): any;
8
+ addEventsToPartialSeason(topLevelSeasonKey: any, partialSeasonKey: any, eventKeys: any): any;
9
+ removeEventFromPartialSeason(topLevelSeasonKey: any, partialSeasonKey: any, eventKey: any): Promise<any>;
10
+ retrieve(key: any): any;
11
+ }
@@ -0,0 +1,31 @@
1
+ import { Region } from './Region';
2
+ export declare class SeatsioClient {
3
+ accounts: any;
4
+ chartReports: any;
5
+ charts: any;
6
+ client: any;
7
+ errInterceptor: any;
8
+ eventReports: any;
9
+ events: any;
10
+ holdTokens: any;
11
+ invitations: any;
12
+ requestListener: any;
13
+ seasons: any;
14
+ subaccounts: any;
15
+ usageReports: any;
16
+ users: any;
17
+ workspaces: any;
18
+ constructor(region: Region, secretKey?: any, workspaceKey?: null, extraHeaders?: {});
19
+ _axiosConfig(baseUrl: any, secretKey: any, workspaceKey: any, extraHeaders: any): {
20
+ baseURL: any;
21
+ auth: {
22
+ username: any;
23
+ password: null;
24
+ };
25
+ headers: any;
26
+ errorHandle: boolean;
27
+ };
28
+ _setupRequestListenerInterceptors(): void;
29
+ setRequestListener(requestListener: any): this;
30
+ setMaxRetries(maxRetries: any): this;
31
+ }
@@ -0,0 +1,9 @@
1
+ export declare class Subaccount {
2
+ active: any;
3
+ designerKey: any;
4
+ id: any;
5
+ name: any;
6
+ publicKey: any;
7
+ secretKey: any;
8
+ constructor(subaccount: any);
9
+ }
@@ -0,0 +1,21 @@
1
+ import { Lister } from '../Lister';
2
+ export declare class Subaccounts {
3
+ active: any;
4
+ client: any;
5
+ inactive: any;
6
+ constructor(client: any);
7
+ retrieve(id: any): any;
8
+ create(name?: null): any;
9
+ update(id: any, name?: null): any;
10
+ activate(id: any): any;
11
+ deactivate(id: any): any;
12
+ regenerateSecretKey(id: any): any;
13
+ regenerateDesignerKey(id: any): any;
14
+ copyChartToParent(id: any, chartKey: any): any;
15
+ copyChartToSubaccount(fromId: any, toId: any, chartKey: any): any;
16
+ listAll(filter?: null): import("../AsyncIterator").AsyncIterator;
17
+ listFirstPage(filter?: null, pageSize?: null): any;
18
+ listPageAfter(afterId: any, filter?: null, pageSize?: null): any;
19
+ listPageBefore(beforeId: any, filter?: null, pageSize?: null): any;
20
+ iterator(): Lister;
21
+ }
@@ -0,0 +1,13 @@
1
+ export declare class User {
2
+ createdOn: any;
3
+ designerKey: any;
4
+ email: any;
5
+ id: any;
6
+ isActive: any;
7
+ name: any;
8
+ role: any;
9
+ secretKey: any;
10
+ status: any;
11
+ workspaces: any;
12
+ constructor(userJson: any);
13
+ }
@@ -0,0 +1,14 @@
1
+ import { Lister } from '../Lister';
2
+ export declare class Users {
3
+ client: any;
4
+ constructor(client: any);
5
+ invite(email: any, role: any, workspaces?: undefined): any;
6
+ retrieve(id: any): any;
7
+ activate(id: any): any;
8
+ deactivate(id: any): any;
9
+ listAll(role?: null): import("../AsyncIterator").AsyncIterator;
10
+ listFirstPage(role?: null, pageSize?: null): any;
11
+ listPageAfter(afterId: any, role?: null, pageSize?: null): any;
12
+ listPageBefore(beforeId: any, role?: null, pageSize?: null): any;
13
+ iterator(): Lister;
14
+ }
@@ -0,0 +1,11 @@
1
+ export declare class Workspace {
2
+ id: any;
3
+ isActive: any;
4
+ isDefault: any;
5
+ isTest: any;
6
+ key: any;
7
+ name: any;
8
+ secretKey: any;
9
+ settings: any;
10
+ constructor(workspace: any);
11
+ }
@@ -0,0 +1,27 @@
1
+ import { Lister } from '../Lister';
2
+ export declare class Workspaces {
3
+ client: any;
4
+ constructor(client: any);
5
+ create(name: any, isTest?: boolean): any;
6
+ update(key: any, name: any): any;
7
+ setDefault(key: any): any;
8
+ regenerateSecretKey(key: any): any;
9
+ activate(key: any): any;
10
+ deactivate(key: any): any;
11
+ retrieve(key: any): any;
12
+ listAll(filter?: null): import("../AsyncIterator").AsyncIterator;
13
+ listFirstPage(filter?: null, pageSize?: null): any;
14
+ listPageAfter(afterId: any, filter?: null, pageSize?: null): any;
15
+ listPageBefore(beforeId: any, filter?: null, pageSize?: null): any;
16
+ listActive(filter?: null): import("../AsyncIterator").AsyncIterator;
17
+ listActiveFirstPage(filter?: null, pageSize?: null): any;
18
+ listActivePageAfter(afterId: any, filter?: null, pageSize?: null): any;
19
+ listActivePageBefore(beforeId: any, filter?: null, pageSize?: null): any;
20
+ listInactive(filter?: null): import("../AsyncIterator").AsyncIterator;
21
+ listInactiveFirstPage(filter?: null, pageSize?: null): any;
22
+ listInactivePageAfter(afterId: any, filter?: null, pageSize?: null): any;
23
+ listInactivePageBefore(beforeId: any, filter?: null, pageSize?: null): any;
24
+ iterator(): Lister;
25
+ activeWorkspacesIterator(): Lister;
26
+ inactiveWorkspacesIterator(): Lister;
27
+ }
@@ -0,0 +1 @@
1
+ export declare function errorResponseHandler(error: any): Promise<unknown>;
@@ -0,0 +1,7 @@
1
+ export { SeatsioClient } from './SeatsioClient';
2
+ export { StatusChangesParams } from './Events/StatusChangesParams';
3
+ export { StatusChangeRequest } from './Events/StatusChangeRequest';
4
+ export { TableBookingConfig } from './Events/TableBookingConfig';
5
+ export { ChartListParams } from './Charts/ChartListParams';
6
+ export { SocialDistancingRuleset } from './Charts/SocialDistancingRuleset';
7
+ export { Region } from './Region';
@@ -0,0 +1,4 @@
1
+ import { Labels } from '../Common/Labels';
2
+ export declare class HelperFunctions {
3
+ static labelCreator(data: any): Labels;
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare class Utilities {
2
+ static createChangeObjectStatusDetails(data: any): {};
3
+ static createEventReport(reportsData: any): {};
4
+ static createChartReport(reportsData: any): {};
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "75.0.0",
3
+ "version": "75.1.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "lint": "eslint './src/**/*.ts' './tests/**/*.ts'",
13
13
  "test": "jest --maxWorkers=8 --verbose",
14
- "build": "tsc --outDir dist"
14
+ "build": "tsc --outDir dist --declaration"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",