@gooday_corp/gooday-api-client 1.2.78 → 1.2.80

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 (2) hide show
  1. package/api.ts +252 -203
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -447,47 +447,41 @@ export interface BlockoutDeleteResponseDTO {
447
447
  */
448
448
  export interface BlockoutEntity {
449
449
  /**
450
- * Is recurring event
451
- * @type {boolean}
450
+ * Event id
451
+ * @type {string}
452
452
  * @memberof BlockoutEntity
453
453
  */
454
- 'isRecurring': boolean;
454
+ '_id': string;
455
455
  /**
456
- * Duration in minutes
457
- * @type {number}
456
+ * Event name
457
+ * @type {string}
458
458
  * @memberof BlockoutEntity
459
459
  */
460
- 'duration': number;
460
+ 'title': string;
461
461
  /**
462
- * Start date of an event
462
+ * Start date for the events
463
463
  * @type {string}
464
464
  * @memberof BlockoutEntity
465
465
  */
466
466
  'startDate': string;
467
467
  /**
468
- * End date of an event
468
+ * End date for the events
469
469
  * @type {string}
470
470
  * @memberof BlockoutEntity
471
471
  */
472
472
  'endDate': string;
473
473
  /**
474
- * Recurrence pattern
475
- * @type {string}
476
- * @memberof BlockoutEntity
477
- */
478
- 'pattern'?: string;
479
- /**
480
- * Event id
474
+ *
481
475
  * @type {string}
482
476
  * @memberof BlockoutEntity
483
477
  */
484
- '_id': string;
478
+ 'repeat': BlockoutEntityRepeatEnum;
485
479
  /**
486
- * Event name
480
+ * Repeat end date for the blockout
487
481
  * @type {string}
488
482
  * @memberof BlockoutEntity
489
483
  */
490
- 'title': string;
484
+ 'endDateRepeat': string;
491
485
  /**
492
486
  *
493
487
  * @type {Array<BusinessVenueDetailsEntity>}
@@ -500,7 +494,29 @@ export interface BlockoutEntity {
500
494
  * @memberof BlockoutEntity
501
495
  */
502
496
  'business': string;
497
+ /**
498
+ * Form
499
+ * @type {string}
500
+ * @memberof BlockoutEntity
501
+ */
502
+ 'from': string;
503
+ /**
504
+ * to
505
+ * @type {string}
506
+ * @memberof BlockoutEntity
507
+ */
508
+ 'to': string;
503
509
  }
510
+
511
+ export const BlockoutEntityRepeatEnum = {
512
+ None: 'NONE',
513
+ EveryWeek: 'EVERY_WEEK',
514
+ EveryMonth: 'EVERY_MONTH',
515
+ EveryYear: 'EVERY_YEAR'
516
+ } as const;
517
+
518
+ export type BlockoutEntityRepeatEnum = typeof BlockoutEntityRepeatEnum[keyof typeof BlockoutEntityRepeatEnum];
519
+
504
520
  /**
505
521
  *
506
522
  * @export
@@ -508,55 +524,60 @@ export interface BlockoutEntity {
508
524
  */
509
525
  export interface BlockoutPayloadDTO {
510
526
  /**
511
- * Start date of event
527
+ * Event name
528
+ * @type {string}
529
+ * @memberof BlockoutPayloadDTO
530
+ */
531
+ 'title': string;
532
+ /**
533
+ * Start date for the blockout
512
534
  * @type {string}
513
535
  * @memberof BlockoutPayloadDTO
514
536
  */
515
537
  'startDate': string;
516
538
  /**
517
- * End date of event
539
+ * End date for the blockout
518
540
  * @type {string}
519
541
  * @memberof BlockoutPayloadDTO
520
542
  */
521
543
  'endDate': string;
522
544
  /**
523
- * Start hour of an event
545
+ *
524
546
  * @type {string}
525
547
  * @memberof BlockoutPayloadDTO
526
548
  */
527
- 'from': string;
549
+ 'repeat': BlockoutPayloadDTORepeatEnum;
528
550
  /**
529
- * End hour of an event
551
+ * Repeat end date for the events
530
552
  * @type {string}
531
553
  * @memberof BlockoutPayloadDTO
532
554
  */
533
- 'to': string;
555
+ 'endDateRepeat': string;
534
556
  /**
535
- *
536
- * @type {string}
557
+ * Business venue
558
+ * @type {Array<string>}
537
559
  * @memberof BlockoutPayloadDTO
538
560
  */
539
- 'repeat': BlockoutPayloadDTORepeatEnum;
561
+ 'venue': Array<string>;
540
562
  /**
541
- * Name of block
563
+ * Form
542
564
  * @type {string}
543
565
  * @memberof BlockoutPayloadDTO
544
566
  */
545
- 'title': string;
567
+ 'from': string;
546
568
  /**
547
- * Business Venue Id
569
+ * to
548
570
  * @type {string}
549
571
  * @memberof BlockoutPayloadDTO
550
572
  */
551
- 'venue': string;
573
+ 'to': string;
552
574
  }
553
575
 
554
576
  export const BlockoutPayloadDTORepeatEnum = {
555
577
  None: 'NONE',
556
- Daily: 'DAILY',
557
- Weekly: 'WEEKLY',
558
- Monthly: 'MONTHLY',
559
- Year: 'YEAR'
578
+ EveryWeek: 'EVERY_WEEK',
579
+ EveryMonth: 'EVERY_MONTH',
580
+ EveryYear: 'EVERY_YEAR'
560
581
  } as const;
561
582
 
562
583
  export type BlockoutPayloadDTORepeatEnum = typeof BlockoutPayloadDTORepeatEnum[keyof typeof BlockoutPayloadDTORepeatEnum];
@@ -4779,25 +4800,6 @@ export interface PlanUpsertPayloadDTO {
4779
4800
  */
4780
4801
  'plan': string;
4781
4802
  }
4782
- /**
4783
- *
4784
- * @export
4785
- * @interface PrepaidServiceCapacityDTO
4786
- */
4787
- export interface PrepaidServiceCapacityDTO {
4788
- /**
4789
- * Time duration
4790
- * @type {TimeDuration}
4791
- * @memberof PrepaidServiceCapacityDTO
4792
- */
4793
- 'time': TimeDuration;
4794
- /**
4795
- * Capacity
4796
- * @type {number}
4797
- * @memberof PrepaidServiceCapacityDTO
4798
- */
4799
- 'capacity': number;
4800
- }
4801
4803
  /**
4802
4804
  *
4803
4805
  * @export
@@ -4867,36 +4869,6 @@ export interface PrepaidServiceDiscount {
4867
4869
  * @interface PrepaidServiceEntity
4868
4870
  */
4869
4871
  export interface PrepaidServiceEntity {
4870
- /**
4871
- * Is recurring event
4872
- * @type {boolean}
4873
- * @memberof PrepaidServiceEntity
4874
- */
4875
- 'isRecurring': boolean;
4876
- /**
4877
- * Duration in minutes
4878
- * @type {number}
4879
- * @memberof PrepaidServiceEntity
4880
- */
4881
- 'duration': number;
4882
- /**
4883
- * Start date of an event
4884
- * @type {string}
4885
- * @memberof PrepaidServiceEntity
4886
- */
4887
- 'startDate': string;
4888
- /**
4889
- * End date of an event
4890
- * @type {string}
4891
- * @memberof PrepaidServiceEntity
4892
- */
4893
- 'endDate': string;
4894
- /**
4895
- * Recurrence pattern
4896
- * @type {string}
4897
- * @memberof PrepaidServiceEntity
4898
- */
4899
- 'pattern'?: string;
4900
4872
  /**
4901
4873
  * Tag id
4902
4874
  * @type {string}
@@ -4917,10 +4889,10 @@ export interface PrepaidServiceEntity {
4917
4889
  'category': string;
4918
4890
  /**
4919
4891
  *
4920
- * @type {Array<PrepaidServiceCapacityDTO>}
4892
+ * @type {Array<PrepaidServiceTimeDuration>}
4921
4893
  * @memberof PrepaidServiceEntity
4922
4894
  */
4923
- 'capacity': Array<PrepaidServiceCapacityDTO>;
4895
+ 'duration': Array<PrepaidServiceTimeDuration>;
4924
4896
  /**
4925
4897
  *
4926
4898
  * @type {boolean}
@@ -4963,6 +4935,12 @@ export interface PrepaidServiceEntity {
4963
4935
  * @memberof PrepaidServiceEntity
4964
4936
  */
4965
4937
  'business': string;
4938
+ /**
4939
+ *
4940
+ * @type {ServiceEndRepeat}
4941
+ * @memberof PrepaidServiceEntity
4942
+ */
4943
+ 'repeat': ServiceEndRepeat;
4966
4944
  /**
4967
4945
  *
4968
4946
  * @type {number}
@@ -5049,36 +5027,6 @@ export interface PrepaidServiceFindDTO {
5049
5027
  * @interface PrepaidServicePayloadDTO
5050
5028
  */
5051
5029
  export interface PrepaidServicePayloadDTO {
5052
- /**
5053
- * Start date of event
5054
- * @type {string}
5055
- * @memberof PrepaidServicePayloadDTO
5056
- */
5057
- 'startDate': string;
5058
- /**
5059
- * End date of event
5060
- * @type {string}
5061
- * @memberof PrepaidServicePayloadDTO
5062
- */
5063
- 'endDate': string;
5064
- /**
5065
- * Start hour of an event
5066
- * @type {string}
5067
- * @memberof PrepaidServicePayloadDTO
5068
- */
5069
- 'from': string;
5070
- /**
5071
- * End hour of an event
5072
- * @type {string}
5073
- * @memberof PrepaidServicePayloadDTO
5074
- */
5075
- 'to': string;
5076
- /**
5077
- *
5078
- * @type {string}
5079
- * @memberof PrepaidServicePayloadDTO
5080
- */
5081
- 'repeat': PrepaidServicePayloadDTORepeatEnum;
5082
5030
  /**
5083
5031
  * Service name
5084
5032
  * @type {string}
@@ -5091,6 +5039,12 @@ export interface PrepaidServicePayloadDTO {
5091
5039
  * @memberof PrepaidServicePayloadDTO
5092
5040
  */
5093
5041
  'category': string;
5042
+ /**
5043
+ *
5044
+ * @type {number}
5045
+ * @memberof PrepaidServicePayloadDTO
5046
+ */
5047
+ 'capacity': number;
5094
5048
  /**
5095
5049
  *
5096
5050
  * @type {boolean}
@@ -5157,18 +5111,24 @@ export interface PrepaidServicePayloadDTO {
5157
5111
  * @memberof PrepaidServicePayloadDTO
5158
5112
  */
5159
5113
  'email': string;
5114
+ /**
5115
+ *
5116
+ * @type {ServiceEndRepeat}
5117
+ * @memberof PrepaidServicePayloadDTO
5118
+ */
5119
+ 'repeat'?: ServiceEndRepeat;
5160
5120
  /**
5161
5121
  *
5162
5122
  * @type {Array<PrepaidServiceDiscount>}
5163
5123
  * @memberof PrepaidServicePayloadDTO
5164
5124
  */
5165
- 'discounts': Array<PrepaidServiceDiscount>;
5125
+ 'discounts'?: Array<PrepaidServiceDiscount>;
5166
5126
  /**
5167
5127
  *
5168
- * @type {Array<PrepaidServiceCapacityDTO>}
5128
+ * @type {Array<PrepaidServiceTimeDuration>}
5169
5129
  * @memberof PrepaidServicePayloadDTO
5170
5130
  */
5171
- 'capacity': Array<PrepaidServiceCapacityDTO>;
5131
+ 'duration': Array<PrepaidServiceTimeDuration>;
5172
5132
  /**
5173
5133
  *
5174
5134
  * @type {number}
@@ -5182,17 +5142,6 @@ export interface PrepaidServicePayloadDTO {
5182
5142
  */
5183
5143
  'cancellationHours': string;
5184
5144
  }
5185
-
5186
- export const PrepaidServicePayloadDTORepeatEnum = {
5187
- None: 'NONE',
5188
- Daily: 'DAILY',
5189
- Weekly: 'WEEKLY',
5190
- Monthly: 'MONTHLY',
5191
- Year: 'YEAR'
5192
- } as const;
5193
-
5194
- export type PrepaidServicePayloadDTORepeatEnum = typeof PrepaidServicePayloadDTORepeatEnum[keyof typeof PrepaidServicePayloadDTORepeatEnum];
5195
-
5196
5145
  /**
5197
5146
  *
5198
5147
  * @export
@@ -5212,6 +5161,25 @@ export interface PrepaidServiceResponseDTO {
5212
5161
  */
5213
5162
  'statusCode': number;
5214
5163
  }
5164
+ /**
5165
+ *
5166
+ * @export
5167
+ * @interface PrepaidServiceTimeDuration
5168
+ */
5169
+ export interface PrepaidServiceTimeDuration {
5170
+ /**
5171
+ * Time duration
5172
+ * @type {TimeDuration}
5173
+ * @memberof PrepaidServiceTimeDuration
5174
+ */
5175
+ 'time': TimeDuration;
5176
+ /**
5177
+ * Capacity
5178
+ * @type {number}
5179
+ * @memberof PrepaidServiceTimeDuration
5180
+ */
5181
+ 'capacity': number;
5182
+ }
5215
5183
  /**
5216
5184
  *
5217
5185
  * @export
@@ -5381,6 +5349,76 @@ export interface RenameCalendarPayload {
5381
5349
  */
5382
5350
  'name': string;
5383
5351
  }
