@gooday_corp/gooday-api-client 1.2.76 → 1.2.78

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 +207 -250
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -447,41 +447,47 @@ export interface BlockoutDeleteResponseDTO {
447
447
  */
448
448
  export interface BlockoutEntity {
449
449
  /**
450
- * Event id
451
- * @type {string}
450
+ * Is recurring event
451
+ * @type {boolean}
452
452
  * @memberof BlockoutEntity
453
453
  */
454
- '_id': string;
454
+ 'isRecurring': boolean;
455
455
  /**
456
- * Event name
457
- * @type {string}
456
+ * Duration in minutes
457
+ * @type {number}
458
458
  * @memberof BlockoutEntity
459
459
  */
460
- 'title': string;
460
+ 'duration': number;
461
461
  /**
462
- * Start date for the events
462
+ * Start date of an event
463
463
  * @type {string}
464
464
  * @memberof BlockoutEntity
465
465
  */
466
466
  'startDate': string;
467
467
  /**
468
- * End date for the events
468
+ * End date of an event
469
469
  * @type {string}
470
470
  * @memberof BlockoutEntity
471
471
  */
472
472
  'endDate': string;
473
473
  /**
474
- *
474
+ * Recurrence pattern
475
+ * @type {string}
476
+ * @memberof BlockoutEntity
477
+ */
478
+ 'pattern'?: string;
479
+ /**
480
+ * Event id
475
481
  * @type {string}
476
482
  * @memberof BlockoutEntity
477
483
  */
478
- 'repeat': BlockoutEntityRepeatEnum;
484
+ '_id': string;
479
485
  /**
480
- * Repeat end date for the blockout
486
+ * Event name
481
487
  * @type {string}
482
488
  * @memberof BlockoutEntity
483
489
  */
484
- 'endDateRepeat': string;
490
+ 'title': string;
485
491
  /**
486
492
  *
487
493
  * @type {Array<BusinessVenueDetailsEntity>}
@@ -494,29 +500,7 @@ export interface BlockoutEntity {
494
500
  * @memberof BlockoutEntity
495
501
  */
496
502
  '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;
509
503
  }
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
-
520
504
  /**
521
505
  *
522
506
  * @export
@@ -524,60 +508,55 @@ export type BlockoutEntityRepeatEnum = typeof BlockoutEntityRepeatEnum[keyof typ
524
508
  */
525
509
  export interface BlockoutPayloadDTO {
526
510
  /**
527
- * Event name
528
- * @type {string}
529
- * @memberof BlockoutPayloadDTO
530
- */
531
- 'title': string;
532
- /**
533
- * Start date for the blockout
511
+ * Start date of event
534
512
  * @type {string}
535
513
  * @memberof BlockoutPayloadDTO
536
514
  */
537
515
  'startDate': string;
538
516
  /**
539
- * End date for the blockout
517
+ * End date of event
540
518
  * @type {string}
541
519
  * @memberof BlockoutPayloadDTO
542
520
  */
543
521
  'endDate': string;
544
522
  /**
545
- *
523
+ * Start hour of an event
546
524
  * @type {string}
547
525
  * @memberof BlockoutPayloadDTO
548
526
  */
549
- 'repeat': BlockoutPayloadDTORepeatEnum;
527
+ 'from': string;
550
528
  /**
551
- * Repeat end date for the events
529
+ * End hour of an event
552
530
  * @type {string}
553
531
  * @memberof BlockoutPayloadDTO
554
532
  */
555
- 'endDateRepeat': string;
533
+ 'to': string;
556
534
  /**
557
- * Business venue
558
- * @type {Array<string>}
535
+ *
536
+ * @type {string}
559
537
  * @memberof BlockoutPayloadDTO
560
538
  */
561
- 'venue': Array<string>;
539
+ 'repeat': BlockoutPayloadDTORepeatEnum;
562
540
  /**
563
- * Form
541
+ * Name of block
564
542
  * @type {string}
565
543
  * @memberof BlockoutPayloadDTO
566
544
  */
567
- 'from': string;
545
+ 'title': string;
568
546
  /**
569
- * to
547
+ * Business Venue Id
570
548
  * @type {string}
571
549
  * @memberof BlockoutPayloadDTO
572
550
  */
573
- 'to': string;
551
+ 'venue': string;
574
552
  }
575
553
 
576
554
  export const BlockoutPayloadDTORepeatEnum = {
577
555
  None: 'NONE',
578
- EveryWeek: 'EVERY_WEEK',
579
- EveryMonth: 'EVERY_MONTH',
580
- EveryYear: 'EVERY_YEAR'
556
+ Daily: 'DAILY',
557
+ Weekly: 'WEEKLY',
558
+ Monthly: 'MONTHLY',
559
+ Year: 'YEAR'
581
560
  } as const;
582
561
 
583
562
  export type BlockoutPayloadDTORepeatEnum = typeof BlockoutPayloadDTORepeatEnum[keyof typeof BlockoutPayloadDTORepeatEnum];
@@ -4800,6 +4779,25 @@ export interface PlanUpsertPayloadDTO {
4800
4779
  */
4801
4780
  'plan': string;
4802
4781
  }
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
+ }
4803
4801
  /**
4804
4802
  *
4805
4803
  * @export
@@ -4869,6 +4867,36 @@ export interface PrepaidServiceDiscount {
4869
4867
  * @interface PrepaidServiceEntity
4870
4868
  */
