@itm-studio/partner-sdk 0.6.9 → 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.js CHANGED
@@ -641,45 +641,53 @@ var types_default = {
641
641
  203,
642
642
  207,
643
643
  208,
644
- 217,
645
- 218,
646
- 219,
647
- 221,
644
+ 212,
645
+ 213,
646
+ 214,
648
647
  223,
649
- 226,
648
+ 224,
649
+ 225,
650
650
  227,
651
- 228,
652
651
  229,
653
- 231,
654
652
  232,
653
+ 233,
654
+ 234,
655
655
  235,
656
- 236,
657
656
  237,
658
657
  238,
659
- 245,
660
- 249,
661
- 250,
658
+ 241,
659
+ 242,
660
+ 243,
661
+ 244,
662
662
  251,
663
- 252,
663
+ 255,
664
664
  256,
665
665
  257,
666
- 260,
667
- 261,
666
+ 258,
668
667
  262,
668
+ 263,
669
+ 266,
670
+ 267,
669
671
  268,
670
- 270,
671
- 272,
672
- 279,
673
- 280,
674
- 281,
675
- 282,
676
- 289,
677
- 290,
678
- 291,
679
- 305,
680
- 309,
681
- 313,
682
- 314
672
+ 274,
673
+ 276,
674
+ 278,
675
+ 285,
676
+ 286,
677
+ 287,
678
+ 288,
679
+ 295,
680
+ 296,
681
+ 297,
682
+ 311,
683
+ 315,
684
+ 319,
685
+ 320,
686
+ 321,
687
+ 322,
688
+ 323,
689
+ 324,
690
+ 325
683
691
  ],
