@itm-studio/partner-sdk 0.6.10 → 0.6.11

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.mjs CHANGED
@@ -619,50 +619,53 @@ var types_default = {
619
619
  203,
620
620
  207,
621
621
  208,
622
- 217,
623
- 218,
624
- 219,
625
- 221,
622
+ 212,
623
+ 213,
624
+ 214,
626
625
  223,
627
- 226,
626
+ 224,
627
+ 225,
628
628
  227,
629
- 228,
630
629
  229,
631
- 231,
632
630
  232,
631
+ 233,
632
+ 234,
633
633
  235,
634
- 236,
635
634
  237,
636
635
  238,
637
- 245,
638
- 249,
639
- 250,
636
+ 241,
637
+ 242,
638
+ 243,
639
+ 244,
640
640
  251,
641
- 252,
641
+ 255,
642
642
  256,
643
643
  257,
644
- 260,
645
- 261,
644
+ 258,
646
645
  262,
646
+ 263,
647
+ 266,
648
+ 267,
647
649
  268,
648
- 270,
649
- 272,
650
- 279,
651
- 280,
652
- 281,
653
- 282,
654
- 289,
655
- 290,
656
- 291,
657
- 305,
658
- 309,
659
- 313,
660
- 314,
650
+ 274,
651
+ 276,
652
+ 278,
653
+ 285,
654
+ 286,
655
+ 287,
656
+ 288,
657
+ 295,
658
+ 296,
659
+ 297,
660
+ 311,
661
661
  315,
662
- 316,
663
- 317,
664
- 318,
665
- 319
662
+ 319,
663
+ 320,
664
+ 321,
665
+ 322,
666
+ 323,
667
+ 324,
668
+ 325
666
669
  ],
