@itm-studio/partner-sdk 0.5.0 → 0.6.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 CHANGED
@@ -2504,7 +2504,9 @@ do {
2504
2504
  });
2505
2505
 
2506
2506
  for (const ticket of getPartnerTicketsForMoment.tickets) {
2507
- console.log(ticket.user.name);
2507
+ // `user` is typed nullable: box-office walk-up tickets have no holder
2508
+ // (they are left out of this list).
2509
+ console.log(ticket.user?.name);
2508
2510
  }
2509
2511
 
2510
2512
  cursor = getPartnerTicketsForMoment.nextCursor ?? null;
package/dist/index.d.mts CHANGED
@@ -291,7 +291,11 @@ interface Ticket {
291
291
  externalId: (Scalars['String'] | null);
292
292
  hasExpired: Scalars['Boolean'];
293
293
  ticketTier: TicketTier;
294
- user: User;
294
+ /**
295
+ * The ticket holder. Null only for an ITM box-office walk-up sale, which has no
296
+ * holder; partner ticket lists leave those tickets out.
297
+ */
298
+ user: (User | null);
295
299
  moment: Moment;
296
300
  payment: (Payment | null);
297
301
  extensions: TicketExtension[];
@@ -1615,6 +1619,10 @@ interface TicketGenqlSelection {
1615
1619
  externalId?: boolean | number;
1616
1620
  hasExpired?: boolean | number;
1617
1621
  ticketTier?: TicketTierGenqlSelection;
1622
+ /**
1623
+ * The ticket holder. Null only for an ITM box-office walk-up sale, which has no
1624
+ * holder; partner ticket lists leave those tickets out.
1625
+ */
1618
1626
  user?: UserGenqlSelection;
1619
1627
  moment?: MomentGenqlSelection;
1620
1628
  payment?: PaymentGenqlSelection;
package/dist/index.d.ts CHANGED
@@ -291,7 +291,11 @@ interface Ticket {
291
291
  externalId: (Scalars['String'] | null);
292
292
  hasExpired: Scalars['Boolean'];
293
293
  ticketTier: TicketTier;
294
- user: User;
294
+ /**
295
+ * The ticket holder. Null only for an ITM box-office walk-up sale, which has no
296
+ * holder; partner ticket lists leave those tickets out.
297
+ */
298
+ user: (User | null);
295
299
  moment: Moment;
296
300
  payment: (Payment | null);
297
301
  extensions: TicketExtension[];
@@ -1615,6 +1619,10 @@ interface TicketGenqlSelection {
1615
1619
  externalId?: boolean | number;
1616
1620
  hasExpired?: boolean | number;
1617
1621
  ticketTier?: TicketTierGenqlSelection;
1622
+ /**
1623
+ * The ticket holder. Null only for an ITM box-office walk-up sale, which has no
1624
+ * holder; partner ticket lists leave those tickets out.
1625
+ */
1618
1626
  user?: UserGenqlSelection;
1619
1627
  moment?: MomentGenqlSelection;
1620
1628
  payment?: PaymentGenqlSelection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itm-studio/partner-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
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",
@@ -749,7 +749,11 @@ type Ticket {
749
749
  externalId: String
750
750
  hasExpired: Boolean!
751
751
  ticketTier: TicketTier!
752
- user: User!
752
+ """
753
+ The ticket holder. Null only for an ITM box-office walk-up sale, which has no
754
+ holder; partner ticket lists leave those tickets out.
755
+ """
756
+ user: User
753
757
  moment: Moment!
754
758
  payment: Payment
755
759
  extensions: [TicketExtension!]!