@itm-studio/partner-sdk 0.6.2 → 0.6.4
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/README.md +242 -0
- package/dist/index.d.mts +471 -1
- package/dist/index.d.ts +471 -1
- package/dist/index.js +947 -332
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +947 -332
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +325 -0
package/package.json
CHANGED
package/schema/partner.graphql
CHANGED
|
@@ -737,6 +737,22 @@ type Moment {
|
|
|
737
737
|
updatedAt: DateTime!
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
+
"""An ordered photo in a moment's gallery, separate from its cover image."""
|
|
741
|
+
type MomentMedia {
|
|
742
|
+
uid: ID!
|
|
743
|
+
sortOrder: String!
|
|
744
|
+
mediaAsset: MediaAsset!
|
|
745
|
+
createdAt: DateTime!
|
|
746
|
+
updatedAt: DateTime!
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
type GetMomentGalleryPhotosResponse {
|
|
750
|
+
momentMedia: [MomentMedia!]!
|
|
751
|
+
totalCount: Int!
|
|
752
|
+
hasNextPage: Boolean!
|
|
753
|
+
nextCursor: String
|
|
754
|
+
}
|
|
755
|
+
|
|
740
756
|
"""
|
|
741
757
|
Public-facing lineup entry for a moment.
|
|
742
758
|
Only approved entries are returned by getPublicMomentLineups.
|
|
@@ -1019,6 +1035,15 @@ type PartnerAudienceCustomer {
|
|
|
1019
1035
|
}
|
|
1020
1036
|
|
|
1021
1037
|
type PartnerMomentStats {
|
|
1038
|
+
"""
|
|
1039
|
+
Paid or partially refunded POS charges, including legacy charges without an order. Order-backed charges overlap with inPersonOrdersCount.
|
|
1040
|
+
"""
|
|
1041
|
+
inPersonChargesCount: Int!
|
|
1042
|
+
"""
|
|
1043
|
+
Paid or partially refunded itemized POS orders. Not a ticket or revenue count.
|
|
1044
|
+
"""
|
|
1045
|
+
inPersonOrdersCount: Int!
|
|
1046
|
+
|
|
1022
1047
|
generatedAt: DateTime!
|
|
1023
1048
|
ticketsCount: Int!
|
|
1024
1049
|
"""Confirmed tickets whose materialized price is greater than zero."""
|
|
@@ -1782,6 +1807,13 @@ type PartnerMembershipTier {
|
|
|
1782
1807
|
"""ISO 4217 currency code"""
|
|
1783
1808
|
currencyCode: String!
|
|
1784
1809
|
description: String
|
|
1810
|
+
coverImage: MediaAsset
|
|
1811
|
+
finePrint: String
|
|
1812
|
+
"""Maximum optional contribution per unit, in hundredths of the currency's major unit."""
|
|
1813
|
+
payWhatYouWantMaxPrice: Int
|
|
1814
|
+
"""Suggested optional contribution per unit, in hundredths of the currency's major unit."""
|
|
1815
|
+
payWhatYouWantSuggestedPrice: Int
|
|
1816
|
+
payWhatYouWantMessage: String
|
|
1785
1817
|
durationDays: Int
|
|
1786
1818
|
expiryType: MembershipExpiryType
|
|
1787
1819
|
fixedEndDate: DateTime
|
|
@@ -1960,6 +1992,35 @@ type PartnerAppLogin {
|
|
|
1960
1992
|
}
|
|
1961
1993
|
|
|
1962
1994
|
type Query {
|
|
1995
|
+
"""
|
|
1996
|
+
Itemized POS orders for an owned moment, newest first. Defaults to 50 orders and caps take at 100.
|
|
1997
|
+
"""
|
|
1998
|
+
getPartnerInPersonOrdersForMoment(
|
|
1999
|
+
cursor: String
|
|
2000
|
+
momentSlug: String!
|
|
2001
|
+
"""
|
|
2002
|
+
Defaults to PAID and PARTIALLY_REFUNDED. Pass an empty list for all statuses.
|
|
2003
|
+
"""
|
|
2004
|
+
statuses: [InPersonOrderStatus!]
|
|
2005
|
+
take: Int
|
|
2006
|
+
): GetInPersonOrdersResponse!
|
|
2007
|
+
|
|
2008
|
+
getPartnerInPersonOrder(orderUid: String!): InPersonOrder!
|
|
2009
|
+
|
|
2010
|
+
"""
|
|
2011
|
+
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.
|
|
2012
|
+
"""
|
|
2013
|
+
getPartnerInPersonChargesForMoment(
|
|
2014
|
+
category: ChargeCategory
|
|
2015
|
+
cursor: String
|
|
2016
|
+
momentSlug: String!
|
|
2017
|
+
"""
|
|
2018
|
+
Defaults to PAID and PARTIALLY_REFUNDED. Pass an empty list for all statuses.
|
|
2019
|
+
"""
|
|
2020
|
+
statuses: [ChargeStatus!]
|
|
2021
|
+
take: Int
|
|
2022
|
+
): GetPartnerInPersonChargesResponse!
|
|
2023
|
+
|
|
1963
2024
|
"""
|
|
1964
2025
|
The brand's Login with ITM apps (at most 20), oldest first. Deleted apps are omitted.
|
|
1965
2026
|
"""
|
|
@@ -1971,6 +2032,12 @@ type Query {
|
|
|
1971
2032
|
"""List the authenticated partner brand's non-deleted membership tiers, including inactive and private tiers."""
|
|
1972
2033
|
getPartnerMembershipTiers(input: GetPartnerMembershipTiersInput): GetPartnerMembershipTiersResponse!
|
|
1973
2034
|
|
|
2035
|
+
"""
|
|
2036
|
+
Ordered gallery photos for a moment UID. Public read, separate from the cover image.
|
|
2037
|
+
Page size defaults to 20 and is capped at 50. Follow nextCursor while hasNextPage is true.
|
|
2038
|
+
"""
|
|
2039
|
+
getMomentGalleryPhotos(momentUid: String!, cursor: String, take: Int): GetMomentGalleryPhotosResponse!
|
|
2040
|
+
|
|
1974
2041
|
"""Get the authenticated agent operator email for the approval preview. Requires a brand-agent session with SEND_EMAIL; unavailable to partner API keys."""
|
|
1975
2042
|
getPartnerAgentEmailContext: BrandAgentEmailContext!
|
|
1976
2043
|
getAgentMediaUpload(uid: String!): AgentMediaUploadReservation!
|
|
@@ -3097,6 +3164,264 @@ input UpdatePlanInput {
|
|
|
3097
3164
|
status: PlanStatus
|
|
3098
3165
|
}
|
|
3099
3166
|
|
|
3167
|
+
enum InPersonOrderStatus {
|
|
3168
|
+
CANCELED
|
|
3169
|
+
CREATING_PAYMENT
|
|
3170
|
+
EXPIRED
|
|
3171
|
+
FAILED
|
|
3172
|
+
PAID
|
|
3173
|
+
PARTIALLY_REFUNDED
|
|
3174
|
+
PENDING_PAYMENT
|
|
3175
|
+
REFUNDED
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
type GetInPersonOrdersResponse {
|
|
3179
|
+
hasNextPage: Boolean!
|
|
3180
|
+
nextCursor: String
|
|
3181
|
+
orders: [InPersonOrder!]!
|
|
3182
|
+
totalCount: Int!
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
type InPersonOrder {
|
|
3186
|
+
cancellationReason: String
|
|
3187
|
+
charge: InPersonCharge
|
|
3188
|
+
createdAt: DateTime!
|
|
3189
|
+
currencyCode: String!
|
|
3190
|
+
expiresAt: DateTime
|
|
3191
|
+
grossAmount: Int!
|
|
3192
|
+
items: [InPersonOrderItem!]!
|
|
3193
|
+
momentSlug: String!
|
|
3194
|
+
momentUid: String!
|
|
3195
|
+
paidAt: DateTime
|
|
3196
|
+
refundedAmount: Int!
|
|
3197
|
+
refunds: [InPersonOrderRefund!]!
|
|
3198
|
+
status: InPersonOrderStatus!
|
|
3199
|
+
subtotalAmount: Int
|
|
3200
|
+
taxAmount: Int!
|
|
3201
|
+
taxCode: String
|
|
3202
|
+
uid: ID!
|
|
3203
|
+
updatedAt: DateTime!
|
|
3204
|
+
user: InPersonOrderUser
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
type InPersonCharge {
|
|
3208
|
+
amount: Int!
|
|
3209
|
+
billingEmail: String
|
|
3210
|
+
canceledAt: DateTime
|
|
3211
|
+
cancellationReason: String
|
|
3212
|
+
cardBrand: String
|
|
3213
|
+
cardLast4: String
|
|
3214
|
+
category: ChargeCategory!
|
|
3215
|
+
createdAt: DateTime!
|
|
3216
|
+
description: String
|
|
3217
|
+
expiredAt: DateTime
|
|
3218
|
+
expiresAt: DateTime
|
|
3219
|
+
linkingMethod: LinkingMethod
|
|
3220
|
+
linkingStatus: UserLinkingStatus!
|
|
3221
|
+
orderUid: String
|
|
3222
|
+
quantity: Int
|
|
3223
|
+
status: ChargeStatus!
|
|
3224
|
+
stripePaymentIntentId: String!
|
|
3225
|
+
subtotalAmount: Int
|
|
3226
|
+
taxAmount: Int!
|
|
3227
|
+
taxCode: String
|
|
3228
|
+
uid: ID!
|
|
3229
|
+
updatedAt: DateTime!
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
enum ChargeCategory {
|
|
3233
|
+
BAR
|
|
3234
|
+
CONTRIBUTION
|
|
3235
|
+
FOOD
|
|
3236
|
+
MERCH
|
|
3237
|
+
MIXED
|
|
3238
|
+
OTHER
|
|
3239
|
+
PARKING
|
|
3240
|
+
TICKET
|
|
3241
|
+
TIP
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
enum LinkingMethod {
|
|
3245
|
+
BILLING_EMAIL
|
|
3246
|
+
CARD_FINGERPRINT
|
|
3247
|
+
MANUAL_EMAIL
|
|
3248
|
+
MANUAL_PHONE
|
|
3249
|
+
USER_CLAIMED
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
enum UserLinkingStatus {
|
|
3253
|
+
LINKED_AUTO
|
|
3254
|
+
LINKED_EMAIL
|
|
3255
|
+
LINKED_MANUAL
|
|
3256
|
+
PENDING
|
|
3257
|
+
UNLINKED
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
enum ChargeStatus {
|
|
3261
|
+
CANCELED
|
|
3262
|
+
EXPIRED
|
|
3263
|
+
FAILED
|
|
3264
|
+
PAID
|
|
3265
|
+
PARTIALLY_REFUNDED
|
|
3266
|
+
PENDING
|
|
3267
|
+
REFUNDED
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
type InPersonOrderItem {
|
|
3271
|
+
admitNow: Boolean
|
|
3272
|
+
category: ChargeCategory!
|
|
3273
|
+
chargedBaseAmount: Int!
|
|
3274
|
+
contributionNote: String
|
|
3275
|
+
contributionPageSlug: String
|
|
3276
|
+
contributionPageUid: String
|
|
3277
|
+
"""
|
|
3278
|
+
Contribution attributed to this line once the order is paid; null while unpaid and for unmapped contributions.
|
|
3279
|
+
"""
|
|
3280
|
+
contributionUid: String
|
|
3281
|
+
createdAt: DateTime!
|
|
3282
|
+
description: String
|
|
3283
|
+
facilityFee: Int!
|
|
3284
|
+
handedOverNow: Boolean
|
|
3285
|
+
lineAmount: Int!
|
|
3286
|
+
merchPurchase: InPersonOrderMerchPurchase
|
|
3287
|
+
merchSizeUid: String
|
|
3288
|
+
merchUid: String
|
|
3289
|
+
momentOccurrenceUid: String
|
|
3290
|
+
name: String!
|
|
3291
|
+
originalBaseAmount: Int!
|
|
3292
|
+
quantity: Int!
|
|
3293
|
+
refundableQuantity: Int!
|
|
3294
|
+
refundedQuantity: Int!
|
|
3295
|
+
restockedQuantity: Int!
|
|
3296
|
+
ticketTierUid: String
|
|
3297
|
+
tickets: [InPersonOrderTicket!]!
|
|
3298
|
+
type: InPersonOrderItemType!
|
|
3299
|
+
uid: ID!
|
|
3300
|
+
unitAmount: Int!
|
|
3301
|
+
updatedAt: DateTime!
|
|
3302
|
+
variantName: String
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
type InPersonOrderMerchPurchase {
|
|
3306
|
+
createdAt: DateTime!
|
|
3307
|
+
quantity: Int!
|
|
3308
|
+
redeemedAt: DateTime
|
|
3309
|
+
refundedQuantity: Int!
|
|
3310
|
+
state: MerchPurchaseState!
|
|
3311
|
+
uid: ID!
|
|
3312
|
+
updatedAt: DateTime!
|
|
3313
|
+
}
|
|
3314
|
+
|
|
3315
|
+
|
|
3316
|
+
type InPersonOrderTicket {
|
|
3317
|
+
createdAt: DateTime!
|
|
3318
|
+
redeemedAt: DateTime
|
|
3319
|
+
refundable: Boolean!
|
|
3320
|
+
state: TicketState!
|
|
3321
|
+
uid: ID!
|
|
3322
|
+
updatedAt: DateTime!
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
enum TicketState {
|
|
3326
|
+
CANCELLED
|
|
3327
|
+
CONFIRMED
|
|
3328
|
+
FAILED
|
|
3329
|
+
PENDING
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
enum InPersonOrderItemType {
|
|
3333
|
+
CONTRIBUTION
|
|
3334
|
+
CUSTOM
|
|
3335
|
+
MERCH_VARIANT
|
|
3336
|
+
TICKET_TIER
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
type InPersonOrderRefund {
|
|
3340
|
+
allocations: [InPersonOrderRefundAllocation!]!
|
|
3341
|
+
amount: Int!
|
|
3342
|
+
createdAt: DateTime!
|
|
3343
|
+
failureReason: String
|
|
3344
|
+
reason: String
|
|
3345
|
+
source: InPersonOrderRefundSource!
|
|
3346
|
+
status: InPersonOrderRefundStatus!
|
|
3347
|
+
stripeRefundId: String
|
|
3348
|
+
uid: ID!
|
|
3349
|
+
updatedAt: DateTime!
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
type InPersonOrderRefundAllocation {
|
|
3353
|
+
amount: Int!
|
|
3354
|
+
createdAt: DateTime!
|
|
3355
|
+
orderItemUid: String!
|
|
3356
|
+
quantity: Int!
|
|
3357
|
+
restock: Boolean
|
|
3358
|
+
status: InPersonOrderRefundAllocationStatus!
|
|
3359
|
+
ticketUids: [String!]!
|
|
3360
|
+
uid: ID!
|
|
3361
|
+
updatedAt: DateTime!
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
enum InPersonOrderRefundAllocationStatus {
|
|
3365
|
+
APPLIED
|
|
3366
|
+
FAILED
|
|
3367
|
+
PENDING
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
enum InPersonOrderRefundSource {
|
|
3371
|
+
BACKSTAGE
|
|
3372
|
+
RECONCILIATION
|
|
3373
|
+
STRIPE_WEBHOOK
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
enum InPersonOrderRefundStatus {
|
|
3377
|
+
CANCELED
|
|
3378
|
+
FAILED
|
|
3379
|
+
PENDING
|
|
3380
|
+
SUCCEEDED
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
type InPersonOrderUser {
|
|
3384
|
+
name: String
|
|
3385
|
+
phoneNumber: String
|
|
3386
|
+
primaryEmail: String
|
|
3387
|
+
uid: String!
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
type GetPartnerInPersonChargesResponse {
|
|
3391
|
+
charges: [PartnerInPersonCharge!]!
|
|
3392
|
+
hasNextPage: Boolean!
|
|
3393
|
+
nextCursor: String
|
|
3394
|
+
totalCount: Int!
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
type PartnerInPersonCharge {
|
|
3398
|
+
amount: Int!
|
|
3399
|
+
billingEmail: String
|
|
3400
|
+
canceledAt: DateTime
|
|
3401
|
+
cancellationReason: String
|
|
3402
|
+
cardBrand: String
|
|
3403
|
+
cardLast4: String
|
|
3404
|
+
category: ChargeCategory!
|
|
3405
|
+
createdAt: DateTime!
|
|
3406
|
+
currencyCode: String!
|
|
3407
|
+
description: String
|
|
3408
|
+
expiredAt: DateTime
|
|
3409
|
+
expiresAt: DateTime
|
|
3410
|
+
linkingMethod: LinkingMethod
|
|
3411
|
+
linkingStatus: UserLinkingStatus!
|
|
3412
|
+
momentSlug: String!
|
|
3413
|
+
momentUid: String!
|
|
3414
|
+
orderUid: String
|
|
3415
|
+
quantity: Int
|
|
3416
|
+
status: ChargeStatus!
|
|
3417
|
+
stripePaymentIntentId: String!
|
|
3418
|
+
subtotalAmount: Int
|
|
3419
|
+
taxAmount: Int!
|
|
3420
|
+
taxCode: String
|
|
3421
|
+
uid: ID!
|
|
3422
|
+
updatedAt: DateTime!
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3100
3425
|
type GetPartnerGuestListCheckInsResponse {
|
|
3101
3426
|
batches: [PartnerGuestListCheckIn!]!
|
|
3102
3427
|
hasNextPage: Boolean!
|