@prismatic-io/components-google-analytics-ga4 0.0.0-stage → 0.1.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.
@@ -0,0 +1,526 @@
1
+ //#region node_modules/axios/index.d.ts
2
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
3
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
4
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
5
+ //#endregion
6
+ //#region src/types.d.ts
7
+ type Property = {
8
+ name: string;
9
+ parent: string;
10
+ createTime: string;
11
+ updateTime: string;
12
+ displayName: string;
13
+ industryCategory: string;
14
+ timeZone: string;
15
+ currencyCode: string;
16
+ serviceLevel: string;
17
+ account: string;
18
+ propertyType: string;
19
+ };
20
+ //#endregion
21
+ //#region npm-dist/.entry.d.ts
22
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
23
+ key: "google-analytics-ga4";
24
+ documentationUrl: "https://prismatic.io/docs/components/google-analytics-ga4/";
25
+ public: true;
26
+ display: {
27
+ label: string;
28
+ category: "Application Connectors";
29
+ description: string;
30
+ iconPath: string;
31
+ };
32
+ actions: {
33
+ sendMeasurementProtocolEvents: import("@prismatic-io/spectral").ActionDefinition<{
34
+ firebaseAppId: {
35
+ label: string;
36
+ type: "string";
37
+ required: true;
38
+ example: string;
39
+ placeholder: string;
40
+ comments: string;
41
+ clean: (value: unknown, defaultValue?: string) => string;
42
+ };
43
+ appInstanceId: {
44
+ label: string;
45
+ comments: string;
46
+ type: "string";
47
+ required: true;
48
+ example: string;
49
+ placeholder: string;
50
+ clean: (value: unknown, defaultValue?: string) => string;
51
+ };
52
+ apiSecret: {
53
+ label: string;
54
+ type: "password";
55
+ required: true;
56
+ example: string;
57
+ placeholder: string;
58
+ comments: string;
59
+ clean: (value: unknown, defaultValue?: string) => string;
60
+ };
61
+ events: {
62
+ label: string;
63
+ comments: string;
64
+ type: "code";
65
+ language: "json";
66
+ required: true;
67
+ example: string;
68
+ };
69
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
70
+ data: unknown;
71
+ }>;
72
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
73
+ url: {
74
+ comments: string;
75
+ example: string;
76
+ label: string;
77
+ placeholder: string;
78
+ type: "string";
79
+ required: true;
80
+ clean: (value: unknown) => string;
81
+ };
82
+ method: {
83
+ label: string;
84
+ type: "string";
85
+ required: true;
86
+ model: {
87
+ label: Method;
88
+ value: Method;
89
+ }[];
90
+ comments: string;
91
+ clean: (value: unknown) => string;
92
+ };
93
+ data: {
94
+ label: string;
95
+ placeholder: string;
96
+ type: "string";
97
+ required: false;
98
+ comments: string;
99
+ example: string;
100
+ };
101
+ formData: {
102
+ label: string;
103
+ placeholder: string;
104
+ type: "string";
105
+ collection: "keyvaluelist";
106
+ required: false;
107
+ comments: string;
108
+ example: string;
109
+ };
110
+ fileData: {
111
+ label: string;
112
+ placeholder: string;
113
+ type: "string";
114
+ collection: "keyvaluelist";
115
+ required: false;
116
+ comments: string;
117
+ example: string;
118
+ };
119
+ fileDataFileNames: {
120
+ label: string;
121
+ placeholder: string;
122
+ type: "string";
123
+ collection: "keyvaluelist";
124
+ required: false;
125
+ comments: string;
126
+ clean: (values: any) => Record<string, string> | undefined;
127
+ };
128
+ queryParams: {
129
+ label: string;
130
+ placeholder: string;
131
+ type: "string";
132
+ collection: "keyvaluelist";
133
+ required: false;
134
+ comments: string;
135
+ };
136
+ headers: {
137
+ label: string;
138
+ placeholder: string;
139
+ type: "string";
140
+ collection: "keyvaluelist";
141
+ required: false;
142
+ comments: string;
143
+ example: string;
144
+ };
145
+ responseType: {
146
+ label: string;
147
+ placeholder: string;
148
+ type: "string";
149
+ default: string;
150
+ required: true;
151
+ comments: string;
152
+ model: {
153
+ label: ResponseType;
154
+ value: ResponseType;
155
+ }[];
156
+ clean: (value: unknown) => ResponseType;
157
+ };
158
+ timeout: {
159
+ label: string;
160
+ type: "string";
161
+ required: false;
162
+ comments: string;
163
+ example: string;
164
+ clean: (value: unknown) => number;
165
+ };
166
+ retryDelayMS: {
167
+ label: string;
168
+ placeholder: string;
169
+ type: "string";
170
+ required: false;
171
+ comments: string;
172
+ default: string;
173
+ clean: (value: unknown) => number;
174
+ };
175
+ retryAllErrors: {
176
+ label: string;
177
+ type: "boolean";
178
+ default: string;
179
+ required: false;
180
+ comments: string;
181
+ clean: (value: unknown) => boolean;
182
+ };
183
+ maxRetries: {
184
+ label: string;
185
+ placeholder: string;
186
+ type: "string";
187
+ required: false;
188
+ comments: string;
189
+ default: string;
190
+ clean: (value: unknown) => number;
191
+ };
192
+ useExponentialBackoff: {
193
+ label: string;
194
+ type: "boolean";
195
+ default: string;
196
+ required: false;
197
+ comments: string;
198
+ clean: (value: unknown) => boolean;
199
+ };
200
+ connection: {
201
+ label: string;
202
+ type: "connection";
203
+ required: true;
204
+ };
205
+ baseUrl: {
206
+ label: string;
207
+ type: "string";
208
+ required: true;
209
+ clean: (value: unknown, defaultValue?: string) => string;
210
+ model: {
211
+ label: string;
212
+ value: string;
213
+ }[];
214
+ };
215
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
216
+ data: any;
217
+ }>;
218
+ getProperty: import("@prismatic-io/spectral").ActionDefinition<{
219
+ accountId: {
220
+ required: boolean;
221
+ label: string;
222
+ type: "string";
223
+ example: string;
224
+ placeholder: string;
225
+ comments: string;
226
+ dataSource: string;
227
+ clean: (value: unknown, defaultValue?: string) => string;
228
+ };
229
+ propertyId: {
230
+ label: string;
231
+ type: "string";
232
+ required: true;
233
+ example: string;
234
+ placeholder: string;
235
+ comments: string;
236
+ dataSource: string;
237
+ clean: (value: unknown) => string;
238
+ };
239
+ connection: {
240
+ label: string;
241
+ type: "connection";
242
+ required: true;
243
+ };
244
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
245
+ data: Property;
246
+ }>;
247
+ listProperties: import("@prismatic-io/spectral").ActionDefinition<{
248
+ accountId: {
249
+ label: string;
250
+ type: "string";
251
+ required: true;
252
+ example: string;
253
+ placeholder: string;
254
+ comments: string;
255
+ dataSource: string;
256
+ clean: (value: unknown, defaultValue?: string) => string;
257
+ };
258
+ fetchAll: {
259
+ label: string;
260
+ type: "boolean";
261
+ required: false;
262
+ comments: string;
263
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
264
+ };
265
+ pagination: {
266
+ label: string;
267
+ required: boolean;
268
+ comments: string;
269
+ inputs: {
270
+ pageSize: {
271
+ label: string;
272
+ type: "string";
273
+ required: false;
274
+ example: string;
275
+ placeholder: string;
276
+ comments: string;
277
+ clean: (input: unknown) => string | undefined;
278
+ };
279
+ pageToken: {
280
+ label: string;
281
+ type: "string";
282
+ required: false;
283
+ example: string;
284
+ placeholder: string;
285
+ comments: string;
286
+ clean: (input: unknown) => string | undefined;
287
+ };
288
+ };
289
+ } & {
290
+ type: "structuredObject";
291
+ };
292
+ connection: {
293
+ label: string;
294
+ type: "connection";
295
+ required: true;
296
+ };
297
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
298
+ data: unknown;
299
+ }>;
300
+ runReport: import("@prismatic-io/spectral").ActionDefinition<{
301
+ connection: {
302
+ label: string;
303
+ type: "connection";
304
+ required: true;
305
+ };
306
+ accountId: {
307
+ required: false;
308
+ label: string;
309
+ type: "string";
310
+ example: string;
311
+ placeholder: string;
312
+ comments: string;
313
+ dataSource: string;
314
+ clean: (value: unknown, defaultValue?: string) => string;
315
+ };
316
+ propertyId: {
317
+ label: string;
318
+ type: "string";
319
+ required: true;
320
+ example: string;
321
+ placeholder: string;
322
+ comments: string;
323
+ dataSource: string;
324
+ clean: (value: unknown) => string;
325
+ };
326
+ requestBody: {
327
+ label: string;
328
+ type: "code";
329
+ language: "json";
330
+ required: true;
331
+ comments: string;
332
+ default: string;
333
+ clean: (value: unknown) => object;
334
+ };
335
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
336
+ data: any;
337
+ }>;
338
+ listAccounts: import("@prismatic-io/spectral").ActionDefinition<{
339
+ fetchAll: {
340
+ label: string;
341
+ type: "boolean";
342
+ required: false;
343
+ comments: string;
344
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
345
+ };
346
+ pagination: {
347
+ label: string;
348
+ required: boolean;
349
+ comments: string;
350
+ inputs: {
351
+ pageSize: {
352
+ label: string;
353
+ type: "string";
354
+ required: false;
355
+ example: string;
356
+ placeholder: string;
357
+ comments: string;
358
+ clean: (input: unknown) => string | undefined;
359
+ };
360
+ pageToken: {
361
+ label: string;
362
+ type: "string";
363
+ required: false;
364
+ example: string;
365
+ placeholder: string;
366
+ comments: string;
367
+ clean: (input: unknown) => string | undefined;
368
+ };
369
+ };
370
+ } & {
371
+ type: "structuredObject";
372
+ };
373
+ connection: {
374
+ label: string;
375
+ type: "connection";
376
+ required: true;
377
+ };
378
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
379
+ data: unknown;
380
+ }>;
381
+ };
382
+ triggers: {
383
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
384
+ connection: {
385
+ comments: string;
386
+ label: string;
387
+ type: "connection";
388
+ required: true;
389
+ };
390
+ pollResourceType: {
391
+ label: string;
392
+ type: "string";
393
+ required: true;
394
+ model: {
395
+ label: "Accounts" | "Properties";
396
+ value: string;
397
+ }[];
398
+ comments: string;
399
+ clean: (value: unknown, defaultValue?: string) => string;
400
+ };
401
+ accountId: {
402
+ required: boolean;
403
+ placeholder: string;
404
+ comments: string;
405
+ label: string;
406
+ type: "string";
407
+ example: string;
408
+ dataSource: string;
409
+ clean: (value: unknown, defaultValue?: string) => string;
410
+ };
411
+ showNewRecords: {
412
+ label: string;
413
+ type: "boolean";
414
+ required: false;
415
+ default: string;
416
+ comments: string;
417
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
418
+ };
419
+ showUpdatedRecords: {
420
+ label: string;
421
+ type: "boolean";
422
+ required: false;
423
+ default: string;
424
+ comments: string;
425
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
426
+ };
427
+ lookBackDate: {
428
+ label: string;
429
+ placeholder: string;
430
+ type: "string";
431
+ required: false;
432
+ comments: string;
433
+ example: string;
434
+ clean: (value: unknown) => string;
435
+ };
436
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
437
+ payload: import("@prismatic-io/spectral").TriggerPayload;
438
+ }, import("@prismatic-io/spectral").Inputs>;
439
+ };
440
+ dataSources: {
441
+ listProperties: import("@prismatic-io/spectral").DataSourceDefinition<{
442
+ connection: {
443
+ label: string;
444
+ type: "connection";
445
+ required: true;
446
+ };
447
+ accountId: {
448
+ dataSource: undefined;
449
+ label: string;
450
+ type: "string";
451
+ required: true;
452
+ example: string;
453
+ placeholder: string;
454
+ comments: string;
455
+ clean: (value: unknown, defaultValue?: string) => string;
456
+ };
457
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
458
+ listAccounts: import("@prismatic-io/spectral").DataSourceDefinition<{
459
+ connection: {
460
+ label: string;
461
+ type: "connection";
462
+ required: true;
463
+ };
464
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
465
+ };
466
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
467
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
468
+ key: "oauth2";
469
+ display: {
470
+ label: string;
471
+ description: string;
472
+ icons: {
473
+ oauth2ConnectionIconPath: string;
474
+ };
475
+ };
476
+ inputs: {
477
+ authorizeUrl: {
478
+ label: string;
479
+ placeholder: string;
480
+ type: "string";
481
+ required: true;
482
+ shown: false;
483
+ comments: string;
484
+ default: string;
485
+ };
486
+ tokenUrl: {
487
+ label: string;
488
+ placeholder: string;
489
+ type: "string";
490
+ required: true;
491
+ shown: false;
492
+ comments: string;
493
+ default: string;
494
+ };
495
+ scopes: {
496
+ label: string;
497
+ placeholder: string;
498
+ type: "string";
499
+ required: true;
500
+ shown: true;
501
+ comments: string;
502
+ default: string;
503
+ };
504
+ clientId: {
505
+ label: string;
506
+ placeholder: string;
507
+ type: "string";
508
+ required: true;
509
+ comments: string;
510
+ shown: true;
511
+ };
512
+ clientSecret: {
513
+ label: string;
514
+ placeholder: string;
515
+ type: "password";
516
+ comments: string;
517
+ required: true;
518
+ shown: true;
519
+ };
520
+ };
521
+ }, "oauth2">[];
522
+ hooks: {
523
+ error: (error: unknown) => unknown;
524
+ };
525
+ }>;
526
+ export = _default;
Binary file
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-google-analytics-ga4",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "main": "./npm-dist/index.cjs",
5
+ "types": "./npm-dist/index.d.cts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./npm-dist/index.d.cts",
9
+ "default": "./npm-dist/index.cjs"
10
+ }
11
+ },
12
+ "description": "Manage Google Analytics GA4 accounts and data",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/google-analytics-ga4"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "files": [
23
+ "npm-dist",
24
+ "dist"
25
+ ],
26
+ "prismatic": {
27
+ "component": "./dist/index.js"
28
+ },
29
+ "scripts": {
30
+ "build": "npm run format && npm run lint && tsdown",
31
+ "typecheck": "tsc --noEmit",
32
+ "test": "vitest run",
33
+ "lint": "biome check --write .",
34
+ "format": "biome format --write .",
35
+ "prepare": "npm run build",
36
+ "publish:platform": "npm run build && prism components:publish"
37
+ },
38
+ "peerDependencies": {
39
+ "@prismatic-io/spectral": "^10.38.5"
40
+ },
41
+ "dependencies": {},
42
+ "devDependencies": {
43
+ "@biomejs/biome": "2.5.1",
44
+ "@types/node": "^26",
45
+ "nock": "^15.0.1",
46
+ "tsdown": "0.22.3",
47
+ "typescript": "6.0.3",
48
+ "vitest": "^5.0.3",
49
+ "@prismatic-io/spectral": "^10.38.5"
50
+ }
51
+ }