4871
4869
  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;
4872
4900
  /**
4873
4901
  * Tag id
4874
4902
  * @type {string}
@@ -4889,10 +4917,10 @@ export interface PrepaidServiceEntity {
4889
4917
  'category': string;
4890
4918
  /**
4891
4919
  *
4892
- * @type {Array<PrepaidServiceTimeDuration>}
4920
+ * @type {Array<PrepaidServiceCapacityDTO>}
4893
4921
  * @memberof PrepaidServiceEntity
4894
4922
  */
4895
- 'duration': Array<PrepaidServiceTimeDuration>;
4923
+ 'capacity': Array<PrepaidServiceCapacityDTO>;
4896
4924
  /**
4897
4925
  *
4898
4926
  * @type {boolean}
@@ -4935,12 +4963,6 @@ export interface PrepaidServiceEntity {
4935
4963
  * @memberof PrepaidServiceEntity
4936
4964
  */
4937
4965
  'business': string;
4938
- /**
4939
- *
4940
- * @type {ServiceEndRepeat}
4941
- * @memberof PrepaidServiceEntity
4942
- */
4943
- 'repeat': ServiceEndRepeat;
4944
4966
  /**
4945
4967
  *
4946
4968
  * @type {number}
@@ -5028,23 +5050,47 @@ export interface PrepaidServiceFindDTO {
5028
5050
  */
5029
5051
  export interface PrepaidServicePayloadDTO {
5030
5052
  /**
5031
- * Service name
5053
+ * Start date of event
5032
5054
  * @type {string}
5033
5055
  * @memberof PrepaidServicePayloadDTO
5034
5056
  */
5035
- 'name': string;
5057
+ 'startDate': string;
5036
5058
  /**
5037
- * Category
5059
+ * End date of event
5038
5060
  * @type {string}
5039
5061
  * @memberof PrepaidServicePayloadDTO
5040
5062
  */
5041
- 'category': string;
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;
5042
5076
  /**
5043
5077
  *
5044
- * @type {number}
5078
+ * @type {string}
5045
5079
  * @memberof PrepaidServicePayloadDTO
5046
5080
  */
5047
- 'capacity': number;
5081
+ 'repeat': PrepaidServicePayloadDTORepeatEnum;
5082
+ /**
5083
+ * Service name
5084
+ * @type {string}
5085
+ * @memberof PrepaidServicePayloadDTO
5086
+ */
5087
+ 'name': string;
5088
+ /**
5089
+ * Category
5090
+ * @type {string}
5091
+ * @memberof PrepaidServicePayloadDTO
5092
+ */
5093
+ 'category': string;
5048
5094
  /**
5049
5095
  *
5050
5096
  * @type {boolean}
@@ -5111,12 +5157,6 @@ export interface PrepaidServicePayloadDTO {
5111
5157
  * @memberof PrepaidServicePayloadDTO
5112
5158
  */
5113
5159
  'email': string;
5114
- /**
5115
- *
5116
- * @type {ServiceEndRepeat}
5117
- * @memberof PrepaidServicePayloadDTO
5118
- */
5119
- 'repeat'?: ServiceEndRepeat;
5120
5160
  /**
5121
5161
  *
5122
5162
  * @type {Array<PrepaidServiceDiscount>}
@@ -5125,10 +5165,10 @@ export interface PrepaidServicePayloadDTO {
5125
5165
  'discounts': Array<PrepaidServiceDiscount>;
5126
5166
  /**
5127
5167
  *
5128
- * @type {Array<PrepaidServiceTimeDuration>}
5168
+ * @type {Array<PrepaidServiceCapacityDTO>}
5129
5169
  * @memberof PrepaidServicePayloadDTO
5130
5170
  */
5131
- 'duration': Array<PrepaidServiceTimeDuration>;
5171
+ 'capacity': Array<PrepaidServiceCapacityDTO>;
5132
5172
  /**
5133
5173
  *
5134
5174
  * @type {number}
@@ -5142,6 +5182,17 @@ export interface PrepaidServicePayloadDTO {
5142
5182
  */
5143
5183
  'cancellationHours': string;
5144
5184
  }
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
+
5145
5196
  /**
5146
5197
  *
5147
5198
  * @export
@@ -5161,25 +5212,6 @@ export interface PrepaidServiceResponseDTO {
5161
5212
  */
