@itm-studio/partner-sdk 0.6.1 → 0.6.2

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.2",
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",
@@ -1028,6 +1028,7 @@ type PartnerMomentStats {
1028
1028
  waitlistCount: Int!
1029
1029
  externalRsvpCount: Int!
1030
1030
  ticketRsvpRequestsCount: Int!
1031
+ guestlist: MomentGuestListTotals!
1031
1032
  }
1032
1033
 
1033
1034
  type PartnerMomentAttendanceCount {
@@ -2179,6 +2180,8 @@ type Query {
2179
2180
  getPartnerPlanBudget(budgetUid: String!): PlanBudget!
2180
2181
  getPartnerPlanningSource(offset: Int! = 0, take: Int! = 50, uid: String!): PlanningSource!
2181
2182
  getPartnerPlanningProposal(uid: String!): PlanningProposal!
2183
+ getPartnerGuestListCheckIns(cursor: String, guestlistUid: String!, momentSlug: String!, take: Int): GetPartnerGuestListCheckInsResponse!
2184
+ getPartnerGuestListForMoment(cursor: String, filters: GetMomentGuestListFiltersInput, momentSlug: String!, sort: MomentGuestListSortInput, take: Int): GetPartnerMomentGuestListResponse!
2182
2185
  }
2183
2186
 
2184
2187
  # ─── Input Types ──────────────────────────────────────────────────────────────
@@ -3093,3 +3096,228 @@ input UpdatePlanInput {
3093
3096
  slug: String
3094
3097
  status: PlanStatus
3095
3098
  }
3099
+
3100
+ type GetPartnerGuestListCheckInsResponse {
3101
+ batches: [PartnerGuestListCheckIn!]!
3102
+ hasNextPage: Boolean!
3103
+ nextCursor: String
3104
+ totalCount: Int!
3105
+ }
3106
+
3107
+ type PartnerGuestListCheckIn {
3108
+ """Of those, still checked in (not undone)."""
3109
+ activeCount: Int!
3110
+ checkedInAt: DateTime!
3111
+ """People admitted by this action."""
3112
+ count: Int!
3113
+ source: MomentGuestListCheckInSource!
3114
+ """Pass to undoGuestCheckIn as checkInBatchUid."""
3115
+ uid: ID!
3116
+ voidReason: String
3117
+ """Most recent undo of this batch, if any."""
3118
+ voidedAt: DateTime
3119
+ }
3120
+
3121
+ """
3122
+ How a guest list check-in was recorded. Clients send QR_SCAN or MANUAL; BULK and BACKFILL are recorded by the server.
3123
+ """
3124
+ enum MomentGuestListCheckInSource {
3125
+ BACKFILL
3126
+ BULK
3127
+ MANUAL
3128
+ QR_SCAN
3129
+ }
3130
+
3131
+ input GetMomentGuestListFiltersInput {
3132
+ """Guests added by any of these admins."""
3133
+ addedByAdminUids: [String!]
3134
+ """Guests in any of these check-in states."""
3135
+ checkInStatus: [MomentGuestListCheckInStatus!]
3136
+ checkedIn: Boolean
3137
+ hasEmail: Boolean
3138
+ hasNotes: Boolean
3139
+ """true: party of 2 or more. false: just the guest."""
3140
+ hasPlusOnes: Boolean
3141
+ """
3142
+ Also include guests with no labels (with labelUids: any of those labels or no label).
3143
+ """
3144
+ includeUnlabeled: Boolean
3145
+ labelUid: String
3146
+ """Guests with any of these labels. Combines with labelUid."""
3147
+ labelUids: [String!]
3148
+ """
3149
+ Guests on this occurrence: those assigned to it plus guests with no assigned occurrences (whole moment).
3150
+ """
3151
+ momentOccurrenceUid: String
3152
+ """Whether the guest has been sent their QR code email."""
3153
+ qrCodeSent: Boolean
3154
+ search: String
3155
+ sessionDate: DateTime
3156
+ }
3157
+
3158
+ """
3159
+ NOT_ARRIVED: no one in the party is in. PARTIAL: some are. ALL_IN: the whole party is in.
3160
+ """
3161
+ enum MomentGuestListCheckInStatus {
3162
+ ALL_IN
3163
+ NOT_ARRIVED
3164
+ PARTIAL
3165
+ }
3166
+
3167
+ input MomentGuestListSortInput {
3168
+ """
3169
+ Defaults: CREATED_AT desc, NAME asc, PARTY_SIZE desc, LAST_CHECKED_IN desc. Guests never checked in sort last.
3170
+ """
3171
+ direction: SortDirection
3172
+ field: MomentGuestListSortField!
3173
+ }
3174
+
3175
+ enum MomentGuestListSortField {
3176
+ CREATED_AT
3177
+ LAST_CHECKED_IN
3178
+ NAME
3179
+ PARTY_SIZE
3180
+ }
3181
+
3182
+ type GetPartnerMomentGuestListResponse {
3183
+ guestLists: [PartnerMomentGuestList!]!
3184
+ hasNextPage: Boolean!
3185
+ nextCursor: String
3186
+ totalCount: Int!
3187
+ }
3188
+
3189
+ type PartnerMomentGuestList {
3190
+ """Flag this guest's arrival in the live check-in feed."""
3191
+ alertOnArrival: Boolean!
3192
+ checkInStatus: MomentGuestListCheckInStatus!
3193
+ checkedInAt: DateTime
3194
+ createdAt: DateTime!
3195
+ email: String
3196
+ guestInfos: [MomentGuestListGuestInfo!]!
3197
+ invitationResponse: PartnerGuestListInvitationResponse
3198
+ labels: [MomentGuestListLabel!]!
3199
+ momentOccurrences: [MomentOccurrence!]!
3200
+ name: String!
3201
+ notes: String
3202
+ numCheckedIn: Float!
3203
+ numGuests: Float!
3204
+ phoneNumber: String
3205
+ """Additional guests: numGuests includes the invitee."""
3206
+ plusOnes: Int!
3207
+ """Last time this guest's QR code email was sent."""
3208
+ qrCodeSentAt: DateTime
3209
+ respondedToInvitation: Boolean!
3210
+ sessionDate: DateTime
3211
+ source: MomentGuestListSource
3212
+ uid: ID!
3213
+ updatedAt: DateTime!
3214
+ }
3215
+
3216
+ type MomentGuestListGuestInfo {
3217
+ address: JSON
3218
+ addressString: String
3219
+ """Date of birth as YYYY-MM-DD."""
3220
+ birthday: String
3221
+ companyName: String
3222
+ createdAt: DateTime!
3223
+ fullName: String
3224
+ """0 is the invitee; 1 and up are plus-ones."""
3225
+ guestIndex: Int!
3226
+ instagramHandle: String
3227
+ invitedBy: String
3228
+ jobTitle: String
3229
+ linkedinUrl: String
3230
+ phoneNumber: String
3231
+ submittedAt: DateTime!
3232
+ tiktokHandle: String
3233
+ uid: ID!
3234
+ updatedAt: DateTime!
3235
+ websiteUrl: String
3236
+ xHandle: String
3237
+ youtubeUrl: String
3238
+ }
3239
+
3240
+ type PartnerGuestListInvitationResponse {
3241
+ createdAt: DateTime!
3242
+ email: String!
3243
+ guestNames: [String!]
3244
+ name: String!
3245
+ """
3246
+ Total number of guests attending, including the invitee themselves (e.g. 3 means the invitee + 2 additional guests)
3247
+ """
3248
+ numGuests: Int!
3249
+ uid: ID!
3250
+ updatedAt: DateTime!
3251
+ }
3252
+
3253
+ type MomentGuestListLabel {
3254
+ """Flag arrivals of guests with this label in the live check-in feed."""
3255
+ alertOnArrival: Boolean!
3256
+ color: String
3257
+ createdAt: DateTime!
3258
+ description: String
3259
+ name: String!
3260
+ uid: ID!
3261
+ updatedAt: DateTime!
3262
+ }
3263
+
3264
+ type MomentOccurrence {
3265
+ createdAt: DateTime!
3266
+ endsAt: DateTime!
3267
+ label: String
3268
+ sortOrder: Int!
3269
+ source: MomentOccurrenceSource!
3270
+ startsAt: DateTime!
3271
+ status: MomentOccurrenceStatus!
3272
+ ticketTierSetupStatus: MomentTicketTierSetupStatus!
3273
+ timezone: String!
3274
+ uid: ID!
3275
+ updatedAt: DateTime!
3276
+ }
3277
+
3278
+ enum MomentOccurrenceSource {
3279
+ BACKFILLED
3280
+ DEFAULT
3281
+ EXPLICIT
3282
+ GENERATED
3283
+ }
3284
+
3285
+ enum MomentOccurrenceStatus {
3286
+ ACTIVE
3287
+ CANCELED
3288
+ }
3289
+
3290
+ enum MomentTicketTierSetupStatus {
3291
+ FAILED
3292
+ PENDING
3293
+ READY
3294
+ RUNNING
3295
+ }
3296
+
3297
+ """How a guest list entry was added."""
3298
+ enum MomentGuestListSource {
3299
+ BRAND_LIST
3300
+ BULK
3301
+ DUPLICATE
3302
+ IMPORT
3303
+ INVITATION
3304
+ MANUAL
3305
+ MEMBERSHIP
3306
+ REQUEST
3307
+ }
3308
+
3309
+ """
3310
+ Moment-wide guest list totals. Each guest counts once, however many labels or time slots they have.
3311
+ """
3312
+ type MomentGuestListTotals {
3313
+ """Guest list entries."""
3314
+ names: Int!
3315
+ namesAllIn: Int!
3316
+ namesNotArrived: Int!
3317
+ namesPartial: Int!
3318
+ """People across all parties."""
3319
+ people: Int!
3320
+ peopleCheckedIn: Int!
3321
+ peopleRemaining: Int!
3322
+ plusOnes: Int!
3323
+ }