@streamscloud/streams-analytics-collector 1.0.1 → 1.0.4
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/dist/analytics/app-events-tracker.d.ts +21 -1
- package/dist/analytics/app-events-tracker.js +73 -17
- package/dist/analytics/index.js +2 -0
- package/dist/analytics/types.d.ts +2 -0
- package/dist/analytics.graphql.js +3 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -2
- package/dist/types.d.ts +0 -786
- package/dist/types.js +0 -221
- package/package.json +4 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Client } from '@urql/core';
|
|
1
2
|
/**
|
|
2
3
|
* AppEventsTracker is a utility class for tracking various user events in StreamsCloud applications
|
|
3
4
|
* such as post views, community message views, stream interactions, etc.
|
|
@@ -5,11 +6,30 @@
|
|
|
5
6
|
export declare class AppEventsTracker {
|
|
6
7
|
private static reported;
|
|
7
8
|
private static gqlEndpoint;
|
|
9
|
+
private static client;
|
|
10
|
+
private static organizationId;
|
|
11
|
+
private static profileId;
|
|
12
|
+
private static useClient;
|
|
8
13
|
/**
|
|
9
|
-
* Set the GraphQL
|
|
14
|
+
* Set the GraphQL client for making API calls (for authorized calls)
|
|
15
|
+
* @param client - The URQL client instance
|
|
16
|
+
*/
|
|
17
|
+
static setClient(client: Client): void;
|
|
18
|
+
/**
|
|
19
|
+
* Set the GraphQL endpoint for making API calls (for non-authorized calls)
|
|
10
20
|
* @param endpoint - The GraphQL endpoint URL
|
|
11
21
|
*/
|
|
12
22
|
static setEndpoint(endpoint: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Set organization ID for non-authorized calls
|
|
25
|
+
* @param organizationId - The organization ID
|
|
26
|
+
*/
|
|
27
|
+
static setOrganizationId(organizationId: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Set profile ID for non-authorized calls
|
|
30
|
+
* @param profileId - The profile ID
|
|
31
|
+
*/
|
|
32
|
+
static setProfileId(profileId: string): void;
|
|
13
33
|
/**
|
|
14
34
|
* Track when a post is opened
|
|
15
35
|
* @param postId - The ID of the post
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppEventType, CommunityMessageStatus } from './types.js';
|
|
2
|
+
import AnalyticsQuery from '../analytics.graphql.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* AppEventsTracker is a utility class for tracking various user events in StreamsCloud applications
|
|
@@ -7,12 +8,39 @@ import { AppEventType, CommunityMessageStatus } from './types.js';
|
|
|
7
8
|
class AppEventsTracker {
|
|
8
9
|
static reported = [];
|
|
9
10
|
static gqlEndpoint = '';
|
|
11
|
+
static client;
|
|
12
|
+
static organizationId;
|
|
13
|
+
static profileId;
|
|
14
|
+
static useClient = false;
|
|
10
15
|
/**
|
|
11
|
-
* Set the GraphQL
|
|
16
|
+
* Set the GraphQL client for making API calls (for authorized calls)
|
|
17
|
+
* @param client - The URQL client instance
|
|
18
|
+
*/
|
|
19
|
+
static setClient(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
this.useClient = true;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Set the GraphQL endpoint for making API calls (for non-authorized calls)
|
|
12
25
|
* @param endpoint - The GraphQL endpoint URL
|
|
13
26
|
*/
|
|
14
27
|
static setEndpoint(endpoint) {
|
|
15
28
|
this.gqlEndpoint = endpoint;
|
|
29
|
+
this.useClient = false;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Set organization ID for non-authorized calls
|
|
33
|
+
* @param organizationId - The organization ID
|
|
34
|
+
*/
|
|
35
|
+
static setOrganizationId(organizationId) {
|
|
36
|
+
this.organizationId = organizationId;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Set profile ID for non-authorized calls
|
|
40
|
+
* @param profileId - The profile ID
|
|
41
|
+
*/
|
|
42
|
+
static setProfileId(profileId) {
|
|
43
|
+
this.profileId = profileId;
|
|
16
44
|
}
|
|
17
45
|
/**
|
|
18
46
|
* Track when a post is opened
|
|
@@ -125,25 +153,53 @@ class AppEventsTracker {
|
|
|
125
153
|
* @param value - Additional value for the event (optional)
|
|
126
154
|
*/
|
|
127
155
|
static async saveAppEvent(targetId, eventType, ownerId, value) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
156
|
+
// Create the input payload with the base properties
|
|
157
|
+
const input = {
|
|
158
|
+
eventType,
|
|
159
|
+
targetId,
|
|
160
|
+
ownerId: ownerId || undefined,
|
|
161
|
+
value: value || undefined
|
|
162
|
+
};
|
|
163
|
+
// Add organization and profile IDs for non-authorized calls if they exist
|
|
164
|
+
if (!this.useClient) {
|
|
165
|
+
if (this.organizationId) {
|
|
166
|
+
input.organizationId = this.organizationId;
|
|
167
|
+
}
|
|
168
|
+
if (this.profileId) {
|
|
169
|
+
input.profileId = this.profileId;
|
|
170
|
+
}
|
|
131
171
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
172
|
+
// Choose between client and direct endpoint modes
|
|
173
|
+
if (this.useClient) {
|
|
174
|
+
if (!this.client) {
|
|
175
|
+
console.warn('An attempt to save app event without initializing GraphQL client detected');
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
// const mutation = `
|
|
179
|
+
// mutation TrackAppEvent($input: TrackAppEventInput!) {
|
|
180
|
+
// trackAppEvent(input: $input) {
|
|
181
|
+
// void
|
|
182
|
+
// }
|
|
183
|
+
// }
|
|
184
|
+
// `;
|
|
185
|
+
await this.client
|
|
186
|
+
.mutation(AnalyticsQuery, { input })
|
|
187
|
+
.toPromise();
|
|
136
188
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
eventType,
|
|
142
|
-
targetId,
|
|
143
|
-
ownerId,
|
|
144
|
-
value
|
|
189
|
+
else {
|
|
190
|
+
if (!this.gqlEndpoint) {
|
|
191
|
+
console.warn('An attempt to save app event without initializing GraphQL endpoint detected');
|
|
192
|
+
return;
|
|
145
193
|
}
|
|
146
|
-
|
|
194
|
+
// const query = `
|
|
195
|
+
// mutation TrackAppEvent($input: TrackAppEventInput!) {
|
|
196
|
+
// trackAppEvent(input: $input) {
|
|
197
|
+
// void
|
|
198
|
+
// }
|
|
199
|
+
// }
|
|
200
|
+
// `;
|
|
201
|
+
await this.queryGql(AnalyticsQuery, { input });
|
|
202
|
+
}
|
|
147
203
|
}
|
|
148
204
|
static queryGql = async (query, variables) => {
|
|
149
205
|
const response = await fetch(this.gqlEndpoint, {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export { StreamsContentApiClient } from './streams-content-api-client';
|
|
2
|
-
export { type StreamsApiClientModel } from './streams-api-client-model';
|
|
3
1
|
export * as Types from './types';
|
|
4
|
-
export { SiteAdCampaignsOrderBy, SiteContentListsOrderBy, SitePostsOrderBy } from './types';
|
|
5
2
|
export { AppEventsTracker, AppEventType, CommunityMessageStatus } from './analytics';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export { StreamsContentApiClient } from './streams-content-api-client.js';
|
|
2
1
|
import * as types from './types.js';
|
|
3
2
|
export { types as Types };
|
|
4
|
-
export { SiteAdCampaignsOrderBy, SiteContentListsOrderBy, SitePostsOrderBy } from './types.js';
|
|
5
3
|
export { AppEventsTracker } from './analytics/app-events-tracker.js';
|
|
6
4
|
export { AppEventType, CommunityMessageStatus } from './analytics/types.js';
|
package/dist/types.d.ts
CHANGED
|
@@ -2,789 +2,3 @@ export type GqlResponse<T> = {
|
|
|
2
2
|
data?: T;
|
|
3
3
|
errors?: unknown;
|
|
4
4
|
};
|
|
5
|
-
export type Ad = {
|
|
6
|
-
archivedAt?: Date;
|
|
7
|
-
archiverProfile?: Profile;
|
|
8
|
-
buttonText?: string;
|
|
9
|
-
buttonUrl?: string;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
creatorProfile: Profile;
|
|
12
|
-
description?: string;
|
|
13
|
-
editorProfile: Profile;
|
|
14
|
-
type: AdType;
|
|
15
|
-
id: string;
|
|
16
|
-
lastModifiedAt: Date;
|
|
17
|
-
media: MediaItem[];
|
|
18
|
-
name: string;
|
|
19
|
-
ownerProfile: Profile;
|
|
20
|
-
pricingPlan: AdPricingPlan;
|
|
21
|
-
publishedAt?: Date;
|
|
22
|
-
publisherProfile?: Profile;
|
|
23
|
-
status: AdStatus;
|
|
24
|
-
title: string;
|
|
25
|
-
};
|
|
26
|
-
export type AdCampaign = {
|
|
27
|
-
name: string;
|
|
28
|
-
from?: Date;
|
|
29
|
-
to?: Date;
|
|
30
|
-
adGroups: AdGroup[];
|
|
31
|
-
};
|
|
32
|
-
export type AdGroup = {
|
|
33
|
-
name: string;
|
|
34
|
-
adPlacement: AdPlacement;
|
|
35
|
-
ads: Ad[];
|
|
36
|
-
};
|
|
37
|
-
export type AdPlacement = {
|
|
38
|
-
name: string;
|
|
39
|
-
type: AdType;
|
|
40
|
-
};
|
|
41
|
-
export declare enum AdType {
|
|
42
|
-
BannerResponsive = "BANNER_RESPONSIVE",
|
|
43
|
-
MediaDialogPromotion = "MEDIA_DIALOG_PROMOTION",
|
|
44
|
-
Story = "STORY"
|
|
45
|
-
}
|
|
46
|
-
export declare enum AdPricingPlan {
|
|
47
|
-
Free = "FREE",
|
|
48
|
-
Paid = "PAID"
|
|
49
|
-
}
|
|
50
|
-
export declare enum AdStatus {
|
|
51
|
-
Archived = "ARCHIVED",
|
|
52
|
-
Draft = "DRAFT",
|
|
53
|
-
Published = "PUBLISHED"
|
|
54
|
-
}
|
|
55
|
-
export declare enum SiteAdCampaignsOrderBy {
|
|
56
|
-
Created = "CREATED",
|
|
57
|
-
Modified = "MODIFIED",
|
|
58
|
-
Name = "NAME"
|
|
59
|
-
}
|
|
60
|
-
export type SiteActiveCampaignsData = {
|
|
61
|
-
siteActiveCampaigns: PagedResultOfAdCampaign;
|
|
62
|
-
};
|
|
63
|
-
export type PagedResultOfAdCampaign = {
|
|
64
|
-
items: AdCampaign[];
|
|
65
|
-
};
|
|
66
|
-
export type ArticleData = {
|
|
67
|
-
siteArticle: Article;
|
|
68
|
-
};
|
|
69
|
-
export type Article = {
|
|
70
|
-
articleTemplate?: ArticleTemplate;
|
|
71
|
-
authorProfile: Profile;
|
|
72
|
-
createdAt: Date;
|
|
73
|
-
editorProfile: Profile;
|
|
74
|
-
id: string;
|
|
75
|
-
isSeen: boolean;
|
|
76
|
-
mainImage?: string;
|
|
77
|
-
name: string;
|
|
78
|
-
ownerProfile: Profile;
|
|
79
|
-
postId: string;
|
|
80
|
-
publishedAt?: Date;
|
|
81
|
-
publisherProfile?: Profile;
|
|
82
|
-
relatedPost?: Post;
|
|
83
|
-
sections: ArticleSection[];
|
|
84
|
-
sharesCount: number;
|
|
85
|
-
slug: string;
|
|
86
|
-
templateId?: string;
|
|
87
|
-
updatedAt: Date;
|
|
88
|
-
viewsCount: number;
|
|
89
|
-
};
|
|
90
|
-
export type ArticleMainImageArgs = {
|
|
91
|
-
scale?: ImageScale;
|
|
92
|
-
};
|
|
93
|
-
export type ArticleField = {
|
|
94
|
-
description?: string;
|
|
95
|
-
fieldData: ArticleFieldData;
|
|
96
|
-
id: string;
|
|
97
|
-
name: string;
|
|
98
|
-
styles?: ArticleFieldStyles | null;
|
|
99
|
-
};
|
|
100
|
-
export type ArticleFieldData = {
|
|
101
|
-
bylineData?: BylineFieldData;
|
|
102
|
-
imageData?: ImageFieldData;
|
|
103
|
-
mediaData?: MediaFieldData;
|
|
104
|
-
mediaGalleryData?: MediaGalleryFieldData;
|
|
105
|
-
richTextData?: RichTextFieldData;
|
|
106
|
-
textData?: TextFieldData;
|
|
107
|
-
type?: ArticleFieldType;
|
|
108
|
-
videoData?: VideoFieldData;
|
|
109
|
-
};
|
|
110
|
-
export type ArticleFieldStyles = {
|
|
111
|
-
marginTop: number | null;
|
|
112
|
-
marginBottom: number | null;
|
|
113
|
-
marginLeft: number | null;
|
|
114
|
-
marginRight: number | null;
|
|
115
|
-
};
|
|
116
|
-
export declare enum ArticleFieldType {
|
|
117
|
-
Byline = "BYLINE",
|
|
118
|
-
Image = "IMAGE",
|
|
119
|
-
Media = "MEDIA",
|
|
120
|
-
MediaGallery = "MEDIA_GALLERY",
|
|
121
|
-
RichText = "RICH_TEXT",
|
|
122
|
-
Text = "TEXT",
|
|
123
|
-
Video = "VIDEO"
|
|
124
|
-
}
|
|
125
|
-
export type ArticleLayout = {
|
|
126
|
-
fields: ArticleField[];
|
|
127
|
-
id: string;
|
|
128
|
-
styles?: ArticleLayoutStyles;
|
|
129
|
-
type: ArticleLayoutType;
|
|
130
|
-
};
|
|
131
|
-
export type ArticleLayoutStyles = {
|
|
132
|
-
paddingBottom?: number;
|
|
133
|
-
paddingLeft?: number;
|
|
134
|
-
paddingRight?: number;
|
|
135
|
-
paddingTop?: number;
|
|
136
|
-
};
|
|
137
|
-
export declare enum ArticleLayoutType {
|
|
138
|
-
Vertical = "VERTICAL"
|
|
139
|
-
}
|
|
140
|
-
export type ArticlePostData = {
|
|
141
|
-
article?: ArticlePostDataArticleArticleFromPostInfo;
|
|
142
|
-
articleId: string;
|
|
143
|
-
displayVariant?: DisplayVariant;
|
|
144
|
-
kicker?: string;
|
|
145
|
-
preferredMediaFormat: MediaFormat;
|
|
146
|
-
syncPostAndArticle: boolean;
|
|
147
|
-
title: string;
|
|
148
|
-
};
|
|
149
|
-
export type ArticlePostDataArticleArticleFromPostInfo = {
|
|
150
|
-
sections: ArticleSection[];
|
|
151
|
-
slug: string;
|
|
152
|
-
};
|
|
153
|
-
export type ArticleSection = {
|
|
154
|
-
id: string;
|
|
155
|
-
isContentEditable: boolean;
|
|
156
|
-
layouts: ArticleLayout[];
|
|
157
|
-
styles?: ArticleSectionStyles;
|
|
158
|
-
facts: string | null;
|
|
159
|
-
};
|
|
160
|
-
export type ArticleSectionStyles = {
|
|
161
|
-
paddingBottom?: number;
|
|
162
|
-
paddingLeft?: number;
|
|
163
|
-
paddingRight?: number;
|
|
164
|
-
paddingTop?: number;
|
|
165
|
-
};
|
|
166
|
-
export type ArticleTemplate = {
|
|
167
|
-
id: string;
|
|
168
|
-
name: string;
|
|
169
|
-
organizationId: string;
|
|
170
|
-
sections: ArticleSection[];
|
|
171
|
-
updatedAt: Date;
|
|
172
|
-
};
|
|
173
|
-
export type AudioPostData = {
|
|
174
|
-
preferredMediaFormat: MediaFormat;
|
|
175
|
-
text?: string;
|
|
176
|
-
};
|
|
177
|
-
export type Brand = {
|
|
178
|
-
banner: ScaledImageBlob;
|
|
179
|
-
createdAt: Date;
|
|
180
|
-
creatorProfile: Profile;
|
|
181
|
-
description?: string;
|
|
182
|
-
editorProfile: Profile;
|
|
183
|
-
id: string;
|
|
184
|
-
image: ScaledImageBlob;
|
|
185
|
-
isActive: boolean;
|
|
186
|
-
language: string;
|
|
187
|
-
lastModifiedAt: Date;
|
|
188
|
-
logo: ScaledImageBlob;
|
|
189
|
-
name: string;
|
|
190
|
-
ownerProfile: Profile;
|
|
191
|
-
shortIntro?: string;
|
|
192
|
-
website?: string;
|
|
193
|
-
};
|
|
194
|
-
export type BylineFieldData = {
|
|
195
|
-
authorName?: string;
|
|
196
|
-
};
|
|
197
|
-
export type ContentMediaItem = IMediaItem & {
|
|
198
|
-
blobId: string;
|
|
199
|
-
mediaPageTags?: MediaPageTagPosition[];
|
|
200
|
-
metadata: MediaItemMetadata;
|
|
201
|
-
productTags?: ProductTagPosition[];
|
|
202
|
-
thumbnailBlobId?: string;
|
|
203
|
-
thumbnailUrl: string | null;
|
|
204
|
-
type: MediaType;
|
|
205
|
-
url: string;
|
|
206
|
-
userTags?: UserTagPosition[];
|
|
207
|
-
};
|
|
208
|
-
export type ContentMediaItemThumbnailUrlArgs = {
|
|
209
|
-
scale?: ImageScale;
|
|
210
|
-
};
|
|
211
|
-
export type ContentMediaItemUrlArgs = {
|
|
212
|
-
scale?: ImageScale;
|
|
213
|
-
};
|
|
214
|
-
export type CtaButton = {
|
|
215
|
-
background: string;
|
|
216
|
-
border: string;
|
|
217
|
-
text: string;
|
|
218
|
-
textColor: string;
|
|
219
|
-
url: string;
|
|
220
|
-
};
|
|
221
|
-
export declare enum Currency {
|
|
222
|
-
Eur = "EUR",
|
|
223
|
-
Nok = "NOK",
|
|
224
|
-
Usd = "USD"
|
|
225
|
-
}
|
|
226
|
-
export type CursorOfSitePostsOrderByInput = {
|
|
227
|
-
sorting: SortingOfSitePostsOrderByInput;
|
|
228
|
-
};
|
|
229
|
-
export type CustomHoldbartFields = {
|
|
230
|
-
bestBefore?: Date;
|
|
231
|
-
pant?: string;
|
|
232
|
-
usp?: string;
|
|
233
|
-
usp2?: string;
|
|
234
|
-
};
|
|
235
|
-
export declare enum DisplayVariant {
|
|
236
|
-
Variant1 = "VARIANT1"
|
|
237
|
-
}
|
|
238
|
-
export type EventPostData = {
|
|
239
|
-
endDateTime?: Date;
|
|
240
|
-
location?: Location;
|
|
241
|
-
preferredMediaFormat: MediaFormat;
|
|
242
|
-
startDateTime: Date;
|
|
243
|
-
text?: string;
|
|
244
|
-
title?: string;
|
|
245
|
-
};
|
|
246
|
-
export declare enum GalleryFieldMode {
|
|
247
|
-
Gallery = "GALLERY",
|
|
248
|
-
Slider = "SLIDER"
|
|
249
|
-
}
|
|
250
|
-
export type IMediaItem = {
|
|
251
|
-
blobId: string;
|
|
252
|
-
metadata: MediaItemMetadata;
|
|
253
|
-
thumbnailBlobId?: string;
|
|
254
|
-
thumbnailUrl?: string;
|
|
255
|
-
type: MediaType;
|
|
256
|
-
url: string;
|
|
257
|
-
};
|
|
258
|
-
export type ImageFieldData = {
|
|
259
|
-
image?: MediaItem;
|
|
260
|
-
preferredMediaFormat: MediaFormat;
|
|
261
|
-
};
|
|
262
|
-
export declare enum ImageScale {
|
|
263
|
-
Big = "BIG",
|
|
264
|
-
Medium = "MEDIUM",
|
|
265
|
-
OriginalEncoded = "ORIGINAL_ENCODED",
|
|
266
|
-
Small = "SMALL"
|
|
267
|
-
}
|
|
268
|
-
export declare enum LayoutMode {
|
|
269
|
-
Horizontal = "HORIZONTAL",
|
|
270
|
-
Standard = "STANDARD"
|
|
271
|
-
}
|
|
272
|
-
export type LinkData = {
|
|
273
|
-
hideImage?: boolean;
|
|
274
|
-
host: string;
|
|
275
|
-
media?: MediaItem;
|
|
276
|
-
text?: string;
|
|
277
|
-
title?: string;
|
|
278
|
-
url: string;
|
|
279
|
-
};
|
|
280
|
-
export type LinkPostData = {
|
|
281
|
-
linkData: LinkData;
|
|
282
|
-
linkLayout: LayoutMode;
|
|
283
|
-
text?: string;
|
|
284
|
-
};
|
|
285
|
-
export type Location = {
|
|
286
|
-
latitude: number;
|
|
287
|
-
longitude: number;
|
|
288
|
-
name: string;
|
|
289
|
-
};
|
|
290
|
-
export type MediaFieldData = {
|
|
291
|
-
media?: MediaItem;
|
|
292
|
-
preferredMediaFormat: MediaFormat;
|
|
293
|
-
};
|
|
294
|
-
export declare enum MediaFormat {
|
|
295
|
-
W4H3 = "W4H3",
|
|
296
|
-
W16H9 = "W16H9"
|
|
297
|
-
}
|
|
298
|
-
export type MediaGalleryFieldData = {
|
|
299
|
-
galleryMode: GalleryFieldMode;
|
|
300
|
-
media?: MediaItem[];
|
|
301
|
-
preferredMediaFormat: MediaFormat;
|
|
302
|
-
};
|
|
303
|
-
export type MediaItem = IMediaItem & {
|
|
304
|
-
blobId: string;
|
|
305
|
-
metadata: MediaItemMetadata;
|
|
306
|
-
thumbnailBlobId?: string;
|
|
307
|
-
thumbnailUrl?: string;
|
|
308
|
-
type: MediaType;
|
|
309
|
-
url: string;
|
|
310
|
-
};
|
|
311
|
-
export type MediaItemThumbnailUrlArgs = {
|
|
312
|
-
scale?: ImageScale;
|
|
313
|
-
};
|
|
314
|
-
export type MediaItemUrlArgs = {
|
|
315
|
-
scale?: ImageScale;
|
|
316
|
-
};
|
|
317
|
-
export type MediaItemMetadata = {
|
|
318
|
-
durationSec?: number;
|
|
319
|
-
fileName?: string;
|
|
320
|
-
height: number;
|
|
321
|
-
width: number;
|
|
322
|
-
};
|
|
323
|
-
export type MediaPageTag = {
|
|
324
|
-
handle: string;
|
|
325
|
-
id: string;
|
|
326
|
-
image?: string;
|
|
327
|
-
name: string;
|
|
328
|
-
};
|
|
329
|
-
export type MediaPageTagPosition = TagPosition & {
|
|
330
|
-
itemId: string;
|
|
331
|
-
leftPCT: number;
|
|
332
|
-
mediaPage?: MediaPageTag;
|
|
333
|
-
topPCT: number;
|
|
334
|
-
};
|
|
335
|
-
export type MediaPostData = {
|
|
336
|
-
ctaButton?: CtaButton;
|
|
337
|
-
preferredMediaFormat: MediaFormat;
|
|
338
|
-
text?: string;
|
|
339
|
-
};
|
|
340
|
-
export declare enum MediaType {
|
|
341
|
-
Audio = "AUDIO",
|
|
342
|
-
Image = "IMAGE",
|
|
343
|
-
ShortVideo = "SHORT_VIDEO",
|
|
344
|
-
Video = "VIDEO"
|
|
345
|
-
}
|
|
346
|
-
export type MomentInfo = {
|
|
347
|
-
author: Profile;
|
|
348
|
-
cover: string;
|
|
349
|
-
displayDate: Date;
|
|
350
|
-
id: string;
|
|
351
|
-
isSeen: boolean;
|
|
352
|
-
text?: string;
|
|
353
|
-
};
|
|
354
|
-
export declare enum MomentLifetime {
|
|
355
|
-
Day = "DAY",
|
|
356
|
-
Week = "WEEK"
|
|
357
|
-
}
|
|
358
|
-
export type MomentPostData = {
|
|
359
|
-
lifetime: MomentLifetime;
|
|
360
|
-
text?: string;
|
|
361
|
-
};
|
|
362
|
-
export type MomentsContainerInfo = {
|
|
363
|
-
hideIfNoMoments: boolean;
|
|
364
|
-
image?: ScaledImageBlob;
|
|
365
|
-
momentsEnabled: boolean;
|
|
366
|
-
primaryColor?: string;
|
|
367
|
-
targetId: string;
|
|
368
|
-
targetType: PublishTargetType;
|
|
369
|
-
useImageAsMomentsCover: boolean;
|
|
370
|
-
};
|
|
371
|
-
export type MomentsInfo = {
|
|
372
|
-
containerInfo: MomentsContainerInfo;
|
|
373
|
-
moments: MomentInfo[];
|
|
374
|
-
unseenMomentsCount: number;
|
|
375
|
-
};
|
|
376
|
-
export type CursorResultOfPost = {
|
|
377
|
-
continuationToken?: string;
|
|
378
|
-
items: Post[];
|
|
379
|
-
};
|
|
380
|
-
export type Post = {
|
|
381
|
-
ad?: Ad;
|
|
382
|
-
allProducts: Product[];
|
|
383
|
-
authorProfile: Profile;
|
|
384
|
-
categories?: PostCategory[];
|
|
385
|
-
createdAt: Date;
|
|
386
|
-
createdBy: string;
|
|
387
|
-
displayDate: Date;
|
|
388
|
-
editorProfile: Profile;
|
|
389
|
-
enableSocialInteractions: boolean;
|
|
390
|
-
expiresOn?: Date;
|
|
391
|
-
generatedName: string;
|
|
392
|
-
id: string;
|
|
393
|
-
isPinned: boolean;
|
|
394
|
-
isSeen: boolean;
|
|
395
|
-
language: string;
|
|
396
|
-
linkedProducts: Product[];
|
|
397
|
-
mainImage?: string;
|
|
398
|
-
ownerProfile: Profile;
|
|
399
|
-
postData: PostData;
|
|
400
|
-
postHeading: PostHeading;
|
|
401
|
-
postProfile: Profile;
|
|
402
|
-
postType: PostType;
|
|
403
|
-
postedAs: PostedAs;
|
|
404
|
-
publishedTo?: PublishTarget;
|
|
405
|
-
scheduledOn?: Date;
|
|
406
|
-
sharesCount: number;
|
|
407
|
-
showInFeed: boolean;
|
|
408
|
-
social?: PostSocialInteractions;
|
|
409
|
-
status: Status;
|
|
410
|
-
taggedProducts?: Product;
|
|
411
|
-
updatedAt: Date;
|
|
412
|
-
updatedBy: string;
|
|
413
|
-
userReaction?: Reaction;
|
|
414
|
-
viewsCount: number;
|
|
415
|
-
};
|
|
416
|
-
export type PostMainImageArgs = {
|
|
417
|
-
scale?: ImageScale;
|
|
418
|
-
};
|
|
419
|
-
export declare enum PostCategory {
|
|
420
|
-
Education = "EDUCATION",
|
|
421
|
-
Entertainment = "ENTERTAINMENT",
|
|
422
|
-
Events = "EVENTS",
|
|
423
|
-
News = "NEWS",
|
|
424
|
-
Shopping = "SHOPPING",
|
|
425
|
-
Sports = "SPORTS"
|
|
426
|
-
}
|
|
427
|
-
export type PostData = {
|
|
428
|
-
articleData?: ArticlePostData;
|
|
429
|
-
audioData?: AudioPostData;
|
|
430
|
-
eventData?: EventPostData;
|
|
431
|
-
linkData?: LinkPostData;
|
|
432
|
-
media: ContentMediaItem[];
|
|
433
|
-
mediaData?: MediaPostData;
|
|
434
|
-
momentData?: MomentPostData;
|
|
435
|
-
postType: PostType;
|
|
436
|
-
shortVideoData?: ShortVideoPostData;
|
|
437
|
-
textData?: TextPostData;
|
|
438
|
-
videoData?: VideoPostData;
|
|
439
|
-
};
|
|
440
|
-
export type PostHeading = {
|
|
441
|
-
networkData?: PostHeadingNetworkTargetData;
|
|
442
|
-
postDisplayDate: string;
|
|
443
|
-
postViewsCount: number;
|
|
444
|
-
sourceHandle: string;
|
|
445
|
-
sourceId: string;
|
|
446
|
-
sourceImage?: string;
|
|
447
|
-
sourceIsRemoved: boolean;
|
|
448
|
-
sourceName: string;
|
|
449
|
-
sourceType: PostSourceType;
|
|
450
|
-
wasModified: boolean;
|
|
451
|
-
};
|
|
452
|
-
export type PostHeadingNetworkTargetData = {
|
|
453
|
-
momentsInfo: MomentsInfo;
|
|
454
|
-
primaryColor?: string;
|
|
455
|
-
};
|
|
456
|
-
export type PostSocialInteractions = {
|
|
457
|
-
commentsCount: number;
|
|
458
|
-
reactions: ReactionsCount;
|
|
459
|
-
sharesCount: number;
|
|
460
|
-
};
|
|
461
|
-
export declare enum PostSourceType {
|
|
462
|
-
Channel = "CHANNEL",
|
|
463
|
-
Group = "GROUP",
|
|
464
|
-
MediaPage = "MEDIA_PAGE",
|
|
465
|
-
Organization = "ORGANIZATION",
|
|
466
|
-
UserProfile = "USER_PROFILE"
|
|
467
|
-
}
|
|
468
|
-
export declare enum PostType {
|
|
469
|
-
Article = "ARTICLE",
|
|
470
|
-
Audio = "AUDIO",
|
|
471
|
-
Event = "EVENT",
|
|
472
|
-
Link = "LINK",
|
|
473
|
-
Media = "MEDIA",
|
|
474
|
-
Moment = "MOMENT",
|
|
475
|
-
ShortVideo = "SHORT_VIDEO",
|
|
476
|
-
Text = "TEXT",
|
|
477
|
-
Video = "VIDEO"
|
|
478
|
-
}
|
|
479
|
-
export declare enum PostedAs {
|
|
480
|
-
AuthorProfile = "AUTHOR_PROFILE",
|
|
481
|
-
OwnerProfile = "OWNER_PROFILE"
|
|
482
|
-
}
|
|
483
|
-
export type PriceAndAvailability = {
|
|
484
|
-
availability: ProductAvailability;
|
|
485
|
-
availabilityDate?: Date;
|
|
486
|
-
availableQuantity?: number;
|
|
487
|
-
costOfGoodsSold?: number;
|
|
488
|
-
currency: Currency;
|
|
489
|
-
customMeasureUnit?: string;
|
|
490
|
-
measureDimension: number;
|
|
491
|
-
measureUnit: PricingMeasureUnit;
|
|
492
|
-
price: number;
|
|
493
|
-
productSalePrices?: ProductSalePrice[];
|
|
494
|
-
};
|
|
495
|
-
export declare enum PricingMeasureUnit {
|
|
496
|
-
Other = "OTHER",
|
|
497
|
-
PerBag = "PER_BAG",
|
|
498
|
-
PerBox = "PER_BOX",
|
|
499
|
-
PerBucket = "PER_BUCKET",
|
|
500
|
-
PerCentiliter = "PER_CENTILITER",
|
|
501
|
-
PerCentimeter = "PER_CENTIMETER",
|
|
502
|
-
PerCubicMeter = "PER_CUBIC_METER",
|
|
503
|
-
PerFluidOunce = "PER_FLUID_OUNCE",
|
|
504
|
-
PerFoot = "PER_FOOT",
|
|
505
|
-
PerGallon = "PER_GALLON",
|
|
506
|
-
PerGram = "PER_GRAM",
|
|
507
|
-
PerInch = "PER_INCH",
|
|
508
|
-
PerKilogram = "PER_KILOGRAM",
|
|
509
|
-
PerLiter = "PER_LITER",
|
|
510
|
-
PerMeter = "PER_METER",
|
|
511
|
-
PerMilligram = "PER_MILLIGRAM",
|
|
512
|
-
PerMilliliter = "PER_MILLILITER",
|
|
513
|
-
PerOunce = "PER_OUNCE",
|
|
514
|
-
PerPackage = "PER_PACKAGE",
|
|
515
|
-
PerPair = "PER_PAIR",
|
|
516
|
-
PerPint = "PER_PINT",
|
|
517
|
-
PerPound = "PER_POUND",
|
|
518
|
-
PerQuart = "PER_QUART",
|
|
519
|
-
PerRoll = "PER_ROLL",
|
|
520
|
-
PerRunningMeter = "PER_RUNNING_METER",
|
|
521
|
-
PerSet = "PER_SET",
|
|
522
|
-
PerSquareFoot = "PER_SQUARE_FOOT",
|
|
523
|
-
PerSquareMeter = "PER_SQUARE_METER",
|
|
524
|
-
PerTube = "PER_TUBE",
|
|
525
|
-
PerUnit = "PER_UNIT",
|
|
526
|
-
PerYard = "PER_YARD"
|
|
527
|
-
}
|
|
528
|
-
export type Product = {
|
|
529
|
-
annotationIds: string[];
|
|
530
|
-
annotations: ProductAnnotation[];
|
|
531
|
-
archivedAt?: Date;
|
|
532
|
-
archiverProfile?: Profile;
|
|
533
|
-
associatedLists?: ProductList[];
|
|
534
|
-
associatedProductListIds: string[];
|
|
535
|
-
brand?: Brand;
|
|
536
|
-
brandId?: string;
|
|
537
|
-
categoryId?: string;
|
|
538
|
-
createdAt: Date;
|
|
539
|
-
creatorProfile: Profile;
|
|
540
|
-
customHoldbartFields?: CustomHoldbartFields;
|
|
541
|
-
description?: string;
|
|
542
|
-
editorProfile: Profile;
|
|
543
|
-
expiresOn?: Date;
|
|
544
|
-
externalId?: string;
|
|
545
|
-
handle: string;
|
|
546
|
-
id: string;
|
|
547
|
-
language: string;
|
|
548
|
-
lastModifiedAt: Date;
|
|
549
|
-
link?: string;
|
|
550
|
-
media: MediaItem[];
|
|
551
|
-
notes?: string;
|
|
552
|
-
ownerProfile: Profile;
|
|
553
|
-
priceAndAvailability: PriceAndAvailability;
|
|
554
|
-
publishedAt?: Date;
|
|
555
|
-
publisherProfile?: Profile;
|
|
556
|
-
shortDescription?: string;
|
|
557
|
-
shortTitle?: string;
|
|
558
|
-
sku?: string;
|
|
559
|
-
status: ProductStatus;
|
|
560
|
-
subCategoryId?: string;
|
|
561
|
-
title: string;
|
|
562
|
-
};
|
|
563
|
-
export type ProductAnnotation = {
|
|
564
|
-
annotationData: ProductAnnotationData;
|
|
565
|
-
id: string;
|
|
566
|
-
name: string;
|
|
567
|
-
ownerProfile: Profile;
|
|
568
|
-
position: ProductAnnotationPosition;
|
|
569
|
-
transitionXPct: number;
|
|
570
|
-
transitionYPct: number;
|
|
571
|
-
widthPct: number;
|
|
572
|
-
};
|
|
573
|
-
export type ProductAnnotationData = {
|
|
574
|
-
svg?: SvgProductAnnotationData;
|
|
575
|
-
type: ProductAnnotationType;
|
|
576
|
-
};
|
|
577
|
-
export declare enum ProductAnnotationPosition {
|
|
578
|
-
BottomLeft = "BOTTOM_LEFT",
|
|
579
|
-
BottomRight = "BOTTOM_RIGHT",
|
|
580
|
-
TopLeft = "TOP_LEFT",
|
|
581
|
-
TopRight = "TOP_RIGHT"
|
|
582
|
-
}
|
|
583
|
-
export declare enum ProductAnnotationType {
|
|
584
|
-
Svg = "SVG"
|
|
585
|
-
}
|
|
586
|
-
export declare enum ProductAvailability {
|
|
587
|
-
Backorder = "BACKORDER",
|
|
588
|
-
InStock = "IN_STOCK",
|
|
589
|
-
OutOfStock = "OUT_OF_STOCK",
|
|
590
|
-
Preorder = "PREORDER"
|
|
591
|
-
}
|
|
592
|
-
export type ProductList = {
|
|
593
|
-
createdAt: Date;
|
|
594
|
-
creatorProfile: Profile;
|
|
595
|
-
description?: string;
|
|
596
|
-
editorProfile: Profile;
|
|
597
|
-
id: string;
|
|
598
|
-
lastModifiedAt: Date;
|
|
599
|
-
name: string;
|
|
600
|
-
ownerProfile: Profile;
|
|
601
|
-
};
|
|
602
|
-
export type ProductSalePrice = {
|
|
603
|
-
salePrice: number;
|
|
604
|
-
salePriceEffectiveDateFrom?: Date;
|
|
605
|
-
salePriceEffectiveDateTo?: Date;
|
|
606
|
-
};
|
|
607
|
-
export declare enum ProductStatus {
|
|
608
|
-
Archived = "ARCHIVED",
|
|
609
|
-
Draft = "DRAFT",
|
|
610
|
-
Published = "PUBLISHED"
|
|
611
|
-
}
|
|
612
|
-
export type ProductTag = {
|
|
613
|
-
currency: Currency;
|
|
614
|
-
id: string;
|
|
615
|
-
image?: string;
|
|
616
|
-
name: string;
|
|
617
|
-
price: number;
|
|
618
|
-
};
|
|
619
|
-
export type ProductTagPosition = TagPosition & {
|
|
620
|
-
itemId: string;
|
|
621
|
-
leftPCT: number;
|
|
622
|
-
product?: ProductTag;
|
|
623
|
-
topPCT: number;
|
|
624
|
-
};
|
|
625
|
-
export type Profile = {
|
|
626
|
-
__typename?: 'Profile';
|
|
627
|
-
handle: string;
|
|
628
|
-
id: string;
|
|
629
|
-
image?: string;
|
|
630
|
-
isRemoved: boolean;
|
|
631
|
-
name: string;
|
|
632
|
-
type: ProfileType;
|
|
633
|
-
};
|
|
634
|
-
export declare enum ProfileType {
|
|
635
|
-
Channel = "CHANNEL",
|
|
636
|
-
Group = "GROUP",
|
|
637
|
-
Organization = "ORGANIZATION",
|
|
638
|
-
User = "USER"
|
|
639
|
-
}
|
|
640
|
-
export type PublishTarget = {
|
|
641
|
-
enableMoments: boolean;
|
|
642
|
-
enablePostsSocialInteractionsByDefault: boolean;
|
|
643
|
-
id: string;
|
|
644
|
-
image?: string;
|
|
645
|
-
isRemoved: boolean;
|
|
646
|
-
momentsLifetime: MomentLifetime;
|
|
647
|
-
name: string;
|
|
648
|
-
primaryColor?: string;
|
|
649
|
-
targetContentOwnerProfile?: Profile;
|
|
650
|
-
type: PublishTargetType;
|
|
651
|
-
};
|
|
652
|
-
export declare enum PublishTargetType {
|
|
653
|
-
Channel = "CHANNEL",
|
|
654
|
-
Group = "GROUP",
|
|
655
|
-
MediaPage = "MEDIA_PAGE",
|
|
656
|
-
User = "USER"
|
|
657
|
-
}
|
|
658
|
-
export type QuerySiteArticleArgs = {
|
|
659
|
-
filter: SiteArticleFilterInput;
|
|
660
|
-
};
|
|
661
|
-
export type QuerySitePostsArgs = {
|
|
662
|
-
cursor: CursorOfSitePostsOrderByInput;
|
|
663
|
-
filter: SitePostsFilterInput;
|
|
664
|
-
};
|
|
665
|
-
export declare enum ReactableType {
|
|
666
|
-
ChatMessage = "CHAT_MESSAGE",
|
|
667
|
-
Comment = "COMMENT",
|
|
668
|
-
CommunityMessage = "COMMUNITY_MESSAGE",
|
|
669
|
-
Post = "POST"
|
|
670
|
-
}
|
|
671
|
-
export type Reaction = {
|
|
672
|
-
code: string;
|
|
673
|
-
id: string;
|
|
674
|
-
reactableId: string;
|
|
675
|
-
reactableType: ReactableType;
|
|
676
|
-
userProfile: Profile;
|
|
677
|
-
};
|
|
678
|
-
export type ReactionCodeCount = {
|
|
679
|
-
code: string;
|
|
680
|
-
count: number;
|
|
681
|
-
};
|
|
682
|
-
export type ReactionsCount = {
|
|
683
|
-
perCode: ReactionCodeCount[];
|
|
684
|
-
total: number;
|
|
685
|
-
};
|
|
686
|
-
export type RichTextFieldData = {
|
|
687
|
-
text?: string;
|
|
688
|
-
textSize: number;
|
|
689
|
-
};
|
|
690
|
-
export type ScaledImageBlob = {
|
|
691
|
-
id: string;
|
|
692
|
-
url: string;
|
|
693
|
-
};
|
|
694
|
-
export type ScaledImageBlobUrlArgs = {
|
|
695
|
-
scale?: ImageScale;
|
|
696
|
-
};
|
|
697
|
-
export type ShortVideoPostData = {
|
|
698
|
-
text?: string;
|
|
699
|
-
};
|
|
700
|
-
export type SiteArticleFilterInput = {
|
|
701
|
-
organizationId: string;
|
|
702
|
-
slug: string;
|
|
703
|
-
};
|
|
704
|
-
export type SitePostsData = {
|
|
705
|
-
sitePosts: CursorResultOfPost;
|
|
706
|
-
};
|
|
707
|
-
export type SitePostsFilterInput = {
|
|
708
|
-
excludeIds?: string[];
|
|
709
|
-
ids?: string[];
|
|
710
|
-
organizationId?: string;
|
|
711
|
-
postTypes?: PostType[];
|
|
712
|
-
search?: string;
|
|
713
|
-
statuses?: Status[];
|
|
714
|
-
};
|
|
715
|
-
export declare enum SitePostsOrderBy {
|
|
716
|
-
Published = "PUBLISHED"
|
|
717
|
-
}
|
|
718
|
-
export type SortingOfSitePostsOrderByInput = {
|
|
719
|
-
ascendingOrder?: boolean;
|
|
720
|
-
orderBy: SitePostsOrderBy;
|
|
721
|
-
};
|
|
722
|
-
export declare enum Status {
|
|
723
|
-
Archived = "ARCHIVED",
|
|
724
|
-
Draft = "DRAFT",
|
|
725
|
-
Published = "PUBLISHED",
|
|
726
|
-
Scheduled = "SCHEDULED"
|
|
727
|
-
}
|
|
728
|
-
export type SvgProductAnnotationData = {
|
|
729
|
-
imageUrl: string;
|
|
730
|
-
};
|
|
731
|
-
export type TagPosition = {
|
|
732
|
-
itemId: string;
|
|
733
|
-
leftPCT: number;
|
|
734
|
-
topPCT: number;
|
|
735
|
-
};
|
|
736
|
-
export type TextFieldData = {
|
|
737
|
-
text?: string;
|
|
738
|
-
textMode: TextFieldMode;
|
|
739
|
-
textSize: number;
|
|
740
|
-
textWeight: TextFieldWeight;
|
|
741
|
-
};
|
|
742
|
-
export declare enum TextFieldMode {
|
|
743
|
-
Multiline = "MULTILINE",
|
|
744
|
-
SingleLine = "SINGLE_LINE"
|
|
745
|
-
}
|
|
746
|
-
export declare enum TextFieldWeight {
|
|
747
|
-
Bold = "BOLD",
|
|
748
|
-
Normal = "NORMAL",
|
|
749
|
-
SemiBold = "SEMI_BOLD"
|
|
750
|
-
}
|
|
751
|
-
export type TextPostData = {
|
|
752
|
-
ctaButton?: CtaButton;
|
|
753
|
-
text: string;
|
|
754
|
-
};
|
|
755
|
-
export type UserTag = {
|
|
756
|
-
id: string;
|
|
757
|
-
image: string;
|
|
758
|
-
name: string;
|
|
759
|
-
username?: string;
|
|
760
|
-
};
|
|
761
|
-
export type UserTagPosition = TagPosition & {
|
|
762
|
-
itemId: string;
|
|
763
|
-
leftPCT: number;
|
|
764
|
-
topPCT: number;
|
|
765
|
-
user?: UserTag;
|
|
766
|
-
};
|
|
767
|
-
export type VideoFieldData = {
|
|
768
|
-
preferredMediaFormat: MediaFormat;
|
|
769
|
-
video?: MediaItem;
|
|
770
|
-
};
|
|
771
|
-
export type VideoPostData = {
|
|
772
|
-
preferredMediaFormat: MediaFormat;
|
|
773
|
-
text?: string;
|
|
774
|
-
title?: string;
|
|
775
|
-
viewsCount?: number;
|
|
776
|
-
};
|
|
777
|
-
export declare enum SiteContentListsOrderBy {
|
|
778
|
-
Name = "NAME"
|
|
779
|
-
}
|
|
780
|
-
export type SiteContentListsData = {
|
|
781
|
-
siteContentLists: CursorResultOfContentList;
|
|
782
|
-
};
|
|
783
|
-
export type CursorResultOfContentList = {
|
|
784
|
-
continuationToken?: string;
|
|
785
|
-
items: ContentList[];
|
|
786
|
-
};
|
|
787
|
-
export type ContentList = {
|
|
788
|
-
id: string;
|
|
789
|
-
name: string;
|
|
790
|
-
};
|
package/dist/types.js
CHANGED
|
@@ -1,222 +1 @@
|
|
|
1
|
-
var AdType;
|
|
2
|
-
(function (AdType) {
|
|
3
|
-
AdType["BannerResponsive"] = "BANNER_RESPONSIVE";
|
|
4
|
-
AdType["MediaDialogPromotion"] = "MEDIA_DIALOG_PROMOTION";
|
|
5
|
-
AdType["Story"] = "STORY";
|
|
6
|
-
})(AdType || (AdType = {}));
|
|
7
|
-
var AdPricingPlan;
|
|
8
|
-
(function (AdPricingPlan) {
|
|
9
|
-
AdPricingPlan["Free"] = "FREE";
|
|
10
|
-
AdPricingPlan["Paid"] = "PAID";
|
|
11
|
-
})(AdPricingPlan || (AdPricingPlan = {}));
|
|
12
|
-
var AdStatus;
|
|
13
|
-
(function (AdStatus) {
|
|
14
|
-
AdStatus["Archived"] = "ARCHIVED";
|
|
15
|
-
AdStatus["Draft"] = "DRAFT";
|
|
16
|
-
AdStatus["Published"] = "PUBLISHED";
|
|
17
|
-
})(AdStatus || (AdStatus = {}));
|
|
18
|
-
var SiteAdCampaignsOrderBy;
|
|
19
|
-
(function (SiteAdCampaignsOrderBy) {
|
|
20
|
-
SiteAdCampaignsOrderBy["Created"] = "CREATED";
|
|
21
|
-
SiteAdCampaignsOrderBy["Modified"] = "MODIFIED";
|
|
22
|
-
SiteAdCampaignsOrderBy["Name"] = "NAME";
|
|
23
|
-
})(SiteAdCampaignsOrderBy || (SiteAdCampaignsOrderBy = {}));
|
|
24
|
-
var ArticleFieldType;
|
|
25
|
-
(function (ArticleFieldType) {
|
|
26
|
-
ArticleFieldType["Byline"] = "BYLINE";
|
|
27
|
-
ArticleFieldType["Image"] = "IMAGE";
|
|
28
|
-
ArticleFieldType["Media"] = "MEDIA";
|
|
29
|
-
ArticleFieldType["MediaGallery"] = "MEDIA_GALLERY";
|
|
30
|
-
ArticleFieldType["RichText"] = "RICH_TEXT";
|
|
31
|
-
ArticleFieldType["Text"] = "TEXT";
|
|
32
|
-
ArticleFieldType["Video"] = "VIDEO";
|
|
33
|
-
})(ArticleFieldType || (ArticleFieldType = {}));
|
|
34
|
-
var ArticleLayoutType;
|
|
35
|
-
(function (ArticleLayoutType) {
|
|
36
|
-
ArticleLayoutType["Vertical"] = "VERTICAL";
|
|
37
|
-
})(ArticleLayoutType || (ArticleLayoutType = {}));
|
|
38
|
-
var Currency;
|
|
39
|
-
(function (Currency) {
|
|
40
|
-
Currency["Eur"] = "EUR";
|
|
41
|
-
Currency["Nok"] = "NOK";
|
|
42
|
-
Currency["Usd"] = "USD";
|
|
43
|
-
})(Currency || (Currency = {}));
|
|
44
|
-
var DisplayVariant;
|
|
45
|
-
(function (DisplayVariant) {
|
|
46
|
-
DisplayVariant["Variant1"] = "VARIANT1";
|
|
47
|
-
})(DisplayVariant || (DisplayVariant = {}));
|
|
48
|
-
var GalleryFieldMode;
|
|
49
|
-
(function (GalleryFieldMode) {
|
|
50
|
-
GalleryFieldMode["Gallery"] = "GALLERY";
|
|
51
|
-
GalleryFieldMode["Slider"] = "SLIDER";
|
|
52
|
-
})(GalleryFieldMode || (GalleryFieldMode = {}));
|
|
53
|
-
var ImageScale;
|
|
54
|
-
(function (ImageScale) {
|
|
55
|
-
ImageScale["Big"] = "BIG";
|
|
56
|
-
ImageScale["Medium"] = "MEDIUM";
|
|
57
|
-
ImageScale["OriginalEncoded"] = "ORIGINAL_ENCODED";
|
|
58
|
-
ImageScale["Small"] = "SMALL";
|
|
59
|
-
})(ImageScale || (ImageScale = {}));
|
|
60
|
-
var LayoutMode;
|
|
61
|
-
(function (LayoutMode) {
|
|
62
|
-
LayoutMode["Horizontal"] = "HORIZONTAL";
|
|
63
|
-
LayoutMode["Standard"] = "STANDARD";
|
|
64
|
-
})(LayoutMode || (LayoutMode = {}));
|
|
65
|
-
var MediaFormat;
|
|
66
|
-
(function (MediaFormat) {
|
|
67
|
-
MediaFormat["W4H3"] = "W4H3";
|
|
68
|
-
MediaFormat["W16H9"] = "W16H9";
|
|
69
|
-
})(MediaFormat || (MediaFormat = {}));
|
|
70
|
-
var MediaType;
|
|
71
|
-
(function (MediaType) {
|
|
72
|
-
MediaType["Audio"] = "AUDIO";
|
|
73
|
-
MediaType["Image"] = "IMAGE";
|
|
74
|
-
MediaType["ShortVideo"] = "SHORT_VIDEO";
|
|
75
|
-
MediaType["Video"] = "VIDEO";
|
|
76
|
-
})(MediaType || (MediaType = {}));
|
|
77
|
-
var MomentLifetime;
|
|
78
|
-
(function (MomentLifetime) {
|
|
79
|
-
MomentLifetime["Day"] = "DAY";
|
|
80
|
-
MomentLifetime["Week"] = "WEEK";
|
|
81
|
-
})(MomentLifetime || (MomentLifetime = {}));
|
|
82
|
-
var PostCategory;
|
|
83
|
-
(function (PostCategory) {
|
|
84
|
-
PostCategory["Education"] = "EDUCATION";
|
|
85
|
-
PostCategory["Entertainment"] = "ENTERTAINMENT";
|
|
86
|
-
PostCategory["Events"] = "EVENTS";
|
|
87
|
-
PostCategory["News"] = "NEWS";
|
|
88
|
-
PostCategory["Shopping"] = "SHOPPING";
|
|
89
|
-
PostCategory["Sports"] = "SPORTS";
|
|
90
|
-
})(PostCategory || (PostCategory = {}));
|
|
91
|
-
var PostSourceType;
|
|
92
|
-
(function (PostSourceType) {
|
|
93
|
-
PostSourceType["Channel"] = "CHANNEL";
|
|
94
|
-
PostSourceType["Group"] = "GROUP";
|
|
95
|
-
PostSourceType["MediaPage"] = "MEDIA_PAGE";
|
|
96
|
-
PostSourceType["Organization"] = "ORGANIZATION";
|
|
97
|
-
PostSourceType["UserProfile"] = "USER_PROFILE";
|
|
98
|
-
})(PostSourceType || (PostSourceType = {}));
|
|
99
|
-
var PostType;
|
|
100
|
-
(function (PostType) {
|
|
101
|
-
PostType["Article"] = "ARTICLE";
|
|
102
|
-
PostType["Audio"] = "AUDIO";
|
|
103
|
-
PostType["Event"] = "EVENT";
|
|
104
|
-
PostType["Link"] = "LINK";
|
|
105
|
-
PostType["Media"] = "MEDIA";
|
|
106
|
-
PostType["Moment"] = "MOMENT";
|
|
107
|
-
PostType["ShortVideo"] = "SHORT_VIDEO";
|
|
108
|
-
PostType["Text"] = "TEXT";
|
|
109
|
-
PostType["Video"] = "VIDEO";
|
|
110
|
-
})(PostType || (PostType = {}));
|
|
111
|
-
var PostedAs;
|
|
112
|
-
(function (PostedAs) {
|
|
113
|
-
PostedAs["AuthorProfile"] = "AUTHOR_PROFILE";
|
|
114
|
-
PostedAs["OwnerProfile"] = "OWNER_PROFILE";
|
|
115
|
-
})(PostedAs || (PostedAs = {}));
|
|
116
|
-
var PricingMeasureUnit;
|
|
117
|
-
(function (PricingMeasureUnit) {
|
|
118
|
-
PricingMeasureUnit["Other"] = "OTHER";
|
|
119
|
-
PricingMeasureUnit["PerBag"] = "PER_BAG";
|
|
120
|
-
PricingMeasureUnit["PerBox"] = "PER_BOX";
|
|
121
|
-
PricingMeasureUnit["PerBucket"] = "PER_BUCKET";
|
|
122
|
-
PricingMeasureUnit["PerCentiliter"] = "PER_CENTILITER";
|
|
123
|
-
PricingMeasureUnit["PerCentimeter"] = "PER_CENTIMETER";
|
|
124
|
-
PricingMeasureUnit["PerCubicMeter"] = "PER_CUBIC_METER";
|
|
125
|
-
PricingMeasureUnit["PerFluidOunce"] = "PER_FLUID_OUNCE";
|
|
126
|
-
PricingMeasureUnit["PerFoot"] = "PER_FOOT";
|
|
127
|
-
PricingMeasureUnit["PerGallon"] = "PER_GALLON";
|
|
128
|
-
PricingMeasureUnit["PerGram"] = "PER_GRAM";
|
|
129
|
-
PricingMeasureUnit["PerInch"] = "PER_INCH";
|
|
130
|
-
PricingMeasureUnit["PerKilogram"] = "PER_KILOGRAM";
|
|
131
|
-
PricingMeasureUnit["PerLiter"] = "PER_LITER";
|
|
132
|
-
PricingMeasureUnit["PerMeter"] = "PER_METER";
|
|
133
|
-
PricingMeasureUnit["PerMilligram"] = "PER_MILLIGRAM";
|
|
134
|
-
PricingMeasureUnit["PerMilliliter"] = "PER_MILLILITER";
|
|
135
|
-
PricingMeasureUnit["PerOunce"] = "PER_OUNCE";
|
|
136
|
-
PricingMeasureUnit["PerPackage"] = "PER_PACKAGE";
|
|
137
|
-
PricingMeasureUnit["PerPair"] = "PER_PAIR";
|
|
138
|
-
PricingMeasureUnit["PerPint"] = "PER_PINT";
|
|
139
|
-
PricingMeasureUnit["PerPound"] = "PER_POUND";
|
|
140
|
-
PricingMeasureUnit["PerQuart"] = "PER_QUART";
|
|
141
|
-
PricingMeasureUnit["PerRoll"] = "PER_ROLL";
|
|
142
|
-
PricingMeasureUnit["PerRunningMeter"] = "PER_RUNNING_METER";
|
|
143
|
-
PricingMeasureUnit["PerSet"] = "PER_SET";
|
|
144
|
-
PricingMeasureUnit["PerSquareFoot"] = "PER_SQUARE_FOOT";
|
|
145
|
-
PricingMeasureUnit["PerSquareMeter"] = "PER_SQUARE_METER";
|
|
146
|
-
PricingMeasureUnit["PerTube"] = "PER_TUBE";
|
|
147
|
-
PricingMeasureUnit["PerUnit"] = "PER_UNIT";
|
|
148
|
-
PricingMeasureUnit["PerYard"] = "PER_YARD";
|
|
149
|
-
})(PricingMeasureUnit || (PricingMeasureUnit = {}));
|
|
150
|
-
var ProductAnnotationPosition;
|
|
151
|
-
(function (ProductAnnotationPosition) {
|
|
152
|
-
ProductAnnotationPosition["BottomLeft"] = "BOTTOM_LEFT";
|
|
153
|
-
ProductAnnotationPosition["BottomRight"] = "BOTTOM_RIGHT";
|
|
154
|
-
ProductAnnotationPosition["TopLeft"] = "TOP_LEFT";
|
|
155
|
-
ProductAnnotationPosition["TopRight"] = "TOP_RIGHT";
|
|
156
|
-
})(ProductAnnotationPosition || (ProductAnnotationPosition = {}));
|
|
157
|
-
var ProductAnnotationType;
|
|
158
|
-
(function (ProductAnnotationType) {
|
|
159
|
-
ProductAnnotationType["Svg"] = "SVG";
|
|
160
|
-
})(ProductAnnotationType || (ProductAnnotationType = {}));
|
|
161
|
-
var ProductAvailability;
|
|
162
|
-
(function (ProductAvailability) {
|
|
163
|
-
ProductAvailability["Backorder"] = "BACKORDER";
|
|
164
|
-
ProductAvailability["InStock"] = "IN_STOCK";
|
|
165
|
-
ProductAvailability["OutOfStock"] = "OUT_OF_STOCK";
|
|
166
|
-
ProductAvailability["Preorder"] = "PREORDER";
|
|
167
|
-
})(ProductAvailability || (ProductAvailability = {}));
|
|
168
|
-
var ProductStatus;
|
|
169
|
-
(function (ProductStatus) {
|
|
170
|
-
ProductStatus["Archived"] = "ARCHIVED";
|
|
171
|
-
ProductStatus["Draft"] = "DRAFT";
|
|
172
|
-
ProductStatus["Published"] = "PUBLISHED";
|
|
173
|
-
})(ProductStatus || (ProductStatus = {}));
|
|
174
|
-
var ProfileType;
|
|
175
|
-
(function (ProfileType) {
|
|
176
|
-
ProfileType["Channel"] = "CHANNEL";
|
|
177
|
-
ProfileType["Group"] = "GROUP";
|
|
178
|
-
ProfileType["Organization"] = "ORGANIZATION";
|
|
179
|
-
ProfileType["User"] = "USER";
|
|
180
|
-
})(ProfileType || (ProfileType = {}));
|
|
181
|
-
var PublishTargetType;
|
|
182
|
-
(function (PublishTargetType) {
|
|
183
|
-
PublishTargetType["Channel"] = "CHANNEL";
|
|
184
|
-
PublishTargetType["Group"] = "GROUP";
|
|
185
|
-
PublishTargetType["MediaPage"] = "MEDIA_PAGE";
|
|
186
|
-
PublishTargetType["User"] = "USER";
|
|
187
|
-
})(PublishTargetType || (PublishTargetType = {}));
|
|
188
|
-
var ReactableType;
|
|
189
|
-
(function (ReactableType) {
|
|
190
|
-
ReactableType["ChatMessage"] = "CHAT_MESSAGE";
|
|
191
|
-
ReactableType["Comment"] = "COMMENT";
|
|
192
|
-
ReactableType["CommunityMessage"] = "COMMUNITY_MESSAGE";
|
|
193
|
-
ReactableType["Post"] = "POST";
|
|
194
|
-
})(ReactableType || (ReactableType = {}));
|
|
195
|
-
var SitePostsOrderBy;
|
|
196
|
-
(function (SitePostsOrderBy) {
|
|
197
|
-
SitePostsOrderBy["Published"] = "PUBLISHED";
|
|
198
|
-
})(SitePostsOrderBy || (SitePostsOrderBy = {}));
|
|
199
|
-
var Status;
|
|
200
|
-
(function (Status) {
|
|
201
|
-
Status["Archived"] = "ARCHIVED";
|
|
202
|
-
Status["Draft"] = "DRAFT";
|
|
203
|
-
Status["Published"] = "PUBLISHED";
|
|
204
|
-
Status["Scheduled"] = "SCHEDULED";
|
|
205
|
-
})(Status || (Status = {}));
|
|
206
|
-
var TextFieldMode;
|
|
207
|
-
(function (TextFieldMode) {
|
|
208
|
-
TextFieldMode["Multiline"] = "MULTILINE";
|
|
209
|
-
TextFieldMode["SingleLine"] = "SINGLE_LINE";
|
|
210
|
-
})(TextFieldMode || (TextFieldMode = {}));
|
|
211
|
-
var TextFieldWeight;
|
|
212
|
-
(function (TextFieldWeight) {
|
|
213
|
-
TextFieldWeight["Bold"] = "BOLD";
|
|
214
|
-
TextFieldWeight["Normal"] = "NORMAL";
|
|
215
|
-
TextFieldWeight["SemiBold"] = "SEMI_BOLD";
|
|
216
|
-
})(TextFieldWeight || (TextFieldWeight = {}));
|
|
217
|
-
var SiteContentListsOrderBy;
|
|
218
|
-
(function (SiteContentListsOrderBy) {
|
|
219
|
-
SiteContentListsOrderBy["Name"] = "NAME";
|
|
220
|
-
})(SiteContentListsOrderBy || (SiteContentListsOrderBy = {}));
|
|
221
1
|
|
|
222
|
-
export { AdPricingPlan, AdStatus, AdType, ArticleFieldType, ArticleLayoutType, Currency, DisplayVariant, GalleryFieldMode, ImageScale, LayoutMode, MediaFormat, MediaType, MomentLifetime, PostCategory, PostSourceType, PostType, PostedAs, PricingMeasureUnit, ProductAnnotationPosition, ProductAnnotationType, ProductAvailability, ProductStatus, ProfileType, PublishTargetType, ReactableType, SiteAdCampaignsOrderBy, SiteContentListsOrderBy, SitePostsOrderBy, Status, TextFieldMode, TextFieldWeight };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamscloud/streams-analytics-collector",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -54,5 +54,8 @@
|
|
|
54
54
|
"rollup-plugin-string": "^3.0.0",
|
|
55
55
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
56
56
|
"typescript": "^5.8.2"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@urql/core": "^5.1.1"
|
|
57
60
|
}
|
|
58
61
|
}
|