684
692
  "types": {
685
693
  "DateTime": {},
@@ -1847,7 +1855,7 @@ var types_default = {
1847
1855
  38
1848
1856
  ],
1849
1857
  "guestlist": [
1850
- 283
1858
+ 289
1851
1859
  ],
1852
1860
  "__typename": [
1853
1861
  36
@@ -2442,6 +2450,9 @@ var types_default = {
2442
2450
  ]
2443
2451
  },
2444
2452
  "PartnerTicketTier": {
2453
+ "currencyCode": [
2454
+ 36
2455
+ ],
2445
2456
  "fillRate": [
2446
2457
  50
2447
2458
  ],
@@ -3634,7 +3645,7 @@ var types_default = {
3634
3645
  },
3635
3646
  "Query": {
3636
3647
  "getPartnerWalletOperation": [
3637
- 306,
3648
+ 312,
3638
3649
  {
3639
3650
  "brandUid": [
3640
3651
  36,
@@ -3651,7 +3662,7 @@ var types_default = {
3651
3662
  }
3652
3663
  ],
3653
3664
  "listPartnerWalletActivity": [
3654
- 300,
3665
+ 306,
3655
3666
  {
3656
3667
  "brandUid": [
3657
3668
  36,
@@ -3670,7 +3681,7 @@ var types_default = {
3670
3681
  }
3671
3682
  ],
3672
3683
  "listPartnerWalletOperations": [
3673
- 308,
3684
+ 314,
3674
3685
  {
3675
3686
  "brandUid": [
3676
3687
  36,
@@ -3683,10 +3694,10 @@ var types_default = {
3683
3694
  39
3684
3695
  ],
3685
3696
  "kind": [
3686
- 313
3697
+ 319
3687
3698
  ],
3688
3699
  "statuses": [
3689
- 314,
3700
+ 320,
3690
3701
  "[WalletOperationStatus!]"
3691
3702
  ],
3692
3703
  "take": [
@@ -3698,7 +3709,7 @@ var types_default = {
3698
3709
  }
3699
3710
  ],
3700
3711
  "listPartnerWallets": [
3701
- 310,
3712
+ 316,
3702
3713
  {
3703
3714
  "brandUid": [
3704
3715
  36,
@@ -3713,15 +3724,15 @@ var types_default = {
3713
3724
  }
3714
3725
  ],
3715
3726
  "getPartnerForms": [
3716
- 292,
3727
+ 298,
3717
3728
  {
3718
3729
  "input": [
3719
- 293
3730
+ 299
3720
3731
  ]
3721
3732
  }
3722
3733
  ],
3723
3734
  "getPartnerForm": [
3724
- 284,
3735
+ 290,
3725
3736
  {
3726
3737
  "uid": [
3727
3738
  36,
@@ -3730,15 +3741,15 @@ var types_default = {
3730
3741
  }
3731
3742
  ],
3732
3743
  "getPartnerFormResponses": [
3733
- 297,
3744
+ 303,
3734
3745
  {
3735
3746
  "input": [
3736
- 294
3747
+ 300
3737
3748
  ]
3738
3749
  }
3739
3750
  ],
3740
3751
  "getPartnerInPersonOrdersForMoment": [
3741
- 246,
3752
+ 252,
3742
3753
  {
3743
3754
  "cursor": [
3744
3755
  36
@@ -3748,7 +3759,7 @@ var types_default = {
3748
3759
  "String!"
3749
3760
  ],
3750
3761
  "statuses": [
3751
- 245,
3762
+ 251,
3752
3763
  "[InPersonOrderStatus!]"
3753
3764
  ],
3754
3765
  "take": [
@@ -3757,7 +3768,7 @@ var types_default = {
3757
3768
  }
3758
3769
  ],
3759
3770
  "getPartnerInPersonOrder": [
3760
- 247,
3771
+ 253,
3761
3772
  {
3762
3773
  "orderUid": [
3763
3774
  36,
@@ -3766,10 +3777,10 @@ var types_default = {
3766
3777
  }
3767
3778
  ],
3768
3779
  "getPartnerInPersonChargesForMoment": [
3769
- 264,
3780
+ 270,
3770
3781
  {
3771
3782
  "category": [
3772
- 249
3783
+ 255
3773
3784
  ],
3774
3785
  "cursor": [
3775
3786
  36
@@ -3779,7 +3790,7 @@ var types_default = {
3779
3790
  "String!"
3780
3791
  ],
3781
3792
  "statuses": [
3782
- 252,
3793
+ 258,
3783
3794
  "[ChargeStatus!]"
3784
3795
  ],
3785
3796
  "take": [
@@ -4127,7 +4138,7 @@ var types_default = {
4127
4138
  ]
4128
4139
  }
4129
4140
  ],
4130
- "getPartnerPlanBudgets": [
4141
+ "getPartnerPlanDatePoll": [
4131
4142
  209,
4132
4143
  {
4133
4144
  "planUid": [
@@ -4136,8 +4147,17 @@ var types_default = {
4136
4147
  ]
4137
4148
  }
4138
4149
  ],
4150
+ "getPartnerPlanBudgets": [
4151
+ 215,
4152
+ {
4153
+ "planUid": [
4154
+ 36,
4155
+ "String!"
4156
+ ]
4157
+ }
4158
+ ],
4139
4159
  "getPartnerPlanBudget": [
4140
- 210,
4160
+ 216,
4141
4161
  {
4142
4162
  "budgetUid": [
4143
4163
  36,
@@ -4146,7 +4166,7 @@ var types_default = {
4146
4166
  }
4147
4167
  ],
4148
4168
  "getPartnerPlanningSource": [
4149
- 211,
4169
+ 217,
4150
4170
  {
4151
4171
  "offset": [
4152
4172
  38,
@@ -4163,7 +4183,7 @@ var types_default = {
4163
4183
  }
4164
4184
  ],
4165
4185
  "getPartnerPlanningProposal": [
4166
- 213,
4186
+ 219,
4167
4187
  {
4168
4188
  "uid": [
4169
4189
  36,
@@ -4172,7 +4192,7 @@ var types_default = {
4172
4192
  }
4173
4193
  ],
4174
4194
  "getPartnerGuestListCheckIns": [
4175
- 266,
4195
+ 272,
4176
4196
  {
4177
4197
  "cursor": [
4178
4198
  36
@@ -4191,26 +4211,55 @@ var types_default = {
4191
4211
  }
4192
4212
  ],
4193
4213
  "getPartnerGuestListForMoment": [
4194
- 273,
4214
+ 279,
4195
4215
  {
4196
4216
  "cursor": [
4197
4217
  36
4198
4218
  ],
4199
4219
  "filters": [
4200
- 269
4220
+ 275
4201
4221
  ],
4202
4222
  "momentSlug": [
4203
4223
  36,
4204
4224
  "String!"
4205
4225
  ],
4206
4226
  "sort": [
4207
- 271
4227
+ 277
4208
4228
  ],
4209
4229
  "take": [
4210
4230
  38
4211
4231
  ]
4212
4232
  }
4213
4233
  ],
4234
+ "getPartnerSpaceLocations": [
4235
+ 328,
4236
+ {
4237
+ "cursor": [
4238
+ 36
4239
+ ],
4240
+ "take": [
4241
+ 38
4242
+ ]
4243
+ }
4244
+ ],
4245
+ "getPartnerSpaceCalendar": [
4246
+ 333,
4247
+ {
4248
+ "input": [
4249
+ 338,
4250
+ "SpaceCalendarInput!"
4251
+ ]
4252
+ }
4253
+ ],
4254
+ "getPartnerSpaceAvailability": [
4255
+ 337,
4256
+ {
4257
+ "input": [
4258
+ 339,
4259
+ "SpaceAvailabilityInput!"
4260
+ ]
4261
+ }
4262
+ ],
4214
4263
  "__typename": [
4215
4264
  36
4216
4265
  ]
@@ -4913,7 +4962,7 @@ var types_default = {
4913
4962
  },
4914
4963
  "Mutation": {
4915
4964
  "confirmPartnerWalletOperation": [
4916
- 306,
4965
+ 312,
4917
4966
  {
4918
4967
  "brandUid": [
4919
4968
  36,
@@ -4930,14 +4979,14 @@ var types_default = {
4930
4979
  }
4931
4980
  ],
4932
4981
  "createPartnerWalletPaymentRequest": [
4933
- 306,
4982
+ 312,
4934
4983
  {
4935
4984
  "brandUid": [
4936
4985
  36,
4937
4986
  "String!"
4938
4987
  ],
4939
4988
  "input": [
4940
- 311,
4989
+ 317,
4941
4990
  "CreateBrandWalletPaymentRequestInput!"
4942
4991
  ],
4943
4992
  "walletUid": [
@@ -4947,14 +4996,14 @@ var types_default = {
4947
4996
  }
4948
4997
  ],
4949
4998
  "preparePartnerWalletPayment": [
4950
- 306,
4999
+ 312,
4951
5000
  {
4952
5001
  "brandUid": [
4953
5002
  36,
4954
5003
  "String!"
4955
5004
  ],
4956
5005
  "input": [
4957
- 312,
5006
+ 318,
4958
5007
  "PrepareBrandWalletPaymentInput!"
4959
5008
  ],
4960
5009
  "walletUid": [
@@ -5174,10 +5223,10 @@ var types_default = {
5174
5223
  }
5175
5224
  ],
5176
5225
  "preparePartnerPlanningProposal": [
5177
- 213,
5226
+ 219,
5178
5227
  {
5179
5228
  "input": [
5180
- 214,
5229
+ 220,
5181
5230
  "PreparePlanningProposalInput!"
5182
5231
  ],
5183
5232
  "toolCallId": [
@@ -5187,7 +5236,7 @@ var types_default = {
5187
5236
  }
5188
5237
  ],
5189
5238
  "decidePartnerPlanningProposal": [
5190
- 213,
5239
+ 219,
5191
5240
  {
5192
5241
  "approve": [
5193
5242
  39,
@@ -5476,6 +5525,93 @@ var types_default = {
5476
5525
  },
5477
5526
  "PlanLinkMetadataStatus": {},
5478
5527
  "PlanMoodboardItemType": {},
5528
+ "PartnerPlanDatePoll": {
5529
+ "uid": [
5530
+ 35
5531
+ ],
5532
+ "status": [
5533
+ 212
5534
+ ],
5535
+ "timeMode": [
5536
+ 213
5537
+ ],
5538
+ "timezone": [
5539
+ 36
5540
+ ],
5541
+ "durationMinutes": [
5542
+ 38
5543
+ ],
5544
+ "replyByDate": [
5545
+ 36
5546
+ ],
5547
+ "chosenOptionUid": [
5548
+ 35
5549
+ ],
5550
+ "answeredCount": [
5551
+ 38
5552
+ ],
5553
+ "notAnsweredCount": [
5554
+ 38
5555
+ ],
5556
+ "needsUpdateCount": [
5557
+ 38
5558
+ ],
5559
+ "results": [
5560
+ 210
5561
+ ],
5562
+ "__typename": [
5563
+ 36
5564
+ ]
5565
+ },
5566
+ "PartnerPlanDatePollOptionResult": {
5567
+ "optionUid": [
5568
+ 35
5569
+ ],
5570
+ "localDate": [
5571
+ 36
5572
+ ],
5573
+ "startTime": [
5574
+ 36
5575
+ ],
5576
+ "endTime": [
5577
+ 36
5578
+ ],
5579
+ "status": [
5580
+ 214
5581
+ ],
5582
+ "freeCount": [
5583
+ 38
5584
+ ],
5585
+ "ifNeedBeCount": [
5586
+ 38
5587
+ ],
5588
+ "unavailableCount": [
5589
+ 38
5590
+ ],
5591
+ "unansweredCount": [
5592
+ 38
5593
+ ],
5594
+ "bestSlot": [
5595
+ 211
5596
+ ],
5597
+ "__typename": [
5598
+ 36
5599
+ ]
5600
+ },
5601
+ "PlanDatePollSlot": {
5602
+ "startTime": [
5603
+ 36
5604
+ ],
5605
+ "endTime": [
5606
+ 36
5607
+ ],
5608
+ "__typename": [
5609
+ 36
5610
+ ]
5611
+ },
5612
+ "PlanDatePollStatus": {},
5613
+ "PlanDatePollTimeMode": {},
5614
+ "PlanDatePollOptionStatus": {},
5479
5615
  "PlanBudgetSummary": {
5480
5616
  "createdAt": [
5481
5617
  0
@@ -5560,7 +5696,7 @@ var types_default = {
5560
5696
  38
5561
5697
  ],
5562
5698
  "sections": [
5563
- 212
5699
+ 218
5564
5700
  ],
5565
5701
  "status": [
5566
5702
  36
@@ -5611,16 +5747,16 @@ var types_default = {
5611
5747
  },
5612
5748
  "PreparePlanningProposalInput": {
5613
5749
  "budgetDraft": [
5614
- 215
5750
+ 221
5615
5751
  ],
5616
5752
  "budgetUid": [
5617
5753
  36
5618
5754
  ],
5619
5755
  "createBudget": [
5620
- 239
5756
+ 245
5621
5757
  ],
5622
5758
  "createPlan": [
5623
- 240
5759
+ 246
5624
5760
  ],
5625
5761
  "expectedBudgetRevision": [
5626
5762
  38
@@ -5638,16 +5774,16 @@ var types_default = {
5638
5774
  36
5639
5775
  ],
5640
5776
  "schedule": [
5641
- 241
5777
+ 247
5642
5778
  ],
5643
5779
  "sourceDispositions": [
5644
- 243
5780
+ 249
5645
5781
  ],
5646
5782
  "tagNames": [
5647
5783
  36
5648
5784
  ],
5649
5785
  "updatePlan": [
5650
- 244
5786
+ 250
5651
5787
  ],
5652
5788
  "__typename": [
5653
5789
  36
@@ -5655,7 +5791,7 @@ var types_default = {
5655
5791
  },
5656
5792
  "ReplacePlanBudgetDraftInput": {
5657
5793
  "artistDeal": [
5658
- 216
5794
+ 222
5659
5795
  ],
5660
5796
  "averageTicketsPerCheckout": [
5661
5797
  36
@@ -5664,22 +5800,22 @@ var types_default = {
5664
5800
  38
5665
5801
  ],
5666
5802
  "capacityAllocations": [
5667
- 220
5803
+ 226
5668
5804
  ],
5669
5805
  "categories": [
5670
- 222
5806
+ 228
5671
5807
  ],
5672
5808
  "externalTicketingChannels": [
5673
- 224
5809
+ 230
5674
5810
  ],
5675
5811
  "lines": [
5676
- 230
5812
+ 236
5677
5813
  ],
5678
5814
  "physicalCapacity": [
5679
5815
  38
5680
5816
  ],
5681
5817
  "ticketTiers": [
5682
- 233
5818
+ 239
5683
5819
  ],
5684
5820
  "walkoutSellThroughBps": [
5685
5821
  38
@@ -5690,10 +5826,10 @@ var types_default = {
5690
5826
  },
5691
5827
  "PlanBudgetArtistDealInput": {
5692
5828
  "basis": [
5693
- 217
5829
+ 223
5694
5830
  ],
5695
5831
  "guaranteeBasis": [
5696
- 218
5832
+ 224
5697
5833
  ],
5698
5834
  "guaranteeMinor": [
5699
5835
  36
@@ -5705,7 +5841,7 @@ var types_default = {
5705
5841
  38
5706
5842
  ],
5707
5843
  "type": [
5708
- 219
5844
+ 225
5709
5845
  ],
5710
5846
  "uid": [
5711
5847
  36
@@ -5731,7 +5867,7 @@ var types_default = {
5731
5867
  38
5732
5868
  ],
5733
5869
  "type": [
5734
- 221
5870
+ 227
5735
5871
  ],
5736
5872
  "uid": [
5737
5873
  36
@@ -5743,7 +5879,7 @@ var types_default = {
5743
5879
  "PlanBudgetAllocationType": {},
5744
5880
  "PlanBudgetCategoryInput": {
5745
5881
  "kind": [
5746
- 223
5882
+ 229
5747
5883
  ],
5748
5884
  "name": [
5749
5885
  36
@@ -5770,7 +5906,7 @@ var types_default = {
5770
5906
  36
5771
5907
  ],
5772
5908
  "feeComponents": [
5773
- 225
5909
+ 231
5774
5910
  ],
5775
5911
  "name": [
5776
5912
  36
@@ -5787,13 +5923,13 @@ var types_default = {
5787
5923
  },
5788
5924
  "PlanBudgetTicketingFeeComponentInput": {
5789
5925
  "assessment": [
5790
- 226
5926
+ 232
5791
5927
  ],
5792
5928
  "fixedAmountMinor": [
5793
5929
  36
5794
5930
  ],
5795
5931
  "kind": [
5796
- 227
5932
+ 233
5797
5933
  ],
5798
5934
  "label": [
5799
5935
  36
@@ -5802,7 +5938,7 @@ var types_default = {
5802
5938
  36
5803
5939
  ],
5804
5940
  "percentageBasis": [
5805
- 228
5941
+ 234
5806
5942
  ],
5807
5943
  "position": [
5808
5944
  38
@@ -5811,7 +5947,7 @@ var types_default = {
5811
5947
  38
5812
5948
  ],
5813
5949
  "treatment": [
5814
- 229
5950
+ 235
5815
5951
  ],
5816
5952
  "uid": [
5817
5953
  36
@@ -5844,19 +5980,19 @@ var types_default = {
5844
5980
  36
5845
5981
  ],
5846
5982
  "formulaBasis": [
5847
- 231
5983
+ 237
5848
5984
  ],
5849
5985
  "gratuityBps": [
5850
5986
  38
5851
5987
  ],
5852
5988
  "kind": [
5853
- 223
5989
+ 229
5854
5990
  ],
5855
5991
  "name": [
5856
5992
  36
5857
5993
  ],
5858
5994
  "paymentStatus": [
5859
- 232
5995
+ 238
5860
5996
  ],
5861
5997
  "plannedUnitAmountMinor": [
5862
5998
  36
@@ -5893,7 +6029,7 @@ var types_default = {
5893
6029
  38
5894
6030
  ],
5895
6031
  "chargeRules": [
5896
- 234
6032
+ 240
5897
6033
  ],
5898
6034
  "externalTicketingChannelUid": [
5899
6035
  36
@@ -5908,7 +6044,7 @@ var types_default = {
5908
6044
  38
5909
6045
  ],
5910
6046
  "pricingMode": [
5911
- 237
6047
+ 243
5912
6048
  ],
5913
6049
  "roundingIncrementMinor": [
5914
6050
  36
@@ -5920,7 +6056,7 @@ var types_default = {
5920
6056
  0
5921
6057
  ],
5922
6058
  "ticketingChannelType": [
5923
- 238
6059
+ 244
5924
6060
  ],
5925
6061
  "uid": [
5926
6062
  36
@@ -5934,10 +6070,10 @@ var types_default = {
5934
6070
  36
5935
6071
  ],
5936
6072
  "calculation": [
5937
- 235
6073
+ 241
5938
6074
  ],
5939
6075
  "kind": [
5940
- 236
6076
+ 242
5941
6077
  ],
5942
6078
  "position": [
5943
6079
  38
@@ -5946,7 +6082,7 @@ var types_default = {
5946
6082
  38
5947
6083
  ],
5948
6084
  "treatment": [
5949
- 229
6085
+ 235
5950
6086
  ],
5951
6087
  "uid": [
5952
6088
  36
@@ -5984,7 +6120,7 @@ var types_default = {
5984
6120
  36
5985
6121
  ],
5986
6122
  "schedule": [
5987
- 241
6123
+ 247
5988
6124
  ],
5989
6125
  "slug": [
5990
6126
  36
@@ -6028,7 +6164,7 @@ var types_default = {
6028
6164
  36
6029
6165
  ],
6030
6166
  "times": [
6031
- 242
6167
+ 248
6032
6168
  ],
6033
6169
  "timezone": [
6034
6170
  36
@@ -6100,7 +6236,7 @@ var types_default = {
6100
6236
  36
6101
6237
  ],
6102
6238
  "orders": [
6103
- 247
6239
+ 253
6104
6240
  ],
6105
6241
  "totalCount": [
6106
6242
  38
@@ -6114,7 +6250,7 @@ var types_default = {
6114
6250
  36
6115
6251
  ],
6116
6252
  "charge": [
6117
- 248
6253
+ 254
6118
6254
  ],
6119
6255
  "createdAt": [
6120
6256
  0
@@ -6129,7 +6265,7 @@ var types_default = {
6129
6265
  38
6130
6266
  ],
6131
6267
  "items": [
6132
- 253
6268
+ 259
6133
6269
  ],
6134
6270
  "momentSlug": [
6135
6271
  36
@@ -6144,10 +6280,10 @@ var types_default = {
6144
6280
  38
6145
6281
  ],
6146
6282
  "refunds": [
6147
- 258
6283
+ 264
6148
6284
  ],
6149
6285
  "status": [
6150
- 245
6286
+ 251
6151
6287
  ],
6152
6288
  "subtotalAmount": [
6153
6289
  38
@@ -6165,7 +6301,7 @@ var types_default = {
6165
6301
  0
6166
6302
  ],
6167
6303
  "user": [
6168
- 263
6304
+ 269
6169
6305
  ],
6170
6306
  "__typename": [
6171
6307
  36
@@ -6191,7 +6327,7 @@ var types_default = {
6191
6327
  36
6192
6328
  ],
6193
6329
  "category": [
6194
- 249
6330
+ 255
6195
6331
  ],
6196
6332
  "createdAt": [
6197
6333
  0
@@ -6206,10 +6342,10 @@ var types_default = {
6206
6342
  0
6207
6343
  ],
6208
6344
  "linkingMethod": [
6209
- 250
6345
+ 256
6210
6346
  ],
6211
6347
  "linkingStatus": [
6212
- 251
6348
+ 257
6213
6349
  ],
6214
6350
  "orderUid": [
6215
6351
  36
@@ -6218,7 +6354,7 @@ var types_default = {
6218
6354
  38
6219
6355
  ],
6220
6356
  "status": [
6221
- 252
6357
+ 258
6222
6358
  ],
6223
6359
  "stripePaymentIntentId": [
6224
6360
  36
@@ -6251,7 +6387,7 @@ var types_default = {
6251
6387
  39
6252
6388
  ],
6253
6389
  "category": [
6254
- 249
6390
+ 255
6255
6391
  ],
6256
6392
  "chargedBaseAmount": [
6257
6393
  38
@@ -6284,7 +6420,7 @@ var types_default = {
6284
6420
  38
6285
6421
  ],
6286
6422
  "merchPurchase": [
6287
- 254
6423
+ 260
6288
6424
  ],
6289
6425
  "merchSizeUid": [
6290
6426
  36
@@ -6317,10 +6453,10 @@ var types_default = {
6317
6453
  36
6318
6454
  ],
6319
6455
  "tickets": [
6320
- 255
6456
+ 261
6321
6457
  ],
6322
6458
  "type": [
6323
- 257
6459
+ 263
6324
6460
  ],
6325
6461
  "uid": [
6326
6462
  35
@@ -6375,7 +6511,7 @@ var types_default = {
6375
6511
  39
6376
6512
  ],
6377
6513
  "state": [
6378
- 256
6514
+ 262
6379
6515
  ],
6380
6516
  "uid": [
6381
6517
  35
@@ -6391,7 +6527,7 @@ var types_default = {
6391
6527
  "InPersonOrderItemType": {},
6392
6528
  "InPersonOrderRefund": {
6393
6529
  "allocations": [
6394
- 259
6530
+ 265
6395
6531
  ],
6396
6532
  "amount": [
6397
6533
  38
@@ -6406,10 +6542,10 @@ var types_default = {
6406
6542
  36
6407
6543
  ],
6408
6544
  "source": [
6409
- 261
6545
+ 267
6410
6546
  ],
6411
6547
  "status": [
6412
- 262
6548
+ 268
6413
6549
  ],
6414
6550
  "stripeRefundId": [
6415
6551
  36
@@ -6441,7 +6577,7 @@ var types_default = {
6441
6577
  39
6442
6578
  ],
6443
6579
  "status": [
6444
- 260
6580
+ 266
6445
6581
  ],
6446
6582
  "ticketUids": [
6447
6583
  36
@@ -6478,7 +6614,7 @@ var types_default = {
6478
6614
  },
6479
6615
  "GetPartnerInPersonChargesResponse": {
6480
6616
  "charges": [
6481
- 265
6617
+ 271
6482
6618
  ],
6483
6619
  "hasNextPage": [
6484
6620
  39
@@ -6513,7 +6649,7 @@ var types_default = {
6513
6649
  36
6514
6650
  ],
6515
6651
  "category": [
6516
- 249
6652
+ 255
6517
6653
  ],
6518
6654
  "createdAt": [
6519
6655
  0
@@ -6531,10 +6667,10 @@ var types_default = {
6531
6667
  0
6532
6668
  ],
6533
6669
  "linkingMethod": [
6534
- 250
6670
+ 256
6535
6671
  ],
6536
6672
  "linkingStatus": [
6537
- 251
6673
+ 257
6538
6674
  ],
6539
6675
  "momentSlug": [
6540
6676
  36
@@ -6549,7 +6685,7 @@ var types_default = {
6549
6685
  38
6550
6686
  ],
6551
6687
  "status": [
6552
- 252
6688
+ 258
6553
6689
  ],
6554
6690
  "stripePaymentIntentId": [
6555
6691
  36
@@ -6575,7 +6711,7 @@ var types_default = {
6575
6711
  },
6576
6712
  "GetPartnerGuestListCheckInsResponse": {
6577
6713
  "batches": [
6578
- 267
6714
+ 273
6579
6715
  ],
6580
6716
  "hasNextPage": [
6581
6717
  39
@@ -6601,7 +6737,7 @@ var types_default = {
6601
6737
  38
6602
6738
  ],
6603
6739
  "source": [
6604
- 268
6740
+ 274
6605
6741
  ],
6606
6742
  "uid": [
6607
6743
  35
@@ -6622,7 +6758,7 @@ var types_default = {
6622
6758
  36
6623
6759
  ],
6624
6760
  "checkInStatus": [
6625
- 270
6761
+ 276
6626
6762
  ],
6627
6763
  "checkedIn": [
6628
6764
  39
@@ -6667,7 +6803,7 @@ var types_default = {
6667
6803
  4
6668
6804
  ],
6669
6805
  "field": [
6670
- 272
6806
+ 278
6671
6807
  ],
6672
6808
  "__typename": [
6673
6809
  36
@@ -6676,7 +6812,7 @@ var types_default = {
6676
6812
  "MomentGuestListSortField": {},
6677
6813
  "GetPartnerMomentGuestListResponse": {
6678
6814
  "guestLists": [
6679
- 274
6815
+ 280
6680
6816
  ],
6681
6817
  "hasNextPage": [
6682
6818
  39
@@ -6696,7 +6832,7 @@ var types_default = {
6696
6832
  39
6697
6833
  ],
6698
6834
  "checkInStatus": [
6699
- 270
6835
+ 276
6700
6836
  ],
6701
6837
  "checkedInAt": [
6702
6838
  0
@@ -6708,16 +6844,16 @@ var types_default = {
6708
6844
  36
6709
6845
  ],
6710
6846
  "guestInfos": [
6711
- 275
6847
+ 281
6712
6848
  ],
6713
6849
  "invitationResponse": [
6714
- 276
6850
+ 282
6715
6851
  ],
6716
6852
  "labels": [
6717
- 277
6853
+ 283
6718
6854
  ],
6719
6855
  "momentOccurrences": [
6720
- 278
6856
+ 284
6721
6857
  ],
6722
6858
  "name": [
6723
6859
  36
@@ -6747,7 +6883,7 @@ var types_default = {
6747
6883
  0
6748
6884
  ],
6749
6885
  "source": [
6750
- 282
6886
+ 288
6751
6887
  ],
6752
6888
  "uid": [
6753
6889
  35
@@ -6887,16 +7023,16 @@ var types_default = {
6887
7023
  38
6888
7024
  ],
6889
7025
  "source": [
6890
- 279
7026
+ 285
6891
7027
  ],
6892
7028
  "startsAt": [
6893
7029
  0
6894
7030
  ],
6895
7031
  "status": [
6896
- 280
7032
+ 286
6897
7033
  ],
6898
7034
  "ticketTierSetupStatus": [
6899
- 281
7035
+ 287
6900
7036
  ],
6901
7037
  "timezone": [
6902
7038
  36
@@ -6964,10 +7100,10 @@ var types_default = {
6964
7100
  36
6965
7101
  ],
6966
7102
  "faqs": [
6967
- 285
7103
+ 291
6968
7104
  ],
6969
7105
  "fields": [
6970
- 286
7106
+ 292
6971
7107
  ],
6972
7108
  "isActive": [
6973
7109
  39
@@ -6982,7 +7118,7 @@ var types_default = {
6982
7118
  36
6983
7119
  ],
6984
7120
  "mode": [
6985
- 290
7121
+ 296
6986
7122
  ],
6987
7123
  "name": [
6988
7124
  36
@@ -7003,13 +7139,13 @@ var types_default = {
7003
7139
  38
7004
7140
  ],
7005
7141
  "sections": [
7006
- 288
7142
+ 294
7007
7143
  ],
7008
7144
  "slug": [
7009
7145
  36
7010
7146
  ],
7011
7147
  "source": [
7012
- 291
7148
+ 297
7013
7149
  ],
7014
7150
  "successMessageBody": [
7015
7151
  36
@@ -7070,7 +7206,7 @@ var types_default = {
7070
7206
  36
7071
7207
  ],
7072
7208
  "optionImages": [
7073
- 287
7209
+ 293
7074
7210
  ],
7075
7211
  "options": [
7076
7212
  36
@@ -7088,7 +7224,7 @@ var types_default = {
7088
7224
  36
7089
7225
  ],
7090
7226
  "type": [
7091
- 289
7227
+ 295
7092
7228
  ],
7093
7229
  "uid": [
7094
7230
  35
@@ -7145,7 +7281,7 @@ var types_default = {
7145
7281
  "FormSource": {},
7146
7282
  "GetFormsPaginatedResponse": {
7147
7283
  "forms": [
7148
- 284
7284
+ 290
7149
7285
  ],
7150
7286
  "hasNextPage": [
7151
7287
  39
@@ -7174,7 +7310,7 @@ var types_default = {
7174
7310
  36
7175
7311
  ],
7176
7312
  "sources": [
7177
- 291
7313
+ 297
7178
7314
  ],
7179
7315
  "take": [
7180
7316
  38
@@ -7214,7 +7350,7 @@ var types_default = {
7214
7350
  0
7215
7351
  ],
7216
7352
  "formField": [
7217
- 286
7353
+ 292
7218
7354
  ],
7219
7355
  "isValid": [
7220
7356
  39
@@ -7264,10 +7400,10 @@ var types_default = {
7264
7400
  36
7265
7401
  ],
7266
7402
  "form": [
7267
- 284
7403
+ 290
7268
7404
  ],
7269
7405
  "formFieldResponses": [
7270
- 295
7406
+ 301
7271
7407
  ],
7272
7408
  "relevancyScore": [
7273
7409
  38
@@ -7293,7 +7429,7 @@ var types_default = {
7293
7429
  },
7294
7430
  "GetPartnerFormResponsesResponse": {
7295
7431
  "formResponses": [
7296
- 296
7432
+ 302
7297
7433
  ],
7298
7434
  "hasNextPage": [
7299
7435
  39
@@ -7313,13 +7449,13 @@ var types_default = {
7313
7449
  39
7314
7450
  ],
7315
7451
  "balance": [
7316
- 301
7452
+ 307
7317
7453
  ],
7318
7454
  "balanceStale": [
7319
7455
  39
7320
7456
  ],
7321
7457
  "capabilities": [
7322
- 302
7458
+ 308
7323
7459
  ],
7324
7460
  "displayName": [
7325
7461
  36
@@ -7339,7 +7475,7 @@ var types_default = {
7339
7475
  36
7340
7476
  ],
7341
7477
  "counterparty": [
7342
- 303
7478
+ 309
7343
7479
  ],
7344
7480
  "currency": [
7345
7481
  36
@@ -7357,7 +7493,7 @@ var types_default = {
7357
7493
  0
7358
7494
  ],
7359
7495
  "operationKind": [
7360
- 313
7496
+ 319
7361
7497
  ],
7362
7498
  "operationUid": [
7363
7499
  36
@@ -7374,7 +7510,7 @@ var types_default = {
7374
7510
  },
7375
7511
  "BrandWalletActivityResponse": {
7376
7512
  "activity": [
7377
- 299
7513
+ 305
7378
7514
  ],
7379
7515
  "activityStale": [
7380
7516
  39
@@ -7431,7 +7567,7 @@ var types_default = {
7431
7567
  },
7432
7568
  "BrandWalletCounterparty": {
7433
7569
  "type": [
7434
- 305
7570
+ 311
7435
7571
  ],
7436
7572
  "value": [
7437
7573
  36
@@ -7442,7 +7578,7 @@ var types_default = {
7442
7578
  },
7443
7579
  "BrandWalletCounterpartyInput": {
7444
7580
  "type": [
7445
- 305
7581
+ 311
7446
7582
  ],
7447
7583
  "value": [
7448
7584
  36
@@ -7463,13 +7599,13 @@ var types_default = {
7463
7599
  0
7464
7600
  ],
7465
7601
  "counterparty": [
7466
- 303
7602
+ 309
7467
7603
  ],
7468
7604
  "createdAt": [
7469
7605
  0
7470
7606
  ],
7471
7607
  "createdBy": [
7472
- 307
7608
+ 313
7473
7609
  ],
7474
7610
  "currency": [
7475
7611
  36
@@ -7487,7 +7623,7 @@ var types_default = {
7487
7623
  39
7488
7624
  ],
7489
7625
  "kind": [
7490
- 313
7626
+ 319
7491
7627
  ],
7492
7628
  "lastErrorCode": [
7493
7629
  36
@@ -7508,7 +7644,7 @@ var types_default = {
7508
7644
  0
7509
7645
  ],
7510
7646
  "provider": [
7511
- 309
7647
+ 315
7512
7648
  ],
7513
7649
  "providerResourceId": [
7514
7650
  36
@@ -7520,7 +7656,7 @@ var types_default = {
7520
7656
  0
7521
7657
  ],
7522
7658
  "status": [
7523
- 314
7659
+ 320
7524
7660
  ],
7525
7661
  "submittedAt": [
7526
7662
  0
@@ -7557,7 +7693,7 @@ var types_default = {
7557
7693
  36
7558
7694
  ],
7559
7695
  "operations": [
7560
- 306
7696
+ 312
7561
7697
  ],
7562
7698
  "totalCount": [
7563
7699
  38
@@ -7578,7 +7714,7 @@ var types_default = {
7578
7714
  38
7579
7715
  ],
7580
7716
  "wallets": [
7581
- 298
7717
+ 304
7582
7718
  ],
7583
7719
  "__typename": [
7584
7720
  36
@@ -7598,7 +7734,7 @@ var types_default = {
7598
7734
  36
7599
7735
  ],
7600
7736
  "payer": [
7601
- 304
7737
+ 310
7602
7738
  ],
7603
7739
  "__typename": [
7604
7740
  36
@@ -7612,7 +7748,7 @@ var types_default = {
7612
7748
  36
7613
7749
  ],
7614
7750
  "counterparty": [
7615
- 304
7751
+ 310
7616
7752
  ],
7617
7753
  "currency": [
7618
7754
  36
@@ -7625,7 +7761,325 @@ var types_default = {
7625
7761
  ]
7626
7762
  },
7627
7763
  "WalletOperationKind": {},
7628
- "WalletOperationStatus": {}
7764
+ "WalletOperationStatus": {},
7765
+ "SpaceKind": {},
7766
+ "SpaceHoldStatus": {},
7767
+ "SpaceRequestKind": {},
7768
+ "SpaceHoldPreviewOutcome": {},
7769
+ "SpaceCalendarConflictKind": {},
7770
+ "PartnerSpace": {
7771
+ "capacity": [
7772
+ 38
7773
+ ],
7774
+ "kind": [
7775
+ 321
7776
+ ],
7777
+ "name": [
7778
+ 36
7779
+ ],
7780
+ "parts": [
7781
+ 326
7782
+ ],
7783
+ "setupMinutes": [
7784
+ 38
7785
+ ],
7786
+ "teardownMinutes": [
7787
+ 38
7788
+ ],
7789
+ "uid": [
7790
+ 35
7791
+ ],
7792
+ "__typename": [
7793
+ 36
7794
+ ]
7795
+ },
7796
+ "PartnerSpaceLocation": {
7797
+ "city": [
7798
+ 36
7799
+ ],
7800
+ "country": [
7801
+ 36
7802
+ ],
7803
+ "name": [
7804
+ 36
7805
+ ],
7806
+ "spaces": [
7807
+ 326
7808
+ ],
7809
+ "timezone": [
7810
+ 36
7811
+ ],
7812
+ "uid": [
7813
+ 35
7814
+ ],
7815
+ "__typename": [
7816
+ 36
7817
+ ]
7818
+ },
7819
+ "PartnerSpaceLocationsPage": {
7820
+ "hasNextPage": [
7821
+ 39
7822
+ ],
7823
+ "locations": [
7824
+ 327
7825
+ ],
7826
+ "nextCursor": [
7827
+ 36
7828
+ ],
7829
+ "totalCount": [
7830
+ 38
7831
+ ],
7832
+ "__typename": [
7833
+ 36
7834
+ ]
7835
+ },
7836
+ "PartnerSpaceRequest": {
7837
+ "headcount": [
7838
+ 38
7839
+ ],
7840
+ "organization": [
7841
+ 36
7842
+ ],
7843
+ "requesterKind": [
7844
+ 323
7845
+ ],
7846
+ "title": [
7847
+ 36
7848
+ ],
7849
+ "uid": [
7850
+ 35
7851
+ ],
7852
+ "__typename": [
7853
+ 36
7854
+ ]
7855
+ },
7856
+ "PartnerSpaceHold": {
7857
+ "aheadCount": [
7858
+ 38
7859
+ ],
7860
+ "endsAt": [
7861
+ 0
7862
+ ],
7863
+ "expiresAt": [
7864
+ 0
7865
+ ],
7866
+ "isChallengeOverdue": [
7867
+ 39
7868
+ ],
7869
+ "isLapsed": [
7870
+ 39
7871
+ ],
7872
+ "localDate": [
7873
+ 36
7874
+ ],
7875
+ "occupiedEndsAt": [
7876
+ 0
7877
+ ],
7878
+ "occupiedStartsAt": [
7879
+ 0
7880
+ ],
7881
+ "position": [
7882
+ 38
7883
+ ],
7884
+ "request": [
7885
+ 329
7886
+ ],
7887
+ "requestUid": [
7888
+ 35
7889
+ ],
7890
+ "respondBy": [
7891
+ 0
7892
+ ],
7893
+ "spaceUid": [
7894
+ 35
7895
+ ],
7896
+ "startsAt": [
7897
+ 0
7898
+ ],
7899
+ "status": [
7900
+ 322
7901
+ ],
7902
+ "uid": [
7903
+ 35
7904
+ ],
7905
+ "__typename": [
7906
+ 36
7907
+ ]
7908
+ },
7909
+ "PartnerSpaceBlock": {
7910
+ "endsAt": [
7911
+ 0
7912
+ ],
7913
+ "reason": [
7914
+ 36
7915
+ ],
7916
+ "spaceUid": [
7917
+ 35
7918
+ ],
7919
+ "startsAt": [
7920
+ 0
7921
+ ],
7922
+ "uid": [
7923
+ 35
7924
+ ],
7925
+ "__typename": [
7926
+ 36
7927
+ ]
7928
+ },
7929
+ "SpaceCalendarClosure": {
7930
+ "endsAt": [
7931
+ 0
7932
+ ],
7933
+ "localDate": [
7934
+ 36
7935
+ ],
7936
+ "note": [
7937
+ 36
7938
+ ],
7939
+ "spaceUid": [
7940
+ 35
7941
+ ],
7942
+ "startsAt": [
7943
+ 0
7944
+ ],
7945
+ "__typename": [
7946
+ 36
7947
+ ]
7948
+ },
7949
+ "PartnerSpaceCalendar": {
7950
+ "blocks": [
7951
+ 331
7952
+ ],
7953
+ "closures": [
7954
+ 332
7955
+ ],
7956
+ "holds": [
7957
+ 330
7958
+ ],
7959
+ "locationName": [
7960
+ 36
7961
+ ],
7962
+ "locationUid": [
7963
+ 35
7964
+ ],
7965
+ "spaces": [
7966
+ 326
7967
+ ],
7968
+ "timezone": [
7969
+ 36
7970
+ ],
7971
+ "__typename": [
7972
+ 36
7973
+ ]
7974
+ },
7975
+ "SpaceCalendarConflict": {
7976
+ "endsAt": [
7977
+ 0
7978
+ ],
7979
+ "kind": [
7980
+ 325
7981
+ ],
7982
+ "label": [
7983
+ 36
7984
+ ],
7985
+ "startsAt": [
7986
+ 0
7987
+ ],
7988
+ "uid": [
7989
+ 35
7990
+ ],
7991
+ "__typename": [
7992
+ 36
7993
+ ]
7994
+ },
7995
+ "SpaceAvailabilityDate": {
7996
+ "closed": [
7997
+ 39
7998
+ ],
7999
+ "conflicts": [
8000
+ 334
8001
+ ],
8002
+ "lineSize": [
8003
+ 38
8004
+ ],
8005
+ "localDate": [
8006
+ 36
8007
+ ],
8008
+ "outcome": [
8009
+ 324
8010
+ ],
8011
+ "__typename": [
8012
+ 36
8013
+ ]
8014
+ },
8015
+ "SpaceAvailabilitySpace": {
8016
+ "dates": [
8017
+ 335
8018
+ ],
8019
+ "name": [
8020
+ 36
8021
+ ],
8022
+ "spaceUid": [
8023
+ 35
8024
+ ],
8025
+ "__typename": [
8026
+ 36
8027
+ ]
8028
+ },
8029
+ "SpaceAvailability": {
8030
+ "spaces": [
8031
+ 336
8032
+ ],
8033
+ "timezone": [
8034
+ 36
8035
+ ],
8036
+ "__typename": [
8037
+ 36
8038
+ ]
8039
+ },
8040
+ "SpaceCalendarInput": {
8041
+ "endsOn": [
8042
+ 36
8043
+ ],
8044
+ "includeReleased": [
8045
+ 39
8046
+ ],
8047
+ "locationUid": [
8048
+ 35
8049
+ ],
8050
+ "spaceUids": [
8051
+ 35
8052
+ ],
8053
+ "startsOn": [
8054
+ 36
8055
+ ],
8056
+ "__typename": [
8057
+ 36
8058
+ ]
8059
+ },
8060
+ "SpaceAvailabilityInput": {
8061
+ "endTime": [
8062
+ 36
8063
+ ],
8064
+ "endsOn": [
8065
+ 36
8066
+ ],
8067
+ "locationUid": [
8068
+ 35
8069
+ ],
8070
+ "spaceUids": [
8071
+ 35
8072
+ ],
8073
+ "startTime": [
8074
+ 36
8075
+ ],
8076
+ "startsOn": [
8077
+ 36
8078
+ ],
8079
+ "__typename": [
8080
+ 36
8081
+ ]
8082
+ }
7629
8083
  }
7630
8084
  };
7631
8085
 
@@ -8018,6 +8472,287 @@ async function uploadPartnerMedia(client, source, options = {}) {
8018
8472
  }
8019
8473
  }
8020
8474
 
8475
+ // src/generated/integration-contract.ts
8476
+ var rawPartnerIntegrationContract = {
8477
+ "getPartnerBrand": {
8478
+ "kind": "query",
8479
+ "scope": "itm:workspace:read",
8480
+ "fields": "uid name slug bio publicUrl customDomain spotifyUrl youtubeEmbedUrl"
8481
+ },
8482
+ "getPartnerMomentsForBrand": {
8483
+ "kind": "query",
8484
+ "scope": "itm:workspace:read",
8485
+ "fields": "moments{uid name slug publicUrl blurb startDate endDate timezone status type category isPrivate soldOut capacity venue{name city country}} totalCount hasNextPage nextCursor"
8486
+ },
8487
+ "getPartnerMoment": {
8488
+ "kind": "query",
8489
+ "scope": "itm:workspace:read",
8490
+ "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}"
8491
+ },
8492
+ "getPartnerMomentStats": {
8493
+ "kind": "query",
8494
+ "scope": "itm:workspace:read",
8495
+ "fields": "generatedAt ticketsCount paidTicketsCount freeTicketsCount waitlistCount externalRsvpCount ticketRsvpRequestsCount inPersonOrdersCount inPersonChargesCount guestlist{names namesAllIn namesPartial namesNotArrived people peopleCheckedIn peopleRemaining plusOnes}"
8496
+ },
8497
+ "getPartnerMomentAttendanceStats": {
8498
+ "kind": "query",
8499
+ "scope": "itm:workspace:read",
8500
+ "fields": "momentUid momentSlug generatedAt tickets{total checkedIn tiers{tierUid name label total checkedIn}} guestlist{total checkedIn unlabeled{total checkedIn} labels{labelUid name total checkedIn}}"
8501
+ },
8502
+ "getPartnerTicketTiersForMoment": {
8503
+ "kind": "query",
8504
+ "scope": "itm:workspace:read",
8505
+ "fields": "ticketTiers{uid name label price facilityFee currencyCode supply remainingSupply fillRate isActive isPrivate slotDate slotDurationHours} totalCount hasNextPage nextCursor"
8506
+ },
8507
+ "getPartnerMomentCollection": {
8508
+ "kind": "query",
8509
+ "scope": "itm:workspace:read",
8510
+ "fields": "uid name slug description subLabel links{url label} moments{uid name slug startDate endDate status soldOut venue{name city}}"
8511
+ },
8512
+ "getPartnerDrops": {
8513
+ "kind": "query",
8514
+ "scope": "itm:workspace:read",
8515
+ "fields": "drops{uid name slug publicUrl subtitle isPublic isActive ctaType ctaUrl captureName captureEmail createdAt} totalCount hasNextPage nextCursor"
8516
+ },
8517
+ "getPartnerPublicEchoes": {
8518
+ "kind": "query",
8519
+ "scope": "itm:workspace:read",
8520
+ "fields": "echoes{uid type name slug publicUrl description postBody publishTime externalLink moment{uid name slug}} totalCount hasNextPage nextCursor"
8521
+ },
8522
+ "getPartnerMerch": {
8523
+ "kind": "query",
8524
+ "scope": "itm:workspace:read",
8525
+ "fields": "items{uid name publicUrl description price currency{code} fulfillmentType isLive maxPerUser merchSizes{uid name isSoldOut}} totalCount hasNextPage nextCursor"
8526
+ },
8527
+ "getPartnerMembershipTiers": {
8528
+ "kind": "query",
8529
+ "scope": "itm:workspace:read",
8530
+ "fields": "membershipTiers{uid name slug publicUrl description passType billingInterval currencyCode price yearlyPrice oneTimePrice trialDays isActive isPublic memberLimit activeMemberCount benefits} totalCount hasNextPage nextCursor"
8531
+ },
8532
+ "getPartnerContributionPages": {
8533
+ "kind": "query",
8534
+ "scope": "itm:workspace:read",
8535
+ "fields": "items{uid brandUid slug title description isAccepting archivedAt publicUrl currency{code} successfulContributionCount refundCount grossAmountCents refundedAmountCents netAmountCents createdAt} totalCount hasNextPage nextCursor"
8536
+ },
8537
+ "getPartnerPlans": {
8538
+ "kind": "query",
8539
+ "scope": "itm:workspace:read",
8540
+ "fields": "plans{uid name slug description kind status tags{name} moodboardItemCount createdAt updatedAt} totalCount hasNextPage nextCursor"
8541
+ },
8542
+ "getPartnerPlan": {
8543
+ "kind": "query",
8544
+ "scope": "itm:workspace:read",
8545
+ "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}}"
8546
+ },
8547
+ "getPartnerPlanDatePoll": {
8548
+ "kind": "query",
8549
+ "scope": "itm:workspace:read",
8550
+ "fields": "uid status timeMode timezone durationMinutes replyByDate chosenOptionUid answeredCount notAnsweredCount needsUpdateCount results{optionUid localDate startTime endTime status freeCount ifNeedBeCount unavailableCount unansweredCount bestSlot{startTime endTime}}"
8551
+ },
8552
+ "getPartnerPlanBudgets": {
8553
+ "kind": "query",
8554
+ "scope": "itm:workspace:read",
8555
+ "fields": "uid name planUid currencyCode currencyExponent revision scheduleIsStale updatedAt"
8556
+ },
8557
+ "getPartnerPlanBudget": {
8558
+ "kind": "query",
8559
+ "scope": "itm:workspace:read",
8560
+ "fields": "uid name planUid currencyCode currencyExponent revision scheduleIsStale document calculation updatedAt"
8561
+ },
8562
+ "getPartnerAudience": {
8563
+ "kind": "query",
8564
+ "scope": "itm:audience:read",
8565
+ "fields": "customers{uid name email phoneNumber city country isSubscribed emailConsentStatus smsConsentStatus communicationsOptedOut totalSpendUsdCents numMoments numProducts createdAt} totalCount hasNextPage nextCursor"
8566
+ },
8567
+ "getPartnerCustomersForMoment": {
8568
+ "kind": "query",
8569
+ "scope": "itm:audience:read",
8570
+ "fields": "customers{user{uid name primaryEmail phoneNumber} tickets{uid status price redeemedAt ticketTier{uid name}}} totalCount hasNextPage nextCursor"
8571
+ },
8572
+ "getPartnerMembers": {
8573
+ "kind": "query",
8574
+ "scope": "itm:audience:read",
8575
+ "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"
8576
+ },
8577
+ "getPartnerTicketsForMoment": {
8578
+ "kind": "query",
8579
+ "scope": "itm:audience:read",
8580
+ "fields": "tickets{uid status price redeemedAt hasExpired notes createdAt ticketTier{uid name} user{uid name primaryEmail phoneNumber} payment{status}} totalCount hasNextPage nextCursor"
8581
+ },
8582
+ "getPartnerTicketsForUser": {
8583
+ "kind": "query",
8584
+ "scope": "itm:audience:read",
8585
+ "fields": "tickets{uid status price redeemedAt hasExpired createdAt ticketTier{uid name} moment{uid name slug startDate}} totalCount hasNextPage nextCursor"
8586
+ },
8587
+ "getPartnerGuestListForMoment": {
8588
+ "kind": "query",
8589
+ "scope": "itm:audience:read",
8590
+ "fields": "guestLists{uid name email phoneNumber plusOnes numGuests numCheckedIn checkInStatus checkedInAt notes source respondedToInvitation labels{uid name} createdAt} totalCount hasNextPage nextCursor"
8591
+ },
8592
+ "getPartnerGuestListCheckIns": {
8593
+ "kind": "query",
8594
+ "scope": "itm:audience:read",
8595
+ "fields": "batches{uid checkedInAt count activeCount source voidedAt voidReason} totalCount hasNextPage nextCursor"
8596
+ },
8597
+ "getPartnerContributions": {
8598
+ "kind": "query",
8599
+ "scope": "itm:audience:read",
8600
+ "fields": "items{uid contributionPageUid pageTitle donorName donorEmail donorPhoneNumber source currencyCode amountCents refundedAmountCents status paidAt note isGuest createdAt} totalCount hasNextPage nextCursor"
8601
+ },
8602
+ "getPartnerInPersonOrdersForMoment": {
8603
+ "kind": "query",
8604
+ "scope": "itm:audience:read",
8605
+ "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"
8606
+ },
8607
+ "getPartnerInPersonOrder": {
8608
+ "kind": "query",
8609
+ "scope": "itm:audience:read",
8610
+ "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}"
8611
+ },
8612
+ "getPartnerInPersonChargesForMoment": {
8613
+ "kind": "query",
8614
+ "scope": "itm:audience:read",
8615
+ "fields": "charges{uid orderUid status category currencyCode amount subtotalAmount taxAmount quantity description cardBrand cardLast4 billingEmail linkingStatus createdAt} totalCount hasNextPage nextCursor"
8616
+ },
8617
+ "getPartnerSpaceLocations": {
8618
+ "kind": "query",
8619
+ "scope": "itm:workspace:read",
8620
+ "fields": "locations{uid name city country timezone spaces{uid name kind capacity setupMinutes teardownMinutes parts{uid}}} totalCount hasNextPage nextCursor"
8621
+ },
8622
+ "getPartnerSpaceCalendar": {
8623
+ "kind": "query",
8624
+ "scope": "itm:workspace:read",
8625
+ "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}"
8626
+ },
8627
+ "getPartnerSpaceAvailability": {
8628
+ "kind": "query",
8629
+ "scope": "itm:workspace:read",
8630
+ "fields": "timezone spaces{spaceUid name dates{localDate outcome lineSize closed conflicts{kind label startsAt endsAt}}}"
8631
+ },
8632
+ "getPartnerMediaAssets": {
8633
+ "kind": "query",
8634
+ "scope": "itm:media:write",
8635
+ "fields": "mediaAssets{uid url mimeType size dimensions{width height} createdAt} totalCount hasNextPage nextCursor"
8636
+ },
8637
+ "getPartnerMediaAsset": {
8638
+ "kind": "query",
8639
+ "scope": "itm:media:write",
8640
+ "fields": "uid url mimeType size dimensions{width height} createdAt"
8641
+ },
8642
+ "createPartnerMediaUpload": {
8643
+ "kind": "mutation",
8644
+ "scope": "itm:media:write",
8645
+ "fields": "uploadKey uploadUrl expiresAt"
8646
+ },
8647
+ "completePartnerMediaUpload": {
8648
+ "kind": "mutation",
8649
+ "scope": "itm:media:write",
8650
+ "fields": "uid url mimeType size dimensions{width height} createdAt"
8651
+ }
8652
+ };
8653
+
8654
+ // src/integration.ts
8655
+ var VALID_KINDS = /* @__PURE__ */ new Set(["query", "mutation"]);
8656
+ var SCOPE_TOKEN = /^[\u0021\u0023-\u005B\u005D-\u007E]+$/;
8657
+ var partnerIntegrationContract = Object.freeze(
8658
+ Object.fromEntries(
8659
+ Object.entries(rawPartnerIntegrationContract).map(([root, entry]) => {
8660
+ if (!VALID_KINDS.has(entry.kind) || typeof entry.scope !== "string" || !SCOPE_TOKEN.test(entry.scope) || typeof entry.fields !== "string" || entry.fields.trim().length === 0) {
8661
+ throw new Error(`Invalid integration contract entry for "${root}"`);
8662
+ }
8663
+ return [root, Object.freeze({ ...entry })];
8664
+ })
8665
+ )
8666
+ );
8667
+ var IDENTIFIER_START = /[A-Za-z_]/;
8668
+ var IDENTIFIER_CHAR = /[A-Za-z0-9_]/;
8669
+ function parseIntegrationSelection(source) {
8670
+ let cursor = 0;
8671
+ const skipWhitespace = () => {
8672
+ while (cursor < source.length) {
8673
+ const ch = source[cursor];
8674
+ if (ch === " " || ch === " " || ch === "\n" || ch === "\r" || ch === ",") {
8675
+ cursor += 1;
8676
+ } else {
8677
+ break;
8678
+ }
8679
+ }
8680
+ };
8681
+ const readIdentifier = () => {
8682
+ const start = cursor;
8683
+ if (cursor >= source.length || !IDENTIFIER_START.test(source[cursor])) {
8684
+ throw new Error(
8685
+ `Unexpected character ${JSON.stringify(source[cursor] ?? "EOF")} at position ${cursor} in integration selection`
8686
+ );
8687
+ }
8688
+ cursor += 1;
8689
+ while (cursor < source.length && IDENTIFIER_CHAR.test(source[cursor])) {
8690
+ cursor += 1;
8691
+ }
8692
+ const name = source.slice(start, cursor);
8693
+ if (name.startsWith("__")) {
8694
+ throw new Error(
8695
+ `Reserved field name "${name}" is not permitted in integration selection`
8696
+ );
8697
+ }
8698
+ return name;
8699
+ };
8700
+ const parseBlock = (untilBrace) => {
8701
+ const selection = {};
8702
+ let count = 0;
8703
+ while (true) {
8704
+ skipWhitespace();
8705
+ if (cursor >= source.length) {
8706
+ if (untilBrace) {
8707
+ throw new Error(
8708
+ "Unterminated selection block in integration selection"
8709
+ );
8710
+ }
8711
+ break;
8712
+ }
8713
+ if (source[cursor] === "}") {
8714
+ if (!untilBrace) {
8715
+ throw new Error(
8716
+ `Unexpected "}" at position ${cursor} in integration selection`
8717
+ );
8718
+ }
8719
+ cursor += 1;
8720
+ break;
8721
+ }
8722
+ const name = readIdentifier();
8723
+ if (Object.prototype.hasOwnProperty.call(selection, name)) {
8724
+ throw new Error(`Duplicate field "${name}" in integration selection`);
8725
+ }
8726
+ skipWhitespace();
8727
+ if (cursor < source.length && source[cursor] === "{") {
8728
+ cursor += 1;
8729
+ selection[name] = parseBlock(true);
8730
+ } else {
8731
+ selection[name] = true;
8732
+ }
8733
+ count += 1;
8734
+ }
8735
+ if (count === 0) {
8736
+ throw new Error("Empty selection block in integration selection");
8737
+ }
8738
+ return selection;
8739
+ };
8740
+ const result = parseBlock(false);
8741
+ skipWhitespace();
8742
+ if (cursor !== source.length) {
8743
+ throw new Error(
8744
+ `Unexpected trailing input at position ${cursor} in integration selection`
8745
+ );
8746
+ }
8747
+ return result;
8748
+ }
8749
+ function integrationSelection(root) {
8750
+ if (!Object.prototype.hasOwnProperty.call(partnerIntegrationContract, root)) {
8751
+ throw new Error(`Unknown partner integration operation: ${String(root)}`);
8752
+ }
8753
+ return parseIntegrationSelection(partnerIntegrationContract[root].fields);
8754
+ }
8755
+
8021
8756
  exports.DEFAULT_API_URL = DEFAULT_API_URL;
8022
8757
  exports.GenqlError = GenqlError;
8023
8758
  exports.ITMPartnerMediaUploadError = ITMPartnerMediaUploadError;
@@ -8027,6 +8762,8 @@ exports.detectPartnerMediaTypes = detectPartnerMediaTypes;
8027
8762
  exports.everything = everything;
8028
8763
  exports.generateMutationOp = generateMutationOp;
8029
8764
  exports.generateQueryOp = generateQueryOp;
8765
+ exports.integrationSelection = integrationSelection;
8766
+ exports.partnerIntegrationContract = partnerIntegrationContract;
8030
8767
  exports.uploadPartnerMedia = uploadPartnerMedia;
8031
8768
  //# sourceMappingURL=index.js.map
8032
8769
  //# sourceMappingURL=index.js.map