@prismatic-io/components-adobe-analytics 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,636 @@
1
+ //#region src/types/index.d.ts
2
+ interface ReportSuite {
3
+ collectionItemType: string;
4
+ id: string;
5
+ rsid: string;
6
+ name: string;
7
+ }
8
+ interface ReportSuiteMetric {
9
+ id: string;
10
+ title: string;
11
+ name: string;
12
+ type: string;
13
+ category: string;
14
+ support: string[];
15
+ allocation: boolean;
16
+ precision: number;
17
+ calculated: boolean;
18
+ segmentable: boolean;
19
+ supportsDataGovernance: boolean;
20
+ polarity: string;
21
+ standardComponent: boolean;
22
+ }
23
+ interface ReportSuiteDimension {
24
+ id: string;
25
+ title: string;
26
+ name: string;
27
+ type: string;
28
+ category: string;
29
+ support: string[];
30
+ pathable: boolean;
31
+ segmentable: boolean;
32
+ reportable: string[];
33
+ supportsDataGovernance: boolean;
34
+ description: string;
35
+ multiValued: boolean;
36
+ standardComponent: boolean;
37
+ }
38
+ //#endregion
39
+ //#region node_modules/axios/index.d.ts
40
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
41
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
42
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
43
+ //#endregion
44
+ //#region src/types/triggers.d.ts
45
+ interface AdobeRecord {
46
+ rsid?: string;
47
+ globalCompanyId?: string;
48
+ id?: string;
49
+ [key: string]: unknown;
50
+ }
51
+ //#endregion
52
+ //#region npm-dist/.entry.d.ts
53
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
54
+ key: "adobe-analytics";
55
+ public: true;
56
+ documentationUrl: "https://prismatic.io/docs/components/adobe-analytics/";
57
+ display: {
58
+ category: "Application Connectors";
59
+ label: string;
60
+ description: string;
61
+ iconPath: string;
62
+ };
63
+ actions: {
64
+ listCompanies: import("@prismatic-io/spectral").ActionDefinition<{
65
+ connection: {
66
+ label: string;
67
+ required: true;
68
+ type: "connection";
69
+ comments: string;
70
+ };
71
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
72
+ data: {
73
+ globalCompanyId: string;
74
+ companyName: string;
75
+ apiRateLimitPolicy: string;
76
+ }[];
77
+ }>;
78
+ listReportSuiteDimensions: import("@prismatic-io/spectral").ActionDefinition<{
79
+ connection: {
80
+ label: string;
81
+ required: true;
82
+ type: "connection";
83
+ comments: string;
84
+ };
85
+ globalCompanyId: {
86
+ label: string;
87
+ type: "string";
88
+ required: true;
89
+ comments: string;
90
+ placeholder: string;
91
+ example: string;
92
+ clean: (value: unknown, defaultValue?: string) => string;
93
+ };
94
+ reportSuiteId: {
95
+ label: string;
96
+ type: "string";
97
+ required: true;
98
+ comments: string;
99
+ placeholder: string;
100
+ example: string;
101
+ clean: (value: unknown, defaultValue?: string) => string;
102
+ };
103
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
104
+ data: ReportSuiteDimension[];
105
+ }>;
106
+ listReportSuiteMetrics: import("@prismatic-io/spectral").ActionDefinition<{
107
+ connection: {
108
+ label: string;
109
+ required: true;
110
+ type: "connection";
111
+ comments: string;
112
+ };
113
+ globalCompanyId: {
114
+ label: string;
115
+ type: "string";
116
+ required: true;
117
+ comments: string;
118
+ placeholder: string;
119
+ example: string;
120
+ clean: (value: unknown, defaultValue?: string) => string;
121
+ };
122
+ reportSuiteId: {
123
+ label: string;
124
+ type: "string";
125
+ required: true;
126
+ comments: string;
127
+ placeholder: string;
128
+ example: string;
129
+ clean: (value: unknown, defaultValue?: string) => string;
130
+ };
131
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
132
+ data: ReportSuiteMetric[];
133
+ }>;
134
+ getReportSuite: import("@prismatic-io/spectral").ActionDefinition<{
135
+ connection: {
136
+ label: string;
137
+ required: true;
138
+ type: "connection";
139
+ comments: string;
140
+ };
141
+ globalCompanyId: {
142
+ label: string;
143
+ type: "string";
144
+ required: true;
145
+ comments: string;
146
+ placeholder: string;
147
+ example: string;
148
+ clean: (value: unknown, defaultValue?: string) => string;
149
+ };
150
+ reportSuiteId: {
151
+ label: string;
152
+ type: "string";
153
+ required: true;
154
+ comments: string;
155
+ placeholder: string;
156
+ example: string;
157
+ clean: (value: unknown, defaultValue?: string) => string;
158
+ };
159
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
160
+ data: ReportSuite;
161
+ }>;
162
+ listReportSuites: import("@prismatic-io/spectral").ActionDefinition<{
163
+ connection: {
164
+ label: string;
165
+ required: true;
166
+ type: "connection";
167
+ comments: string;
168
+ };
169
+ globalCompanyId: {
170
+ label: string;
171
+ type: "string";
172
+ required: true;
173
+ comments: string;
174
+ placeholder: string;
175
+ example: string;
176
+ clean: (value: unknown, defaultValue?: string) => string;
177
+ };
178
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
179
+ data: ReportSuite[];
180
+ }>;
181
+ listVirtualReportSuites: import("@prismatic-io/spectral").ActionDefinition<{
182
+ connection: {
183
+ label: string;
184
+ required: true;
185
+ type: "connection";
186
+ comments: string;
187
+ };
188
+ globalCompanyId: {
189
+ label: string;
190
+ type: "string";
191
+ required: true;
192
+ comments: string;
193
+ placeholder: string;
194
+ example: string;
195
+ clean: (value: unknown, defaultValue?: string) => string;
196
+ };
197
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
198
+ data: ReportSuite[];
199
+ }>;
200
+ runReport: import("@prismatic-io/spectral").ActionDefinition<{
201
+ connection: {
202
+ label: string;
203
+ required: true;
204
+ type: "connection";
205
+ comments: string;
206
+ };
207
+ globalCompanyId: {
208
+ label: string;
209
+ type: "string";
210
+ required: true;
211
+ comments: string;
212
+ placeholder: string;
213
+ example: string;
214
+ clean: (value: unknown, defaultValue?: string) => string;
215
+ };
216
+ reportSuiteId: {
217
+ label: string;
218
+ type: "string";
219
+ required: true;
220
+ comments: string;
221
+ placeholder: string;
222
+ example: string;
223
+ clean: (value: unknown, defaultValue?: string) => string;
224
+ };
225
+ dimension: {
226
+ label: string;
227
+ type: "string";
228
+ required: true;
229
+ comments: string;
230
+ placeholder: string;
231
+ example: string;
232
+ clean: (value: unknown, defaultValue?: string) => string;
233
+ };
234
+ reportRequestBody: {
235
+ label: string;
236
+ type: "code";
237
+ required: true;
238
+ comments: string;
239
+ placeholder: string;
240
+ language: "json";
241
+ clean: (value: unknown) => object;
242
+ default: string;
243
+ };
244
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
245
+ data: any;
246
+ }>;
247
+ getCurrentUser: import("@prismatic-io/spectral").ActionDefinition<{
248
+ connection: {
249
+ label: string;
250
+ required: true;
251
+ type: "connection";
252
+ comments: string;
253
+ };
254
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
255
+ data: {
256
+ imsUserId: string;
257
+ imsOrgs: {
258
+ imsOrgId: string;
259
+ companies: {
260
+ globalCompanyId: string;
261
+ companyName: string;
262
+ apiRateLimitPolicy: string;
263
+ }[];
264
+ }[];
265
+ };
266
+ }>;
267
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
268
+ url: {
269
+ comments: string;
270
+ example: string;
271
+ label: string;
272
+ placeholder: string;
273
+ type: "string";
274
+ required: true;
275
+ clean: (value: unknown) => string;
276
+ };
277
+ method: {
278
+ label: string;
279
+ type: "string";
280
+ required: true;
281
+ model: {
282
+ label: Method;
283
+ value: Method;
284
+ }[];
285
+ comments: string;
286
+ clean: (value: unknown) => string;
287
+ };
288
+ data: {
289
+ label: string;
290
+ placeholder: string;
291
+ type: "string";
292
+ required: false;
293
+ comments: string;
294
+ example: string;
295
+ };
296
+ formData: {
297
+ label: string;
298
+ placeholder: string;
299
+ type: "string";
300
+ collection: "keyvaluelist";
301
+ required: false;
302
+ comments: string;
303
+ example: string;
304
+ };
305
+ fileData: {
306
+ label: string;
307
+ placeholder: string;
308
+ type: "string";
309
+ collection: "keyvaluelist";
310
+ required: false;
311
+ comments: string;
312
+ example: string;
313
+ };
314
+ fileDataFileNames: {
315
+ label: string;
316
+ placeholder: string;
317
+ type: "string";
318
+ collection: "keyvaluelist";
319
+ required: false;
320
+ comments: string;
321
+ clean: (values: any) => Record<string, string> | undefined;
322
+ };
323
+ queryParams: {
324
+ label: string;
325
+ placeholder: string;
326
+ type: "string";
327
+ collection: "keyvaluelist";
328
+ required: false;
329
+ comments: string;
330
+ };
331
+ headers: {
332
+ label: string;
333
+ placeholder: string;
334
+ type: "string";
335
+ collection: "keyvaluelist";
336
+ required: false;
337
+ comments: string;
338
+ example: string;
339
+ };
340
+ responseType: {
341
+ label: string;
342
+ placeholder: string;
343
+ type: "string";
344
+ default: string;
345
+ required: true;
346
+ comments: string;
347
+ model: {
348
+ label: ResponseType;
349
+ value: ResponseType;
350
+ }[];
351
+ clean: (value: unknown) => ResponseType;
352
+ };
353
+ timeout: {
354
+ label: string;
355
+ type: "string";
356
+ required: false;
357
+ comments: string;
358
+ example: string;
359
+ clean: (value: unknown) => number;
360
+ };
361
+ retryDelayMS: {
362
+ label: string;
363
+ placeholder: string;
364
+ type: "string";
365
+ required: false;
366
+ comments: string;
367
+ default: string;
368
+ clean: (value: unknown) => number;
369
+ };
370
+ retryAllErrors: {
371
+ label: string;
372
+ type: "boolean";
373
+ default: string;
374
+ required: false;
375
+ comments: string;
376
+ clean: (value: unknown) => boolean;
377
+ };
378
+ maxRetries: {
379
+ label: string;
380
+ placeholder: string;
381
+ type: "string";
382
+ required: false;
383
+ comments: string;
384
+ default: string;
385
+ clean: (value: unknown) => number;
386
+ };
387
+ useExponentialBackoff: {
388
+ label: string;
389
+ type: "boolean";
390
+ default: string;
391
+ required: false;
392
+ comments: string;
393
+ clean: (value: unknown) => boolean;
394
+ };
395
+ connection: {
396
+ label: string;
397
+ required: true;
398
+ type: "connection";
399
+ comments: string;
400
+ };
401
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
402
+ data: {
403
+ data: any;
404
+ headers: any;
405
+ };
406
+ }>;
407
+ };
408
+ triggers: {
409
+ pollChangesTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
410
+ connection: {
411
+ label: string;
412
+ required: true;
413
+ type: "connection";
414
+ comments: string;
415
+ };
416
+ globalCompanyId: {
417
+ required: boolean;
418
+ label: string;
419
+ type: "string";
420
+ comments: string;
421
+ placeholder: string;
422
+ example: string;
423
+ clean: (value: unknown, defaultValue?: string) => string;
424
+ };
425
+ resourceType: {
426
+ label: string;
427
+ type: "string";
428
+ required: true;
429
+ comments: string;
430
+ model: {
431
+ label: "Report Suites" | "Companies";
432
+ value: string;
433
+ }[];
434
+ clean: (value: unknown, defaultValue?: string) => string;
435
+ };
436
+ showNewRecords: {
437
+ label: string;
438
+ type: "boolean";
439
+ required: true;
440
+ default: string;
441
+ comments: string;
442
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
443
+ };
444
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
445
+ payload: {
446
+ body: {
447
+ data: {
448
+ created: AdobeRecord[];
449
+ updated: never[];
450
+ };
451
+ };
452
+ headers: {
453
+ [key: string]: string;
454
+ };
455
+ queryParameters: {
456
+ [key: string]: string;
457
+ };
458
+ rawBody: {
459
+ data: unknown;
460
+ contentType?: string;
461
+ };
462
+ pathFragment: string;
463
+ webhookUrls: {
464
+ [key: string]: string;
465
+ };
466
+ webhookApiKeys: {
467
+ [key: string]: string[];
468
+ };
469
+ invokeUrl: string;
470
+ executionId: string;
471
+ customer: import("@prismatic-io/spectral").CustomerAttributes;
472
+ instance: import("@prismatic-io/spectral").InstanceAttributes;
473
+ user: import("@prismatic-io/spectral").UserAttributes;
474
+ integration: import("@prismatic-io/spectral").IntegrationAttributes;
475
+ flow: import("@prismatic-io/spectral").FlowAttributes;
476
+ startedAt: string;
477
+ globalDebug: boolean;
478
+ paginationState?: Record<string, unknown> | undefined;
479
+ };
480
+ polledNoChanges: boolean;
481
+ }, import("@prismatic-io/spectral").Inputs>;
482
+ };
483
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
484
+ key: "adobeAnalyticsOauth";
485
+ display: {
486
+ label: string;
487
+ description: string;
488
+ };
489
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
490
+ inputs: {
491
+ authorizeUrl: {
492
+ label: string;
493
+ placeholder: string;
494
+ type: "string";
495
+ required: true;
496
+ shown: true;
497
+ default: string;
498
+ comments: string;
499
+ };
500
+ tokenUrl: {
501
+ label: string;
502
+ placeholder: string;
503
+ type: "string";
504
+ required: true;
505
+ shown: true;
506
+ default: string;
507
+ comments: string;
508
+ };
509
+ scopes: {
510
+ label: string;
511
+ placeholder: string;
512
+ type: "string";
513
+ required: true;
514
+ shown: true;
515
+ comments: string;
516
+ default: string;
517
+ };
518
+ clientId: {
519
+ label: string;
520
+ placeholder: string;
521
+ type: "string";
522
+ required: true;
523
+ shown: true;
524
+ comments: string;
525
+ };
526
+ clientSecret: {
527
+ label: string;
528
+ placeholder: string;
529
+ type: "password";
530
+ required: true;
531
+ shown: true;
532
+ comments: string;
533
+ };
534
+ };
535
+ }, "adobeAnalyticsOauth">[];
536
+ dataSources: {
537
+ selectReportSuite: import("@prismatic-io/spectral").DataSourceDefinition<{
538
+ connection: {
539
+ label: string;
540
+ required: true;
541
+ type: "connection";
542
+ comments: string;
543
+ };
544
+ globalCompanyId: {
545
+ label: string;
546
+ type: "string";
547
+ required: true;
548
+ comments: string;
549
+ placeholder: string;
550
+ example: string;
551
+ clean: (value: unknown, defaultValue?: string) => string;
552
+ };
553
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
554
+ selectVirtualReportSuite: import("@prismatic-io/spectral").DataSourceDefinition<{
555
+ connection: {
556
+ label: string;
557
+ required: true;
558
+ type: "connection";
559
+ comments: string;
560
+ };
561
+ globalCompanyId: {
562
+ label: string;
563
+ type: "string";
564
+ required: true;
565
+ comments: string;
566
+ placeholder: string;
567
+ example: string;
568
+ clean: (value: unknown, defaultValue?: string) => string;
569
+ };
570
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
571
+ selectReportSuiteMetric: import("@prismatic-io/spectral").DataSourceDefinition<{
572
+ connection: {
573
+ label: string;
574
+ required: true;
575
+ type: "connection";
576
+ comments: string;
577
+ };
578
+ globalCompanyId: {
579
+ label: string;
580
+ type: "string";
581
+ required: true;
582
+ comments: string;
583
+ placeholder: string;
584
+ example: string;
585
+ clean: (value: unknown, defaultValue?: string) => string;
586
+ };
587
+ reportSuiteId: {
588
+ label: string;
589
+ type: "string";
590
+ required: true;
591
+ comments: string;
592
+ placeholder: string;
593
+ example: string;
594
+ clean: (value: unknown, defaultValue?: string) => string;
595
+ };
596
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
597
+ selectReportSuiteDimension: import("@prismatic-io/spectral").DataSourceDefinition<{
598
+ connection: {
599
+ label: string;
600
+ required: true;
601
+ type: "connection";
602
+ comments: string;
603
+ };
604
+ globalCompanyId: {
605
+ label: string;
606
+ type: "string";
607
+ required: true;
608
+ comments: string;
609
+ placeholder: string;
610
+ example: string;
611
+ clean: (value: unknown, defaultValue?: string) => string;
612
+ };
613
+ reportSuiteId: {
614
+ label: string;
615
+ type: "string";
616
+ required: true;
617
+ comments: string;
618
+ placeholder: string;
619
+ example: string;
620
+ clean: (value: unknown, defaultValue?: string) => string;
621
+ };
622
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
623
+ selectCompany: import("@prismatic-io/spectral").DataSourceDefinition<{
624
+ connection: {
625
+ label: string;
626
+ required: true;
627
+ type: "connection";
628
+ comments: string;
629
+ };
630
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
631
+ };
632
+ hooks: {
633
+ error: (error: unknown) => unknown;
634
+ };
635
+ }>;
636
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-adobe-analytics",
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 companies, report suites, metrics, dimensions and more within Adobe Analytics.",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/adobe-analytics"
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
+ }