@itm-studio/partner-sdk 0.6.5 → 0.6.6
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 +25 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +12 -0
package/README.md
CHANGED
|
@@ -384,6 +384,29 @@ const { getPartnerBrand } = await itm.query({
|
|
|
384
384
|
domain is verified.
|
|
385
385
|
- `bio`, `spotifyUrl`, and `youtubeEmbedUrl` are `null` when unset.
|
|
386
386
|
|
|
387
|
+
### Public page URLs (`publicUrl`)
|
|
388
|
+
|
|
389
|
+
Every asset with a hosted page on ITM carries a `publicUrl`, so you never have
|
|
390
|
+
to assemble links from slugs. Select it on the create mutation to get the link
|
|
391
|
+
in the same call, or on any later read.
|
|
392
|
+
|
|
393
|
+
| Type | Page | Returned by |
|
|
394
|
+
| --- | --- | --- |
|
|
395
|
+
| `Moment` | `/m/{slug}` | `createPartnerMoment`, `getPartnerMoment`, `getPartnerMomentsForBrand` |
|
|
396
|
+
| `BrandDrop` | `/d/{slug}` | `createPartnerBrandDrop`, `getPartnerDrops` |
|
|
397
|
+
| `Echo` | `/echo/{slug}` | `getPartnerPublicEchoes` |
|
|
398
|
+
| `PartnerMembershipTier` | `/passes/{slug}` | `getPartnerMembershipTiers` |
|
|
399
|
+
| `Merch` | `/p/{slug}` | `getPartnerMerch` |
|
|
400
|
+
| `Form` | `/f/{slug}` | `getPartnerForm`, `getPartnerForms` |
|
|
401
|
+
|
|
402
|
+
- `publicUrl` is always returned, including for assets that are not public,
|
|
403
|
+
not active, or not yet published. It is the canonical address of the page,
|
|
404
|
+
not a promise that a visitor can use it: check the type's own state fields
|
|
405
|
+
(`isPublic`, `isActive`, `isPrivate`, `status`, `isLive`, `publishTime`)
|
|
406
|
+
before sharing a link.
|
|
407
|
+
- URLs use the brand's ITM subdomain (the same origin as
|
|
408
|
+
`getPartnerBrand.publicUrl`), not its custom domain.
|
|
409
|
+
|
|
387
410
|
### `getPartnerMomentsForBrand`
|
|
388
411
|
|
|
389
412
|
Get paginated moments (events) for your brand.
|
|
@@ -2120,6 +2143,7 @@ const { createPartnerBrandDrop: drop } = await itm.mutation({
|
|
|
2120
2143
|
},
|
|
2121
2144
|
uid: true,
|
|
2122
2145
|
slug: true,
|
|
2146
|
+
publicUrl: true, // hosted signup page, e.g. https://your-brand.itm.studio/d/join-our-community
|
|
2123
2147
|
},
|
|
2124
2148
|
});
|
|
2125
2149
|
|
|
@@ -2473,6 +2497,7 @@ const { createPartnerMoment } = await itm.mutation({
|
|
|
2473
2497
|
uid: true,
|
|
2474
2498
|
name: true,
|
|
2475
2499
|
slug: true,
|
|
2500
|
+
publicUrl: true, // hosted moment page
|
|
2476
2501
|
startDate: true,
|
|
2477
2502
|
endDate: true,
|
|
2478
2503
|
status: true,
|
package/dist/index.d.mts
CHANGED
|
@@ -212,6 +212,8 @@ interface Moment {
|
|
|
212
212
|
description: (Scalars['String'] | null);
|
|
213
213
|
blurb: Scalars['String'];
|
|
214
214
|
slug: Scalars['String'];
|
|
215
|
+
/** Canonical public URL on ITM. Always returned, whatever the moment's visibility; check isPrivate and status before sharing it. */
|
|
216
|
+
publicUrl: Scalars['String'];
|
|
215
217
|
startDate: Scalars['DateTime'];
|
|
216
218
|
endDate: Scalars['DateTime'];
|
|
217
219
|
isPrivate: Scalars['Boolean'];
|
|
@@ -411,6 +413,8 @@ interface MerchSize {
|
|
|
411
413
|
interface Merch {
|
|
412
414
|
uid: Scalars['ID'];
|
|
413
415
|
name: Scalars['String'];
|
|
416
|
+
/** Canonical public URL on ITM. Always returned, whatever the item's visibility; check isLive before sharing it. */
|
|
417
|
+
publicUrl: Scalars['String'];
|
|
414
418
|
description: (Scalars['String'] | null);
|
|
415
419
|
/** Price in ITM cents (major units times 100). */
|
|
416
420
|
price: Scalars['Float'];
|
|
@@ -570,6 +574,8 @@ interface Echo {
|
|
|
570
574
|
type: EchoType;
|
|
571
575
|
name: Scalars['String'];
|
|
572
576
|
slug: (Scalars['String'] | null);
|
|
577
|
+
/** Canonical public URL on ITM. Always returned, whatever the echo's visibility; check isPublic and publishTime before sharing it. */
|
|
578
|
+
publicUrl: Scalars['String'];
|
|
573
579
|
description: (Scalars['String'] | null);
|
|
574
580
|
/** Rich text body for POST-type echoes. */
|
|
575
581
|
postBody: (Scalars['String'] | null);
|
|
@@ -594,6 +600,8 @@ interface BrandDrop {
|
|
|
594
600
|
uid: Scalars['ID'];
|
|
595
601
|
name: Scalars['String'];
|
|
596
602
|
slug: Scalars['String'];
|
|
603
|
+
/** Canonical public URL on ITM. Always returned, whatever the drop's visibility; check isPublic and isActive before sharing it. */
|
|
604
|
+
publicUrl: Scalars['String'];
|
|
597
605
|
subtitle: (Scalars['String'] | null);
|
|
598
606
|
disclosures: (Scalars['String'] | null);
|
|
599
607
|
isPublic: Scalars['Boolean'];
|
|
@@ -1004,6 +1012,8 @@ interface PartnerMembershipTier {
|
|
|
1004
1012
|
passType: MembershipPassType;
|
|
1005
1013
|
/** Amount in hundredths of the currency's major unit (always x100, including zero-decimal currencies such as JPY) */
|
|
1006
1014
|
price: Scalars['Int'];
|
|
1015
|
+
/** Canonical public URL on ITM. Always returned, whatever the pass's visibility; check isPublic and isActive before sharing it. */
|
|
1016
|
+
publicUrl: Scalars['String'];
|
|
1007
1017
|
slug: Scalars['String'];
|
|
1008
1018
|
sortOrder: Scalars['Int'];
|
|
1009
1019
|
supplyCap: (Scalars['Int'] | null);
|
|
@@ -1801,6 +1811,8 @@ interface Form {
|
|
|
1801
1811
|
mode: FormResponseMode;
|
|
1802
1812
|
name: Scalars['String'];
|
|
1803
1813
|
preSubmitCalloutText: (Scalars['String'] | null);
|
|
1814
|
+
/** Canonical public URL on ITM. Always returned, whatever the form's visibility; check isPublic and isActive before sharing it. */
|
|
1815
|
+
publicUrl: Scalars['String'];
|
|
1804
1816
|
relevancyScoringContext: (Scalars['String'] | null);
|
|
1805
1817
|
relevancyScoringEnabled: Scalars['Boolean'];
|
|
1806
1818
|
responsesCount: Scalars['Int'];
|
|
@@ -2095,6 +2107,8 @@ interface MomentGenqlSelection {
|
|
|
2095
2107
|
description?: boolean | number;
|
|
2096
2108
|
blurb?: boolean | number;
|
|
2097
2109
|
slug?: boolean | number;
|
|
2110
|
+
/** Canonical public URL on ITM. Always returned, whatever the moment's visibility; check isPrivate and status before sharing it. */
|
|
2111
|
+
publicUrl?: boolean | number;
|
|
2098
2112
|
startDate?: boolean | number;
|
|
2099
2113
|
endDate?: boolean | number;
|
|
2100
2114
|
isPrivate?: boolean | number;
|
|
@@ -2304,6 +2318,8 @@ interface MerchSizeGenqlSelection {
|
|
|
2304
2318
|
interface MerchGenqlSelection {
|
|
2305
2319
|
uid?: boolean | number;
|
|
2306
2320
|
name?: boolean | number;
|
|
2321
|
+
/** Canonical public URL on ITM. Always returned, whatever the item's visibility; check isLive before sharing it. */
|
|
2322
|
+
publicUrl?: boolean | number;
|
|
2307
2323
|
description?: boolean | number;
|
|
2308
2324
|
/** Price in ITM cents (major units times 100). */
|
|
2309
2325
|
price?: boolean | number;
|
|
@@ -2575,6 +2591,8 @@ interface EchoGenqlSelection {
|
|
|
2575
2591
|
type?: boolean | number;
|
|
2576
2592
|
name?: boolean | number;
|
|
2577
2593
|
slug?: boolean | number;
|
|
2594
|
+
/** Canonical public URL on ITM. Always returned, whatever the echo's visibility; check isPublic and publishTime before sharing it. */
|
|
2595
|
+
publicUrl?: boolean | number;
|
|
2578
2596
|
description?: boolean | number;
|
|
2579
2597
|
/** Rich text body for POST-type echoes. */
|
|
2580
2598
|
postBody?: boolean | number;
|
|
@@ -2600,6 +2618,8 @@ interface BrandDropGenqlSelection {
|
|
|
2600
2618
|
uid?: boolean | number;
|
|
2601
2619
|
name?: boolean | number;
|
|
2602
2620
|
slug?: boolean | number;
|
|
2621
|
+
/** Canonical public URL on ITM. Always returned, whatever the drop's visibility; check isPublic and isActive before sharing it. */
|
|
2622
|
+
publicUrl?: boolean | number;
|
|
2603
2623
|
subtitle?: boolean | number;
|
|
2604
2624
|
disclosures?: boolean | number;
|
|
2605
2625
|
isPublic?: boolean | number;
|
|
@@ -3121,6 +3141,8 @@ interface PartnerMembershipTierGenqlSelection {
|
|
|
3121
3141
|
passType?: boolean | number;
|
|
3122
3142
|
/** Amount in hundredths of the currency's major unit (always x100, including zero-decimal currencies such as JPY) */
|
|
3123
3143
|
price?: boolean | number;
|
|
3144
|
+
/** Canonical public URL on ITM. Always returned, whatever the pass's visibility; check isPublic and isActive before sharing it. */
|
|
3145
|
+
publicUrl?: boolean | number;
|
|
3124
3146
|
slug?: boolean | number;
|
|
3125
3147
|
sortOrder?: boolean | number;
|
|
3126
3148
|
supplyCap?: boolean | number;
|
|
@@ -4735,6 +4757,8 @@ interface FormGenqlSelection {
|
|
|
4735
4757
|
mode?: boolean | number;
|
|
4736
4758
|
name?: boolean | number;
|
|
4737
4759
|
preSubmitCalloutText?: boolean | number;
|
|
4760
|
+
/** Canonical public URL on ITM. Always returned, whatever the form's visibility; check isPublic and isActive before sharing it. */
|
|
4761
|
+
publicUrl?: boolean | number;
|
|
4738
4762
|
relevancyScoringContext?: boolean | number;
|
|
4739
4763
|
relevancyScoringEnabled?: boolean | number;
|
|
4740
4764
|
responsesCount?: boolean | number;
|
package/dist/index.d.ts
CHANGED
|
@@ -212,6 +212,8 @@ interface Moment {
|
|
|
212
212
|
description: (Scalars['String'] | null);
|
|
213
213
|
blurb: Scalars['String'];
|
|
214
214
|
slug: Scalars['String'];
|
|
215
|
+
/** Canonical public URL on ITM. Always returned, whatever the moment's visibility; check isPrivate and status before sharing it. */
|
|
216
|
+
publicUrl: Scalars['String'];
|
|
215
217
|
startDate: Scalars['DateTime'];
|
|
216
218
|
endDate: Scalars['DateTime'];
|
|
217
219
|
isPrivate: Scalars['Boolean'];
|
|
@@ -411,6 +413,8 @@ interface MerchSize {
|
|
|
411
413
|
interface Merch {
|
|
412
414
|
uid: Scalars['ID'];
|
|
413
415
|
name: Scalars['String'];
|
|
416
|
+
/** Canonical public URL on ITM. Always returned, whatever the item's visibility; check isLive before sharing it. */
|
|
417
|
+
publicUrl: Scalars['String'];
|
|
414
418
|
description: (Scalars['String'] | null);
|
|
415
419
|
/** Price in ITM cents (major units times 100). */
|
|
416
420
|
price: Scalars['Float'];
|
|
@@ -570,6 +574,8 @@ interface Echo {
|
|
|
570
574
|
type: EchoType;
|
|
571
575
|
name: Scalars['String'];
|
|
572
576
|
slug: (Scalars['String'] | null);
|
|
577
|
+
/** Canonical public URL on ITM. Always returned, whatever the echo's visibility; check isPublic and publishTime before sharing it. */
|
|
578
|
+
publicUrl: Scalars['String'];
|
|
573
579
|
description: (Scalars['String'] | null);
|
|
574
580
|
/** Rich text body for POST-type echoes. */
|
|
575
581
|
postBody: (Scalars['String'] | null);
|
|
@@ -594,6 +600,8 @@ interface BrandDrop {
|
|
|
594
600
|
uid: Scalars['ID'];
|
|
595
601
|
name: Scalars['String'];
|
|
596
602
|
slug: Scalars['String'];
|
|
603
|
+
/** Canonical public URL on ITM. Always returned, whatever the drop's visibility; check isPublic and isActive before sharing it. */
|
|
604
|
+
publicUrl: Scalars['String'];
|
|
597
605
|
subtitle: (Scalars['String'] | null);
|
|
598
606
|
disclosures: (Scalars['String'] | null);
|
|
599
607
|
isPublic: Scalars['Boolean'];
|
|
@@ -1004,6 +1012,8 @@ interface PartnerMembershipTier {
|
|
|
1004
1012
|
passType: MembershipPassType;
|
|
1005
1013
|
/** Amount in hundredths of the currency's major unit (always x100, including zero-decimal currencies such as JPY) */
|
|
1006
1014
|
price: Scalars['Int'];
|
|
1015
|
+
/** Canonical public URL on ITM. Always returned, whatever the pass's visibility; check isPublic and isActive before sharing it. */
|
|
1016
|
+
publicUrl: Scalars['String'];
|
|
1007
1017
|
slug: Scalars['String'];
|
|
1008
1018
|
sortOrder: Scalars['Int'];
|
|
1009
1019
|
supplyCap: (Scalars['Int'] | null);
|
|
@@ -1801,6 +1811,8 @@ interface Form {
|
|
|
1801
1811
|
mode: FormResponseMode;
|
|
1802
1812
|
name: Scalars['String'];
|
|
1803
1813
|
preSubmitCalloutText: (Scalars['String'] | null);
|
|
1814
|
+
/** Canonical public URL on ITM. Always returned, whatever the form's visibility; check isPublic and isActive before sharing it. */
|
|
1815
|
+
publicUrl: Scalars['String'];
|
|
1804
1816
|
relevancyScoringContext: (Scalars['String'] | null);
|
|
1805
1817
|
relevancyScoringEnabled: Scalars['Boolean'];
|
|
1806
1818
|
responsesCount: Scalars['Int'];
|
|
@@ -2095,6 +2107,8 @@ interface MomentGenqlSelection {
|
|
|
2095
2107
|
description?: boolean | number;
|
|
2096
2108
|
blurb?: boolean | number;
|
|
2097
2109
|
slug?: boolean | number;
|
|
2110
|
+
/** Canonical public URL on ITM. Always returned, whatever the moment's visibility; check isPrivate and status before sharing it. */
|
|
2111
|
+
publicUrl?: boolean | number;
|
|
2098
2112
|
startDate?: boolean | number;
|
|
2099
2113
|
endDate?: boolean | number;
|
|
2100
2114
|
isPrivate?: boolean | number;
|
|
@@ -2304,6 +2318,8 @@ interface MerchSizeGenqlSelection {
|
|
|
2304
2318
|
interface MerchGenqlSelection {
|
|
2305
2319
|
uid?: boolean | number;
|
|
2306
2320
|
name?: boolean | number;
|
|
2321
|
+
/** Canonical public URL on ITM. Always returned, whatever the item's visibility; check isLive before sharing it. */
|
|
2322
|
+
publicUrl?: boolean | number;
|
|
2307
2323
|
description?: boolean | number;
|
|
2308
2324
|
/** Price in ITM cents (major units times 100). */
|
|
2309
2325
|
price?: boolean | number;
|
|
@@ -2575,6 +2591,8 @@ interface EchoGenqlSelection {
|
|
|
2575
2591
|
type?: boolean | number;
|
|
2576
2592
|
name?: boolean | number;
|
|
2577
2593
|
slug?: boolean | number;
|
|
2594
|
+
/** Canonical public URL on ITM. Always returned, whatever the echo's visibility; check isPublic and publishTime before sharing it. */
|
|
2595
|
+
publicUrl?: boolean | number;
|
|
2578
2596
|
description?: boolean | number;
|
|
2579
2597
|
/** Rich text body for POST-type echoes. */
|
|
2580
2598
|
postBody?: boolean | number;
|
|
@@ -2600,6 +2618,8 @@ interface BrandDropGenqlSelection {
|
|
|
2600
2618
|
uid?: boolean | number;
|
|
2601
2619
|
name?: boolean | number;
|
|
2602
2620
|
slug?: boolean | number;
|
|
2621
|
+
/** Canonical public URL on ITM. Always returned, whatever the drop's visibility; check isPublic and isActive before sharing it. */
|
|
2622
|
+
publicUrl?: boolean | number;
|
|
2603
2623
|
subtitle?: boolean | number;
|
|
2604
2624
|
disclosures?: boolean | number;
|
|
2605
2625
|
isPublic?: boolean | number;
|
|
@@ -3121,6 +3141,8 @@ interface PartnerMembershipTierGenqlSelection {
|
|
|
3121
3141
|
passType?: boolean | number;
|
|
3122
3142
|
/** Amount in hundredths of the currency's major unit (always x100, including zero-decimal currencies such as JPY) */
|
|
3123
3143
|
price?: boolean | number;
|
|
3144
|
+
/** Canonical public URL on ITM. Always returned, whatever the pass's visibility; check isPublic and isActive before sharing it. */
|
|
3145
|
+
publicUrl?: boolean | number;
|
|
3124
3146
|
slug?: boolean | number;
|
|
3125
3147
|
sortOrder?: boolean | number;
|
|
3126
3148
|
supplyCap?: boolean | number;
|
|
@@ -4735,6 +4757,8 @@ interface FormGenqlSelection {
|
|
|
4735
4757
|
mode?: boolean | number;
|
|
4736
4758
|
name?: boolean | number;
|
|
4737
4759
|
preSubmitCalloutText?: boolean | number;
|
|
4760
|
+
/** Canonical public URL on ITM. Always returned, whatever the form's visibility; check isPublic and isActive before sharing it. */
|
|
4761
|
+
publicUrl?: boolean | number;
|
|
4738
4762
|
relevancyScoringContext?: boolean | number;
|
|
4739
4763
|
relevancyScoringEnabled?: boolean | number;
|
|
4740
4764
|
responsesCount?: boolean | number;
|
package/dist/index.js
CHANGED
|
@@ -1075,6 +1075,9 @@ var types_default = {
|
|
|
1075
1075
|
"slug": [
|
|
1076
1076
|
36
|
|
1077
1077
|
],
|
|
1078
|
+
"publicUrl": [
|
|
1079
|
+
36
|
|
1080
|
+
],
|
|
1078
1081
|
"startDate": [
|
|
1079
1082
|
0
|
|
1080
1083
|
],
|
|
@@ -1531,6 +1534,9 @@ var types_default = {
|
|
|
1531
1534
|
"name": [
|
|
1532
1535
|
36
|
|
1533
1536
|
],
|
|
1537
|
+
"publicUrl": [
|
|
1538
|
+
36
|
|
1539
|
+
],
|
|
1534
1540
|
"description": [
|
|
1535
1541
|
36
|
|
1536
1542
|
],
|
|
@@ -2094,6 +2100,9 @@ var types_default = {
|
|
|
2094
2100
|
"slug": [
|
|
2095
2101
|
36
|
|
2096
2102
|
],
|
|
2103
|
+
"publicUrl": [
|
|
2104
|
+
36
|
|
2105
|
+
],
|
|
2097
2106
|
"description": [
|
|
2098
2107
|
36
|
|
2099
2108
|
],
|
|
@@ -2147,6 +2156,9 @@ var types_default = {
|
|
|
2147
2156
|
"slug": [
|
|
2148
2157
|
36
|
|
2149
2158
|
],
|
|
2159
|
+
"publicUrl": [
|
|
2160
|
+
36
|
|
2161
|
+
],
|
|
2150
2162
|
"subtitle": [
|
|
2151
2163
|
36
|
|
2152
2164
|
],
|
|
@@ -3381,6 +3393,9 @@ var types_default = {
|
|
|
3381
3393
|
"price": [
|
|
3382
3394
|
38
|
|
3383
3395
|
],
|
|
3396
|
+
"publicUrl": [
|
|
3397
|
+
36
|
|
3398
|
+
],
|
|
3384
3399
|
"slug": [
|
|
3385
3400
|
36
|
|
3386
3401
|
],
|
|
@@ -6764,6 +6779,9 @@ var types_default = {
|
|
|
6764
6779
|
"preSubmitCalloutText": [
|
|
6765
6780
|
36
|
|
6766
6781
|
],
|
|
6782
|
+
"publicUrl": [
|
|
6783
|
+
36
|
|
6784
|
+
],
|
|
6767
6785
|
"relevancyScoringContext": [
|
|
6768
6786
|
36
|
|
6769
6787
|
],
|