@itm-studio/partner-sdk 0.3.7 → 0.4.0
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 +100 -0
- package/dist/index.d.mts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +300 -210
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +300 -210
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +47 -0
package/package.json
CHANGED
package/schema/partner.graphql
CHANGED
|
@@ -724,7 +724,16 @@ type User {
|
|
|
724
724
|
updatedAt: DateTime!
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
+
enum PartnerTicketStatus {
|
|
728
|
+
VALID
|
|
729
|
+
REFUNDED
|
|
730
|
+
CANCELLED
|
|
731
|
+
PENDING
|
|
732
|
+
FAILED
|
|
733
|
+
}
|
|
734
|
+
|
|
727
735
|
type Ticket {
|
|
736
|
+
status: PartnerTicketStatus!
|
|
728
737
|
uid: ID!
|
|
729
738
|
price: Float!
|
|
730
739
|
redeemedAt: DateTime
|
|
@@ -868,6 +877,17 @@ enum EventImportPlatform {
|
|
|
868
877
|
EVENTBRITE
|
|
869
878
|
}
|
|
870
879
|
|
|
880
|
+
"""Exactly one account identifier. Current holders only, scoped to the token brand."""
|
|
881
|
+
input PartnerTicketsForUserInput {
|
|
882
|
+
userUid: String
|
|
883
|
+
email: String
|
|
884
|
+
phoneNumber: String
|
|
885
|
+
momentStatuses: [MomentStatus!]
|
|
886
|
+
ticketStatuses: [PartnerTicketStatus!]
|
|
887
|
+
cursor: String
|
|
888
|
+
take: Int
|
|
889
|
+
}
|
|
890
|
+
|
|
871
891
|
"""
|
|
872
892
|
Match the current ITM ticket owner by exactly one of userUid, email, or phoneNumber.
|
|
873
893
|
For an attendee app, derive this identifier from the authenticated user's verified
|
|
@@ -1670,6 +1690,12 @@ type Query {
|
|
|
1670
1690
|
input: PartnerMomentAttendanceLookupInput!
|
|
1671
1691
|
): PartnerMomentAttendanceStats
|
|
1672
1692
|
|
|
1693
|
+
"""
|
|
1694
|
+
Get paginated tickets currently held by one user across the partner brand.
|
|
1695
|
+
Verify the app user's identity on your server before exposing tickets or QR codes.
|
|
1696
|
+
"""
|
|
1697
|
+
getPartnerTicketsForUser(input: PartnerTicketsForUserInput!): GetTicketsResponse!
|
|
1698
|
+
|
|
1673
1699
|
"""
|
|
1674
1700
|
Get confirmed tickets for a moment owned by the partner token's brand.
|
|
1675
1701
|
Use the user filter when retrieving an attendee's tickets for QR display.
|
|
@@ -2049,7 +2075,25 @@ input PostSubscriptionMessageInput {
|
|
|
2049
2075
|
push: PostSubscriptionPushInput
|
|
2050
2076
|
}
|
|
2051
2077
|
|
|
2078
|
+
input CreatePartnerBrandDropInput {
|
|
2079
|
+
name: String!
|
|
2080
|
+
subtitle: String
|
|
2081
|
+
disclosures: String
|
|
2082
|
+
isPublic: Boolean
|
|
2083
|
+
"""Only SUBSCRIBE is supported for partner-created drops."""
|
|
2084
|
+
ctaType: BrandDropCtaType!
|
|
2085
|
+
captureName: Boolean
|
|
2086
|
+
captureEmail: Boolean
|
|
2087
|
+
consentText: String
|
|
2088
|
+
"""Active image asset belonging to the authenticated brand."""
|
|
2089
|
+
coverImageUid: String!
|
|
2090
|
+
coverImageMobileUid: String
|
|
2091
|
+
brandListUids: [String!]
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2052
2094
|
input CreatePartnerBrandSubscriptionInput {
|
|
2095
|
+
"""Optional SUBSCRIBE drop UID belonging to the authenticated partner brand."""
|
|
2096
|
+
dropUid: String
|
|
2053
2097
|
compliance: SubscriptionComplianceInput
|
|
2054
2098
|
|
|
2055
2099
|
"""
|
|
@@ -2163,6 +2207,9 @@ type Mutation {
|
|
|
2163
2207
|
reservationUid: String
|
|
2164
2208
|
): MediaAsset!
|
|
2165
2209
|
|
|
2210
|
+
"""Create a SUBSCRIBE drop for the authenticated partner brand."""
|
|
2211
|
+
createPartnerBrandDrop(input: CreatePartnerBrandDropInput!): BrandDrop!
|
|
2212
|
+
|
|
2166
2213
|
"""
|
|
2167
2214
|
Subscribe a user to the authenticated partner brand.
|
|
2168
2215
|
Set requireOtpVerification to true to start a two-step OTP flow.
|