@streamscloud/streams-analytics-collector 1.0.0

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.
Files changed (51) hide show
  1. package/README.md +1 -0
  2. package/dist/adcampaignsquery.graphql.js +3 -0
  3. package/dist/articlequery.graphql.js +3 -0
  4. package/dist/components/index.d.ts +2 -0
  5. package/dist/components/index.js +1 -0
  6. package/dist/components/types.d.ts +19 -0
  7. package/dist/components/types.js +12 -0
  8. package/dist/components-data/component-data-provider.service.d.ts +3 -0
  9. package/dist/components-data/component-data-provider.service.js +35 -0
  10. package/dist/components-data/components-data-fetcher.service.d.ts +5 -0
  11. package/dist/components-data/components-data-fetcher.service.js +35 -0
  12. package/dist/components-data/components-data-parameters-reader.service.d.ts +2 -0
  13. package/dist/components-data/components-data-parameters-reader.service.js +20 -0
  14. package/dist/components-data/index.d.ts +4 -0
  15. package/dist/components-data/index.js +3 -0
  16. package/dist/components-data/types.d.ts +24 -0
  17. package/dist/components-data/types.js +6 -0
  18. package/dist/contentlistsquery.graphql.js +3 -0
  19. package/dist/data-loaders/index.d.ts +2 -0
  20. package/dist/data-loaders/index.js +2 -0
  21. package/dist/data-loaders/short-videos-data-loader/index.d.ts +2 -0
  22. package/dist/data-loaders/short-videos-data-loader/loader.d.ts +4 -0
  23. package/dist/data-loaders/short-videos-data-loader/loader.js +14 -0
  24. package/dist/data-loaders/short-videos-data-loader/mapper.d.ts +3 -0
  25. package/dist/data-loaders/short-videos-data-loader/mapper.js +27 -0
  26. package/dist/data-loaders/short-videos-data-loader/types.d.ts +14 -0
  27. package/dist/data-loaders/streams-data-loader/index.d.ts +2 -0
  28. package/dist/data-loaders/streams-data-loader/loader.d.ts +4 -0
  29. package/dist/data-loaders/streams-data-loader/loader.js +14 -0
  30. package/dist/data-loaders/streams-data-loader/mapper.d.ts +3 -0
  31. package/dist/data-loaders/streams-data-loader/mapper.js +11 -0
  32. package/dist/data-loaders/streams-data-loader/types.d.ts +4 -0
  33. package/dist/data-loaders/types.d.ts +3 -0
  34. package/dist/index.d.ts +4 -0
  35. package/dist/index.js +4 -0
  36. package/dist/postsquery.graphql.js +3 -0
  37. package/dist/services/embed-content-api-client.d.ts +8 -0
  38. package/dist/services/embed-content-api-client.js +48 -0
  39. package/dist/services/embed-content-client.service.d.ts +2 -0
  40. package/dist/services/embed-content-client.service.js +5 -0
  41. package/dist/services/index.d.ts +2 -0
  42. package/dist/services/index.js +2 -0
  43. package/dist/services/operations/posts-query.graphql.js +3 -0
  44. package/dist/services/operations/streams-query.graphql.js +3 -0
  45. package/dist/services/types.d.ts +303 -0
  46. package/dist/streams-api-client-model.d.ts +5 -0
  47. package/dist/streams-content-api-client.d.ts +14 -0
  48. package/dist/streams-content-api-client.js +89 -0
  49. package/dist/types.d.ts +790 -0
  50. package/dist/types.js +222 -0
  51. package/package.json +54 -0
package/dist/types.js ADDED
@@ -0,0 +1,222 @@
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
+
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 ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@streamscloud/streams-analytics-collector",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "svelte": "./dist/index.js"
13
+ },
14
+ "./data-loaders": {
15
+ "import": "./dist/data-loaders/index.js",
16
+ "types": "./dist/data-loaders/index.d.ts"
17
+ },
18
+ "./components-data": {
19
+ "import": "./dist/components-data/index.js",
20
+ "types": "./dist/components-data/index.d.ts"
21
+ },
22
+ "./services": {
23
+ "import": "./dist/services/index.js",
24
+ "types": "./dist/services/index.d.ts"
25
+ },
26
+ "./components": {
27
+ "import": "./dist/components/index.js",
28
+ "types": "./dist/components/index.d.ts"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "scripts": {
35
+ "build": "rollup -c",
36
+ "lint": "eslint 'src/**/*.{ts,tsx}'",
37
+ "format": "prettier --write 'src/**/*.{ts,tsx}'"
38
+ },
39
+ "keywords": [],
40
+ "author": "StreamsCloud",
41
+ "description": "",
42
+ "devDependencies": {
43
+ "@typescript-eslint/eslint-plugin": "^8.28.0",
44
+ "@typescript-eslint/parser": "^8.28.0",
45
+ "eslint": "^9.23.0",
46
+ "eslint-config-prettier": "^10.1.1",
47
+ "eslint-plugin-prettier": "^5.2.5",
48
+ "prettier": "^3.5.3",
49
+ "rollup": "^4.37.0",
50
+ "rollup-plugin-string": "^3.0.0",
51
+ "rollup-plugin-typescript2": "^0.36.0",
52
+ "typescript": "^5.8.2"
53
+ }
54
+ }