5352
+ /**
5353
+ *
5354
+ * @export
5355
+ * @interface Repeat
5356
+ */
5357
+ export interface Repeat {
5358
+ /**
5359
+ * Start date for the events
5360
+ * @type {string}
5361
+ * @memberof Repeat
5362
+ */
5363
+ 'startDate': string;
5364
+ /**
5365
+ * End date for the events
5366
+ * @type {string}
5367
+ * @memberof Repeat
5368
+ */
5369
+ 'endDate': string;
5370
+ /**
5371
+ * Form
5372
+ * @type {string}
5373
+ * @memberof Repeat
5374
+ */
5375
+ 'from': string;
5376
+ /**
5377
+ * to
5378
+ * @type {string}
5379
+ * @memberof Repeat
5380
+ */
5381
+ 'to': string;
5382
+ /**
5383
+ *
5384
+ * @type {string}
5385
+ * @memberof Repeat
5386
+ */
5387
+ 'finalBookingTime': RepeatFinalBookingTimeEnum;
5388
+ /**
5389
+ * to
5390
+ * @type {string}
5391
+ * @memberof Repeat
5392
+ */
5393
+ 'time': string;
5394
+ /**
5395
+ *
5396
+ * @type {string}
5397
+ * @memberof Repeat
5398
+ */
5399
+ 'repeat': RepeatRepeatEnum;
5400
+ /**
5401
+ *
5402
+ * @type {string}
5403
+ * @memberof Repeat
5404
+ */
5405
+ 'repeatEndDate': string;
5406
+ }
5407
+
5408
+ export const RepeatFinalBookingTimeEnum = {
5409
+ _5HourBeforeEventStarts: '5 hour before event starts'
5410
+ } as const;
5411
+
5412
+ export type RepeatFinalBookingTimeEnum = typeof RepeatFinalBookingTimeEnum[keyof typeof RepeatFinalBookingTimeEnum];
5413
+ export const RepeatRepeatEnum = {
5414
+ None: 'NONE',
5415
+ EveryWeek: 'EVERY_WEEK',
5416
+ EveryMonth: 'EVERY_MONTH',
5417
+ EveryYear: 'EVERY_YEAR'
5418
+ } as const;
5419
+
5420
+ export type RepeatRepeatEnum = typeof RepeatRepeatEnum[keyof typeof RepeatRepeatEnum];
5421
+
5384
5422
  /**
5385
5423
  *
5386
5424
  * @export
@@ -5451,6 +5489,76 @@ export interface SendFriendshipRequestPayload {
5451
5489
  */
