@superdurable/connector-amplitude 0.1.0 → 0.2.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.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # Amplitude TypeScript connector
2
2
 
3
- Implements `searchUsers`, returning matching user IDs and match type. Go-recorded conformance checks exact requests, branches, retries and outputs. Configure the project API key and secret key using the [connection guide](../README.md). See the [runnable Dex Flow](examples/user-search/README.md). Live provider authorization remains unverified.
3
+ Use `searchUsers`, `getUserActivity`, `queryChart`, and `getActiveUserCounts` for Dashboard queries. Use `trackEvent`, `identifyUser`, and `unsetUserProperty` for event ingestion and user property updates. The manifest generates typed Step factories for all seven operations. Applications supplying custom operations must bind all seven through `newConnectionWithOperations`.
4
+
5
+ Configure the project API key and secret key using the [connection guide](../README.md). The [runnable Dex examples](examples/user-search/README.md) exercise every operation against fixture responses on a local Dex stack. Live Amplitude authorization and API responses remain unverified.
@@ -1,12 +1,353 @@
1
1
  {
2
2
  "connectorId": "amplitude",
3
- "releaseTag": "connectors/amplitude/go/v0.1.0",
3
+ "releaseTag": "connectors/amplitude/go/v0.2.0",
4
4
  "package": {
5
5
  "ecosystem": "npm",
6
6
  "name": "@superdurable/connector-amplitude",
7
- "version": "0.1.0"
7
+ "version": "0.2.0"
8
8
  },
9
9
  "factories": [
10
+ {
11
+ "name": "newQueryChartStep",
12
+ "kind": "query",
13
+ "operationId": "queryChart",
14
+ "inputType": "QueryChartInput",
15
+ "description": "Read a saved chart's bounded JSON results by chart ID.",
16
+ "fields": {
17
+ "stepType": "stepType",
18
+ "annotations": "annotations",
19
+ "connectionName": "connectionName",
20
+ "resultAttribute": "resultAttribute"
21
+ },
22
+ "branches": [
23
+ {
24
+ "id": "found",
25
+ "field": "found",
26
+ "optional": false
27
+ },
28
+ {
29
+ "id": "missing",
30
+ "field": "missing",
31
+ "optional": true
32
+ },
33
+ {
34
+ "id": "providerRejected",
35
+ "field": "providerRejected",
36
+ "optional": true
37
+ },
38
+ {
39
+ "id": "invalidResponse",
40
+ "field": "invalidResponse",
41
+ "optional": true
42
+ },
43
+ {
44
+ "id": "defect",
45
+ "field": "defect",
46
+ "optional": true
47
+ }
48
+ ],
49
+ "inputSchema": {
50
+ "additionalProperties": false,
51
+ "description": "QueryChartInput identifies a saved chart by its URL ID.",
52
+ "properties": {
53
+ "chartID": {
54
+ "description": "ChartID is the segment after /chart/ in an Amplitude chart URL.",
55
+ "type": "string"
56
+ }
57
+ },
58
+ "required": [
59
+ "chartID"
60
+ ],
61
+ "type": "object"
62
+ }
63
+ },
64
+ {
65
+ "name": "newGetActiveUserCountsStep",
66
+ "kind": "query",
67
+ "operationId": "getActiveUserCounts",
68
+ "inputType": "ActiveUserCountsInput",
69
+ "description": "Read daily, weekly, or monthly active or new user counts for a date range.",
70
+ "fields": {
71
+ "stepType": "stepType",
72
+ "annotations": "annotations",
73
+ "connectionName": "connectionName",
74
+ "resultAttribute": "resultAttribute"
75
+ },
76
+ "branches": [
77
+ {
78
+ "id": "counted",
79
+ "field": "counted",
80
+ "optional": false
81
+ },
82
+ {
83
+ "id": "providerRejected",
84
+ "field": "providerRejected",
85
+ "optional": true
86
+ },
87
+ {
88
+ "id": "invalidResponse",
89
+ "field": "invalidResponse",
90
+ "optional": true
91
+ },
92
+ {
93
+ "id": "defect",
94
+ "field": "defect",
95
+ "optional": true
96
+ }
97
+ ],
98
+ "inputSchema": {
99
+ "additionalProperties": false,
100
+ "description": "ActiveUserCountsInput selects a date range and active or new user metric.",
101
+ "properties": {
102
+ "endDate": {
103
+ "description": "EndDate is the last included date in YYYYMMDD format.",
104
+ "type": "string"
105
+ },
106
+ "intervalDays": {
107
+ "description": "IntervalDays is 1, 7, or 30; zero uses 1.",
108
+ "type": "integer"
109
+ },
110
+ "metric": {
111
+ "description": "Metric is active or new; blank uses active.",
112
+ "type": "string"
113
+ },
114
+ "startDate": {
115
+ "description": "StartDate is the first included date in YYYYMMDD format.",
116
+ "type": "string"
117
+ }
118
+ },
119
+ "required": [
120
+ "endDate",
121
+ "startDate"
122
+ ],
123
+ "type": "object"
124
+ }
125
+ },
126
+ {
127
+ "name": "newGetUserActivityStep",
128
+ "kind": "query",
129
+ "operationId": "getUserActivity",
130
+ "inputType": "GetUserActivityInput",
131
+ "description": "Read one Amplitude user's event and session counts with a bounded event page.",
132
+ "fields": {
133
+ "stepType": "stepType",
134
+ "annotations": "annotations",
135
+ "connectionName": "connectionName",
136
+ "resultAttribute": "resultAttribute"
137
+ },
138
+ "branches": [
139
+ {
140
+ "id": "found",
141
+ "field": "found",
142
+ "optional": false
143
+ },
144
+ {
145
+ "id": "missing",
146
+ "field": "missing",
147
+ "optional": true
148
+ },
149
+ {
150
+ "id": "providerRejected",
151
+ "field": "providerRejected",
152
+ "optional": true
153
+ },
154
+ {
155
+ "id": "invalidResponse",
156
+ "field": "invalidResponse",
157
+ "optional": true
158
+ },
159
+ {
160
+ "id": "defect",
161
+ "field": "defect",
162
+ "optional": true
163
+ }
164
+ ],
165
+ "inputSchema": {
166
+ "additionalProperties": false,
167
+ "description": "GetUserActivityInput selects a bounded page of activity by Amplitude's numeric ID.",
168
+ "properties": {
169
+ "amplitudeID": {
170
+ "description": "AmplitudeID is the numeric ID returned by Amplitude User Lookup.",
171
+ "type": "string"
172
+ },
173
+ "direction": {
174
+ "description": "Direction is latest or earliest; blank uses latest.",
175
+ "type": "string"
176
+ },
177
+ "limit": {
178
+ "description": "Limit is the requested number of events, 1–1000; zero uses 100.",
179
+ "type": "integer"
180
+ },
181
+ "offset": {
182
+ "description": "Offset is the zero-based offset from the most recent event.",
183
+ "type": "integer"
184
+ }
185
+ },
186
+ "required": [
187
+ "amplitudeID"
188
+ ],
189
+ "type": "object"
190
+ }
191
+ },
192
+ {
193
+ "name": "newUnsetUserPropertyStep",
194
+ "kind": "mutation",
195
+ "operationId": "unsetUserProperty",
196
+ "inputType": "UnsetUserPropertyInput",
197
+ "description": "Remove one user property from future events with an absolute Identify $unset.",
198
+ "fields": {
199
+ "stepType": "stepType",
200
+ "annotations": "annotations",
201
+ "connectionName": "connectionName",
202
+ "resultAttribute": "resultAttribute"
203
+ },
204
+ "branches": [
205
+ {
206
+ "id": "unset",
207
+ "field": "unset",
208
+ "optional": false
209
+ },
210
+ {
211
+ "id": "providerRejected",
212
+ "field": "providerRejected",
213
+ "optional": true
214
+ },
215
+ {
216
+ "id": "defect",
217
+ "field": "defect",
218
+ "optional": true
219
+ }
220
+ ],
221
+ "inputSchema": {
222
+ "additionalProperties": false,
223
+ "description": "UnsetUserPropertyInput removes one user property from future events.",
224
+ "properties": {
225
+ "propertyName": {
226
+ "description": "PropertyName names the user property to remove.",
227
+ "type": "string"
228
+ },
229
+ "userID": {
230
+ "description": "UserID is the existing Amplitude user ID.",
231
+ "type": "string"
232
+ }
233
+ },
234
+ "required": [
235
+ "propertyName",
236
+ "userID"
237
+ ],
238
+ "type": "object"
239
+ }
240
+ },
241
+ {
242
+ "name": "newTrackEventStep",
243
+ "kind": "mutation",
244
+ "operationId": "trackEvent",
245
+ "inputType": "TrackEventInput",
246
+ "description": "Upload one analytics event with a stable Dex-derived insert ID; Amplitude deduplicates repeats for seven days.",
247
+ "fields": {
248
+ "stepType": "stepType",
249
+ "annotations": "annotations",
250
+ "connectionName": "connectionName",
251
+ "resultAttribute": "resultAttribute"
252
+ },
253
+ "branches": [
254
+ {
255
+ "id": "tracked",
256
+ "field": "tracked",
257
+ "optional": false
258
+ },
259
+ {
260
+ "id": "providerRejected",
261
+ "field": "providerRejected",
262
+ "optional": true
263
+ },
264
+ {
265
+ "id": "defect",
266
+ "field": "defect",
267
+ "optional": true
268
+ }
269
+ ],
270
+ "inputSchema": {
271
+ "additionalProperties": false,
272
+ "description": "TrackEventInput uploads one event for an existing or new Amplitude user.",
273
+ "properties": {
274
+ "eventProperties": {
275
+ "additionalProperties": {
276
+ "type": "string"
277
+ },
278
+ "description": "EventProperties are optional string properties; blank map sends no properties.",
279
+ "type": "object"
280
+ },
281
+ "eventType": {
282
+ "description": "EventType is the nonempty event name visible in Amplitude's event catalog.",
283
+ "type": "string"
284
+ },
285
+ "userID": {
286
+ "description": "UserID is a non-secret project user ID of at least five UTF-8 bytes.",
287
+ "type": "string"
288
+ }
289
+ },
290
+ "required": [
291
+ "eventType",
292
+ "userID"
293
+ ],
294
+ "type": "object"
295
+ }
296
+ },
297
+ {
298
+ "name": "newIdentifyUserStep",
299
+ "kind": "mutation",
300
+ "operationId": "identifyUser",
301
+ "inputType": "IdentifyUserInput",
302
+ "description": "Absolutely set one user property through Amplitude Identify API.",
303
+ "fields": {
304
+ "stepType": "stepType",
305
+ "annotations": "annotations",
306
+ "connectionName": "connectionName",
307
+ "resultAttribute": "resultAttribute"
308
+ },
309
+ "branches": [
310
+ {
311
+ "id": "identified",
312
+ "field": "identified",
313
+ "optional": false
314
+ },
315
+ {
316
+ "id": "providerRejected",
317
+ "field": "providerRejected",
318
+ "optional": true
319
+ },
320
+ {
321
+ "id": "defect",
322
+ "field": "defect",
323
+ "optional": true
324
+ }
325
+ ],
326
+ "inputSchema": {
327
+ "additionalProperties": false,
328
+ "description": "IdentifyUserInput absolutely sets one string user property.",
329
+ "properties": {
330
+ "propertyName": {
331
+ "description": "PropertyName is a user property shown in Amplitude User Lookup.",
332
+ "type": "string"
333
+ },
334
+ "propertyValue": {
335
+ "description": "PropertyValue replaces the current string value; blank sets the empty string.",
336
+ "type": "string"
337
+ },
338
+ "userID": {
339
+ "description": "UserID is a non-secret Amplitude user ID.",
340
+ "type": "string"
341
+ }
342
+ },
343
+ "required": [
344
+ "propertyName",
345
+ "propertyValue",
346
+ "userID"
347
+ ],
348
+ "type": "object"
349
+ }
350
+ },
10
351
  {
11
352
  "name": "newSearchUsersStep",
12
353
  "kind": "query",