@itm-studio/partner-sdk 0.6.1 → 0.6.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itm-studio/partner-sdk",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "TypeScript SDK for the ITM Partner API — typed GraphQL client with zero introspection required",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1019,6 +1019,15 @@ type PartnerAudienceCustomer {
1019
1019
  }
1020
1020
 
1021
1021
  type PartnerMomentStats {
1022
+ """
1023
+ Paid or partially refunded POS charges, including legacy charges without an order. Order-backed charges overlap with inPersonOrdersCount.
1024
+ """
1025
+ inPersonChargesCount: Int!
1026
+ """
1027
+ Paid or partially refunded itemized POS orders. Not a ticket or revenue count.
1028
+ """
1029
+ inPersonOrdersCount: Int!
1030
+
1022
1031
  generatedAt: DateTime!
1023
1032
  ticketsCount: Int!
1024
1033
  """Confirmed tickets whose materialized price is greater than zero."""
@@ -1028,6 +1037,7 @@ type PartnerMomentStats {
1028
1037
  waitlistCount: Int!
1029
1038
  externalRsvpCount: Int!
1030
1039
  ticketRsvpRequestsCount: Int!
1040
+ guestlist: MomentGuestListTotals!
1031
1041
  }
1032
1042
 
1033
1043
  type PartnerMomentAttendanceCount {
@@ -1959,6 +1969,35 @@ type PartnerAppLogin {
1959
1969
  }
1960
1970
 
1961
1971
  type Query {
1972
+ """
1973
+ Itemized POS orders for an owned moment, newest first. Defaults to 50 orders and caps take at 100.
1974
+ """
1975
+ getPartnerInPersonOrdersForMoment(
1976
+ cursor: String
1977
+ momentSlug: String!
1978
+ """
1979
+ Defaults to PAID and PARTIALLY_REFUNDED. Pass an empty list for all statuses.
1980
+ """
1981
+ statuses: [InPersonOrderStatus!]
1982
+ take: Int
1983
+ ): GetInPersonOrdersResponse!
1984
+
1985
+ getPartnerInPersonOrder(orderUid: String!): InPersonOrder!
1986
+
1987
+ """
1988
+ POS charges for an owned moment, including legacy charges without an itemized order. Amounts use the currency minor unit. Defaults to 50 charges and caps take at 100.
1989
+ """
1990
+ getPartnerInPersonChargesForMoment(
1991
+ category: ChargeCategory
1992
+ cursor: String
1993
+ momentSlug: String!
1994
+ """
1995
+ Defaults to PAID and PARTIALLY_REFUNDED. Pass an empty list for all statuses.
1996
+ """
1997
+ statuses: [ChargeStatus!]
1998
+ take: Int
1999
+ ): GetPartnerInPersonChargesResponse!
2000
+
1962
2001
  """
1963
2002
  The brand's Login with ITM apps (at most 20), oldest first. Deleted apps are omitted.
1964
2003
  """
@@ -2179,6 +2218,8 @@ type Query {
2179
2218
  getPartnerPlanBudget(budgetUid: String!): PlanBudget!
2180
2219
  getPartnerPlanningSource(offset: Int! = 0, take: Int! = 50, uid: String!): PlanningSource!
2181
2220
  getPartnerPlanningProposal(uid: String!): PlanningProposal!
2221
+ getPartnerGuestListCheckIns(cursor: String, guestlistUid: String!, momentSlug: String!, take: Int): GetPartnerGuestListCheckInsResponse!
2222
+ getPartnerGuestListForMoment(cursor: String, filters: GetMomentGuestListFiltersInput, momentSlug: String!, sort: MomentGuestListSortInput, take: Int): GetPartnerMomentGuestListResponse!
2182
2223
  }
2183
2224
 
2184
2225
  # ─── Input Types ──────────────────────────────────────────────────────────────
@@ -3093,3 +3134,486 @@ input UpdatePlanInput {
3093
3134
  slug: String
3094
3135
  status: PlanStatus
3095
3136
  }
3137
+
3138
+ enum InPersonOrderStatus {
3139
+ CANCELED
3140
+ CREATING_PAYMENT
3141
+ EXPIRED
3142
+ FAILED
3143
+ PAID
3144
+ PARTIALLY_REFUNDED
3145
+ PENDING_PAYMENT
3146
+ REFUNDED
3147
+ }
3148
+
3149
+ type GetInPersonOrdersResponse {
3150
+ hasNextPage: Boolean!
3151
+ nextCursor: String
3152
+ orders: [InPersonOrder!]!
3153
+ totalCount: Int!
3154
+ }
3155
+
3156
+ type InPersonOrder {
3157
+ cancellationReason: String
3158
+ charge: InPersonCharge
3159
+ createdAt: DateTime!
3160
+ currencyCode: String!
3161
+ expiresAt: DateTime
3162
+ grossAmount: Int!
3163
+ items: [InPersonOrderItem!]!
3164
+ momentSlug: String!
3165
+ momentUid: String!
3166
+ paidAt: DateTime
3167
+ refundedAmount: Int!
3168
+ refunds: [InPersonOrderRefund!]!
3169
+ status: InPersonOrderStatus!
3170
+ subtotalAmount: Int
3171
+ taxAmount: Int!
3172
+ taxCode: String
3173
+ uid: ID!
3174
+ updatedAt: DateTime!
3175
+ user: InPersonOrderUser
3176
+ }
3177
+
3178
+ type InPersonCharge {
3179
+ amount: Int!
3180
+ billingEmail: String
3181
+ canceledAt: DateTime
3182
+ cancellationReason: String
3183
+ cardBrand: String
3184
+ cardLast4: String
3185
+ category: ChargeCategory!
3186
+ createdAt: DateTime!
3187
+ description: String
3188
+ expiredAt: DateTime
3189
+ expiresAt: DateTime
3190
+ linkingMethod: LinkingMethod
3191
+ linkingStatus: UserLinkingStatus!
3192
+ orderUid: String
3193
+ quantity: Int
3194
+ status: ChargeStatus!
3195
+ stripePaymentIntentId: String!
3196
+ subtotalAmount: Int
3197
+ taxAmount: Int!
3198
+ taxCode: String
3199
+ uid: ID!
3200
+ updatedAt: DateTime!
3201
+ }
3202
+
3203
+ enum ChargeCategory {
3204
+ BAR
3205
+ CONTRIBUTION
3206
+ FOOD
3207
+ MERCH
3208
+ MIXED
3209
+ OTHER
3210
+ PARKING
3211
+ TICKET
3212
+ TIP
3213
+ }
3214
+
3215
+ enum LinkingMethod {
3216
+ BILLING_EMAIL
3217
+ CARD_FINGERPRINT
3218
+ MANUAL_EMAIL
3219
+ MANUAL_PHONE
3220
+ USER_CLAIMED
3221
+ }
3222
+
3223
+ enum UserLinkingStatus {
3224
+ LINKED_AUTO
3225
+ LINKED_EMAIL
3226
+ LINKED_MANUAL
3227
+ PENDING
3228
+ UNLINKED
3229
+ }
3230
+
3231
+ enum ChargeStatus {
3232
+ CANCELED
3233
+ EXPIRED
3234
+ FAILED
3235
+ PAID
3236
+ PARTIALLY_REFUNDED
3237
+ PENDING
3238
+ REFUNDED
3239
+ }
3240
+
3241
+ type InPersonOrderItem {
3242
+ admitNow: Boolean
3243
+ category: ChargeCategory!
3244
+ chargedBaseAmount: Int!
3245
+ contributionNote: String
3246
+ contributionPageSlug: String
3247
+ contributionPageUid: String
3248
+ """
3249
+ Contribution attributed to this line once the order is paid; null while unpaid and for unmapped contributions.
3250
+ """
3251
+ contributionUid: String
3252
+ createdAt: DateTime!
3253
+ description: String
3254
+ facilityFee: Int!
3255
+ handedOverNow: Boolean
3256
+ lineAmount: Int!
3257
+ merchPurchase: InPersonOrderMerchPurchase
3258
+ merchSizeUid: String
3259
+ merchUid: String
3260
+ momentOccurrenceUid: String
3261
+ name: String!
3262
+ originalBaseAmount: Int!
3263
+ quantity: Int!
3264
+ refundableQuantity: Int!
3265
+ refundedQuantity: Int!
3266
+ restockedQuantity: Int!
3267
+ ticketTierUid: String
3268
+ tickets: [InPersonOrderTicket!]!
3269
+ type: InPersonOrderItemType!
3270
+ uid: ID!
3271
+ unitAmount: Int!
3272
+ updatedAt: DateTime!
3273
+ variantName: String
3274
+ }
3275
+
3276
+ type InPersonOrderMerchPurchase {
3277
+ createdAt: DateTime!
3278
+ quantity: Int!
3279
+ redeemedAt: DateTime
3280
+ refundedQuantity: Int!
3281
+ state: MerchPurchaseState!
3282
+ uid: ID!
3283
+ updatedAt: DateTime!
3284
+ }
3285
+
3286
+
3287
+ type InPersonOrderTicket {
3288
+ createdAt: DateTime!
3289
+ redeemedAt: DateTime
3290
+ refundable: Boolean!
3291
+ state: TicketState!
3292
+ uid: ID!
3293
+ updatedAt: DateTime!
3294
+ }
3295
+
3296
+ enum TicketState {
3297
+ CANCELLED
3298
+ CONFIRMED
3299
+ FAILED
3300
+ PENDING
3301
+ }
3302
+
3303
+ enum InPersonOrderItemType {
3304
+ CONTRIBUTION
3305
+ CUSTOM
3306
+ MERCH_VARIANT
3307
+ TICKET_TIER
3308
+ }
3309
+
3310
+ type InPersonOrderRefund {
3311
+ allocations: [InPersonOrderRefundAllocation!]!
3312
+ amount: Int!
3313
+ createdAt: DateTime!
3314
+ failureReason: String
3315
+ reason: String
3316
+ source: InPersonOrderRefundSource!
3317
+ status: InPersonOrderRefundStatus!
3318
+ stripeRefundId: String
3319
+ uid: ID!
3320
+ updatedAt: DateTime!
3321
+ }
3322
+
3323
+ type InPersonOrderRefundAllocation {
3324
+ amount: Int!
3325
+ createdAt: DateTime!
3326
+ orderItemUid: String!
3327
+ quantity: Int!
3328
+ restock: Boolean
3329
+ status: InPersonOrderRefundAllocationStatus!
3330
+ ticketUids: [String!]!
3331
+ uid: ID!
3332
+ updatedAt: DateTime!
3333
+ }
3334
+
3335
+ enum InPersonOrderRefundAllocationStatus {
3336
+ APPLIED
3337
+ FAILED
3338
+ PENDING
3339
+ }
3340
+
3341
+ enum InPersonOrderRefundSource {
3342
+ BACKSTAGE
3343
+ RECONCILIATION
3344
+ STRIPE_WEBHOOK
3345
+ }
3346
+
3347
+ enum InPersonOrderRefundStatus {
3348
+ CANCELED
3349
+ FAILED
3350
+ PENDING
3351
+ SUCCEEDED
3352
+ }
3353
+
3354
+ type InPersonOrderUser {
3355
+ name: String
3356
+ phoneNumber: String
3357
+ primaryEmail: String
3358
+ uid: String!
3359
+ }
3360
+
3361
+ type GetPartnerInPersonChargesResponse {
3362
+ charges: [PartnerInPersonCharge!]!
3363
+ hasNextPage: Boolean!
3364
+ nextCursor: String
3365
+ totalCount: Int!
3366
+ }
3367
+
3368
+ type PartnerInPersonCharge {
3369
+ amount: Int!
3370
+ billingEmail: String
3371
+ canceledAt: DateTime
3372
+ cancellationReason: String
3373
+ cardBrand: String
3374
+ cardLast4: String
3375
+ category: ChargeCategory!
3376
+ createdAt: DateTime!
3377
+ currencyCode: String!
3378
+ description: String
3379
+ expiredAt: DateTime
3380
+ expiresAt: DateTime
3381
+ linkingMethod: LinkingMethod
3382
+ linkingStatus: UserLinkingStatus!
3383
+ momentSlug: String!
3384
+ momentUid: String!
3385
+ orderUid: String
3386
+ quantity: Int
3387
+ status: ChargeStatus!
3388
+ stripePaymentIntentId: String!
3389
+ subtotalAmount: Int
3390
+ taxAmount: Int!
3391
+ taxCode: String
3392
+ uid: ID!
3393
+ updatedAt: DateTime!
3394
+ }
3395
+
3396
+ type GetPartnerGuestListCheckInsResponse {
3397
+ batches: [PartnerGuestListCheckIn!]!
3398
+ hasNextPage: Boolean!
3399
+ nextCursor: String
3400
+ totalCount: Int!
3401
+ }
3402
+
3403
+ type PartnerGuestListCheckIn {
3404
+ """Of those, still checked in (not undone)."""
3405
+ activeCount: Int!
3406
+ checkedInAt: DateTime!
3407
+ """People admitted by this action."""
3408
+ count: Int!
3409
+ source: MomentGuestListCheckInSource!
3410
+ """Pass to undoGuestCheckIn as checkInBatchUid."""
3411
+ uid: ID!
3412
+ voidReason: String
3413
+ """Most recent undo of this batch, if any."""
3414
+ voidedAt: DateTime
3415
+ }
3416
+
3417
+ """
3418
+ How a guest list check-in was recorded. Clients send QR_SCAN or MANUAL; BULK and BACKFILL are recorded by the server.
3419
+ """
3420
+ enum MomentGuestListCheckInSource {
3421
+ BACKFILL
3422
+ BULK
3423
+ MANUAL
3424
+ QR_SCAN
3425
+ }
3426
+
3427
+ input GetMomentGuestListFiltersInput {
3428
+ """Guests added by any of these admins."""
3429
+ addedByAdminUids: [String!]
3430
+ """Guests in any of these check-in states."""
3431
+ checkInStatus: [MomentGuestListCheckInStatus!]
3432
+ checkedIn: Boolean
3433
+ hasEmail: Boolean
3434
+ hasNotes: Boolean
3435
+ """true: party of 2 or more. false: just the guest."""
3436
+ hasPlusOnes: Boolean
3437
+ """
3438
+ Also include guests with no labels (with labelUids: any of those labels or no label).
3439
+ """
3440
+ includeUnlabeled: Boolean
3441
+ labelUid: String
3442
+ """Guests with any of these labels. Combines with labelUid."""
3443
+ labelUids: [String!]
3444
+ """
3445
+ Guests on this occurrence: those assigned to it plus guests with no assigned occurrences (whole moment).
3446
+ """
3447
+ momentOccurrenceUid: String
3448
+ """Whether the guest has been sent their QR code email."""
3449
+ qrCodeSent: Boolean
3450
+ search: String
3451
+ sessionDate: DateTime
3452
+ }
3453
+
3454
+ """
3455
+ NOT_ARRIVED: no one in the party is in. PARTIAL: some are. ALL_IN: the whole party is in.
3456
+ """
3457
+ enum MomentGuestListCheckInStatus {
3458
+ ALL_IN
3459
+ NOT_ARRIVED
3460
+ PARTIAL
3461
+ }
3462
+
3463
+ input MomentGuestListSortInput {
3464
+ """
3465
+ Defaults: CREATED_AT desc, NAME asc, PARTY_SIZE desc, LAST_CHECKED_IN desc. Guests never checked in sort last.
3466
+ """
3467
+ direction: SortDirection
3468
+ field: MomentGuestListSortField!
3469
+ }
3470
+
3471
+ enum MomentGuestListSortField {
3472
+ CREATED_AT
3473
+ LAST_CHECKED_IN
3474
+ NAME
3475
+ PARTY_SIZE
3476
+ }
3477
+
3478
+ type GetPartnerMomentGuestListResponse {
3479
+ guestLists: [PartnerMomentGuestList!]!
3480
+ hasNextPage: Boolean!
3481
+ nextCursor: String
3482
+ totalCount: Int!
3483
+ }
3484
+
3485
+ type PartnerMomentGuestList {
3486
+ """Flag this guest's arrival in the live check-in feed."""
3487
+ alertOnArrival: Boolean!
3488
+ checkInStatus: MomentGuestListCheckInStatus!
3489
+ checkedInAt: DateTime
3490
+ createdAt: DateTime!
3491
+ email: String
3492
+ guestInfos: [MomentGuestListGuestInfo!]!
3493
+ invitationResponse: PartnerGuestListInvitationResponse
3494
+ labels: [MomentGuestListLabel!]!
3495
+ momentOccurrences: [MomentOccurrence!]!
3496
+ name: String!
3497
+ notes: String
3498
+ numCheckedIn: Float!
3499
+ numGuests: Float!
3500
+ phoneNumber: String
3501
+ """Additional guests: numGuests includes the invitee."""
3502
+ plusOnes: Int!
3503
+ """Last time this guest's QR code email was sent."""
3504
+ qrCodeSentAt: DateTime
3505
+ respondedToInvitation: Boolean!
3506
+ sessionDate: DateTime
3507
+ source: MomentGuestListSource
3508
+ uid: ID!
3509
+ updatedAt: DateTime!
3510
+ }
3511
+
3512
+ type MomentGuestListGuestInfo {
3513
+ address: JSON
3514
+ addressString: String
3515
+ """Date of birth as YYYY-MM-DD."""
3516
+ birthday: String
3517
+ companyName: String
3518
+ createdAt: DateTime!
3519
+ fullName: String
3520
+ """0 is the invitee; 1 and up are plus-ones."""
3521
+ guestIndex: Int!
3522
+ instagramHandle: String
3523
+ invitedBy: String
3524
+ jobTitle: String
3525
+ linkedinUrl: String
3526
+ phoneNumber: String
3527
+ submittedAt: DateTime!
3528
+ tiktokHandle: String
3529
+ uid: ID!
3530
+ updatedAt: DateTime!
3531
+ websiteUrl: String
3532
+ xHandle: String
3533
+ youtubeUrl: String
3534
+ }
3535
+
3536
+ type PartnerGuestListInvitationResponse {
3537
+ createdAt: DateTime!
3538
+ email: String!
3539
+ guestNames: [String!]
3540
+ name: String!
3541
+ """
3542
+ Total number of guests attending, including the invitee themselves (e.g. 3 means the invitee + 2 additional guests)
3543
+ """
3544
+ numGuests: Int!
3545
+ uid: ID!
3546
+ updatedAt: DateTime!
3547
+ }
3548
+
3549
+ type MomentGuestListLabel {
3550
+ """Flag arrivals of guests with this label in the live check-in feed."""
3551
+ alertOnArrival: Boolean!
3552
+ color: String
3553
+ createdAt: DateTime!
3554
+ description: String
3555
+ name: String!
3556
+ uid: ID!
3557
+ updatedAt: DateTime!
3558
+ }
3559
+
3560
+ type MomentOccurrence {
3561
+ createdAt: DateTime!
3562
+ endsAt: DateTime!
3563
+ label: String
3564
+ sortOrder: Int!
3565
+ source: MomentOccurrenceSource!
3566
+ startsAt: DateTime!
3567
+ status: MomentOccurrenceStatus!
3568
+ ticketTierSetupStatus: MomentTicketTierSetupStatus!
3569
+ timezone: String!
3570
+ uid: ID!
3571
+ updatedAt: DateTime!
3572
+ }
3573
+
3574
+ enum MomentOccurrenceSource {
3575
+ BACKFILLED
3576
+ DEFAULT
3577
+ EXPLICIT
3578
+ GENERATED
3579
+ }
3580
+
3581
+ enum MomentOccurrenceStatus {
3582
+ ACTIVE
3583
+ CANCELED
3584
+ }
3585
+
3586
+ enum MomentTicketTierSetupStatus {
3587
+ FAILED
3588
+ PENDING
3589
+ READY
3590
+ RUNNING
3591
+ }
3592
+
3593
+ """How a guest list entry was added."""
3594
+ enum MomentGuestListSource {
3595
+ BRAND_LIST
3596
+ BULK
3597
+ DUPLICATE
3598
+ IMPORT
3599
+ INVITATION
3600
+ MANUAL
3601
+ MEMBERSHIP
3602
+ REQUEST
3603
+ }
3604
+
3605
+ """
3606
+ Moment-wide guest list totals. Each guest counts once, however many labels or time slots they have.
3607
+ """
3608
+ type MomentGuestListTotals {
3609
+ """Guest list entries."""
3610
+ names: Int!
3611
+ namesAllIn: Int!
3612
+ namesNotArrived: Int!
3613
+ namesPartial: Int!
3614
+ """People across all parties."""
3615
+ people: Int!
3616
+ peopleCheckedIn: Int!
3617
+ peopleRemaining: Int!
3618
+ plusOnes: Int!
3619
+ }