5452
5490
  'to': string;
5453
5491
  }
5492
+ /**
5493
+ *
5494
+ * @export
5495
+ * @interface ServiceEndRepeat
5496
+ */
5497
+ export interface ServiceEndRepeat {
5498
+ /**
5499
+ * Start date for the events
5500
+ * @type {string}
5501
+ * @memberof ServiceEndRepeat
5502
+ */
5503
+ 'startDate': string;
5504
+ /**
5505
+ * End date for the events
5506
+ * @type {string}
5507
+ * @memberof ServiceEndRepeat
5508
+ */
5509
+ 'endDate': string;
5510
+ /**
5511
+ * Form
5512
+ * @type {string}
5513
+ * @memberof ServiceEndRepeat
5514
+ */
5515
+ 'from': string;
5516
+ /**
5517
+ * to
5518
+ * @type {string}
5519
+ * @memberof ServiceEndRepeat
5520
+ */
5521
+ 'to': string;
5522
+ /**
5523
+ *
5524
+ * @type {string}
5525
+ * @memberof ServiceEndRepeat
5526
+ */
5527
+ 'finalBookingTime': ServiceEndRepeatFinalBookingTimeEnum;
5528
+ /**
5529
+ * to
5530
+ * @type {string}
5531
+ * @memberof ServiceEndRepeat
5532
+ */
5533
+ 'time': string;
5534
+ /**
5535
+ *
5536
+ * @type {string}
5537
+ * @memberof ServiceEndRepeat
5538
+ */
5539
+ 'repeat': ServiceEndRepeatRepeatEnum;
5540
+ /**
5541
+ *
5542
+ * @type {string}
5543
+ * @memberof ServiceEndRepeat
5544
+ */
5545
+ 'repeatEndDate': string;
5546
+ }
5547
+
5548
+ export const ServiceEndRepeatFinalBookingTimeEnum = {
5549
+ _5HourBeforeEventStarts: '5 hour before event starts'
5550
+ } as const;
5551
+
5552
+ export type ServiceEndRepeatFinalBookingTimeEnum = typeof ServiceEndRepeatFinalBookingTimeEnum[keyof typeof ServiceEndRepeatFinalBookingTimeEnum];
5553
+ export const ServiceEndRepeatRepeatEnum = {
5554
+ None: 'NONE',
5555
+ EveryWeek: 'EVERY_WEEK',
5556
+ EveryMonth: 'EVERY_MONTH',
5557
+ EveryYear: 'EVERY_YEAR'
5558
+ } as const;
5559
+
5560
+ export type ServiceEndRepeatRepeatEnum = typeof ServiceEndRepeatRepeatEnum[keyof typeof ServiceEndRepeatRepeatEnum];
5561
+
5454
5562
  /**
5455
5563
  *
5456
5564
  * @export
@@ -6650,7 +6758,7 @@ export interface UserSyncDTO {
6650
6758
  * @type {Array<number>}
6651
6759
  * @memberof UserSyncDTO
6652
6760
  */
