@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.mjs CHANGED
@@ -619,45 +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
+ 315,
662
+ 319,
663
+ 320,
664
+ 321,
665
+ 322,
666
+ 323,
667
+ 324,
668
+ 325
661
669
  ],
662
670
  "types": {
663
671
  "DateTime": {},
@@ -1825,7 +1833,7 @@ var types_default = {
1825
1833
  38
1826
1834
  ],
1827
1835
  "guestlist": [
1828
- 283
1836
+ 289
1829
1837
  ],
1830
1838
  "__typename": [
1831
1839
  36
@@ -2420,6 +2428,9 @@ var types_default = {
2420
2428
  ]
2421
2429
  },
2422
2430
  "PartnerTicketTier": {
2431
+ "currencyCode": [
2432
+ 36
2433
+ ],
2423
2434
  "fillRate": [
2424
2435
  50
2425
2436
  ],
@@ -3612,7 +3623,7 @@ var types_default = {
3612
3623
  },
3613
3624
  "Query": {
3614
3625
  "getPartnerWalletOperation": [
3615
- 306,
3626
+ 312,
3616
3627
  {
3617
3628
  "brandUid": [
3618
3629
  36,
@@ -3629,7 +3640,7 @@ var types_default = {
3629
3640
  }
3630
3641
  ],
3631
3642
  "listPartnerWalletActivity": [
3632
- 300,
3643
+ 306,
3633
3644
  {
3634
3645
  "brandUid": [
3635
3646
  36,
@@ -3648,7 +3659,7 @@ var types_default = {
3648
3659
  }
3649
3660
  ],
3650
3661
  "listPartnerWalletOperations": [
3651
- 308,
3662
+ 314,
3652
3663
  {
3653
3664
  "brandUid": [
3654
3665
  36,
@@ -3661,10 +3672,10 @@ var types_default = {
3661
3672
  39
3662
3673
  ],
3663
3674
  "kind": [
3664
- 313
3675
+ 319
3665
3676
  ],
3666
3677
  "statuses": [
3667
- 314,
3678
+ 320,
3668
3679
  "[WalletOperationStatus!]"
3669
3680
  ],
3670
3681
  "take": [
@@ -3676,7 +3687,7 @@ var types_default = {
3676
3687
  }
3677
3688
  ],
3678
3689
  "listPartnerWallets": [
3679
- 310,
3690
+ 316,
3680
3691
  {
3681
3692
  "brandUid": [
3682
3693
  36,
@@ -3691,15 +3702,15 @@ var types_default = {
3691
3702
  }
3692
3703
  ],
3693
3704
  "getPartnerForms": [
3694
- 292,
3705
+ 298,
3695
3706
  {
3696
3707
  "input": [
3697
- 293
3708
+ 299
3698
3709
  ]
3699
3710
  }
3700
3711
  ],
3701
3712
  "getPartnerForm": [
3702
- 284,
3713
+ 290,
3703
3714
  {
3704
3715
  "uid": [
3705
3716
  36,
@@ -3708,15 +3719,15 @@ var types_default = {
3708
3719
  }
3709
3720
  ],
3710
3721
  "getPartnerFormResponses": [
3711
- 297,
3722
+ 303,
3712
3723
  {
3713
3724
  "input": [
3714
- 294
3725
+ 300
3715
3726
  ]
3716
3727
  }
3717
3728
  ],
3718
3729
  "getPartnerInPersonOrdersForMoment": [
3719
- 246,
3730
+ 252,
3720
3731
  {
3721
3732
  "cursor": [
3722
3733
  36
@@ -3726,7 +3737,7 @@ var types_default = {
3726
3737
  "String!"
3727
3738
  ],
3728
3739
  "statuses": [
3729
- 245,
3740
+ 251,
3730
3741
  "[InPersonOrderStatus!]"
3731
3742
  ],
3732
3743
  "take": [
@@ -3735,7 +3746,7 @@ var types_default = {
3735
3746
  }
3736
3747
  ],
3737
3748
  "getPartnerInPersonOrder": [
3738
- 247,
3749
+ 253,
3739
3750
  {
3740
3751
  "orderUid": [
3741
3752
  36,
@@ -3744,10 +3755,10 @@ var types_default = {
3744
3755
  }
3745
3756
  ],
3746
3757
  "getPartnerInPersonChargesForMoment": [
3747
- 264,
3758
+ 270,
3748
3759
  {
3749
3760
  "category": [
3750
- 249
3761
+ 255
3751
3762
  ],
3752
3763
  "cursor": [
3753
3764
  36
@@ -3757,7 +3768,7 @@ var types_default = {
3757
3768
  "String!"
3758
3769
  ],
3759
3770
  "statuses": [
3760
- 252,
3771
+ 258,
3761
3772
  "[ChargeStatus!]"
3762
3773
  ],
3763
3774
  "take": [
@@ -4105,7 +4116,7 @@ var types_default = {
4105
4116
  ]
4106
4117
  }
4107
4118
  ],
4108
- "getPartnerPlanBudgets": [
4119
+ "getPartnerPlanDatePoll": [
4109
4120
  209,
4110
4121
  {
4111
4122
  "planUid": [
@@ -4114,8 +4125,17 @@ var types_default = {
4114
4125
  ]
4115
4126
  }
4116
4127
  ],
4128
+ "getPartnerPlanBudgets": [
4129
+ 215,
4130
+ {
4131
+ "planUid": [
4132
+ 36,
4133
+ "String!"
4134
+ ]
4135
+ }
4136
+ ],
4117
4137
  "getPartnerPlanBudget": [
4118
- 210,
4138
+ 216,
4119
4139
  {
4120
4140
  "budgetUid": [
4121
4141
  36,
@@ -4124,7 +4144,7 @@ var types_default = {
4124
4144
  }
4125
4145
  ],
4126
4146
  "getPartnerPlanningSource": [
4127
- 211,
4147
+ 217,
4128
4148
  {
4129
4149
  "offset": [
4130
4150
  38,
@@ -4141,7 +4161,7 @@ var types_default = {
4141
4161
  }
4142
4162
  ],
4143
4163
  "getPartnerPlanningProposal": [
4144
- 213,
4164
+ 219,
4145
4165
  {
4146
4166
  "uid": [
4147
4167
  36,
@@ -4150,7 +4170,7 @@ var types_default = {
4150
4170
  }
4151
4171
  ],
4152
4172
  "getPartnerGuestListCheckIns": [
4153
- 266,
4173
+ 272,
4154
4174
  {
4155
4175
  "cursor": [
4156
4176
  36
@@ -4169,26 +4189,55 @@ var types_default = {
4169
4189
  }
4170
4190
  ],
4171
4191
  "getPartnerGuestListForMoment": [
4172
- 273,
4192
+ 279,
4173
4193
  {
4174
4194
  "cursor": [
4175
4195
  36
4176
4196
  ],
4177
4197
  "filters": [
4178
- 269
4198
+ 275
4179
4199
  ],
4180
4200
  "momentSlug": [
4181
4201
  36,
4182
4202
  "String!"
4183
4203
  ],
4184
4204
  "sort": [
4185
- 271
4205
+ 277
4186
4206
  ],
4187
4207
  "take": [
4188
4208
  38
4189
4209
  ]
4190
4210
  }
4191
4211
  ],
4212
+ "getPartnerSpaceLocations": [
4213
+ 328,
4214
+ {
4215
+ "cursor": [
4216
+ 36
4217
+ ],
4218
+ "take": [
4219
+ 38
4220
+ ]
4221
+ }
4222
+ ],
4223
+ "getPartnerSpaceCalendar": [
4224
+ 333,
4225
+ {
4226
+ "input": [
4227
+ 338,
4228
+ "SpaceCalendarInput!"
4229
+ ]
4230
+ }
4231
+ ],
4232
+ "getPartnerSpaceAvailability": [
4233
+ 337,
4234
+ {
4235
+ "input": [
4236
+ 339,
4237
+ "SpaceAvailabilityInput!"
4238
+ ]
4239
+ }
4240
+ ],
4192
4241
  "__typename": [
4193
4242
  36
4194
4243
  ]
@@ -4891,7 +4940,7 @@ var types_default = {
4891
4940
  },
4892
4941
  "Mutation": {
4893
4942
  "confirmPartnerWalletOperation": [
4894
- 306,
4943
+ 312,
4895
4944
  {
4896
4945
  "brandUid": [
4897
4946
  36,
@@ -4908,14 +4957,14 @@ var types_default = {
4908
4957
  }
4909
4958
  ],
4910
4959
  "createPartnerWalletPaymentRequest": [
4911
- 306,
4960
+ 312,
4912
4961
  {
4913
4962
  "brandUid": [
4914
4963
  36,
4915
4964
  "String!"
4916
4965
  ],
4917
4966
  "input": [
4918
- 311,
4967
+ 317,
4919
4968
  "CreateBrandWalletPaymentRequestInput!"
4920
4969
  ],
4921
4970
  "walletUid": [
@@ -4925,14 +4974,14 @@ var types_default = {
4925
4974
  }
4926
4975
  ],
4927
4976
  "preparePartnerWalletPayment": [
4928
- 306,
4977
+ 312,
4929
4978
  {
4930
4979
  "brandUid": [
4931
4980
  36,
4932
4981
  "String!"
4933
4982
  ],
4934
4983
  "input": [
4935
- 312,
4984
+ 318,
4936
4985
  "PrepareBrandWalletPaymentInput!"
4937
4986
  ],
4938
4987
  "walletUid": [
@@ -5152,10 +5201,10 @@ var types_default = {
5152
5201
  }
5153
5202
  ],
5154
5203
  "preparePartnerPlanningProposal": [
5155
- 213,
5204
+ 219,
5156
5205
  {
5157
5206
  "input": [
5158
- 214,
5207
+ 220,
5159
5208
  "PreparePlanningProposalInput!"
5160
5209
  ],
5161
5210
  "toolCallId": [
@@ -5165,7 +5214,7 @@ var types_default = {
5165
5214
  }
5166
5215
  ],
5167
5216
  "decidePartnerPlanningProposal": [
5168
- 213,
5217
+ 219,
5169
5218
  {
5170
5219
  "approve": [
5171
5220
  39,
@@ -5454,6 +5503,93 @@ var types_default = {
5454
5503
  },
5455
5504
  "PlanLinkMetadataStatus": {},
5456
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": {},
5457
5593
  "PlanBudgetSummary": {
5458
5594
  "createdAt": [
5459
5595
  0
@@ -5538,7 +5674,7 @@ var types_default = {
5538
5674
  38
5539
5675
  ],
5540
5676
  "sections": [
5541
- 212
5677
+ 218
5542
5678
  ],
5543
5679
  "status": [
5544
5680
  36
@@ -5589,16 +5725,16 @@ var types_default = {
5589
5725
  },
5590
5726
  "PreparePlanningProposalInput": {
5591
5727
  "budgetDraft": [
5592
- 215
5728
+ 221
5593
5729
  ],
5594
5730
  "budgetUid": [
5595
5731
  36
5596
5732
  ],
5597
5733
  "createBudget": [
5598
- 239
5734
+ 245
5599
5735
  ],
5600
5736
  "createPlan": [
5601
- 240
5737
+ 246
5602
5738
  ],
5603
5739
  "expectedBudgetRevision": [
5604
5740
  38
@@ -5616,16 +5752,16 @@ var types_default = {
5616
5752
  36
5617
5753
  ],
5618
5754
  "schedule": [
5619
- 241
5755
+ 247
5620
5756
  ],
5621
5757
  "sourceDispositions": [
5622
- 243
5758
+ 249
5623
5759
  ],
5624
5760
  "tagNames": [
5625
5761
  36
5626
5762
  ],
5627
5763
  "updatePlan": [
5628
- 244
5764
+ 250
5629
5765
  ],
5630
5766
  "__typename": [
5631
5767
  36
@@ -5633,7 +5769,7 @@ var types_default = {
5633
5769
  },
5634
5770
  "ReplacePlanBudgetDraftInput": {
5635
5771
  "artistDeal": [
5636
- 216
5772
+ 222
5637
5773
  ],
5638
5774
  "averageTicketsPerCheckout": [
5639
5775
  36
@@ -5642,22 +5778,22 @@ var types_default = {
5642
5778
  38
5643
5779
  ],
5644
5780
  "capacityAllocations": [
5645
- 220
5781
+ 226
5646
5782
  ],
5647
5783
  "categories": [
5648
- 222
5784
+ 228
5649
5785
  ],
5650
5786
  "externalTicketingChannels": [
5651
- 224
5787
+ 230
5652
5788
  ],
5653
5789
  "lines": [
5654
- 230
5790
+ 236
5655
5791
  ],
5656
5792
  "physicalCapacity": [
5657
5793
  38
5658
5794
  ],
5659
5795
  "ticketTiers": [
5660
- 233
5796
+ 239
5661
5797
  ],
5662
5798
  "walkoutSellThroughBps": [
5663
5799
  38
@@ -5668,10 +5804,10 @@ var types_default = {
5668
5804
  },
5669
5805
  "PlanBudgetArtistDealInput": {
5670
5806
  "basis": [
5671
- 217
5807
+ 223
5672
5808
  ],
5673
5809
  "guaranteeBasis": [
5674
- 218
5810
+ 224
5675
5811
  ],
5676
5812
  "guaranteeMinor": [
5677
5813
  36
@@ -5683,7 +5819,7 @@ var types_default = {
5683
5819
  38
5684
5820
  ],
5685
5821
  "type": [
5686
- 219
5822
+ 225
5687
5823
  ],
5688
5824
  "uid": [
5689
5825
  36
@@ -5709,7 +5845,7 @@ var types_default = {
5709
5845
  38
5710
5846
  ],
5711
5847
  "type": [
5712
- 221
5848
+ 227
5713
5849
  ],
5714
5850
  "uid": [
5715
5851
  36
@@ -5721,7 +5857,7 @@ var types_default = {
5721
5857
  "PlanBudgetAllocationType": {},
5722
5858
  "PlanBudgetCategoryInput": {
5723
5859
  "kind": [
5724
- 223
5860
+ 229
5725
5861
  ],
5726
5862
  "name": [
5727
5863
  36
@@ -5748,7 +5884,7 @@ var types_default = {
5748
5884
  36
5749
5885
  ],
5750
5886
  "feeComponents": [
5751
- 225
5887
+ 231
5752
5888
  ],
5753
5889
  "name": [
5754
5890
  36
@@ -5765,13 +5901,13 @@ var types_default = {
5765
5901
  },
5766
5902
  "PlanBudgetTicketingFeeComponentInput": {
5767
5903
  "assessment": [
5768
- 226
5904
+ 232
5769
5905
  ],
5770
5906
  "fixedAmountMinor": [
5771
5907
  36
5772
5908
  ],
5773
5909
  "kind": [
5774
- 227
5910
+ 233
5775
5911
  ],
5776
5912
  "label": [
5777
5913
  36
@@ -5780,7 +5916,7 @@ var types_default = {
5780
5916
  36
5781
5917
  ],
5782
5918
  "percentageBasis": [
5783
- 228
5919
+ 234
5784
5920
  ],
5785
5921
  "position": [
5786
5922
  38
@@ -5789,7 +5925,7 @@ var types_default = {
5789
5925
  38
5790
5926
  ],
5791
5927
  "treatment": [
5792
- 229
5928
+ 235
5793
5929
  ],
5794
5930
  "uid": [
5795
5931
  36
@@ -5822,19 +5958,19 @@ var types_default = {
5822
5958
  36
5823
5959
  ],
5824
5960
  "formulaBasis": [
5825
- 231
5961
+ 237
5826
5962
  ],
5827
5963
  "gratuityBps": [
5828
5964
  38
5829
5965
  ],
5830
5966
  "kind": [
5831
- 223
5967
+ 229
5832
5968
  ],
5833
5969
  "name": [
5834
5970
  36
5835
5971
  ],
5836
5972
  "paymentStatus": [
5837
- 232
5973
+ 238
5838
5974
  ],
5839
5975
  "plannedUnitAmountMinor": [
5840
5976
  36
@@ -5871,7 +6007,7 @@ var types_default = {
5871
6007
  38
5872
6008
  ],
5873
6009
  "chargeRules": [
5874
- 234
6010
+ 240
5875
6011
  ],
5876
6012
  "externalTicketingChannelUid": [
5877
6013
  36
@@ -5886,7 +6022,7 @@ var types_default = {
5886
6022
  38
5887
6023
  ],
5888
6024
  "pricingMode": [
5889
- 237
6025
+ 243
5890
6026
  ],
5891
6027
  "roundingIncrementMinor": [
5892
6028
  36
@@ -5898,7 +6034,7 @@ var types_default = {
5898
6034
  0
5899
6035
  ],
5900
6036
  "ticketingChannelType": [
5901
- 238
6037
+ 244
5902
6038
  ],
5903
6039
  "uid": [
5904
6040
  36
@@ -5912,10 +6048,10 @@ var types_default = {
5912
6048
  36
5913
6049
  ],
5914
6050
  "calculation": [
5915
- 235
6051
+ 241
5916
6052
  ],
5917
6053
  "kind": [
5918
- 236
6054
+ 242
5919
6055
  ],
5920
6056
  "position": [
5921
6057
  38
@@ -5924,7 +6060,7 @@ var types_default = {
5924
6060
  38
5925
6061
  ],
5926
6062
  "treatment": [
5927
- 229
6063
+ 235
5928
6064
  ],
5929
6065
  "uid": [
5930
6066
  36
@@ -5962,7 +6098,7 @@ var types_default = {
5962
6098
  36
5963
6099
  ],
5964
6100
  "schedule": [
5965
- 241
6101
+ 247
5966
6102
  ],
5967
6103
  "slug": [
5968
6104
  36
@@ -6006,7 +6142,7 @@ var types_default = {
6006
6142
  36
6007
6143
  ],
6008
6144
  "times": [
6009
- 242
6145
+ 248
6010
6146
  ],
6011
6147
  "timezone": [
6012
6148
  36
@@ -6078,7 +6214,7 @@ var types_default = {
6078
6214
  36
6079
6215
  ],
6080
6216
  "orders": [
6081
- 247
6217
+ 253
6082
6218
  ],
6083
6219
  "totalCount": [
6084
6220
  38
@@ -6092,7 +6228,7 @@ var types_default = {
6092
6228
  36
6093
6229
  ],
6094
6230
  "charge": [
6095
- 248
6231
+ 254
6096
6232
  ],
6097
6233
  "createdAt": [
6098
6234
  0
@@ -6107,7 +6243,7 @@ var types_default = {
6107
6243
  38
6108
6244
  ],
6109
6245
  "items": [
6110
- 253
6246
+ 259
6111
6247
  ],
6112
6248
  "momentSlug": [
6113
6249
  36
@@ -6122,10 +6258,10 @@ var types_default = {
6122
6258
  38
6123
6259
  ],
6124
6260
  "refunds": [
6125
- 258
6261
+ 264
6126
6262
  ],
6127
6263
  "status": [
6128
- 245
6264
+ 251
6129
6265
  ],
6130
6266
  "subtotalAmount": [
6131
6267
  38
@@ -6143,7 +6279,7 @@ var types_default = {
6143
6279
  0
6144
6280
  ],
6145
6281
  "user": [
6146
- 263
6282
+ 269
6147
6283
  ],
6148
6284
  "__typename": [
6149
6285
  36
@@ -6169,7 +6305,7 @@ var types_default = {
6169
6305
  36
6170
6306
  ],
6171
6307
  "category": [
6172
- 249
6308
+ 255
6173
6309
  ],
6174
6310
  "createdAt": [
6175
6311
  0
@@ -6184,10 +6320,10 @@ var types_default = {
6184
6320
  0
6185
6321
  ],
6186
6322
  "linkingMethod": [
6187
- 250
6323
+ 256
6188
6324
  ],
6189
6325
  "linkingStatus": [
6190
- 251
6326
+ 257
6191
6327
  ],
6192
6328
  "orderUid": [
6193
6329
  36
@@ -6196,7 +6332,7 @@ var types_default = {
6196
6332
  38
6197
6333
  ],
6198
6334
  "status": [
6199
- 252
6335
+ 258
6200
6336
  ],
6201
6337
  "stripePaymentIntentId": [
6202
6338
  36
@@ -6229,7 +6365,7 @@ var types_default = {
6229
6365
  39
6230
6366
  ],
6231
6367
  "category": [
6232
- 249
6368
+ 255
6233
6369
  ],
6234
6370
  "chargedBaseAmount": [
6235
6371
  38
@@ -6262,7 +6398,7 @@ var types_default = {
6262
6398
  38
6263
6399
  ],
6264
6400
  "merchPurchase": [
6265
- 254
6401
+ 260
6266
6402
  ],
6267
6403
  "merchSizeUid": [
6268
6404
  36
@@ -6295,10 +6431,10 @@ var types_default = {
6295
6431
  36
6296
6432
  ],
6297
6433
  "tickets": [
6298
- 255
6434
+ 261
6299
6435
  ],
6300
6436
  "type": [
6301
- 257
6437
+ 263
6302
6438
  ],
6303
6439
  "uid": [
6304
6440
  35
@@ -6353,7 +6489,7 @@ var types_default = {
6353
6489
  39
6354
6490
  ],
6355
6491
  "state": [
6356
- 256
6492
+ 262
6357
6493
  ],
6358
6494
  "uid": [
6359
6495
  35
@@ -6369,7 +6505,7 @@ var types_default = {
6369
6505
  "InPersonOrderItemType": {},
6370
6506
  "InPersonOrderRefund": {
6371
6507
  "allocations": [
6372
- 259
6508
+ 265
6373
6509
  ],
6374
6510
  "amount": [
6375
6511
  38
@@ -6384,10 +6520,10 @@ var types_default = {
6384
6520
  36
6385
6521
  ],
6386
6522
  "source": [
6387
- 261
6523
+ 267
6388
6524
  ],
6389
6525
  "status": [
6390
- 262
6526
+ 268
6391
6527
  ],
6392
6528
  "stripeRefundId": [
6393
6529
  36
@@ -6419,7 +6555,7 @@ var types_default = {
6419
6555
  39
6420
6556
  ],
6421
6557
  "status": [
6422
- 260
6558
+ 266
6423
6559
  ],
6424
6560
  "ticketUids": [
6425
6561
  36
@@ -6456,7 +6592,7 @@ var types_default = {
6456
6592
  },
6457
6593
  "GetPartnerInPersonChargesResponse": {
6458
6594
  "charges": [
6459
- 265
6595
+ 271
6460
6596
  ],
6461
6597
  "hasNextPage": [
6462
6598
  39
@@ -6491,7 +6627,7 @@ var types_default = {
6491
6627
  36
6492
6628
  ],
6493
6629
  "category": [
6494
- 249
6630
+ 255
6495
6631
  ],
6496
6632
  "createdAt": [
6497
6633
  0
@@ -6509,10 +6645,10 @@ var types_default = {
6509
6645
  0
6510
6646
  ],
6511
6647
  "linkingMethod": [
6512
- 250
6648
+ 256
6513
6649
  ],
6514
6650
  "linkingStatus": [
6515
- 251
6651
+ 257
6516
6652
  ],
6517
6653
  "momentSlug": [
6518
6654
  36
@@ -6527,7 +6663,7 @@ var types_default = {
6527
6663
  38
6528
6664
  ],
6529
6665
  "status": [
6530
- 252
6666
+ 258
6531
6667
  ],
6532
6668
  "stripePaymentIntentId": [
6533
6669
  36
@@ -6553,7 +6689,7 @@ var types_default = {
6553
6689
  },
6554
6690
  "GetPartnerGuestListCheckInsResponse": {
6555
6691
  "batches": [
6556
- 267
6692
+ 273
6557
6693
  ],
6558
6694
  "hasNextPage": [
6559
6695
  39
@@ -6579,7 +6715,7 @@ var types_default = {
6579
6715
  38
6580
6716
  ],
6581
6717
  "source": [
6582
- 268
6718
+ 274
6583
6719
  ],
6584
6720
  "uid": [
6585
6721
  35
@@ -6600,7 +6736,7 @@ var types_default = {
6600
6736
  36
6601
6737
  ],
6602
6738
  "checkInStatus": [
6603
- 270
6739
+ 276
6604
6740
  ],
6605
6741
  "checkedIn": [
6606
6742
  39
@@ -6645,7 +6781,7 @@ var types_default = {
6645
6781
  4
6646
6782
  ],
6647
6783
  "field": [
6648
- 272
6784
+ 278
6649
6785
  ],
6650
6786
  "__typename": [
6651
6787
  36
@@ -6654,7 +6790,7 @@ var types_default = {
6654
6790
  "MomentGuestListSortField": {},
6655
6791
  "GetPartnerMomentGuestListResponse": {
6656
6792
  "guestLists": [
6657
- 274
6793
+ 280
6658
6794
  ],
6659
6795
  "hasNextPage": [
6660
6796
  39
@@ -6674,7 +6810,7 @@ var types_default = {
6674
6810
  39
6675
6811
  ],
6676
6812
  "checkInStatus": [
6677
- 270
6813
+ 276
6678
6814
  ],
6679
6815
  "checkedInAt": [
6680
6816
  0
@@ -6686,16 +6822,16 @@ var types_default = {
6686
6822
  36
6687
6823
  ],
6688
6824
  "guestInfos": [
6689
- 275
6825
+ 281
6690
6826
  ],
6691
6827
  "invitationResponse": [
6692
- 276
6828
+ 282
6693
6829
  ],
6694
6830
  "labels": [
6695
- 277
6831
+ 283
6696
6832
  ],
6697
6833
  "momentOccurrences": [
6698
- 278
6834
+ 284
6699
6835
  ],
6700
6836
  "name": [
6701
6837
  36
@@ -6725,7 +6861,7 @@ var types_default = {
6725
6861
  0
6726
6862
  ],
6727
6863
  "source": [
6728
- 282
6864
+ 288
6729
6865
  ],
6730
6866
  "uid": [
6731
6867
  35
@@ -6865,16 +7001,16 @@ var types_default = {
6865
7001
  38
6866
7002
  ],
6867
7003
  "source": [
6868
- 279
7004
+ 285
6869
7005
  ],
6870
7006
  "startsAt": [
6871
7007
  0
6872
7008
  ],
6873
7009
  "status": [
6874
- 280
7010
+ 286
6875
7011
  ],
6876
7012
  "ticketTierSetupStatus": [
6877
- 281
7013
+ 287
6878
7014
  ],
6879
7015
  "timezone": [
6880
7016
  36
@@ -6942,10 +7078,10 @@ var types_default = {
6942
7078
  36
6943
7079
  ],
6944
7080
  "faqs": [
6945
- 285
7081
+ 291
6946
7082
  ],
6947
7083
  "fields": [
6948
- 286
7084
+ 292
6949
7085
  ],
6950
7086
  "isActive": [
6951
7087
  39
@@ -6960,7 +7096,7 @@ var types_default = {
6960
7096
  36
6961
7097
  ],
6962
7098
  "mode": [
6963
- 290
7099
+ 296
6964
7100
  ],
6965
7101
  "name": [
6966
7102
  36
@@ -6981,13 +7117,13 @@ var types_default = {
6981
7117
  38
6982
7118
  ],
6983
7119
  "sections": [
6984
- 288
7120
+ 294
6985
7121
  ],
6986
7122
  "slug": [
6987
7123
  36
6988
7124
  ],
6989
7125
  "source": [
6990
- 291
7126
+ 297
6991
7127
  ],
6992
7128
  "successMessageBody": [
6993
7129
  36
@@ -7048,7 +7184,7 @@ var types_default = {
7048
7184
  36
7049
7185
  ],
7050
7186
  "optionImages": [
7051
- 287
7187
+ 293
7052
7188
  ],
7053
7189
  "options": [
7054
7190
  36
@@ -7066,7 +7202,7 @@ var types_default = {
7066
7202
  36
7067
7203
  ],
7068
7204
  "type": [
7069
- 289
7205
+ 295
7070
7206
  ],
7071
7207
  "uid": [
7072
7208
  35
@@ -7123,7 +7259,7 @@ var types_default = {
7123
7259
  "FormSource": {},
7124
7260
  "GetFormsPaginatedResponse": {
7125
7261
  "forms": [
7126
- 284
7262
+ 290
7127
7263
  ],
7128
7264
  "hasNextPage": [
7129
7265
  39
@@ -7152,7 +7288,7 @@ var types_default = {
7152
7288
  36
7153
7289
  ],
7154
7290
  "sources": [
7155
- 291
7291
+ 297
7156
7292
  ],
7157
7293
  "take": [
7158
7294
  38
@@ -7192,7 +7328,7 @@ var types_default = {
7192
7328
  0
7193
7329
  ],
7194
7330
  "formField": [
7195
- 286
7331
+ 292
7196
7332
  ],
7197
7333
  "isValid": [
7198
7334
  39
@@ -7242,10 +7378,10 @@ var types_default = {
7242
7378
  36
7243
7379
  ],
7244
7380
  "form": [
7245
- 284
7381
+ 290
7246
7382
  ],
7247
7383
  "formFieldResponses": [
7248
- 295
7384
+ 301
7249
7385
  ],
7250
7386
  "relevancyScore": [
7251
7387
  38
@@ -7271,7 +7407,7 @@ var types_default = {
7271
7407
  },
7272
7408
  "GetPartnerFormResponsesResponse": {
7273
7409
  "formResponses": [
7274
- 296
7410
+ 302
7275
7411
  ],
7276
7412
  "hasNextPage": [
7277
7413
  39
@@ -7291,13 +7427,13 @@ var types_default = {
7291
7427
  39
7292
7428
  ],
7293
7429
  "balance": [
7294
- 301
7430
+ 307
7295
7431
  ],
7296
7432
  "balanceStale": [
7297
7433
  39
7298
7434
  ],
7299
7435
  "capabilities": [
7300
- 302
7436
+ 308
7301
7437
  ],
7302
7438
  "displayName": [
7303
7439
  36
@@ -7317,7 +7453,7 @@ var types_default = {
7317
7453
  36
7318
7454
  ],
7319
7455
  "counterparty": [
7320
- 303
7456
+ 309
7321
7457
  ],
7322
7458
  "currency": [
7323
7459
  36
@@ -7335,7 +7471,7 @@ var types_default = {
7335
7471
  0
7336
7472
  ],
7337
7473
  "operationKind": [
7338
- 313
7474
+ 319
7339
7475
  ],
7340
7476
  "operationUid": [
7341
7477
  36
@@ -7352,7 +7488,7 @@ var types_default = {
7352
7488
  },
7353
7489
  "BrandWalletActivityResponse": {
7354
7490
  "activity": [
7355
- 299
7491
+ 305
7356
7492
  ],
7357
7493
  "activityStale": [
7358
7494
  39
@@ -7409,7 +7545,7 @@ var types_default = {
7409
7545
  },
7410
7546
  "BrandWalletCounterparty": {
7411
7547
  "type": [
7412
- 305
7548
+ 311
7413
7549
  ],
7414
7550
  "value": [
7415
7551
  36
@@ -7420,7 +7556,7 @@ var types_default = {
7420
7556
  },
7421
7557
  "BrandWalletCounterpartyInput": {
7422
7558
  "type": [
7423
- 305
7559
+ 311
7424
7560
  ],
7425
7561
  "value": [
7426
7562
  36
@@ -7441,13 +7577,13 @@ var types_default = {
7441
7577
  0
7442
7578
  ],
7443
7579
  "counterparty": [
7444
- 303
7580
+ 309
7445
7581
  ],
7446
7582
  "createdAt": [
7447
7583
  0
7448
7584
  ],
7449
7585
  "createdBy": [
7450
- 307
7586
+ 313
7451
7587
  ],
7452
7588
  "currency": [
7453
7589
  36
@@ -7465,7 +7601,7 @@ var types_default = {
7465
7601
  39
7466
7602
  ],
7467
7603
  "kind": [
7468
- 313
7604
+ 319
7469
7605
  ],
7470
7606
  "lastErrorCode": [
7471
7607
  36
@@ -7486,7 +7622,7 @@ var types_default = {
7486
7622
  0
7487
7623
  ],
7488
7624
  "provider": [
7489
- 309
7625
+ 315
7490
7626
  ],
7491
7627
  "providerResourceId": [
7492
7628
  36
@@ -7498,7 +7634,7 @@ var types_default = {
7498
7634
  0
7499
7635
  ],
7500
7636
  "status": [
7501
- 314
7637
+ 320
7502
7638
  ],
7503
7639
  "submittedAt": [
7504
7640
  0
@@ -7535,7 +7671,7 @@ var types_default = {
7535
7671
  36
7536
7672
  ],
7537
7673
  "operations": [
7538
- 306
7674
+ 312
7539
7675
  ],
7540
7676
  "totalCount": [
7541
7677
  38
@@ -7556,7 +7692,7 @@ var types_default = {
7556
7692
  38
7557
7693
  ],
7558
7694
  "wallets": [
7559
- 298
7695
+ 304
7560
7696
  ],
7561
7697
  "__typename": [
7562
7698
  36
@@ -7576,7 +7712,7 @@ var types_default = {
7576
7712
  36
7577
7713
  ],
7578
7714
  "payer": [
7579
- 304
7715
+ 310
7580
7716
  ],
7581
7717
  "__typename": [
7582
7718
  36
@@ -7590,7 +7726,7 @@ var types_default = {
7590
7726
  36
7591
7727
  ],
7592
7728
  "counterparty": [
7593
- 304
7729
+ 310
7594
7730
  ],
7595
7731
  "currency": [
7596
7732
  36
@@ -7603,7 +7739,325 @@ var types_default = {
7603
7739
  ]
7604
7740
  },
7605
7741
  "WalletOperationKind": {},
7606
- "WalletOperationStatus": {}
7742
+ "WalletOperationStatus": {},
7743
+ "SpaceKind": {},
7744
+ "SpaceHoldStatus": {},
7745
+ "SpaceRequestKind": {},
7746
+ "SpaceHoldPreviewOutcome": {},
7747
+ "SpaceCalendarConflictKind": {},
7748
+ "PartnerSpace": {
7749
+ "capacity": [
7750
+ 38
7751
+ ],
7752
+ "kind": [
7753
+ 321
7754
+ ],
7755
+ "name": [
7756
+ 36
7757
+ ],
7758
+ "parts": [
7759
+ 326
7760
+ ],
7761
+ "setupMinutes": [
7762
+ 38
7763
+ ],
7764
+ "teardownMinutes": [
7765
+ 38
7766
+ ],
7767
+ "uid": [
7768
+ 35
7769
+ ],
7770
+ "__typename": [
7771
+ 36
7772
+ ]
7773
+ },
7774
+ "PartnerSpaceLocation": {
7775
+ "city": [
7776
+ 36
7777
+ ],
7778
+ "country": [
7779
+ 36
7780
+ ],
7781
+ "name": [
7782
+ 36
7783
+ ],
7784
+ "spaces": [
7785
+ 326
7786
+ ],
7787
+ "timezone": [
7788
+ 36
7789
+ ],
7790
+ "uid": [
7791
+ 35
7792
+ ],
7793
+ "__typename": [
7794
+ 36
7795
+ ]
7796
+ },
7797
+ "PartnerSpaceLocationsPage": {
7798
+ "hasNextPage": [
7799
+ 39
7800
+ ],
7801
+ "locations": [
7802
+ 327
7803
+ ],
7804
+ "nextCursor": [
7805
+ 36
7806
+ ],
7807
+ "totalCount": [
7808
+ 38
7809
+ ],
7810
+ "__typename": [
7811
+ 36
7812
+ ]
7813
+ },
7814
+ "PartnerSpaceRequest": {
7815
+ "headcount": [
7816
+ 38
7817
+ ],
7818
+ "organization": [
7819
+ 36
7820
+ ],
7821
+ "requesterKind": [
7822
+ 323
7823
+ ],
7824
+ "title": [
7825
+ 36
7826
+ ],
7827
+ "uid": [
7828
+ 35
7829
+ ],
7830
+ "__typename": [
7831
+ 36
7832
+ ]
7833
+ },
7834
+ "PartnerSpaceHold": {
7835
+ "aheadCount": [
7836
+ 38
7837
+ ],
7838
+ "endsAt": [
7839
+ 0
7840
+ ],
7841
+ "expiresAt": [
7842
+ 0
7843
+ ],
7844
+ "isChallengeOverdue": [
7845
+ 39
7846
+ ],
7847
+ "isLapsed": [
7848
+ 39
7849
+ ],
7850
+ "localDate": [
7851
+ 36
7852
+ ],
7853
+ "occupiedEndsAt": [
7854
+ 0
7855
+ ],
7856
+ "occupiedStartsAt": [
7857
+ 0
7858
+ ],
7859
+ "position": [
7860
+ 38
7861
+ ],
7862
+ "request": [
7863
+ 329
7864
+ ],
7865
+ "requestUid": [
7866
+ 35
7867
+ ],
7868
+ "respondBy": [
7869
+ 0
7870
+ ],
7871
+ "spaceUid": [
7872
+ 35
7873
+ ],
7874
+ "startsAt": [
7875
+ 0
7876
+ ],
7877
+ "status": [
7878
+ 322
7879
+ ],
7880
+ "uid": [
7881
+ 35
7882
+ ],
7883
+ "__typename": [
7884
+ 36
7885
+ ]
7886
+ },
7887
+ "PartnerSpaceBlock": {
7888
+ "endsAt": [
7889
+ 0
7890
+ ],
7891
+ "reason": [
7892
+ 36
7893
+ ],
7894
+ "spaceUid": [
7895
+ 35
7896
+ ],
7897
+ "startsAt": [
7898
+ 0
7899
+ ],
7900
+ "uid": [
7901
+ 35
7902
+ ],
7903
+ "__typename": [
7904
+ 36
7905
+ ]
7906
+ },
7907
+ "SpaceCalendarClosure": {
7908
+ "endsAt": [
7909
+ 0
7910
+ ],
7911
+ "localDate": [
7912
+ 36
7913
+ ],
7914
+ "note": [
7915
+ 36
7916
+ ],
7917
+ "spaceUid": [
7918
+ 35
7919
+ ],
7920
+ "startsAt": [
7921
+ 0
7922
+ ],
7923
+ "__typename": [
7924
+ 36
7925
+ ]
7926
+ },
7927
+ "PartnerSpaceCalendar": {
7928
+ "blocks": [
7929
+ 331
7930
+ ],
7931
+ "closures": [
7932
+ 332
7933
+ ],
7934
+ "holds": [
7935
+ 330
7936
+ ],
7937
+ "locationName": [
7938
+ 36
7939
+ ],
7940
+ "locationUid": [
7941
+ 35
7942
+ ],
7943
+ "spaces": [
7944
+ 326
7945
+ ],
7946
+ "timezone": [
7947
+ 36
7948
+ ],
7949
+ "__typename": [
7950
+ 36
7951
+ ]
7952
+ },
7953
+ "SpaceCalendarConflict": {
7954
+ "endsAt": [
7955
+ 0
7956
+ ],
7957
+ "kind": [
7958
+ 325
7959
+ ],
7960
+ "label": [
7961
+ 36
7962
+ ],
7963
+ "startsAt": [
7964
+ 0
7965
+ ],
7966
+ "uid": [
7967
+ 35
7968
+ ],
7969
+ "__typename": [
7970
+ 36
7971
+ ]
7972
+ },
7973
+ "SpaceAvailabilityDate": {
7974
+ "closed": [
7975
+ 39
7976
+ ],
7977
+ "conflicts": [
7978
+ 334
7979
+ ],
7980
+ "lineSize": [
7981
+ 38
7982
+ ],
7983
+ "localDate": [
7984
+ 36
7985
+ ],
7986
+ "outcome": [
7987
+ 324
7988
+ ],
7989
+ "__typename": [
7990
+ 36
7991
+ ]
7992
+ },
7993
+ "SpaceAvailabilitySpace": {
7994
+ "dates": [
7995
+ 335
7996
+ ],
7997
+ "name": [
7998
+ 36
7999
+ ],
8000
+ "spaceUid": [
8001
+ 35
8002
+ ],
8003
+ "__typename": [
8004
+ 36
8005
+ ]
8006
+ },
8007
+ "SpaceAvailability": {
8008
+ "spaces": [
8009
+ 336
8010
+ ],
8011
+ "timezone": [
8012
+ 36
8013
+ ],
8014
+ "__typename": [
8015
+ 36
8016
+ ]
8017
+ },
8018
+ "SpaceCalendarInput": {
8019
+ "endsOn": [
8020
+ 36
8021
+ ],
8022
+ "includeReleased": [
8023
+ 39
8024
+ ],
8025
+ "locationUid": [
8026
+ 35
8027
+ ],
8028
+ "spaceUids": [
8029
+ 35
8030
+ ],
8031
+ "startsOn": [
8032
+ 36
8033
+ ],
8034
+ "__typename": [
8035
+ 36
8036
+ ]
8037
+ },
8038
+ "SpaceAvailabilityInput": {
8039
+ "endTime": [
8040
+ 36
8041
+ ],
8042
+ "endsOn": [
8043
+ 36
8044
+ ],
8045
+ "locationUid": [
8046
+ 35
8047
+ ],
8048
+ "spaceUids": [
8049
+ 35
8050
+ ],
8051
+ "startTime": [
8052
+ 36
8053
+ ],
8054
+ "startsOn": [
8055
+ 36
8056
+ ],
8057
+ "__typename": [
8058
+ 36
8059
+ ]
8060
+ }
7607
8061
  }
7608
8062
  };
7609
8063
 
@@ -7996,6 +8450,287 @@ async function uploadPartnerMedia(client, source, options = {}) {
7996
8450
  }
7997
8451
  }
7998
8452
 
7999
- 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 };
8000
8735
  //# sourceMappingURL=index.mjs.map
8001
8736
  //# sourceMappingURL=index.mjs.map