667
670
  "types": {
668
671
  "DateTime": {},
@@ -1830,7 +1833,7 @@ var types_default = {
1830
1833
  38
1831
1834
  ],
1832
1835
  "guestlist": [
1833
- 283
1836
+ 289
1834
1837
  ],
1835
1838
  "__typename": [
1836
1839
  36
@@ -2425,6 +2428,9 @@ var types_default = {
2425
2428
  ]
2426
2429
  },
2427
2430
  "PartnerTicketTier": {
2431
+ "currencyCode": [
2432
+ 36
2433
+ ],
2428
2434
  "fillRate": [
2429
2435
  50
2430
2436
  ],
@@ -3617,7 +3623,7 @@ var types_default = {
3617
3623
  },
3618
3624
  "Query": {
3619
3625
  "getPartnerWalletOperation": [
3620
- 306,
3626
+ 312,
3621
3627
  {
3622
3628
  "brandUid": [
3623
3629
  36,
@@ -3634,7 +3640,7 @@ var types_default = {
3634
3640
  }
3635
3641
  ],
3636
3642
  "listPartnerWalletActivity": [
3637
- 300,
3643
+ 306,
3638
3644
  {
3639
3645
  "brandUid": [
3640
3646
  36,
@@ -3653,7 +3659,7 @@ var types_default = {
3653
3659
  }
3654
3660
  ],
3655
3661
  "listPartnerWalletOperations": [
3656
- 308,
3662
+ 314,
3657
3663
  {
3658
3664
  "brandUid": [
3659
3665
  36,
@@ -3666,10 +3672,10 @@ var types_default = {
3666
3672
  39
3667
3673
  ],
3668
3674
  "kind": [
3669
- 313
3675
+ 319
3670
3676
  ],
3671
3677
  "statuses": [
3672
- 314,
3678
+ 320,
3673
3679
  "[WalletOperationStatus!]"
3674
3680
  ],
3675
3681
  "take": [
@@ -3681,7 +3687,7 @@ var types_default = {
3681
3687
  }
3682
3688
  ],
3683
3689
  "listPartnerWallets": [
3684
- 310,
3690
+ 316,
3685
3691
  {
3686
3692
  "brandUid": [
3687
3693
  36,
@@ -3696,15 +3702,15 @@ var types_default = {
3696
3702
  }
3697
3703
  ],
3698
3704
  "getPartnerForms": [
3699
- 292,
3705
+ 298,
3700
3706
  {
3701
3707
  "input": [
3702
- 293
3708
+ 299
3703
3709
  ]
3704
3710
  }
3705
3711
  ],
3706
3712
  "getPartnerForm": [
3707
- 284,
3713
+ 290,
3708
3714
  {
3709
3715
  "uid": [
3710
3716
  36,
@@ -3713,15 +3719,15 @@ var types_default = {
3713
3719
  }
3714
3720
  ],
3715
3721
  "getPartnerFormResponses": [
3716
- 297,
3722
+ 303,
3717
3723
  {
3718
3724
  "input": [
3719
- 294
3725
+ 300
3720
3726
  ]
3721
3727
  }
3722
3728
  ],
3723
3729
  "getPartnerInPersonOrdersForMoment": [
3724
- 246,
3730
+ 252,
3725
3731
  {
3726
3732
  "cursor": [
3727
3733
  36
@@ -3731,7 +3737,7 @@ var types_default = {
3731
3737
  "String!"
3732
3738
  ],
3733
3739
  "statuses": [
3734
- 245,
3740
+ 251,
3735
3741
  "[InPersonOrderStatus!]"
3736
3742
  ],
3737
3743
  "take": [
@@ -3740,7 +3746,7 @@ var types_default = {
3740
3746
  }
3741
3747
  ],
3742
3748
  "getPartnerInPersonOrder": [
3743
- 247,
3749
+ 253,
3744
3750
  {
3745
3751
  "orderUid": [
3746
3752
  36,
@@ -3749,10 +3755,10 @@ var types_default = {
3749
3755
  }
3750
3756
  ],
3751
3757
  "getPartnerInPersonChargesForMoment": [
3752
- 264,
3758
+ 270,
3753
3759
  {
3754
3760
  "category": [
3755
- 249
3761
+ 255
3756
3762
  ],
3757
3763
  "cursor": [
3758
3764
  36
@@ -3762,7 +3768,7 @@ var types_default = {
3762
3768
  "String!"
3763
3769
  ],
3764
3770
  "statuses": [
3765
- 252,
3771
+ 258,
3766
3772
  "[ChargeStatus!]"
3767
3773
  ],
3768
3774
  "take": [
@@ -4110,7 +4116,7 @@ var types_default = {
4110
4116
  ]
4111
4117
  }
4112
4118
  ],
4113
- "getPartnerPlanBudgets": [
4119
+ "getPartnerPlanDatePoll": [
4114
4120
  209,
4115
4121
  {
4116
4122
  "planUid": [
@@ -4119,8 +4125,17 @@ var types_default = {
4119
4125
  ]
4120
4126
  }
4121
4127
  ],
4128
+ "getPartnerPlanBudgets": [
4129
+ 215,
4130
+ {
4131
+ "planUid": [
4132
+ 36,
4133
+ "String!"
4134
+ ]
4135
+ }
4136
+ ],
4122
4137
  "getPartnerPlanBudget": [
4123
- 210,
4138
+ 216,
4124
4139
  {
4125
4140
  "budgetUid": [
4126
4141
  36,
@@ -4129,7 +4144,7 @@ var types_default = {
4129
4144
  }
4130
4145
  ],
4131
4146
  "getPartnerPlanningSource": [
4132
- 211,
4147
+ 217,
4133
4148
  {
4134
4149
  "offset": [
4135
4150
  38,
@@ -4146,7 +4161,7 @@ var types_default = {
4146
4161
  }
4147
4162
  ],
4148
4163
  "getPartnerPlanningProposal": [
4149
- 213,
4164
+ 219,
4150
4165
  {
4151
4166
  "uid": [
4152
4167
  36,
@@ -4155,7 +4170,7 @@ var types_default = {
4155
4170
  }
4156
4171
  ],
4157
4172
  "getPartnerGuestListCheckIns": [
4158
- 266,
4173
+ 272,
4159
4174
  {
4160
4175
  "cursor": [
4161
4176
  36
@@ -4174,20 +4189,20 @@ var types_default = {
4174
4189
  }
4175
4190
  ],
4176
4191
  "getPartnerGuestListForMoment": [
4177
- 273,
4192
+ 279,
4178
4193
  {
4179
4194
  "cursor": [
4180
4195
  36
4181
4196
  ],
4182
4197
  "filters": [
4183
- 269
4198
+ 275
4184
4199
  ],
4185
4200
  "momentSlug": [
4186
4201
  36,
4187
4202
  "String!"
4188
4203
  ],
4189
4204
  "sort": [
4190
- 271
4205
+ 277
4191
4206
  ],
4192
4207
  "take": [
4193
4208
  38
@@ -4195,7 +4210,7 @@ var types_default = {
4195
4210
  }
4196
4211
  ],
4197
4212
  "getPartnerSpaceLocations": [
4198
- 322,
4213
+ 328,
4199
4214
  {
4200
4215
  "cursor": [
4201
4216
  36
@@ -4206,19 +4221,19 @@ var types_default = {
4206
4221
  }
4207
4222
  ],
4208
4223
  "getPartnerSpaceCalendar": [
4209
- 327,
4224
+ 333,
4210
4225
  {
4211
4226
  "input": [
4212
- 332,
4227
+ 338,
4213
4228
  "SpaceCalendarInput!"
4214
4229
  ]
4215
4230
  }
4216
4231
  ],
4217
4232
  "getPartnerSpaceAvailability": [
4218
- 331,
4233
+ 337,
4219
4234
  {
4220
4235
  "input": [
4221
- 333,
4236
+ 339,
4222
4237
  "SpaceAvailabilityInput!"
4223
4238
  ]
4224
4239
  }
@@ -4925,7 +4940,7 @@ var types_default = {
4925
4940
  },
4926
4941
  "Mutation": {
4927
4942
  "confirmPartnerWalletOperation": [
4928
- 306,
4943
+ 312,
4929
4944
  {
4930
4945
  "brandUid": [
4931
4946
  36,
@@ -4942,14 +4957,14 @@ var types_default = {
4942
4957
  }
4943
4958
  ],
4944
4959
  "createPartnerWalletPaymentRequest": [
4945
- 306,
4960
+ 312,
4946
4961
  {
4947
4962
  "brandUid": [
4948
4963
  36,
4949
4964
  "String!"
4950
4965
  ],
4951
4966
  "input": [
4952
- 311,
4967
+ 317,
4953
4968
  "CreateBrandWalletPaymentRequestInput!"
4954
4969
  ],
4955
4970
  "walletUid": [
@@ -4959,14 +4974,14 @@ var types_default = {
4959
4974
  }
4960
4975
  ],
4961
4976
  "preparePartnerWalletPayment": [
4962
- 306,
4977
+ 312,
4963
4978
  {
4964
4979
  "brandUid": [
4965
4980
  36,
4966
4981
  "String!"
4967
4982
  ],
4968
4983
  "input": [
4969
- 312,
4984
+ 318,
4970
4985
  "PrepareBrandWalletPaymentInput!"
4971
4986
  ],
4972
4987
  "walletUid": [
@@ -5186,10 +5201,10 @@ var types_default = {
5186
5201
  }
5187
5202
  ],
5188
5203
  "preparePartnerPlanningProposal": [
5189
- 213,
5204
+ 219,
5190
5205
  {
5191
5206
  "input": [
5192
- 214,
5207
+ 220,
5193
5208
  "PreparePlanningProposalInput!"
5194
5209
  ],
5195
5210
  "toolCallId": [
@@ -5199,7 +5214,7 @@ var types_default = {
5199
5214
  }
5200
5215
  ],
5201
5216
  "decidePartnerPlanningProposal": [
5202
- 213,
5217
+ 219,
5203
5218
  {
5204
5219
  "approve": [
5205
5220
  39,
@@ -5488,6 +5503,93 @@ var types_default = {
5488
5503
  },
5489
5504
  "PlanLinkMetadataStatus": {},
5490
5505
  "PlanMoodboardItemType": {},
5506
+ "PartnerPlanDatePoll": {
5507
+ "uid": [
5508
+ 35
5509
+ ],
5510
+ "status": [
5511
+ 212
5512
+ ],
5513
+ "timeMode": [
5514
+ 213
5515
+ ],
5516
+ "timezone": [
5517
+ 36
5518
+ ],
5519
+ "durationMinutes": [
5520
+ 38
5521
+ ],
5522
+ "replyByDate": [
5523
+ 36
5524
+ ],
5525
+ "chosenOptionUid": [
5526
+ 35
5527
+ ],
5528
+ "answeredCount": [
5529
+ 38
5530
+ ],
5531
+ "notAnsweredCount": [
5532
+ 38
5533
+ ],
5534
+ "needsUpdateCount": [
5535
+ 38
5536
+ ],
5537
+ "results": [
5538
+ 210
5539
+ ],
5540
+ "__typename": [
5541
+ 36
5542
+ ]
5543
+ },
5544
+ "PartnerPlanDatePollOptionResult": {
5545
+ "optionUid": [
5546
+ 35
5547
+ ],
5548
+ "localDate": [
5549
+ 36
5550
+ ],
5551
+ "startTime": [
5552
+ 36
5553
+ ],
5554
+ "endTime": [
5555
+ 36
5556
+ ],
5557
+ "status": [
5558
+ 214
5559
+ ],
5560
+ "freeCount": [
5561
+ 38
5562
+ ],
5563
+ "ifNeedBeCount": [
5564
+ 38
5565
+ ],
5566
+ "unavailableCount": [
5567
+ 38
5568
+ ],
5569
+ "unansweredCount": [
5570
+ 38
5571
+ ],
5572
+ "bestSlot": [
5573
+ 211
5574
+ ],
5575
+ "__typename": [
5576
+ 36
5577
+ ]
5578
+ },
5579
+ "PlanDatePollSlot": {
5580
+ "startTime": [
5581
+ 36
5582
+ ],
5583
+ "endTime": [
5584
+ 36
5585
+ ],
5586
+ "__typename": [
5587
+ 36
5588
+ ]
5589
+ },
5590
+ "PlanDatePollStatus": {},
5591
+ "PlanDatePollTimeMode": {},
5592
+ "PlanDatePollOptionStatus": {},
5491
5593
  "PlanBudgetSummary": {
5492
5594
  "createdAt": [
5493
5595
  0
@@ -5572,7 +5674,7 @@ var types_default = {
5572
5674
  38
5573
5675
  ],
5574
5676
  "sections": [
5575
- 212
5677
+ 218
5576
5678
  ],
5577
5679
  "status": [
5578
5680
  36
@@ -5623,16 +5725,16 @@ var types_default = {
5623
5725
  },
5624
5726
  "PreparePlanningProposalInput": {
5625
5727
  "budgetDraft": [
5626
- 215
5728
+ 221
5627
5729
  ],
5628
5730
  "budgetUid": [
5629
5731
  36
5630
5732
  ],
5631
5733
  "createBudget": [
5632
- 239
5734
+ 245
5633
5735
  ],
5634
5736
  "createPlan": [
5635
- 240
5737
+ 246
5636
5738
  ],
5637
5739
  "expectedBudgetRevision": [
5638
5740
  38
@@ -5650,16 +5752,16 @@ var types_default = {
5650
5752
  36
5651
5753
  ],
5652
5754
  "schedule": [
5653
- 241
5755
+ 247
5654
5756
  ],
5655
5757
  "sourceDispositions": [
5656
- 243
5758
+ 249
5657
5759
  ],
5658
5760
  "tagNames": [
5659
5761
  36
5660
5762
  ],
5661
5763
  "updatePlan": [
5662
- 244
5764
+ 250
5663
5765
  ],
5664
5766
  "__typename": [
5665
5767
  36
@@ -5667,7 +5769,7 @@ var types_default = {
5667
5769
  },
5668
5770
  "ReplacePlanBudgetDraftInput": {
5669
5771
  "artistDeal": [
5670
- 216
5772
+ 222
5671
5773
  ],
5672
5774
  "averageTicketsPerCheckout": [
5673
5775
  36
@@ -5676,22 +5778,22 @@ var types_default = {
5676
5778
  38
5677
5779
  ],
5678
5780
  "capacityAllocations": [
5679
- 220
5781
+ 226
5680
5782
  ],
5681
5783
  "categories": [
5682
- 222
5784
+ 228
5683
5785
  ],
5684
5786
  "externalTicketingChannels": [
5685
- 224
5787
+ 230
5686
5788
  ],
5687
5789
  "lines": [
5688
- 230
5790
+ 236
5689
5791
  ],
5690
5792
  "physicalCapacity": [
5691
5793
  38
5692
5794
  ],
5693
5795
  "ticketTiers": [
5694
- 233
5796
+ 239
5695
5797
  ],
5696
5798
  "walkoutSellThroughBps": [
5697
5799
  38
@@ -5702,10 +5804,10 @@ var types_default = {
5702
5804
  },
5703
5805
  "PlanBudgetArtistDealInput": {
5704
5806
  "basis": [
5705
- 217
5807
+ 223
5706
5808
  ],
5707
5809
  "guaranteeBasis": [
5708
- 218
5810
+ 224
5709
5811
  ],
5710
5812
  "guaranteeMinor": [
5711
5813
  36
@@ -5717,7 +5819,7 @@ var types_default = {
5717
5819
  38
5718
5820
  ],
5719
5821
  "type": [
5720
- 219
5822
+ 225
5721
5823
  ],
5722
5824
  "uid": [
5723
5825
  36
@@ -5743,7 +5845,7 @@ var types_default = {
5743
5845
  38
5744
5846
  ],
5745
5847
  "type": [
5746
- 221
5848
+ 227
5747
5849
  ],
5748
5850
  "uid": [
5749
5851
  36
@@ -5755,7 +5857,7 @@ var types_default = {
5755
5857
  "PlanBudgetAllocationType": {},
5756
5858
  "PlanBudgetCategoryInput": {
5757
5859
  "kind": [
5758
- 223
5860
+ 229
5759
5861
  ],
5760
5862
  "name": [
5761
5863
  36
@@ -5782,7 +5884,7 @@ var types_default = {
5782
5884
  36
5783
5885
  ],
5784
5886
  "feeComponents": [
5785
- 225
5887
+ 231
5786
5888
  ],
5787
5889
  "name": [
5788
5890
  36
@@ -5799,13 +5901,13 @@ var types_default = {
5799
5901
  },
5800
5902
  "PlanBudgetTicketingFeeComponentInput": {
5801
5903
  "assessment": [
5802
- 226
5904
+ 232
5803
5905
  ],
5804
5906
  "fixedAmountMinor": [
5805
5907
  36
5806
5908
  ],
5807
5909
  "kind": [
5808
- 227
5910
+ 233
5809
5911
  ],
5810
5912
  "label": [
5811
5913
  36
@@ -5814,7 +5916,7 @@ var types_default = {
5814
5916
  36
5815
5917
  ],
5816
5918
  "percentageBasis": [
5817
- 228
5919
+ 234
5818
5920
  ],
5819
5921
  "position": [
5820
5922
  38
@@ -5823,7 +5925,7 @@ var types_default = {
5823
5925
  38
5824
5926
  ],
5825
5927
  "treatment": [
5826
- 229
5928
+ 235
5827
5929
  ],
5828
5930
  "uid": [
5829
5931
  36
@@ -5856,19 +5958,19 @@ var types_default = {
5856
5958
  36
5857
5959
  ],
5858
5960
  "formulaBasis": [
5859
- 231
5961
+ 237
5860
5962
  ],
5861
5963
  "gratuityBps": [
5862
5964
  38
5863
5965
  ],
5864
5966
  "kind": [
5865
- 223
5967
+ 229
5866
5968
  ],
5867
5969
  "name": [
5868
5970
  36
5869
5971
  ],
5870
5972
  "paymentStatus": [
5871
- 232
5973
+ 238
5872
5974
  ],
5873
5975
  "plannedUnitAmountMinor": [
5874
5976
  36
@@ -5905,7 +6007,7 @@ var types_default = {
5905
6007
  38
5906
6008
  ],
5907
6009
  "chargeRules": [
5908
- 234
6010
+ 240
5909
6011
  ],
5910
6012
  "externalTicketingChannelUid": [
5911
6013
  36
@@ -5920,7 +6022,7 @@ var types_default = {
5920
6022
  38
5921
6023
  ],
5922
6024
  "pricingMode": [
5923
- 237
6025
+ 243
5924
6026
  ],
5925
6027
  "roundingIncrementMinor": [
5926
6028
  36
@@ -5932,7 +6034,7 @@ var types_default = {
5932
6034
  0
5933
6035
  ],
5934
6036
  "ticketingChannelType": [
5935
- 238
6037
+ 244
5936
6038
  ],
5937
6039
  "uid": [
5938
6040
  36
@@ -5946,10 +6048,10 @@ var types_default = {
5946
6048
  36
5947
6049
  ],
5948
6050
  "calculation": [
5949
- 235
6051
+ 241
5950
6052
  ],
5951
6053
  "kind": [
5952
- 236
6054
+ 242
5953
6055
  ],
5954
6056
  "position": [
5955
6057
  38
@@ -5958,7 +6060,7 @@ var types_default = {
5958
6060
  38
5959
6061
  ],
5960
6062
  "treatment": [
5961
- 229
6063
+ 235
5962
6064
  ],
5963
6065
  "uid": [
5964
6066
  36
@@ -5996,7 +6098,7 @@ var types_default = {
5996
6098
  36
5997
6099
  ],
5998
6100
  "schedule": [
5999
- 241
6101
+ 247
6000
6102
  ],
6001
6103
  "slug": [
6002
6104
  36
@@ -6040,7 +6142,7 @@ var types_default = {
6040
6142
  36
6041
6143
  ],
6042
6144
  "times": [
6043
- 242
6145
+ 248
6044
6146
  ],
6045
6147
  "timezone": [
6046
6148
  36
@@ -6112,7 +6214,7 @@ var types_default = {
6112
6214
  36
6113
6215
  ],
6114
6216
  "orders": [
6115
- 247
6217
+ 253
6116
6218
  ],
6117
6219
  "totalCount": [
6118
6220
  38
@@ -6126,7 +6228,7 @@ var types_default = {
6126
6228
  36
6127
6229
  ],
6128
6230
  "charge": [
6129
- 248
6231
+ 254
6130
6232
  ],
6131
6233
  "createdAt": [
6132
6234
  0
@@ -6141,7 +6243,7 @@ var types_default = {
6141
6243
  38
6142
6244
  ],
6143
6245
  "items": [
6144
- 253
6246
+ 259
6145
6247
  ],
6146
6248
  "momentSlug": [
6147
6249
  36
@@ -6156,10 +6258,10 @@ var types_default = {
6156
6258
  38
6157
6259
  ],
6158
6260
  "refunds": [
6159
- 258
6261
+ 264
6160
6262
  ],
6161
6263
  "status": [
6162
- 245
6264
+ 251
6163
6265
  ],
6164
6266
  "subtotalAmount": [
6165
6267
  38
@@ -6177,7 +6279,7 @@ var types_default = {
6177
6279
  0
6178
6280
  ],
6179
6281
  "user": [
6180
- 263
6282
+ 269
6181
6283
  ],
6182
6284
  "__typename": [
6183
6285
  36
@@ -6203,7 +6305,7 @@ var types_default = {
6203
6305
  36
6204
6306
  ],
6205
6307
  "category": [
6206
- 249
6308
+ 255
6207
6309
  ],
6208
6310
  "createdAt": [
6209
6311
  0
@@ -6218,10 +6320,10 @@ var types_default = {
6218
6320
  0
6219
6321
  ],
6220
6322
  "linkingMethod": [
6221
- 250
6323
+ 256
6222
6324
  ],
6223
6325
  "linkingStatus": [
6224
- 251
6326
+ 257
6225
6327
  ],
6226
6328
  "orderUid": [
6227
6329
  36
@@ -6230,7 +6332,7 @@ var types_default = {
6230
6332
  38
6231
6333
  ],
6232
6334
  "status": [
6233
- 252
6335
+ 258
6234
6336
  ],
6235
6337
  "stripePaymentIntentId": [
6236
6338
  36
@@ -6263,7 +6365,7 @@ var types_default = {
6263
6365
  39
6264
6366
  ],
6265
6367
  "category": [
6266
- 249
6368
+ 255
6267
6369
  ],
6268
6370
  "chargedBaseAmount": [
6269
6371
  38
@@ -6296,7 +6398,7 @@ var types_default = {
6296
6398
  38
6297
6399
  ],
6298
6400
  "merchPurchase": [
6299
- 254
6401
+ 260
6300
6402
  ],
6301
6403
  "merchSizeUid": [
6302
6404
  36
@@ -6329,10 +6431,10 @@ var types_default = {
6329
6431
  36
6330
6432
  ],
6331
6433
  "tickets": [
6332
- 255
6434
+ 261
6333
6435
  ],
6334
6436
  "type": [
6335
- 257
6437
+ 263
6336
6438
  ],
6337
6439
  "uid": [
6338
6440
  35
@@ -6387,7 +6489,7 @@ var types_default = {
6387
6489
  39
6388
6490
  ],
6389
6491
  "state": [
6390
- 256
6492
+ 262
6391
6493
  ],
6392
6494
  "uid": [
6393
6495
  35
@@ -6403,7 +6505,7 @@ var types_default = {
6403
6505
  "InPersonOrderItemType": {},
6404
6506
  "InPersonOrderRefund": {
6405
6507
  "allocations": [
6406
- 259
6508
+ 265
6407
6509
  ],
6408
6510
  "amount": [
6409
6511
  38
@@ -6418,10 +6520,10 @@ var types_default = {
6418
6520
  36
6419
6521
  ],
6420
6522
  "source": [
6421
- 261
6523
+ 267
6422
6524
  ],
6423
6525
  "status": [
6424
- 262
6526
+ 268
6425
6527
  ],
6426
6528
  "stripeRefundId": [
6427
6529
  36
@@ -6453,7 +6555,7 @@ var types_default = {
6453
6555
  39
6454
6556
  ],
6455
6557
  "status": [
6456
- 260
6558
+ 266
6457
6559
  ],
6458
6560
  "ticketUids": [
6459
6561
  36
@@ -6490,7 +6592,7 @@ var types_default = {
6490
6592
  },
6491
6593
  "GetPartnerInPersonChargesResponse": {
6492
6594
  "charges": [
6493
- 265
6595
+ 271
6494
6596
  ],
6495
6597
  "hasNextPage": [
6496
6598
  39
@@ -6525,7 +6627,7 @@ var types_default = {
6525
6627
  36
6526
6628
  ],
6527
6629
  "category": [
6528
- 249
6630
+ 255
6529
6631
  ],
6530
6632
  "createdAt": [
6531
6633
  0
@@ -6543,10 +6645,10 @@ var types_default = {
6543
6645
  0
6544
6646
  ],
6545
6647
  "linkingMethod": [
6546
- 250
6648
+ 256
6547
6649
  ],
6548
6650
  "linkingStatus": [
6549
- 251
6651
+ 257
6550
6652
  ],
6551
6653
  "momentSlug": [
6552
6654
  36
@@ -6561,7 +6663,7 @@ var types_default = {
6561
6663
  38
6562
6664
  ],
6563
6665
  "status": [
6564
- 252
6666
+ 258
6565
6667
  ],
6566
6668
  "stripePaymentIntentId": [
6567
6669
  36
@@ -6587,7 +6689,7 @@ var types_default = {
6587
6689
  },
6588
6690
  "GetPartnerGuestListCheckInsResponse": {
6589
6691
  "batches": [
6590
- 267
6692
+ 273
6591
6693
  ],
6592
6694
  "hasNextPage": [
6593
6695
  39
@@ -6613,7 +6715,7 @@ var types_default = {
6613
6715
  38
6614
6716
  ],
6615
6717
  "source": [
6616
- 268
6718
+ 274
6617
6719
  ],
6618
6720
  "uid": [
6619
6721
  35
@@ -6634,7 +6736,7 @@ var types_default = {
6634
6736
  36
6635
6737
  ],
6636
6738
  "checkInStatus": [
6637
- 270
6739
+ 276
6638
6740
  ],
6639
6741
  "checkedIn": [
6640
6742
  39
@@ -6679,7 +6781,7 @@ var types_default = {
6679
6781
  4
6680
6782
  ],
6681
6783
  "field": [
6682
- 272
6784
+ 278
6683
6785
  ],
6684
6786
  "__typename": [
6685
6787
  36
@@ -6688,7 +6790,7 @@ var types_default = {
6688
6790
  "MomentGuestListSortField": {},
6689
6791
  "GetPartnerMomentGuestListResponse": {
6690
6792
  "guestLists": [
6691
- 274
6793
+ 280
6692
6794
  ],
6693
6795
  "hasNextPage": [
6694
6796
  39
@@ -6708,7 +6810,7 @@ var types_default = {
6708
6810
  39
6709
6811
  ],
6710
6812
  "checkInStatus": [
6711
- 270
6813
+ 276
6712
6814
  ],
6713
6815
  "checkedInAt": [
6714
6816
  0
@@ -6720,16 +6822,16 @@ var types_default = {
6720
6822
  36
6721
6823
  ],
6722
6824
  "guestInfos": [
6723
- 275
6825
+ 281
6724
6826
  ],
6725
6827
  "invitationResponse": [
6726
- 276
6828
+ 282
6727
6829
  ],
6728
6830
  "labels": [
6729
- 277
6831
+ 283
6730
6832
  ],
6731
6833
  "momentOccurrences": [
6732
- 278
6834
+ 284
6733
6835
  ],
6734
6836
  "name": [
6735
6837
  36
@@ -6759,7 +6861,7 @@ var types_default = {
6759
6861
  0
6760
6862
  ],
6761
6863
  "source": [
6762
- 282
6864
+ 288
6763
6865
  ],
6764
6866
  "uid": [
6765
6867
  35
@@ -6899,16 +7001,16 @@ var types_default = {
6899
7001
  38
6900
7002
  ],
6901
7003
  "source": [
6902
- 279
7004
+ 285
6903
7005
  ],
6904
7006
  "startsAt": [
6905
7007
  0
6906
7008
  ],
6907
7009
  "status": [
6908
- 280
7010
+ 286
6909
7011
  ],
6910
7012
  "ticketTierSetupStatus": [
6911
- 281
7013
+ 287
6912
7014
  ],
6913
7015
  "timezone": [
6914
7016
  36
@@ -6976,10 +7078,10 @@ var types_default = {
6976
7078
  36
6977
7079
  ],
6978
7080
  "faqs": [
6979
- 285
7081
+ 291
6980
7082
  ],
6981
7083
  "fields": [
6982
- 286
7084
+ 292
6983
7085
  ],
6984
7086
  "isActive": [
6985
7087
  39
@@ -6994,7 +7096,7 @@ var types_default = {
6994
7096
  36
6995
7097
  ],
6996
7098
  "mode": [
6997
- 290
7099
+ 296
6998
7100
  ],
6999
7101
  "name": [
7000
7102
  36
@@ -7015,13 +7117,13 @@ var types_default = {
7015
7117
  38
7016
7118
  ],
7017
7119
  "sections": [
7018
- 288
7120
+ 294
7019
7121
  ],
7020
7122
  "slug": [
7021
7123
  36
7022
7124
  ],
7023
7125
  "source": [
7024
- 291
7126
+ 297
7025
7127
  ],
7026
7128
  "successMessageBody": [
7027
7129
  36
@@ -7082,7 +7184,7 @@ var types_default = {
7082
7184
  36
7083
7185
  ],
7084
7186
  "optionImages": [
7085
- 287
7187
+ 293
7086
7188
  ],
7087
7189
  "options": [
7088
7190
  36
@@ -7100,7 +7202,7 @@ var types_default = {
7100
7202
  36
7101
7203
  ],
7102
7204
  "type": [
7103
- 289
7205
+ 295
7104
7206
  ],
7105
7207
  "uid": [
7106
7208
  35
@@ -7157,7 +7259,7 @@ var types_default = {
7157
7259
  "FormSource": {},
7158
7260
  "GetFormsPaginatedResponse": {
7159
7261
  "forms": [
7160
- 284
7262
+ 290
7161
7263
  ],
7162
7264
  "hasNextPage": [
7163
7265
  39
@@ -7186,7 +7288,7 @@ var types_default = {
7186
7288
  36
7187
7289
  ],
7188
7290
  "sources": [
7189
- 291
7291
+ 297
7190
7292
  ],
7191
7293
  "take": [
7192
7294
  38
@@ -7226,7 +7328,7 @@ var types_default = {
7226
7328
  0
7227
7329
  ],
7228
7330
  "formField": [
7229
- 286
7331
+ 292
7230
7332
  ],
7231
7333
  "isValid": [
7232
7334
  39
@@ -7276,10 +7378,10 @@ var types_default = {
7276
7378
  36
7277
7379
  ],
7278
7380
  "form": [
7279
- 284
7381
+ 290
7280
7382
  ],
7281
7383
  "formFieldResponses": [
7282
- 295
7384
+ 301
7283
7385
  ],
7284
7386
  "relevancyScore": [
7285
7387
  38
@@ -7305,7 +7407,7 @@ var types_default = {
7305
7407
  },
7306
7408
  "GetPartnerFormResponsesResponse": {
7307
7409
  "formResponses": [
7308
- 296
7410
+ 302
7309
7411
  ],
7310
7412
  "hasNextPage": [
7311
7413
  39
@@ -7325,13 +7427,13 @@ var types_default = {
7325
7427
  39
7326
7428
  ],
7327
7429
  "balance": [
7328
- 301
7430
+ 307
7329
7431
  ],
7330
7432
  "balanceStale": [
7331
7433
  39
7332
7434
  ],
7333
7435
  "capabilities": [
7334
- 302
7436
+ 308
7335
7437
  ],
7336
7438
  "displayName": [
7337
7439
  36
@@ -7351,7 +7453,7 @@ var types_default = {
7351
7453
  36
7352
7454
  ],
7353
7455
  "counterparty": [
7354
- 303
7456
+ 309
7355
7457
  ],
7356
7458
  "currency": [
7357
7459
  36
@@ -7369,7 +7471,7 @@ var types_default = {
7369
7471
  0
7370
7472
  ],
7371
7473
  "operationKind": [
7372
- 313
7474
+ 319
7373
7475
  ],
7374
7476
  "operationUid": [
7375
7477
  36
@@ -7386,7 +7488,7 @@ var types_default = {
7386
7488
  },
7387
7489
  "BrandWalletActivityResponse": {
7388
7490
  "activity": [
7389
- 299
7491
+ 305
7390
7492
  ],
7391
7493
  "activityStale": [
7392
7494
  39
@@ -7443,7 +7545,7 @@ var types_default = {
7443
7545
  },
7444
7546
  "BrandWalletCounterparty": {
7445
7547
  "type": [
7446
- 305
7548
+ 311
7447
7549
  ],
7448
7550
  "value": [
7449
7551
  36
@@ -7454,7 +7556,7 @@ var types_default = {
7454
7556
  },
7455
7557
  "BrandWalletCounterpartyInput": {
7456
7558
  "type": [
7457
- 305
7559
+ 311
7458
7560
  ],
7459
7561
  "value": [
7460
7562
  36
@@ -7475,13 +7577,13 @@ var types_default = {
7475
7577
  0
7476
7578
  ],
7477
7579
  "counterparty": [
7478
- 303
7580
+ 309
7479
7581
  ],
7480
7582
  "createdAt": [
7481
7583
  0
7482
7584
  ],
7483
7585
  "createdBy": [
7484
- 307
7586
+ 313
7485
7587
  ],
7486
7588
  "currency": [
7487
7589
  36
@@ -7499,7 +7601,7 @@ var types_default = {
7499
7601
  39
7500
7602
  ],
7501
7603
  "kind": [
7502
- 313
7604
+ 319
7503
7605
  ],
7504
7606
  "lastErrorCode": [
7505
7607
  36
@@ -7520,7 +7622,7 @@ var types_default = {
7520
7622
  0
7521
7623
  ],
7522
7624
  "provider": [
7523
- 309
7625
+ 315
7524
7626
  ],
7525
7627
  "providerResourceId": [
7526
7628
  36
@@ -7532,7 +7634,7 @@ var types_default = {
7532
7634
  0
7533
7635
  ],
7534
7636
  "status": [
7535
- 314
7637
+ 320
7536
7638
  ],
7537
7639
  "submittedAt": [
7538
7640
  0
@@ -7569,7 +7671,7 @@ var types_default = {
7569
7671
  36
7570
7672
  ],
7571
7673
  "operations": [
7572
- 306
7674
+ 312
7573
7675
  ],
7574
7676
  "totalCount": [
7575
7677
  38
@@ -7590,7 +7692,7 @@ var types_default = {
7590
7692
  38
7591
7693
  ],
7592
7694
  "wallets": [
7593
- 298
7695
+ 304
7594
7696
  ],
7595
7697
  "__typename": [
7596
7698
  36
@@ -7610,7 +7712,7 @@ var types_default = {
7610
7712
  36
7611
7713
  ],
7612
7714
  "payer": [
7613
- 304
7715
+ 310
7614
7716
  ],
7615
7717
  "__typename": [
7616
7718
  36
@@ -7624,7 +7726,7 @@ var types_default = {
7624
7726
  36
7625
7727
  ],
7626
7728
  "counterparty": [
7627
- 304
7729
+ 310
7628
7730
  ],
7629
7731
  "currency": [
7630
7732
  36
@@ -7648,13 +7750,13 @@ var types_default = {
7648
7750
  38
7649
7751
  ],
7650
7752
  "kind": [
7651
- 315
7753
+ 321
7652
7754
  ],
7653
7755
  "name": [
7654
7756
  36
7655
7757
  ],
7656
7758
  "parts": [
7657
- 320
7759
+ 326
7658
7760
  ],
7659
7761
  "setupMinutes": [
7660
7762
  38
@@ -7680,7 +7782,7 @@ var types_default = {
7680
7782
  36
7681
7783
  ],
7682
7784
  "spaces": [
7683
- 320
7785
+ 326
7684
7786
  ],
7685
7787
  "timezone": [
7686
7788
  36
@@ -7697,7 +7799,7 @@ var types_default = {
7697
7799
  39
7698
7800
  ],
7699
7801
  "locations": [
7700
- 321
7802
+ 327
7701
7803
  ],
7702
7804
  "nextCursor": [
7703
7805
  36
@@ -7717,7 +7819,7 @@ var types_default = {
7717
7819
  36
7718
7820
  ],
7719
7821
  "requesterKind": [
7720
- 317
7822
+ 323
7721
7823
  ],
7722
7824
  "title": [
7723
7825
  36
@@ -7758,7 +7860,7 @@ var types_default = {
7758
7860
  38
7759
7861
  ],
7760
7862
  "request": [
7761
- 323
7863
+ 329
7762
7864
  ],
7763
7865
  "requestUid": [
7764
7866
  35
@@ -7773,7 +7875,7 @@ var types_default = {
7773
7875
  0
7774
7876
  ],
7775
7877
  "status": [
7776
- 316
7878
+ 322
7777
7879
  ],
7778
7880
  "uid": [
7779
7881
  35
@@ -7824,13 +7926,13 @@ var types_default = {
7824
7926
  },
7825
7927
  "PartnerSpaceCalendar": {
7826
7928
  "blocks": [
7827
- 325
7929
+ 331
7828
7930
  ],
7829
7931
  "closures": [
7830
- 326
7932
+ 332
7831
7933
  ],
7832
7934
  "holds": [
7833
- 324
7935
+ 330
7834
7936
  ],
7835
7937
  "locationName": [
7836
7938
  36
@@ -7839,7 +7941,7 @@ var types_default = {
7839
7941
  35
7840
7942
  ],
7841
7943
  "spaces": [
7842
- 320
7944
+ 326
7843
7945
  ],
7844
7946
  "timezone": [
7845
7947
  36
@@ -7853,7 +7955,7 @@ var types_default = {
7853
7955
  0
7854
7956
  ],
7855
7957
  "kind": [
7856
- 319
7958
+ 325
7857
7959
  ],
7858
7960
  "label": [
7859
7961
  36
@@ -7873,7 +7975,7 @@ var types_default = {
7873
7975
  39
7874
7976
  ],
7875
7977
  "conflicts": [
7876
- 328
7978
+ 334
7877
7979
  ],
7878
7980
  "lineSize": [
7879
7981
  38
@@ -7882,7 +7984,7 @@ var types_default = {
7882
7984
  36
7883
7985
  ],
7884
7986
  "outcome": [
7885
- 318
7987
+ 324
7886
7988
  ],
7887
7989
  "__typename": [
7888
7990
  36
@@ -7890,7 +7992,7 @@ var types_default = {
7890
7992
  },
7891
7993
  "SpaceAvailabilitySpace": {
7892
7994
  "dates": [
7893
- 329
7995
+ 335
7894
7996
  ],
7895
7997
  "name": [
7896
7998
  36
@@ -7904,7 +8006,7 @@ var types_default = {
7904
8006
  },
7905
8007
  "SpaceAvailability": {
7906
8008
  "spaces": [
7907
- 330
8009
+ 336
7908
8010
  ],
7909
8011
  "timezone": [
7910
8012
  36
@@ -8348,6 +8450,287 @@ async function uploadPartnerMedia(client, source, options = {}) {
8348
8450
  }
8349
8451
  }
8350
8452
 
8351
- export { DEFAULT_API_URL, GenqlError, ITMPartnerMediaUploadError, ITMPartnerTransportError, createITMPartnerClient, detectPartnerMediaTypes, everything, generateMutationOp, generateQueryOp, uploadPartnerMedia };
8453
+ // src/generated/integration-contract.ts
8454
+ var rawPartnerIntegrationContract = {
8455
+ "getPartnerBrand": {
8456
+ "kind": "query",
8457
+ "scope": "itm:workspace:read",
8458
+ "fields": "uid name slug bio publicUrl customDomain spotifyUrl youtubeEmbedUrl"
8459
+ },
8460
+ "getPartnerMomentsForBrand": {
8461
+ "kind": "query",
8462
+ "scope": "itm:workspace:read",
8463
+ "fields": "moments{uid name slug publicUrl blurb startDate endDate timezone status type category isPrivate soldOut capacity venue{name city country}} totalCount hasNextPage nextCursor"
8464
+ },
8465
+ "getPartnerMoment": {
8466
+ "kind": "query",
8467
+ "scope": "itm:workspace:read",
8468
+ "fields": "uid name slug publicUrl blurb startDate endDate timezone status type category isPrivate soldOut capacity venue{name address city country postalCode} description minimumAge externalUrl lineupDisplayLabel coverImage{url} ticketTiers{uid name description currency{code} attendanceMode soldOut minPerUser maxPerUser}"
8469
+ },
8470
+ "getPartnerMomentStats": {
8471
+ "kind": "query",
8472
+ "scope": "itm:workspace:read",
8473
+ "fields": "generatedAt ticketsCount paidTicketsCount freeTicketsCount waitlistCount externalRsvpCount ticketRsvpRequestsCount inPersonOrdersCount inPersonChargesCount guestlist{names namesAllIn namesPartial namesNotArrived people peopleCheckedIn peopleRemaining plusOnes}"
8474
+ },
8475
+ "getPartnerMomentAttendanceStats": {
8476
+ "kind": "query",
8477
+ "scope": "itm:workspace:read",
8478
+ "fields": "momentUid momentSlug generatedAt tickets{total checkedIn tiers{tierUid name label total checkedIn}} guestlist{total checkedIn unlabeled{total checkedIn} labels{labelUid name total checkedIn}}"
8479
+ },
8480
+ "getPartnerTicketTiersForMoment": {
8481
+ "kind": "query",
8482
+ "scope": "itm:workspace:read",
8483
+ "fields": "ticketTiers{uid name label price facilityFee currencyCode supply remainingSupply fillRate isActive isPrivate slotDate slotDurationHours} totalCount hasNextPage nextCursor"
8484
+ },
8485
+ "getPartnerMomentCollection": {
8486
+ "kind": "query",
8487
+ "scope": "itm:workspace:read",
8488
+ "fields": "uid name slug description subLabel links{url label} moments{uid name slug startDate endDate status soldOut venue{name city}}"
8489
+ },
8490
+ "getPartnerDrops": {
8491
+ "kind": "query",
8492
+ "scope": "itm:workspace:read",
8493
+ "fields": "drops{uid name slug publicUrl subtitle isPublic isActive ctaType ctaUrl captureName captureEmail createdAt} totalCount hasNextPage nextCursor"
8494
+ },
8495
+ "getPartnerPublicEchoes": {
8496
+ "kind": "query",
8497
+ "scope": "itm:workspace:read",
8498
+ "fields": "echoes{uid type name slug publicUrl description postBody publishTime externalLink moment{uid name slug}} totalCount hasNextPage nextCursor"
8499
+ },
8500
+ "getPartnerMerch": {
8501
+ "kind": "query",
8502
+ "scope": "itm:workspace:read",
8503
+ "fields": "items{uid name publicUrl description price currency{code} fulfillmentType isLive maxPerUser merchSizes{uid name isSoldOut}} totalCount hasNextPage nextCursor"
8504
+ },
8505
+ "getPartnerMembershipTiers": {
8506
+ "kind": "query",
8507
+ "scope": "itm:workspace:read",
8508
+ "fields": "membershipTiers{uid name slug publicUrl description passType billingInterval currencyCode price yearlyPrice oneTimePrice trialDays isActive isPublic memberLimit activeMemberCount benefits} totalCount hasNextPage nextCursor"
8509
+ },
8510
+ "getPartnerContributionPages": {
8511
+ "kind": "query",
8512
+ "scope": "itm:workspace:read",
8513
+ "fields": "items{uid brandUid slug title description isAccepting archivedAt publicUrl currency{code} successfulContributionCount refundCount grossAmountCents refundedAmountCents netAmountCents createdAt} totalCount hasNextPage nextCursor"
8514
+ },
8515
+ "getPartnerPlans": {
8516
+ "kind": "query",
8517
+ "scope": "itm:workspace:read",
8518
+ "fields": "plans{uid name slug description kind status tags{name} moodboardItemCount createdAt updatedAt} totalCount hasNextPage nextCursor"
8519
+ },
8520
+ "getPartnerPlan": {
8521
+ "kind": "query",
8522
+ "scope": "itm:workspace:read",
8523
+ "fields": "uid name slug description kind status tags{name} updatedAt schedule{type timezone startsAt endsAt startsOn endsOn frequency interval daysOfWeek count includeDates excludeDates occurrenceCount times{time durationMinutes}} moodboard{items{uid type title note linkUrl position}}"
8524
+ },
8525
+ "getPartnerPlanDatePoll": {
8526
+ "kind": "query",
8527
+ "scope": "itm:workspace:read",
8528
+ "fields": "uid status timeMode timezone durationMinutes replyByDate chosenOptionUid answeredCount notAnsweredCount needsUpdateCount results{optionUid localDate startTime endTime status freeCount ifNeedBeCount unavailableCount unansweredCount bestSlot{startTime endTime}}"
8529
+ },
8530
+ "getPartnerPlanBudgets": {
8531
+ "kind": "query",
8532
+ "scope": "itm:workspace:read",
8533
+ "fields": "uid name planUid currencyCode currencyExponent revision scheduleIsStale updatedAt"
8534
+ },
8535
+ "getPartnerPlanBudget": {
8536
+ "kind": "query",
8537
+ "scope": "itm:workspace:read",
8538
+ "fields": "uid name planUid currencyCode currencyExponent revision scheduleIsStale document calculation updatedAt"
8539
+ },
8540
+ "getPartnerAudience": {
8541
+ "kind": "query",
8542
+ "scope": "itm:audience:read",
8543
+ "fields": "customers{uid name email phoneNumber city country isSubscribed emailConsentStatus smsConsentStatus communicationsOptedOut totalSpendUsdCents numMoments numProducts createdAt} totalCount hasNextPage nextCursor"
8544
+ },
8545
+ "getPartnerCustomersForMoment": {
8546
+ "kind": "query",
8547
+ "scope": "itm:audience:read",
8548
+ "fields": "customers{user{uid name primaryEmail phoneNumber} tickets{uid status price redeemedAt ticketTier{uid name}}} totalCount hasNextPage nextCursor"
8549
+ },
8550
+ "getPartnerMembers": {
8551
+ "kind": "query",
8552
+ "scope": "itm:audience:read",
8553
+ "fields": "members{uid status membershipNumber source purchaseType billingInterval quantity issuedAt currentPeriodEnd cancelAtPeriodEnd cancelledAt customer{uid name email phoneNumber} membershipTier{uid name slug passType}} totalCount hasNextPage nextCursor"
8554
+ },
8555
+ "getPartnerTicketsForMoment": {
8556
+ "kind": "query",
8557
+ "scope": "itm:audience:read",
8558
+ "fields": "tickets{uid status price redeemedAt hasExpired notes createdAt ticketTier{uid name} user{uid name primaryEmail phoneNumber} payment{status}} totalCount hasNextPage nextCursor"
8559
+ },
8560
+ "getPartnerTicketsForUser": {
8561
+ "kind": "query",
8562
+ "scope": "itm:audience:read",
8563
+ "fields": "tickets{uid status price redeemedAt hasExpired createdAt ticketTier{uid name} moment{uid name slug startDate}} totalCount hasNextPage nextCursor"
8564
+ },
8565
+ "getPartnerGuestListForMoment": {
8566
+ "kind": "query",
8567
+ "scope": "itm:audience:read",
8568
+ "fields": "guestLists{uid name email phoneNumber plusOnes numGuests numCheckedIn checkInStatus checkedInAt notes source respondedToInvitation labels{uid name} createdAt} totalCount hasNextPage nextCursor"
8569
+ },
8570
+ "getPartnerGuestListCheckIns": {
8571
+ "kind": "query",
8572
+ "scope": "itm:audience:read",
8573
+ "fields": "batches{uid checkedInAt count activeCount source voidedAt voidReason} totalCount hasNextPage nextCursor"
8574
+ },
8575
+ "getPartnerContributions": {
8576
+ "kind": "query",
8577
+ "scope": "itm:audience:read",
8578
+ "fields": "items{uid contributionPageUid pageTitle donorName donorEmail donorPhoneNumber source currencyCode amountCents refundedAmountCents status paidAt note isGuest createdAt} totalCount hasNextPage nextCursor"
8579
+ },
8580
+ "getPartnerInPersonOrdersForMoment": {
8581
+ "kind": "query",
8582
+ "scope": "itm:audience:read",
8583
+ "fields": "orders{uid status momentSlug currencyCode grossAmount subtotalAmount taxAmount refundedAmount paidAt createdAt user{uid name primaryEmail phoneNumber} items{uid type category name variantName quantity unitAmount lineAmount refundedQuantity}} totalCount hasNextPage nextCursor"
8584
+ },
8585
+ "getPartnerInPersonOrder": {
8586
+ "kind": "query",
8587
+ "scope": "itm:audience:read",
8588
+ "fields": "uid status momentSlug currencyCode grossAmount subtotalAmount taxAmount refundedAmount paidAt createdAt user{uid name primaryEmail phoneNumber} items{uid type category name variantName quantity unitAmount lineAmount refundedQuantity} cancellationReason charge{uid status amount category cardBrand cardLast4 billingEmail} refunds{uid amount status reason failureReason source createdAt}"
8589
+ },
8590
+ "getPartnerInPersonChargesForMoment": {
8591
+ "kind": "query",
8592
+ "scope": "itm:audience:read",
8593
+ "fields": "charges{uid orderUid status category currencyCode amount subtotalAmount taxAmount quantity description cardBrand cardLast4 billingEmail linkingStatus createdAt} totalCount hasNextPage nextCursor"
8594
+ },
8595
+ "getPartnerSpaceLocations": {
8596
+ "kind": "query",
8597
+ "scope": "itm:workspace:read",
8598
+ "fields": "locations{uid name city country timezone spaces{uid name kind capacity setupMinutes teardownMinutes parts{uid}}} totalCount hasNextPage nextCursor"
8599
+ },
8600
+ "getPartnerSpaceCalendar": {
8601
+ "kind": "query",
8602
+ "scope": "itm:workspace:read",
8603
+ "fields": "locationUid locationName timezone spaces{uid name kind capacity parts{uid}} holds{uid spaceUid localDate startsAt endsAt occupiedStartsAt occupiedEndsAt status position expiresAt respondBy isLapsed isChallengeOverdue request{uid title requesterKind organization headcount}} blocks{uid spaceUid startsAt endsAt reason} closures{spaceUid localDate startsAt endsAt note}"
8604
+ },
8605
+ "getPartnerSpaceAvailability": {
8606
+ "kind": "query",
8607
+ "scope": "itm:workspace:read",
8608
+ "fields": "timezone spaces{spaceUid name dates{localDate outcome lineSize closed conflicts{kind label startsAt endsAt}}}"
8609
+ },
8610
+ "getPartnerMediaAssets": {
8611
+ "kind": "query",
8612
+ "scope": "itm:media:write",
8613
+ "fields": "mediaAssets{uid url mimeType size dimensions{width height} createdAt} totalCount hasNextPage nextCursor"
8614
+ },
8615
+ "getPartnerMediaAsset": {
8616
+ "kind": "query",
8617
+ "scope": "itm:media:write",
8618
+ "fields": "uid url mimeType size dimensions{width height} createdAt"
8619
+ },
8620
+ "createPartnerMediaUpload": {
8621
+ "kind": "mutation",
8622
+ "scope": "itm:media:write",
8623
+ "fields": "uploadKey uploadUrl expiresAt"
8624
+ },
8625
+ "completePartnerMediaUpload": {
8626
+ "kind": "mutation",
8627
+ "scope": "itm:media:write",
8628
+ "fields": "uid url mimeType size dimensions{width height} createdAt"
8629
+ }
8630
+ };
8631
+
8632
+ // src/integration.ts
8633
+ var VALID_KINDS = /* @__PURE__ */ new Set(["query", "mutation"]);
8634
+ var SCOPE_TOKEN = /^[\u0021\u0023-\u005B\u005D-\u007E]+$/;
8635
+ var partnerIntegrationContract = Object.freeze(
8636
+ Object.fromEntries(
8637
+ Object.entries(rawPartnerIntegrationContract).map(([root, entry]) => {
8638
+ if (!VALID_KINDS.has(entry.kind) || typeof entry.scope !== "string" || !SCOPE_TOKEN.test(entry.scope) || typeof entry.fields !== "string" || entry.fields.trim().length === 0) {
8639
+ throw new Error(`Invalid integration contract entry for "${root}"`);
8640
+ }
8641
+ return [root, Object.freeze({ ...entry })];
8642
+ })
8643
+ )
8644
+ );
8645
+ var IDENTIFIER_START = /[A-Za-z_]/;
8646
+ var IDENTIFIER_CHAR = /[A-Za-z0-9_]/;
8647
+ function parseIntegrationSelection(source) {
8648
+ let cursor = 0;
8649
+ const skipWhitespace = () => {
8650
+ while (cursor < source.length) {
8651
+ const ch = source[cursor];
8652
+ if (ch === " " || ch === " " || ch === "\n" || ch === "\r" || ch === ",") {
8653
+ cursor += 1;
8654
+ } else {
8655
+ break;
8656
+ }
8657
+ }
8658
+ };
8659
+ const readIdentifier = () => {
8660
+ const start = cursor;
8661
+ if (cursor >= source.length || !IDENTIFIER_START.test(source[cursor])) {
8662
+ throw new Error(
8663
+ `Unexpected character ${JSON.stringify(source[cursor] ?? "EOF")} at position ${cursor} in integration selection`
8664
+ );
8665
+ }
8666
+ cursor += 1;
8667
+ while (cursor < source.length && IDENTIFIER_CHAR.test(source[cursor])) {
8668
+ cursor += 1;
8669
+ }
8670
+ const name = source.slice(start, cursor);
8671
+ if (name.startsWith("__")) {
8672
+ throw new Error(
8673
+ `Reserved field name "${name}" is not permitted in integration selection`
8674
+ );
8675
+ }
8676
+ return name;
8677
+ };
8678
+ const parseBlock = (untilBrace) => {
8679
+ const selection = {};
8680
+ let count = 0;
8681
+ while (true) {
8682
+ skipWhitespace();
8683
+ if (cursor >= source.length) {
8684
+ if (untilBrace) {
8685
+ throw new Error(
8686
+ "Unterminated selection block in integration selection"
8687
+ );
8688
+ }
8689
+ break;
8690
+ }
8691
+ if (source[cursor] === "}") {
8692
+ if (!untilBrace) {
8693
+ throw new Error(
8694
+ `Unexpected "}" at position ${cursor} in integration selection`
8695
+ );
8696
+ }
8697
+ cursor += 1;
8698
+ break;
8699
+ }
8700
+ const name = readIdentifier();
8701
+ if (Object.prototype.hasOwnProperty.call(selection, name)) {
8702
+ throw new Error(`Duplicate field "${name}" in integration selection`);
8703
+ }
8704
+ skipWhitespace();
8705
+ if (cursor < source.length && source[cursor] === "{") {
8706
+ cursor += 1;
8707
+ selection[name] = parseBlock(true);
8708
+ } else {
8709
+ selection[name] = true;
8710
+ }
8711
+ count += 1;
8712
+ }
8713
+ if (count === 0) {
8714
+ throw new Error("Empty selection block in integration selection");
8715
+ }
8716
+ return selection;
8717
+ };
8718
+ const result = parseBlock(false);
8719
+ skipWhitespace();
8720
+ if (cursor !== source.length) {
8721
+ throw new Error(
8722
+ `Unexpected trailing input at position ${cursor} in integration selection`
8723
+ );
8724
+ }
8725
+ return result;
8726
+ }
8727
+ function integrationSelection(root) {
8728
+ if (!Object.prototype.hasOwnProperty.call(partnerIntegrationContract, root)) {
8729
+ throw new Error(`Unknown partner integration operation: ${String(root)}`);
8730
+ }
8731
+ return parseIntegrationSelection(partnerIntegrationContract[root].fields);
8732
+ }
8733
+
8734
+ export { DEFAULT_API_URL, GenqlError, ITMPartnerMediaUploadError, ITMPartnerTransportError, createITMPartnerClient, detectPartnerMediaTypes, everything, generateMutationOp, generateQueryOp, integrationSelection, partnerIntegrationContract, uploadPartnerMedia };
8352
8735
  //# sourceMappingURL=index.mjs.map
8353
8736
  //# sourceMappingURL=index.mjs.map