6653
- 'location'?: Array<number>;
6761
+ 'location': Array<number>;
6654
6762
  /**
6655
6763
  * Timezone
6656
6764
  * @type {string}
@@ -6662,7 +6770,7 @@ export interface UserSyncDTO {
6662
6770
  * @type {UserPermissionDTO}
6663
6771
  * @memberof UserSyncDTO
6664
6772
  */
6665
- 'permissions'?: UserPermissionDTO;
6773
+ 'permissions': UserPermissionDTO;
6666
6774
  }
6667
6775
  /**
6668
6776
  *
@@ -7061,36 +7169,6 @@ export interface WhatsOnDeleteResponseDTO {
7061
7169
  * @interface WhatsOnEntity
7062
7170
  */
7063
7171
  export interface WhatsOnEntity {
7064
- /**
7065
- * Is recurring event
7066
- * @type {boolean}
7067
- * @memberof WhatsOnEntity
7068
- */
7069
- 'isRecurring': boolean;
7070
- /**
7071
- * Duration in minutes
7072
- * @type {number}
7073
- * @memberof WhatsOnEntity
7074
- */
7075
- 'duration': number;
7076
- /**
7077
- * Start date of an event
7078
- * @type {string}
7079
- * @memberof WhatsOnEntity
7080
- */
7081
- 'startDate': string;
7082
- /**
7083
- * End date of an event
7084
- * @type {string}
7085
- * @memberof WhatsOnEntity
7086
- */
7087
- 'endDate': string;
7088
- /**
7089
- * Recurrence pattern
7090
- * @type {string}
7091
- * @memberof WhatsOnEntity
7092
- */
7093
- 'pattern'?: string;
7094
7172
  /**
7095
7173
  * Event id
7096
7174
  * @type {string}
@@ -7181,6 +7259,12 @@ export interface WhatsOnEntity {
7181
7259
  * @memberof WhatsOnEntity
7182
7260
  */
7183
7261
  'bookingFee': number;
7262
+ /**
7263
+ *
7264
+ * @type {Repeat}
7265
+ * @memberof WhatsOnEntity
7266
+ */
7267
+ 'repeat': Repeat;
7184
7268
  /**
7185
7269
  *
7186
7270
  * @type {Array<string>}
@@ -7396,36 +7480,6 @@ export interface WhatsOnLocationMetaDTO {
7396
7480
  * @interface WhatsOnPayloadDTO
7397
7481
  */
7398
7482
  export interface WhatsOnPayloadDTO {
7399
- /**
7400
- * Start date of event
7401
- * @type {string}
7402
- * @memberof WhatsOnPayloadDTO
7403
- */
7404
- 'startDate': string;
7405
- /**
7406
- * End date of event
7407
- * @type {string}
7408
- * @memberof WhatsOnPayloadDTO
7409
- */
7410
- 'endDate': string;
7411
- /**
7412
- * Start hour of an event
7413
- * @type {string}
7414
- * @memberof WhatsOnPayloadDTO
7415
- */
7416
- 'from': string;
7417
- /**
7418
- * End hour of an event
7419
- * @type {string}
7420
- * @memberof WhatsOnPayloadDTO
7421
- */
7422
- 'to': string;
7423
- /**
7424
- *
7425
- * @type {string}
7426
- * @memberof WhatsOnPayloadDTO
7427
- */
7428
- 'repeat': WhatsOnPayloadDTORepeatEnum;
7429
7483
  /**
7430
7484
  * Event name
7431
7485
  * @type {string}
@@ -7504,6 +7558,12 @@ export interface WhatsOnPayloadDTO {
7504
7558
  * @memberof WhatsOnPayloadDTO
7505
7559
  */
7506
7560
  'location'?: WhatsOnLocationDTO;
7561
+ /**
7562
+ *
7563
+ * @type {Repeat}
7564
+ * @memberof WhatsOnPayloadDTO
7565
+ */
7566
+ 'repeat'?: Repeat;
7507
7567
  /**
7508
7568
  *
7509
7569
  * @type {Array<Discount>}
@@ -7511,17 +7571,6 @@ export interface WhatsOnPayloadDTO {
7511
7571
  */
7512
7572
  'discounts'?: Array<Discount>;
7513
7573
  }
7514
-
7515
- export const WhatsOnPayloadDTORepeatEnum = {
7516
- None: 'NONE',
7517
- Daily: 'DAILY',
7518
- Weekly: 'WEEKLY',
7519
- Monthly: 'MONTHLY',
7520
- Year: 'YEAR'
7521
- } as const;
7522
-
7523
- export type WhatsOnPayloadDTORepeatEnum = typeof WhatsOnPayloadDTORepeatEnum[keyof typeof WhatsOnPayloadDTORepeatEnum];
7524
-
7525
7574
  /**
7526
7575
  *
7527
7576
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.78",
3
+ "version": "1.2.80",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},