@itm-studio/partner-sdk 0.2.9 → 0.2.10

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.2.9",
3
+ "version": "0.2.10",
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",
@@ -15,6 +15,23 @@ enum MomentStatus {
15
15
  ENDED
16
16
  }
17
17
 
18
+ enum BrandAgentEmailSendBatchStatus {
19
+ PENDING
20
+ SENDING
21
+ SENT
22
+ PARTIAL
23
+ FAILED
24
+ UNKNOWN
25
+ }
26
+
27
+ enum BrandAgentEmailSendMessageStatus {
28
+ PENDING
29
+ SENDING
30
+ SENT
31
+ FAILED
32
+ UNKNOWN
33
+ }
34
+
18
35
  enum MomentSortOrder {
19
36
  ASC
20
37
  DESC
@@ -498,7 +515,12 @@ type PartnerCustomer {
498
515
  }
499
516
 
500
517
  type PartnerMomentStats {
518
+ generatedAt: DateTime!
501
519
  ticketsCount: Int!
520
+ """Confirmed tickets whose materialized price is greater than zero."""
521
+ paidTicketsCount: Int!
522
+ """Confirmed tickets whose materialized price is zero."""
523
+ freeTicketsCount: Int!
502
524
  waitlistCount: Int!
503
525
  externalRsvpCount: Int!
504
526
  ticketRsvpRequestsCount: Int!
@@ -944,6 +966,11 @@ type MomentLineupResponseResult {
944
966
  }
945
967
 
946
968
  input PartnerMomentsFiltersInput {
969
+ """
970
+ Case-insensitive search over moment name and slug. Whitespace-only values are ignored.
971
+ """
972
+ search: String
973
+
947
974
  """
948
975
  When true, includes private moments owned by the authenticated brand. Default: false.
949
976
  """
@@ -952,12 +979,39 @@ input PartnerMomentsFiltersInput {
952
979
 
953
980
  # ─── Queries ─────────────────────────────────────────────────────────────────
954
981
 
982
+ type BrandAgentEmailSendMessage {
983
+ uid: String!
984
+ position: Int!
985
+ recipient: String!
986
+ subject: String!
987
+ text: String!
988
+ status: BrandAgentEmailSendMessageStatus!
989
+ agentMailMessageId: String
990
+ agentMailThreadId: String
991
+ sentAt: DateTime
992
+ failedAt: DateTime
993
+ lastErrorCode: String
994
+ lastErrorMessage: String
995
+ }
996
+
997
+ type BrandAgentEmailSendBatch {
998
+ uid: String!
999
+ createdAt: DateTime!
1000
+ status: BrandAgentEmailSendBatchStatus!
1001
+ senderEmailAddress: String!
1002
+ acceptedCount: Int!
1003
+ messages: [BrandAgentEmailSendMessage!]!
1004
+ }
1005
+
955
1006
  type Query {
956
1007
  """
957
1008
  Get details for the brand associated with the partner token.
958
1009
  """
959
1010
  getPartnerBrand: PartnerBrand!
960
1011
 
1012
+ """Retrieve one AgentMail send batch owned by the authenticated partner brand."""
1013
+ getPartnerAgentEmailBatch(batchUid: String!): BrandAgentEmailSendBatch!
1014
+
961
1015
  """
962
1016
  Get paginated moments for the brand associated with the partner token.
963
1017
  """
@@ -1092,6 +1146,20 @@ input DimensionsInput {
1092
1146
  height: Float!
1093
1147
  }
1094
1148
 
1149
+ input BrandAgentEmailMessageInput {
1150
+ """One normalized recipient. Each item is sent as a separate email."""
1151
+ to: String!
1152
+ subject: String!
1153
+ text: String!
1154
+ }
1155
+
1156
+ input SendPartnerAgentEmailInput {
1157
+ """Stable business idempotency key for this logical batch."""
1158
+ idempotencyKey: String!
1159
+ """One to ten personalized, single-recipient plain-text emails."""
1160
+ messages: [BrandAgentEmailMessageInput!]!
1161
+ }
1162
+
1095
1163
  input VenueInput {
1096
1164
  name: String!
1097
1165
  city: String!
@@ -1413,6 +1481,11 @@ type Mutation {
1413
1481
  """
1414
1482
  createPartnerMoment(input: CreatePartnerMomentInput!): Moment!
1415
1483
 
1484
+ """Queue one to ten emails from the authenticated brand's AgentMail inbox."""
1485
+ sendPartnerAgentEmail(
1486
+ input: SendPartnerAgentEmailInput!
1487
+ ): BrandAgentEmailSendBatch!
1488
+
1416
1489
  """
1417
1490
  Bulk edit partner-owned ticket tiers for a moment.
1418
1491
  Supports per-tier price, facility-fee, and supply updates.