@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/README.md +61 -2
- package/dist/index.d.mts +93 -1
- package/dist/index.d.ts +93 -1
- package/dist/index.js +711 -588
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +711 -588
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +73 -0
package/README.md
CHANGED
|
@@ -236,6 +236,52 @@ basis points (`6000` = 60%). Refresh after `validUntil`. Because price is stored
|
|
|
236
236
|
per tier, every upcoming admission window for a managed tier must fall within
|
|
237
237
|
the configured horizon before that tier is eligible.
|
|
238
238
|
|
|
239
|
+
## AgentMail
|
|
240
|
+
|
|
241
|
+
Queue one to ten personalized plain-text emails from the authenticated brand's
|
|
242
|
+
dedicated AgentMail inbox. Each item is a separate single-recipient message.
|
|
243
|
+
The mutation returns after the durable batch is accepted; query the batch for
|
|
244
|
+
final per-message provider status.
|
|
245
|
+
|
|
246
|
+
```ts
|
|
247
|
+
const queued = await client.mutation({
|
|
248
|
+
sendPartnerAgentEmail: {
|
|
249
|
+
__args: {
|
|
250
|
+
input: {
|
|
251
|
+
idempotencyKey: "venue-outreach-2026-08-13",
|
|
252
|
+
messages: [
|
|
253
|
+
{
|
|
254
|
+
to: "bookings@venue.example",
|
|
255
|
+
subject: "October show inquiry",
|
|
256
|
+
text: "Would October 10 work for a 200-person show?",
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
uid: true,
|
|
262
|
+
status: true,
|
|
263
|
+
acceptedCount: true,
|
|
264
|
+
messages: { uid: true, recipient: true, status: true },
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
const status = await client.query({
|
|
269
|
+
getPartnerAgentEmailBatch: {
|
|
270
|
+
__args: { batchUid: queued.sendPartnerAgentEmail.uid },
|
|
271
|
+
status: true,
|
|
272
|
+
messages: {
|
|
273
|
+
recipient: true,
|
|
274
|
+
status: true,
|
|
275
|
+
agentMailMessageId: true,
|
|
276
|
+
lastErrorCode: true,
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
});
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Reuse an idempotency key only for the exact same logical batch. `SENT` means
|
|
283
|
+
AgentMail accepted the message; it does not prove inbox delivery.
|
|
284
|
+
|
|
239
285
|
## Available Queries
|
|
240
286
|
|
|
241
287
|
### `getPartnerBrand`
|
|
@@ -277,7 +323,10 @@ const { getPartnerMomentsForBrand } = await itm.query({
|
|
|
277
323
|
take: 20, // items per page (default: 50, omit to use default)
|
|
278
324
|
cursor: nextCursor, // from previous response
|
|
279
325
|
status: "UPCOMING", // UPCOMING | LIVE | ENDED
|
|
280
|
-
filters: {
|
|
326
|
+
filters: {
|
|
327
|
+
search: "summer launch", // case-insensitive name or slug match
|
|
328
|
+
includePrivate: true, // include private moments owned by your brand
|
|
329
|
+
},
|
|
281
330
|
sortOrder: "ASC", // ASC | DESC by start date (default: DESC)
|
|
282
331
|
},
|
|
283
332
|
moments: { uid: true, name: true, startDate: true },
|
|
@@ -292,6 +341,9 @@ By default, only public moments are returned. Set
|
|
|
292
341
|
`filters.includePrivate` to `true` to return both public and private moments
|
|
293
342
|
owned by the brand associated with the partner token. Omitting `filters`, or
|
|
294
343
|
setting `includePrivate` to `false`, preserves the public-only behavior.
|
|
344
|
+
`filters.search` matches moment names and slugs case-insensitively, is limited
|
|
345
|
+
to 100 characters, and composes with visibility, status, sorting, and cursor
|
|
346
|
+
pagination.
|
|
295
347
|
|
|
296
348
|
### `getPartnerDrops`
|
|
297
349
|
|
|
@@ -447,9 +499,13 @@ const { getMomentLineupByToken } = await itm.query({
|
|
|
447
499
|
|
|
448
500
|
### `getPartnerMomentStats`
|
|
449
501
|
|
|
450
|
-
Get cached partner-facing counts for a moment owned by the authenticated partner's brand.
|
|
502
|
+
Get cached partner-facing counts for a moment owned by the authenticated partner's brand. Counts
|
|
503
|
+
can be up to five minutes old.
|
|
451
504
|
|
|
452
505
|
- `ticketsCount` counts confirmed tickets only.
|
|
506
|
+
- `generatedAt` identifies when this cached count set was computed.
|
|
507
|
+
- `paidTicketsCount` counts confirmed tickets with a materialized price above zero.
|
|
508
|
+
- `freeTicketsCount` counts confirmed tickets with a zero materialized price.
|
|
453
509
|
- `waitlistCount` counts active waitlist entries.
|
|
454
510
|
- `externalRsvpCount` counts external RSVPs.
|
|
455
511
|
- `ticketRsvpRequestsCount` counts ticket RSVP requests.
|
|
@@ -458,7 +514,10 @@ Get cached partner-facing counts for a moment owned by the authenticated partner
|
|
|
458
514
|
const { getPartnerMomentStats } = await itm.query({
|
|
459
515
|
getPartnerMomentStats: {
|
|
460
516
|
__args: { momentSlug: "my-event-slug" },
|
|
517
|
+
generatedAt: true,
|
|
461
518
|
ticketsCount: true,
|
|
519
|
+
paidTicketsCount: true,
|
|
520
|
+
freeTicketsCount: true,
|
|
462
521
|
waitlistCount: true,
|
|
463
522
|
externalRsvpCount: true,
|
|
464
523
|
ticketRsvpRequestsCount: true,
|
package/dist/index.d.mts
CHANGED
|
@@ -8,6 +8,8 @@ type Scalars = {
|
|
|
8
8
|
Float: number;
|
|
9
9
|
};
|
|
10
10
|
type MomentStatus = 'UPCOMING' | 'LIVE' | 'ENDED';
|
|
11
|
+
type BrandAgentEmailSendBatchStatus = 'PENDING' | 'SENDING' | 'SENT' | 'PARTIAL' | 'FAILED' | 'UNKNOWN';
|
|
12
|
+
type BrandAgentEmailSendMessageStatus = 'PENDING' | 'SENDING' | 'SENT' | 'FAILED' | 'UNKNOWN';
|
|
11
13
|
type MomentSortOrder = 'ASC' | 'DESC';
|
|
12
14
|
type BrandDropCtaType = 'EXTERNAL_URL' | 'GATED_LINK' | 'MUSIC_LINK' | 'SUBSCRIBE';
|
|
13
15
|
type MusicReleaseType = 'ALBUM' | 'EP' | 'SINGLE';
|
|
@@ -210,7 +212,12 @@ interface PartnerCustomer {
|
|
|
210
212
|
__typename: 'PartnerCustomer';
|
|
211
213
|
}
|
|
212
214
|
interface PartnerMomentStats {
|
|
215
|
+
generatedAt: Scalars['DateTime'];
|
|
213
216
|
ticketsCount: Scalars['Int'];
|
|
217
|
+
/** Confirmed tickets whose materialized price is greater than zero. */
|
|
218
|
+
paidTicketsCount: Scalars['Int'];
|
|
219
|
+
/** Confirmed tickets whose materialized price is zero. */
|
|
220
|
+
freeTicketsCount: Scalars['Int'];
|
|
214
221
|
waitlistCount: Scalars['Int'];
|
|
215
222
|
externalRsvpCount: Scalars['Int'];
|
|
216
223
|
ticketRsvpRequestsCount: Scalars['Int'];
|
|
@@ -575,9 +582,35 @@ interface MomentLineupResponseResult {
|
|
|
575
582
|
success: Scalars['Boolean'];
|
|
576
583
|
__typename: 'MomentLineupResponseResult';
|
|
577
584
|
}
|
|
585
|
+
interface BrandAgentEmailSendMessage {
|
|
586
|
+
uid: Scalars['String'];
|
|
587
|
+
position: Scalars['Int'];
|
|
588
|
+
recipient: Scalars['String'];
|
|
589
|
+
subject: Scalars['String'];
|
|
590
|
+
text: Scalars['String'];
|
|
591
|
+
status: BrandAgentEmailSendMessageStatus;
|
|
592
|
+
agentMailMessageId: (Scalars['String'] | null);
|
|
593
|
+
agentMailThreadId: (Scalars['String'] | null);
|
|
594
|
+
sentAt: (Scalars['DateTime'] | null);
|
|
595
|
+
failedAt: (Scalars['DateTime'] | null);
|
|
596
|
+
lastErrorCode: (Scalars['String'] | null);
|
|
597
|
+
lastErrorMessage: (Scalars['String'] | null);
|
|
598
|
+
__typename: 'BrandAgentEmailSendMessage';
|
|
599
|
+
}
|
|
600
|
+
interface BrandAgentEmailSendBatch {
|
|
601
|
+
uid: Scalars['String'];
|
|
602
|
+
createdAt: Scalars['DateTime'];
|
|
603
|
+
status: BrandAgentEmailSendBatchStatus;
|
|
604
|
+
senderEmailAddress: Scalars['String'];
|
|
605
|
+
acceptedCount: Scalars['Int'];
|
|
606
|
+
messages: BrandAgentEmailSendMessage[];
|
|
607
|
+
__typename: 'BrandAgentEmailSendBatch';
|
|
608
|
+
}
|
|
578
609
|
interface Query {
|
|
579
610
|
/** Get details for the brand associated with the partner token. */
|
|
580
611
|
getPartnerBrand: PartnerBrand;
|
|
612
|
+
/** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
|
|
613
|
+
getPartnerAgentEmailBatch: BrandAgentEmailSendBatch;
|
|
581
614
|
/** Get paginated moments for the brand associated with the partner token. */
|
|
582
615
|
getPartnerMomentsForBrand: GetPublicMomentsResponse;
|
|
583
616
|
/** Get paginated drops for the brand associated with the partner token. */
|
|
@@ -691,6 +724,8 @@ interface Mutation {
|
|
|
691
724
|
* When type is IRL, the venue field is required.
|
|
692
725
|
*/
|
|
693
726
|
createPartnerMoment: Moment;
|
|
727
|
+
/** Queue one to ten emails from the authenticated brand's AgentMail inbox. */
|
|
728
|
+
sendPartnerAgentEmail: BrandAgentEmailSendBatch;
|
|
694
729
|
/**
|
|
695
730
|
* Bulk edit partner-owned ticket tiers for a moment.
|
|
696
731
|
* Supports per-tier price, facility-fee, and supply updates.
|
|
@@ -899,7 +934,12 @@ interface PartnerCustomerGenqlSelection {
|
|
|
899
934
|
__scalar?: boolean | number;
|
|
900
935
|
}
|
|
901
936
|
interface PartnerMomentStatsGenqlSelection {
|
|
937
|
+
generatedAt?: boolean | number;
|
|
902
938
|
ticketsCount?: boolean | number;
|
|
939
|
+
/** Confirmed tickets whose materialized price is greater than zero. */
|
|
940
|
+
paidTicketsCount?: boolean | number;
|
|
941
|
+
/** Confirmed tickets whose materialized price is zero. */
|
|
942
|
+
freeTicketsCount?: boolean | number;
|
|
903
943
|
waitlistCount?: boolean | number;
|
|
904
944
|
externalRsvpCount?: boolean | number;
|
|
905
945
|
ticketRsvpRequestsCount?: boolean | number;
|
|
@@ -1303,12 +1343,46 @@ interface MomentLineupResponseResultGenqlSelection {
|
|
|
1303
1343
|
__scalar?: boolean | number;
|
|
1304
1344
|
}
|
|
1305
1345
|
interface PartnerMomentsFiltersInput {
|
|
1346
|
+
/** Case-insensitive search over moment name and slug. Whitespace-only values are ignored. */
|
|
1347
|
+
search?: (Scalars['String'] | null);
|
|
1306
1348
|
/** When true, includes private moments owned by the authenticated brand. Default: false. */
|
|
1307
1349
|
includePrivate?: (Scalars['Boolean'] | null);
|
|
1308
1350
|
}
|
|
1351
|
+
interface BrandAgentEmailSendMessageGenqlSelection {
|
|
1352
|
+
uid?: boolean | number;
|
|
1353
|
+
position?: boolean | number;
|
|
1354
|
+
recipient?: boolean | number;
|
|
1355
|
+
subject?: boolean | number;
|
|
1356
|
+
text?: boolean | number;
|
|
1357
|
+
status?: boolean | number;
|
|
1358
|
+
agentMailMessageId?: boolean | number;
|
|
1359
|
+
agentMailThreadId?: boolean | number;
|
|
1360
|
+
sentAt?: boolean | number;
|
|
1361
|
+
failedAt?: boolean | number;
|
|
1362
|
+
lastErrorCode?: boolean | number;
|
|
1363
|
+
lastErrorMessage?: boolean | number;
|
|
1364
|
+
__typename?: boolean | number;
|
|
1365
|
+
__scalar?: boolean | number;
|
|
1366
|
+
}
|
|
1367
|
+
interface BrandAgentEmailSendBatchGenqlSelection {
|
|
1368
|
+
uid?: boolean | number;
|
|
1369
|
+
createdAt?: boolean | number;
|
|
1370
|
+
status?: boolean | number;
|
|
1371
|
+
senderEmailAddress?: boolean | number;
|
|
1372
|
+
acceptedCount?: boolean | number;
|
|
1373
|
+
messages?: BrandAgentEmailSendMessageGenqlSelection;
|
|
1374
|
+
__typename?: boolean | number;
|
|
1375
|
+
__scalar?: boolean | number;
|
|
1376
|
+
}
|
|
1309
1377
|
interface QueryGenqlSelection {
|
|
1310
1378
|
/** Get details for the brand associated with the partner token. */
|
|
1311
1379
|
getPartnerBrand?: PartnerBrandGenqlSelection;
|
|
1380
|
+
/** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
|
|
1381
|
+
getPartnerAgentEmailBatch?: (BrandAgentEmailSendBatchGenqlSelection & {
|
|
1382
|
+
__args: {
|
|
1383
|
+
batchUid: Scalars['String'];
|
|
1384
|
+
};
|
|
1385
|
+
});
|
|
1312
1386
|
/** Get paginated moments for the brand associated with the partner token. */
|
|
1313
1387
|
getPartnerMomentsForBrand?: (GetPublicMomentsResponseGenqlSelection & {
|
|
1314
1388
|
__args: {
|
|
@@ -1454,6 +1528,18 @@ interface DimensionsInput {
|
|
|
1454
1528
|
width: Scalars['Float'];
|
|
1455
1529
|
height: Scalars['Float'];
|
|
1456
1530
|
}
|
|
1531
|
+
interface BrandAgentEmailMessageInput {
|
|
1532
|
+
/** One normalized recipient. Each item is sent as a separate email. */
|
|
1533
|
+
to: Scalars['String'];
|
|
1534
|
+
subject: Scalars['String'];
|
|
1535
|
+
text: Scalars['String'];
|
|
1536
|
+
}
|
|
1537
|
+
interface SendPartnerAgentEmailInput {
|
|
1538
|
+
/** Stable business idempotency key for this logical batch. */
|
|
1539
|
+
idempotencyKey: Scalars['String'];
|
|
1540
|
+
/** One to ten personalized, single-recipient plain-text emails. */
|
|
1541
|
+
messages: BrandAgentEmailMessageInput[];
|
|
1542
|
+
}
|
|
1457
1543
|
interface VenueInput {
|
|
1458
1544
|
name: Scalars['String'];
|
|
1459
1545
|
city: Scalars['String'];
|
|
@@ -1754,6 +1840,12 @@ interface MutationGenqlSelection {
|
|
|
1754
1840
|
input: CreatePartnerMomentInput;
|
|
1755
1841
|
};
|
|
1756
1842
|
});
|
|
1843
|
+
/** Queue one to ten emails from the authenticated brand's AgentMail inbox. */
|
|
1844
|
+
sendPartnerAgentEmail?: (BrandAgentEmailSendBatchGenqlSelection & {
|
|
1845
|
+
__args: {
|
|
1846
|
+
input: SendPartnerAgentEmailInput;
|
|
1847
|
+
};
|
|
1848
|
+
});
|
|
1757
1849
|
/**
|
|
1758
1850
|
* Bulk edit partner-owned ticket tiers for a moment.
|
|
1759
1851
|
* Supports per-tier price, facility-fee, and supply updates.
|
|
@@ -1898,4 +1990,4 @@ type ITMPartnerClient = Client;
|
|
|
1898
1990
|
*/
|
|
1899
1991
|
declare function createITMPartnerClient(config: ITMPartnerClientConfig): ITMPartnerClient;
|
|
1900
1992
|
|
|
1901
|
-
export { type ApplyDynamicPricingInput, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentType, type MusicReleaseType, type Mutation, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SubscriptionComplianceInput, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type User, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
|
|
1993
|
+
export { type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentType, type MusicReleaseType, type Mutation, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SubscriptionComplianceInput, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type User, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ type Scalars = {
|
|
|
8
8
|
Float: number;
|
|
9
9
|
};
|
|
10
10
|
type MomentStatus = 'UPCOMING' | 'LIVE' | 'ENDED';
|
|
11
|
+
type BrandAgentEmailSendBatchStatus = 'PENDING' | 'SENDING' | 'SENT' | 'PARTIAL' | 'FAILED' | 'UNKNOWN';
|
|
12
|
+
type BrandAgentEmailSendMessageStatus = 'PENDING' | 'SENDING' | 'SENT' | 'FAILED' | 'UNKNOWN';
|
|
11
13
|
type MomentSortOrder = 'ASC' | 'DESC';
|
|
12
14
|
type BrandDropCtaType = 'EXTERNAL_URL' | 'GATED_LINK' | 'MUSIC_LINK' | 'SUBSCRIBE';
|
|
13
15
|
type MusicReleaseType = 'ALBUM' | 'EP' | 'SINGLE';
|
|
@@ -210,7 +212,12 @@ interface PartnerCustomer {
|
|
|
210
212
|
__typename: 'PartnerCustomer';
|
|
211
213
|
}
|
|
212
214
|
interface PartnerMomentStats {
|
|
215
|
+
generatedAt: Scalars['DateTime'];
|
|
213
216
|
ticketsCount: Scalars['Int'];
|
|
217
|
+
/** Confirmed tickets whose materialized price is greater than zero. */
|
|
218
|
+
paidTicketsCount: Scalars['Int'];
|
|
219
|
+
/** Confirmed tickets whose materialized price is zero. */
|
|
220
|
+
freeTicketsCount: Scalars['Int'];
|
|
214
221
|
waitlistCount: Scalars['Int'];
|
|
215
222
|
externalRsvpCount: Scalars['Int'];
|
|
216
223
|
ticketRsvpRequestsCount: Scalars['Int'];
|
|
@@ -575,9 +582,35 @@ interface MomentLineupResponseResult {
|
|
|
575
582
|
success: Scalars['Boolean'];
|
|
576
583
|
__typename: 'MomentLineupResponseResult';
|
|
577
584
|
}
|
|
585
|
+
interface BrandAgentEmailSendMessage {
|
|
586
|
+
uid: Scalars['String'];
|
|
587
|
+
position: Scalars['Int'];
|
|
588
|
+
recipient: Scalars['String'];
|
|
589
|
+
subject: Scalars['String'];
|
|
590
|
+
text: Scalars['String'];
|
|
591
|
+
status: BrandAgentEmailSendMessageStatus;
|
|
592
|
+
agentMailMessageId: (Scalars['String'] | null);
|
|
593
|
+
agentMailThreadId: (Scalars['String'] | null);
|
|
594
|
+
sentAt: (Scalars['DateTime'] | null);
|
|
595
|
+
failedAt: (Scalars['DateTime'] | null);
|
|
596
|
+
lastErrorCode: (Scalars['String'] | null);
|
|
597
|
+
lastErrorMessage: (Scalars['String'] | null);
|
|
598
|
+
__typename: 'BrandAgentEmailSendMessage';
|
|
599
|
+
}
|
|
600
|
+
interface BrandAgentEmailSendBatch {
|
|
601
|
+
uid: Scalars['String'];
|
|
602
|
+
createdAt: Scalars['DateTime'];
|
|
603
|
+
status: BrandAgentEmailSendBatchStatus;
|
|
604
|
+
senderEmailAddress: Scalars['String'];
|
|
605
|
+
acceptedCount: Scalars['Int'];
|
|
606
|
+
messages: BrandAgentEmailSendMessage[];
|
|
607
|
+
__typename: 'BrandAgentEmailSendBatch';
|
|
608
|
+
}
|
|
578
609
|
interface Query {
|
|
579
610
|
/** Get details for the brand associated with the partner token. */
|
|
580
611
|
getPartnerBrand: PartnerBrand;
|
|
612
|
+
/** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
|
|
613
|
+
getPartnerAgentEmailBatch: BrandAgentEmailSendBatch;
|
|
581
614
|
/** Get paginated moments for the brand associated with the partner token. */
|
|
582
615
|
getPartnerMomentsForBrand: GetPublicMomentsResponse;
|
|
583
616
|
/** Get paginated drops for the brand associated with the partner token. */
|
|
@@ -691,6 +724,8 @@ interface Mutation {
|
|
|
691
724
|
* When type is IRL, the venue field is required.
|
|
692
725
|
*/
|
|
693
726
|
createPartnerMoment: Moment;
|
|
727
|
+
/** Queue one to ten emails from the authenticated brand's AgentMail inbox. */
|
|
728
|
+
sendPartnerAgentEmail: BrandAgentEmailSendBatch;
|
|
694
729
|
/**
|
|
695
730
|
* Bulk edit partner-owned ticket tiers for a moment.
|
|
696
731
|
* Supports per-tier price, facility-fee, and supply updates.
|
|
@@ -899,7 +934,12 @@ interface PartnerCustomerGenqlSelection {
|
|
|
899
934
|
__scalar?: boolean | number;
|
|
900
935
|
}
|
|
901
936
|
interface PartnerMomentStatsGenqlSelection {
|
|
937
|
+
generatedAt?: boolean | number;
|
|
902
938
|
ticketsCount?: boolean | number;
|
|
939
|
+
/** Confirmed tickets whose materialized price is greater than zero. */
|
|
940
|
+
paidTicketsCount?: boolean | number;
|
|
941
|
+
/** Confirmed tickets whose materialized price is zero. */
|
|
942
|
+
freeTicketsCount?: boolean | number;
|
|
903
943
|
waitlistCount?: boolean | number;
|
|
904
944
|
externalRsvpCount?: boolean | number;
|
|
905
945
|
ticketRsvpRequestsCount?: boolean | number;
|
|
@@ -1303,12 +1343,46 @@ interface MomentLineupResponseResultGenqlSelection {
|
|
|
1303
1343
|
__scalar?: boolean | number;
|
|
1304
1344
|
}
|
|
1305
1345
|
interface PartnerMomentsFiltersInput {
|
|
1346
|
+
/** Case-insensitive search over moment name and slug. Whitespace-only values are ignored. */
|
|
1347
|
+
search?: (Scalars['String'] | null);
|
|
1306
1348
|
/** When true, includes private moments owned by the authenticated brand. Default: false. */
|
|
1307
1349
|
includePrivate?: (Scalars['Boolean'] | null);
|
|
1308
1350
|
}
|
|
1351
|
+
interface BrandAgentEmailSendMessageGenqlSelection {
|
|
1352
|
+
uid?: boolean | number;
|
|
1353
|
+
position?: boolean | number;
|
|
1354
|
+
recipient?: boolean | number;
|
|
1355
|
+
subject?: boolean | number;
|
|
1356
|
+
text?: boolean | number;
|
|
1357
|
+
status?: boolean | number;
|
|
1358
|
+
agentMailMessageId?: boolean | number;
|
|
1359
|
+
agentMailThreadId?: boolean | number;
|
|
1360
|
+
sentAt?: boolean | number;
|
|
1361
|
+
failedAt?: boolean | number;
|
|
1362
|
+
lastErrorCode?: boolean | number;
|
|
1363
|
+
lastErrorMessage?: boolean | number;
|
|
1364
|
+
__typename?: boolean | number;
|
|
1365
|
+
__scalar?: boolean | number;
|
|
1366
|
+
}
|
|
1367
|
+
interface BrandAgentEmailSendBatchGenqlSelection {
|
|
1368
|
+
uid?: boolean | number;
|
|
1369
|
+
createdAt?: boolean | number;
|
|
1370
|
+
status?: boolean | number;
|
|
1371
|
+
senderEmailAddress?: boolean | number;
|
|
1372
|
+
acceptedCount?: boolean | number;
|
|
1373
|
+
messages?: BrandAgentEmailSendMessageGenqlSelection;
|
|
1374
|
+
__typename?: boolean | number;
|
|
1375
|
+
__scalar?: boolean | number;
|
|
1376
|
+
}
|
|
1309
1377
|
interface QueryGenqlSelection {
|
|
1310
1378
|
/** Get details for the brand associated with the partner token. */
|
|
1311
1379
|
getPartnerBrand?: PartnerBrandGenqlSelection;
|
|
1380
|
+
/** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
|
|
1381
|
+
getPartnerAgentEmailBatch?: (BrandAgentEmailSendBatchGenqlSelection & {
|
|
1382
|
+
__args: {
|
|
1383
|
+
batchUid: Scalars['String'];
|
|
1384
|
+
};
|
|
1385
|
+
});
|
|
1312
1386
|
/** Get paginated moments for the brand associated with the partner token. */
|
|
1313
1387
|
getPartnerMomentsForBrand?: (GetPublicMomentsResponseGenqlSelection & {
|
|
1314
1388
|
__args: {
|
|
@@ -1454,6 +1528,18 @@ interface DimensionsInput {
|
|
|
1454
1528
|
width: Scalars['Float'];
|
|
1455
1529
|
height: Scalars['Float'];
|
|
1456
1530
|
}
|
|
1531
|
+
interface BrandAgentEmailMessageInput {
|
|
1532
|
+
/** One normalized recipient. Each item is sent as a separate email. */
|
|
1533
|
+
to: Scalars['String'];
|
|
1534
|
+
subject: Scalars['String'];
|
|
1535
|
+
text: Scalars['String'];
|
|
1536
|
+
}
|
|
1537
|
+
interface SendPartnerAgentEmailInput {
|
|
1538
|
+
/** Stable business idempotency key for this logical batch. */
|
|
1539
|
+
idempotencyKey: Scalars['String'];
|
|
1540
|
+
/** One to ten personalized, single-recipient plain-text emails. */
|
|
1541
|
+
messages: BrandAgentEmailMessageInput[];
|
|
1542
|
+
}
|
|
1457
1543
|
interface VenueInput {
|
|
1458
1544
|
name: Scalars['String'];
|
|
1459
1545
|
city: Scalars['String'];
|
|
@@ -1754,6 +1840,12 @@ interface MutationGenqlSelection {
|
|
|
1754
1840
|
input: CreatePartnerMomentInput;
|
|
1755
1841
|
};
|
|
1756
1842
|
});
|
|
1843
|
+
/** Queue one to ten emails from the authenticated brand's AgentMail inbox. */
|
|
1844
|
+
sendPartnerAgentEmail?: (BrandAgentEmailSendBatchGenqlSelection & {
|
|
1845
|
+
__args: {
|
|
1846
|
+
input: SendPartnerAgentEmailInput;
|
|
1847
|
+
};
|
|
1848
|
+
});
|
|
1757
1849
|
/**
|
|
1758
1850
|
* Bulk edit partner-owned ticket tiers for a moment.
|
|
1759
1851
|
* Supports per-tier price, facility-fee, and supply updates.
|
|
@@ -1898,4 +1990,4 @@ type ITMPartnerClient = Client;
|
|
|
1898
1990
|
*/
|
|
1899
1991
|
declare function createITMPartnerClient(config: ITMPartnerClientConfig): ITMPartnerClient;
|
|
1900
1992
|
|
|
1901
|
-
export { type ApplyDynamicPricingInput, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentType, type MusicReleaseType, type Mutation, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SubscriptionComplianceInput, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type User, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
|
|
1993
|
+
export { type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentType, type MusicReleaseType, type Mutation, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SubscriptionComplianceInput, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type User, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
|