@itm-studio/partner-sdk 0.2.1 → 0.2.2
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 +283 -0
- package/dist/index.d.mts +126 -2
- package/dist/index.d.ts +126 -2
- package/dist/index.js +204 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +204 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +88 -0
package/dist/index.mjs
CHANGED
|
@@ -952,6 +952,23 @@ var types_default = {
|
|
|
952
952
|
13
|
|
953
953
|
]
|
|
954
954
|
},
|
|
955
|
+
"PartnerMomentStats": {
|
|
956
|
+
"ticketsCount": [
|
|
957
|
+
18
|
|
958
|
+
],
|
|
959
|
+
"waitlistCount": [
|
|
960
|
+
18
|
|
961
|
+
],
|
|
962
|
+
"externalRsvpCount": [
|
|
963
|
+
18
|
|
964
|
+
],
|
|
965
|
+
"ticketRsvpRequestsCount": [
|
|
966
|
+
18
|
|
967
|
+
],
|
|
968
|
+
"__typename": [
|
|
969
|
+
13
|
|
970
|
+
]
|
|
971
|
+
},
|
|
955
972
|
"MomentCollectionLink": {
|
|
956
973
|
"uid": [
|
|
957
974
|
12
|
|
@@ -1001,7 +1018,7 @@ var types_default = {
|
|
|
1001
1018
|
}
|
|
1002
1019
|
],
|
|
1003
1020
|
"links": [
|
|
1004
|
-
|
|
1021
|
+
29
|
|
1005
1022
|
],
|
|
1006
1023
|
"createdAt": [
|
|
1007
1024
|
0
|
|
@@ -1035,7 +1052,7 @@ var types_default = {
|
|
|
1035
1052
|
13
|
|
1036
1053
|
],
|
|
1037
1054
|
"dimensions": [
|
|
1038
|
-
|
|
1055
|
+
31
|
|
1039
1056
|
],
|
|
1040
1057
|
"size": [
|
|
1041
1058
|
18
|
|
@@ -1094,10 +1111,10 @@ var types_default = {
|
|
|
1094
1111
|
1
|
|
1095
1112
|
],
|
|
1096
1113
|
"mediaAsset": [
|
|
1097
|
-
|
|
1114
|
+
32
|
|
1098
1115
|
],
|
|
1099
1116
|
"echoMedia": [
|
|
1100
|
-
|
|
1117
|
+
32
|
|
1101
1118
|
],
|
|
1102
1119
|
"moment": [
|
|
1103
1120
|
16
|
|
@@ -1165,7 +1182,7 @@ var types_default = {
|
|
|
1165
1182
|
},
|
|
1166
1183
|
"GetBrandEchoesForUserResponse": {
|
|
1167
1184
|
"echoes": [
|
|
1168
|
-
|
|
1185
|
+
33
|
|
1169
1186
|
],
|
|
1170
1187
|
"totalCount": [
|
|
1171
1188
|
18
|
|
@@ -1180,9 +1197,29 @@ var types_default = {
|
|
|
1180
1197
|
13
|
|
1181
1198
|
]
|
|
1182
1199
|
},
|
|
1200
|
+
"BrandSubscription": {
|
|
1201
|
+
"uid": [
|
|
1202
|
+
12
|
|
1203
|
+
],
|
|
1204
|
+
"isActive": [
|
|
1205
|
+
17
|
|
1206
|
+
],
|
|
1207
|
+
"subscribedAt": [
|
|
1208
|
+
0
|
|
1209
|
+
],
|
|
1210
|
+
"createdAt": [
|
|
1211
|
+
0
|
|
1212
|
+
],
|
|
1213
|
+
"updatedAt": [
|
|
1214
|
+
0
|
|
1215
|
+
],
|
|
1216
|
+
"__typename": [
|
|
1217
|
+
13
|
|
1218
|
+
]
|
|
1219
|
+
},
|
|
1183
1220
|
"Query": {
|
|
1184
1221
|
"getPartnerMomentsForBrand": [
|
|
1185
|
-
|
|
1222
|
+
34,
|
|
1186
1223
|
{
|
|
1187
1224
|
"cursor": [
|
|
1188
1225
|
13
|
|
@@ -1207,8 +1244,17 @@ var types_default = {
|
|
|
1207
1244
|
]
|
|
1208
1245
|
}
|
|
1209
1246
|
],
|
|
1247
|
+
"getPartnerMomentStats": [
|
|
1248
|
+
28,
|
|
1249
|
+
{
|
|
1250
|
+
"momentSlug": [
|
|
1251
|
+
13,
|
|
1252
|
+
"String!"
|
|
1253
|
+
]
|
|
1254
|
+
}
|
|
1255
|
+
],
|
|
1210
1256
|
"getPartnerTicketsForMoment": [
|
|
1211
|
-
|
|
1257
|
+
35,
|
|
1212
1258
|
{
|
|
1213
1259
|
"momentSlug": [
|
|
1214
1260
|
13,
|
|
@@ -1226,7 +1272,7 @@ var types_default = {
|
|
|
1226
1272
|
}
|
|
1227
1273
|
],
|
|
1228
1274
|
"getPartnerCustomersForMoment": [
|
|
1229
|
-
|
|
1275
|
+
36,
|
|
1230
1276
|
{
|
|
1231
1277
|
"momentSlug": [
|
|
1232
1278
|
13,
|
|
@@ -1241,7 +1287,7 @@ var types_default = {
|
|
|
1241
1287
|
}
|
|
1242
1288
|
],
|
|
1243
1289
|
"getPartnerMomentCollection": [
|
|
1244
|
-
|
|
1290
|
+
30,
|
|
1245
1291
|
{
|
|
1246
1292
|
"slug": [
|
|
1247
1293
|
13,
|
|
@@ -1250,7 +1296,7 @@ var types_default = {
|
|
|
1250
1296
|
}
|
|
1251
1297
|
],
|
|
1252
1298
|
"getPartnerPublicEchoes": [
|
|
1253
|
-
|
|
1299
|
+
37,
|
|
1254
1300
|
{
|
|
1255
1301
|
"momentSlug": [
|
|
1256
1302
|
13
|
|
@@ -1356,7 +1402,7 @@ var types_default = {
|
|
|
1356
1402
|
13
|
|
1357
1403
|
],
|
|
1358
1404
|
"venue": [
|
|
1359
|
-
|
|
1405
|
+
41
|
|
1360
1406
|
],
|
|
1361
1407
|
"isPrivate": [
|
|
1362
1408
|
17
|
|
@@ -1368,7 +1414,109 @@ var types_default = {
|
|
|
1368
1414
|
6
|
|
1369
1415
|
],
|
|
1370
1416
|
"ticketTiers": [
|
|
1371
|
-
|
|
1417
|
+
42
|
|
1418
|
+
],
|
|
1419
|
+
"__typename": [
|
|
1420
|
+
13
|
|
1421
|
+
]
|
|
1422
|
+
},
|
|
1423
|
+
"SubscriptionComplianceInput": {
|
|
1424
|
+
"browserName": [
|
|
1425
|
+
13
|
|
1426
|
+
],
|
|
1427
|
+
"browserVersion": [
|
|
1428
|
+
13
|
|
1429
|
+
],
|
|
1430
|
+
"deviceType": [
|
|
1431
|
+
13
|
|
1432
|
+
],
|
|
1433
|
+
"geoAccuracy": [
|
|
1434
|
+
20
|
|
1435
|
+
],
|
|
1436
|
+
"geoCity": [
|
|
1437
|
+
13
|
|
1438
|
+
],
|
|
1439
|
+
"geoCountry": [
|
|
1440
|
+
13
|
|
1441
|
+
],
|
|
1442
|
+
"geoLatitude": [
|
|
1443
|
+
20
|
|
1444
|
+
],
|
|
1445
|
+
"geoLongitude": [
|
|
1446
|
+
20
|
|
1447
|
+
],
|
|
1448
|
+
"geoRegion": [
|
|
1449
|
+
13
|
|
1450
|
+
],
|
|
1451
|
+
"ipAddress": [
|
|
1452
|
+
13
|
|
1453
|
+
],
|
|
1454
|
+
"language": [
|
|
1455
|
+
13
|
|
1456
|
+
],
|
|
1457
|
+
"osName": [
|
|
1458
|
+
13
|
|
1459
|
+
],
|
|
1460
|
+
"osVersion": [
|
|
1461
|
+
13
|
|
1462
|
+
],
|
|
1463
|
+
"pageUrl": [
|
|
1464
|
+
13
|
|
1465
|
+
],
|
|
1466
|
+
"referrerUrl": [
|
|
1467
|
+
13
|
|
1468
|
+
],
|
|
1469
|
+
"screenHeight": [
|
|
1470
|
+
18
|
|
1471
|
+
],
|
|
1472
|
+
"screenWidth": [
|
|
1473
|
+
18
|
|
1474
|
+
],
|
|
1475
|
+
"submissionMethod": [
|
|
1476
|
+
13
|
|
1477
|
+
],
|
|
1478
|
+
"submittedAt": [
|
|
1479
|
+
0
|
|
1480
|
+
],
|
|
1481
|
+
"timezone": [
|
|
1482
|
+
13
|
|
1483
|
+
],
|
|
1484
|
+
"userAgent": [
|
|
1485
|
+
13
|
|
1486
|
+
],
|
|
1487
|
+
"__typename": [
|
|
1488
|
+
13
|
|
1489
|
+
]
|
|
1490
|
+
},
|
|
1491
|
+
"CreatePartnerBrandSubscriptionInput": {
|
|
1492
|
+
"compliance": [
|
|
1493
|
+
44
|
|
1494
|
+
],
|
|
1495
|
+
"email": [
|
|
1496
|
+
13
|
|
1497
|
+
],
|
|
1498
|
+
"fullName": [
|
|
1499
|
+
13
|
|
1500
|
+
],
|
|
1501
|
+
"listNames": [
|
|
1502
|
+
13
|
|
1503
|
+
],
|
|
1504
|
+
"phoneNumber": [
|
|
1505
|
+
13
|
|
1506
|
+
],
|
|
1507
|
+
"requireOtpVerification": [
|
|
1508
|
+
17
|
|
1509
|
+
],
|
|
1510
|
+
"__typename": [
|
|
1511
|
+
13
|
|
1512
|
+
]
|
|
1513
|
+
},
|
|
1514
|
+
"VerifyPartnerBrandSubscriptionInput": {
|
|
1515
|
+
"code": [
|
|
1516
|
+
13
|
|
1517
|
+
],
|
|
1518
|
+
"verificationToken": [
|
|
1519
|
+
13
|
|
1372
1520
|
],
|
|
1373
1521
|
"__typename": [
|
|
1374
1522
|
13
|
|
@@ -1399,7 +1547,7 @@ var types_default = {
|
|
|
1399
1547
|
13
|
|
1400
1548
|
],
|
|
1401
1549
|
"dimensions": [
|
|
1402
|
-
|
|
1550
|
+
31
|
|
1403
1551
|
],
|
|
1404
1552
|
"size": [
|
|
1405
1553
|
18
|
|
@@ -1420,9 +1568,23 @@ var types_default = {
|
|
|
1420
1568
|
13
|
|
1421
1569
|
]
|
|
1422
1570
|
},
|
|
1571
|
+
"CreatePartnerBrandSubscriptionResponse": {
|
|
1572
|
+
"subscription": [
|
|
1573
|
+
38
|
|
1574
|
+
],
|
|
1575
|
+
"verificationRequired": [
|
|
1576
|
+
17
|
|
1577
|
+
],
|
|
1578
|
+
"verificationToken": [
|
|
1579
|
+
13
|
|
1580
|
+
],
|
|
1581
|
+
"__typename": [
|
|
1582
|
+
13
|
|
1583
|
+
]
|
|
1584
|
+
},
|
|
1423
1585
|
"Mutation": {
|
|
1424
1586
|
"getPartnerUploadUrl": [
|
|
1425
|
-
|
|
1587
|
+
47,
|
|
1426
1588
|
{
|
|
1427
1589
|
"filename": [
|
|
1428
1590
|
13,
|
|
@@ -1435,7 +1597,7 @@ var types_default = {
|
|
|
1435
1597
|
}
|
|
1436
1598
|
],
|
|
1437
1599
|
"createPartnerMediaAsset": [
|
|
1438
|
-
|
|
1600
|
+
48,
|
|
1439
1601
|
{
|
|
1440
1602
|
"mimetype": [
|
|
1441
1603
|
13,
|
|
@@ -1446,20 +1608,38 @@ var types_default = {
|
|
|
1446
1608
|
"String!"
|
|
1447
1609
|
],
|
|
1448
1610
|
"dimensions": [
|
|
1449
|
-
|
|
1611
|
+
40,
|
|
1450
1612
|
"DimensionsInput!"
|
|
1451
1613
|
]
|
|
1452
1614
|
}
|
|
1453
1615
|
],
|
|
1616
|
+
"createPartnerBrandSubscription": [
|
|
1617
|
+
49,
|
|
1618
|
+
{
|
|
1619
|
+
"input": [
|
|
1620
|
+
45,
|
|
1621
|
+
"CreatePartnerBrandSubscriptionInput!"
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
],
|
|
1454
1625
|
"createPartnerMoment": [
|
|
1455
1626
|
16,
|
|
1456
1627
|
{
|
|
1457
1628
|
"input": [
|
|
1458
|
-
|
|
1629
|
+
43,
|
|
1459
1630
|
"CreatePartnerMomentInput!"
|
|
1460
1631
|
]
|
|
1461
1632
|
}
|
|
1462
1633
|
],
|
|
1634
|
+
"verifyPartnerBrandSubscription": [
|
|
1635
|
+
38,
|
|
1636
|
+
{
|
|
1637
|
+
"input": [
|
|
1638
|
+
46,
|
|
1639
|
+
"VerifyPartnerBrandSubscriptionInput!"
|
|
1640
|
+
]
|
|
1641
|
+
}
|
|
1642
|
+
],
|
|
1463
1643
|
"__typename": [
|
|
1464
1644
|
13
|
|
1465
1645
|
]
|
|
@@ -1499,10 +1679,13 @@ function createITMPartnerClient(config) {
|
|
|
1499
1679
|
}
|
|
1500
1680
|
return createClient2({
|
|
1501
1681
|
url: baseUrl ?? DEFAULT_API_URL,
|
|
1502
|
-
headers: {
|
|
1503
|
-
"
|
|
1504
|
-
|
|
1505
|
-
|
|
1682
|
+
headers: async () => {
|
|
1683
|
+
const resolvedExtraHeaders = typeof extraHeaders === "function" ? await extraHeaders() : extraHeaders;
|
|
1684
|
+
return {
|
|
1685
|
+
...resolvedExtraHeaders ?? {},
|
|
1686
|
+
"x-partner-api-key": token,
|
|
1687
|
+
"Content-Type": "application/json"
|
|
1688
|
+
};
|
|
1506
1689
|
}
|
|
1507
1690
|
});
|
|
1508
1691
|
}
|