@itm-studio/partner-sdk 0.6.2 → 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.2",
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."""
@@ -1960,6 +1969,35 @@ type PartnerAppLogin {
1960
1969
  }
1961
1970
 
1962
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
+
1963
2001
  """
1964
2002
  The brand's Login with ITM apps (at most 20), oldest first. Deleted apps are omitted.
1965
2003
  """
@@ -3097,6 +3135,264 @@ input UpdatePlanInput {
3097
3135
  status: PlanStatus
3098
3136
  }
3099
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
+
3100
3396
  type GetPartnerGuestListCheckInsResponse {
3101
3397
  batches: [PartnerGuestListCheckIn!]!
3102
3398
  hasNextPage: Boolean!