5162
5213
  'statusCode': number;
5163
5214
  }
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
- }
5183
5215
  /**
5184
5216
  *
5185
5217
  * @export
@@ -5349,76 +5381,6 @@ export interface RenameCalendarPayload {
5349
5381
  */
5350
5382
  'name': string;
5351
5383
  }
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
-
5422
5384
  /**
5423
5385
  *
5424
5386
  * @export
@@ -5489,76 +5451,6 @@ export interface SendFriendshipRequestPayload {
5489
5451
  */
5490
5452
  'to': string;
5491
5453
  }
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
-
5562
5454
  /**
5563
5455
  *
5564
5456
  * @export
@@ -6758,13 +6650,19 @@ export interface UserSyncDTO {
6758
6650
  * @type {Array<number>}
6759
6651
  * @memberof UserSyncDTO
6760
6652
  */
6761
- 'location': Array<number>;
6653
+ 'location'?: Array<number>;
6762
6654
  /**
6763
6655
  * Timezone
6764
6656
  * @type {string}
6765
6657
  * @memberof UserSyncDTO
6766
6658
  */
6767
6659
  'timezone'?: string;
6660
+ /**
6661
+ * User permissions
6662
+ * @type {UserPermissionDTO}
6663
+ * @memberof UserSyncDTO
6664
+ */
6665
+ 'permissions'?: UserPermissionDTO;
6768
6666
  }
6769
6667
  /**
6770
6668
  *
@@ -7163,6 +7061,36 @@ export interface WhatsOnDeleteResponseDTO {
7163
7061
  * @interface WhatsOnEntity
7164
7062
  */
7165
7063
  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;
7166
7094
  /**
7167
7095
  * Event id
7168
7096
  * @type {string}
@@ -7253,12 +7181,6 @@ export interface WhatsOnEntity {
7253
7181
  * @memberof WhatsOnEntity
7254
7182
  */
7255
7183
  'bookingFee': number;
7256
- /**
7257
- *
7258
- * @type {Repeat}
7259
- * @memberof WhatsOnEntity
7260
- */
7261
- 'repeat': Repeat;
7262
7184
  /**
7263
7185
  *
7264
7186
  * @type {Array<string>}
@@ -7474,6 +7396,36 @@ export interface WhatsOnLocationMetaDTO {
7474
7396
  * @interface WhatsOnPayloadDTO
7475
7397
  */
7476
7398
  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;
7477
7429
  /**
7478
7430
  * Event name
7479
7431
  * @type {string}
@@ -7552,12 +7504,6 @@ export interface WhatsOnPayloadDTO {
7552
7504
  * @memberof WhatsOnPayloadDTO
7553
7505
  */
7554
7506
  'location'?: WhatsOnLocationDTO;
7555
- /**
7556
- *
7557
- * @type {Repeat}
7558
- * @memberof WhatsOnPayloadDTO
7559
- */
7560
- 'repeat'?: Repeat;
7561
7507
  /**
7562
7508
  *
7563
7509
  * @type {Array<Discount>}
@@ -7565,6 +7511,17 @@ export interface WhatsOnPayloadDTO {
7565
7511
  */
7566
7512
  'discounts'?: Array<Discount>;
7567
7513
  }
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
+
7568
7525
  /**
7569
7526
  *
7570
7527
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.76",
3
+ "version": "1.2.78",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},