@major-tech/resource-client 0.2.27 → 0.2.32

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 (63) hide show
  1. package/bin/generate-clients.mjs +22 -20
  2. package/dist/clients/auth.cjs +49 -0
  3. package/dist/clients/auth.cjs.map +7 -0
  4. package/dist/clients/auth.d.ts +16 -0
  5. package/dist/clients/auth.d.ts.map +1 -0
  6. package/dist/clients/auth.js +22 -0
  7. package/dist/clients/auth.js.map +1 -0
  8. package/dist/clients/google-analytics.cjs +101 -0
  9. package/dist/clients/google-analytics.cjs.map +7 -0
  10. package/dist/clients/google-analytics.d.ts +62 -0
  11. package/dist/clients/google-analytics.d.ts.map +1 -0
  12. package/dist/clients/google-analytics.js +74 -0
  13. package/dist/clients/google-analytics.js.map +1 -0
  14. package/dist/index.cjs +4 -0
  15. package/dist/index.cjs.map +2 -2
  16. package/dist/index.d.ts +3 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/payload-builders/auth.cjs +44 -0
  21. package/dist/payload-builders/auth.cjs.map +7 -0
  22. package/dist/payload-builders/auth.d.ts +12 -0
  23. package/dist/payload-builders/auth.d.ts.map +1 -0
  24. package/dist/payload-builders/auth.js +25 -0
  25. package/dist/payload-builders/auth.js.map +1 -0
  26. package/dist/payload-builders/from-extracted-params.cjs +38 -0
  27. package/dist/payload-builders/from-extracted-params.cjs.map +2 -2
  28. package/dist/payload-builders/from-extracted-params.d.ts.map +1 -1
  29. package/dist/payload-builders/from-extracted-params.js +39 -0
  30. package/dist/payload-builders/from-extracted-params.js.map +1 -1
  31. package/dist/payload-builders/google-analytics.cjs +106 -0
  32. package/dist/payload-builders/google-analytics.cjs.map +7 -0
  33. package/dist/payload-builders/google-analytics.d.ts +39 -0
  34. package/dist/payload-builders/google-analytics.d.ts.map +1 -0
  35. package/dist/payload-builders/google-analytics.js +90 -0
  36. package/dist/payload-builders/google-analytics.js.map +1 -0
  37. package/dist/payload-builders/index.cjs +11 -0
  38. package/dist/payload-builders/index.cjs.map +2 -2
  39. package/dist/payload-builders/index.d.ts +2 -0
  40. package/dist/payload-builders/index.d.ts.map +1 -1
  41. package/dist/payload-builders/index.js +4 -0
  42. package/dist/payload-builders/index.js.map +1 -1
  43. package/dist/schemas/auth.cjs +17 -0
  44. package/dist/schemas/auth.cjs.map +7 -0
  45. package/dist/schemas/auth.d.ts +15 -0
  46. package/dist/schemas/auth.d.ts.map +1 -0
  47. package/dist/schemas/auth.js +5 -0
  48. package/dist/schemas/auth.js.map +1 -0
  49. package/dist/schemas/google-analytics.cjs +17 -0
  50. package/dist/schemas/google-analytics.cjs.map +7 -0
  51. package/dist/schemas/google-analytics.d.ts +133 -0
  52. package/dist/schemas/google-analytics.d.ts.map +1 -0
  53. package/dist/schemas/google-analytics.js +2 -0
  54. package/dist/schemas/google-analytics.js.map +1 -0
  55. package/dist/schemas/index.cjs +2 -0
  56. package/dist/schemas/index.cjs.map +2 -2
  57. package/dist/schemas/index.d.ts +5 -1
  58. package/dist/schemas/index.d.ts.map +1 -1
  59. package/dist/schemas/index.js +2 -0
  60. package/dist/schemas/index.js.map +1 -1
  61. package/dist/schemas/response.d.ts +11 -1
  62. package/dist/schemas/response.d.ts.map +1 -1
  63. package/package.json +1 -1
@@ -8,7 +8,7 @@
8
8
  * npx @major-tech/resource-client remove <name>
9
9
  * npx @major-tech/resource-client list
10
10
  *
11
- * Types: postgresql | mssql | dynamodb | cosmosdb | snowflake | bigquery | neo4j | hubspot | googlesheets | outreach | custom | lambda | salesforce | s3 | slack
11
+ * Types: postgresql | mssql | dynamodb | cosmosdb | snowflake | bigquery | neo4j | hubspot | googlesheets | outreach | custom | lambda | salesforce | s3 | slack | majorauth | googleanalytics
12
12
  *
13
13
  * Examples:
14
14
  * npx @major-tech/resource-client add "abc-123" "orders-db" "postgresql" "Orders database" "app-123"
@@ -41,7 +41,7 @@ function getClientsDir() {
41
41
  */
42
42
  function clientTemplate(data, framework) {
43
43
  const isNextJs = framework === 'nextjs';
44
-
44
+
45
45
  const imports = [
46
46
  `import { ${data.clientClass} } from '@major-tech/resource-client';`,
47
47
  isNextJs ? `import { headers } from 'next/headers';` : ''
@@ -155,6 +155,8 @@ function getClientClass(type) {
155
155
  'salesforce': 'SalesforceResourceClient',
156
156
  's3': 'S3ResourceClient',
157
157
  'slack': 'SlackResourceClient',
158
+ 'majorauth': 'MajorAuthResourceClient',
159
+ 'googleanalytics': 'GoogleAnalyticsResourceClient',
158
160
  };
159
161
  return typeMap[type] || 'PostgresResourceClient';
160
162
  }
@@ -188,7 +190,7 @@ function generateIndexFile(resources) {
188
190
  }
189
191
 
190
192
  function addResource(resourceId, name, type, description, applicationId, framework) {
191
- const validTypes = ['postgresql', 'mssql', 'dynamodb', 'cosmosdb', 'snowflake', 'bigquery', 'neo4j', 'hubspot', 'googlesheets', 'outreach', 'custom', 'lambda', 'salesforce', 's3', 'slack'];
193
+ const validTypes = ['postgresql', 'mssql', 'dynamodb', 'cosmosdb', 'snowflake', 'bigquery', 'neo4j', 'hubspot', 'googlesheets', 'outreach', 'custom', 'lambda', 'salesforce', 's3', 'slack', 'majorauth', 'googleanalytics'];
192
194
  if (!validTypes.includes(type)) {
193
195
  console.error(`❌ Invalid type: ${type}`);
194
196
  console.error(` Valid types: ${validTypes.join(', ')}`);
@@ -202,13 +204,13 @@ function addResource(resourceId, name, type, description, applicationId, framewo
202
204
  }
203
205
 
204
206
  const resources = loadResources();
205
-
207
+
206
208
  const existing = resources.find(r => r.name === name);
207
209
  if (existing) {
208
210
  console.error(`❌ Resource with name "${name}" already exists`);
209
211
  process.exit(1);
210
212
  }
211
-
213
+
212
214
  const newResource = {
213
215
  id: resourceId,
214
216
  name,
@@ -216,14 +218,14 @@ function addResource(resourceId, name, type, description, applicationId, framewo
216
218
  description,
217
219
  applicationId
218
220
  };
219
-
221
+
220
222
  resources.push(newResource);
221
223
  saveResources(resources);
222
-
224
+
223
225
  console.log(`✅ Added resource: ${name}`);
224
226
  console.log(` Type: ${type}`);
225
227
  console.log(` ID: ${resourceId}`);
226
-
228
+
227
229
  regenerateClients(resources, framework);
228
230
  }
229
231
 
@@ -233,18 +235,18 @@ function addResource(resourceId, name, type, description, applicationId, framewo
233
235
  function removeResource(name, framework) {
234
236
  const resources = loadResources();
235
237
  const index = resources.findIndex(r => r.name === name);
236
-
238
+
237
239
  if (index === -1) {
238
240
  console.error(`❌ Resource "${name}" not found`);
239
241
  process.exit(1);
240
242
  }
241
-
243
+
242
244
  const removed = resources.splice(index, 1)[0];
243
245
  saveResources(resources);
244
-
246
+
245
247
  console.log(`✅ Removed resource: ${removed.name}`);
246
248
  console.log(` ID: ${removed.id}`);
247
-
249
+
248
250
  regenerateClients(resources, framework);
249
251
  }
250
252
 
@@ -253,12 +255,12 @@ function removeResource(name, framework) {
253
255
  */
254
256
  function listResources() {
255
257
  const resources = loadResources();
256
-
258
+
257
259
  if (resources.length === 0) {
258
260
  console.log('No resources configured');
259
261
  return;
260
262
  }
261
-
263
+
262
264
  console.log(`Resources (${resources.length}):\n`);
263
265
  resources.forEach((r, idx) => {
264
266
  console.log(`${idx + 1}. ${r.name} (${r.type})`);
@@ -310,7 +312,7 @@ function regenerateClients(resources, framework) {
310
312
  function main() {
311
313
  const args = process.argv.slice(2);
312
314
  const command = args[0];
313
-
315
+
314
316
  // Extract --framework flag
315
317
  const frameworkIndex = args.indexOf('--framework');
316
318
  let framework = undefined;
@@ -319,16 +321,16 @@ function main() {
319
321
  // Remove --framework and its value from args
320
322
  args.splice(frameworkIndex, 2);
321
323
  }
322
-
324
+
323
325
  if (!command) {
324
326
  console.log('Usage:');
325
327
  console.log(' npx @major-tech/resource-client add <resource_id> <name> <type> <description> <application_id> [--framework <nextjs|vite>]');
326
328
  console.log(' npx @major-tech/resource-client remove <name> [--framework <nextjs|vite>]');
327
329
  console.log(' npx @major-tech/resource-client list');
328
- console.log('\nTypes: postgresql | mssql | dynamodb | cosmosdb | snowflake | bigquery | neo4j | hubspot | googlesheets | outreach | custom | lambda | salesforce | s3 | slack');
330
+ console.log('\nTypes: postgresql | mssql | dynamodb | cosmosdb | snowflake | bigquery | neo4j | hubspot | googlesheets | outreach | custom | lambda | salesforce | s3 | slack | majorauth | googleanalytics');
329
331
  return;
330
332
  }
331
-
333
+
332
334
  switch (command) {
333
335
  case 'add': {
334
336
  const [, resourceId, name, type, description, applicationId] = args;
@@ -340,7 +342,7 @@ function main() {
340
342
  addResource(resourceId, name, type, description, applicationId, framework);
341
343
  break;
342
344
  }
343
-
345
+
344
346
  case 'remove': {
345
347
  const [, name] = args;
346
348
  if (!name) {
@@ -350,7 +352,7 @@ function main() {
350
352
  removeResource(name, framework);
351
353
  break;
352
354
  }
353
-
355
+
354
356
  case 'list': {
355
357
  listResources();
356
358
  break;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var auth_exports = {};
21
+ __export(auth_exports, {
22
+ MajorAuthResourceClient: () => MajorAuthResourceClient
23
+ });
24
+ module.exports = __toCommonJS(auth_exports);
25
+ var import_base = require("../base");
26
+ var import_auth = require("../payload-builders/auth");
27
+ class MajorAuthResourceClient extends import_base.BaseResourceClient {
28
+ static {
29
+ __name(this, "MajorAuthResourceClient");
30
+ }
31
+ /**
32
+ * Grant a user view access to this application by email.
33
+ * If the user doesn't have an account, one will be created.
34
+ * If the user isn't a member of the organization, they will be invited.
35
+ */
36
+ async shareAccess(email, invocationKey) {
37
+ const payload = (0, import_auth.buildAuthShareAccessPayload)(email);
38
+ return this.invokeRaw(payload, invocationKey);
39
+ }
40
+ /**
41
+ * Revoke a user's view access to this application by email.
42
+ * Only removes app-level access; does not affect org membership or roles.
43
+ */
44
+ async revokeAccess(email, invocationKey) {
45
+ const payload = (0, import_auth.buildAuthRevokeAccessPayload)(email);
46
+ return this.invokeRaw(payload, invocationKey);
47
+ }
48
+ }
49
+ //# sourceMappingURL=auth.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/clients/auth.ts"],
4
+ "sourcesContent": ["import type { AuthInvokeResponse } from \"../schemas\";\nimport { BaseResourceClient } from \"../base\";\nimport { buildAuthShareAccessPayload, buildAuthRevokeAccessPayload } from \"../payload-builders/auth\";\n\nexport class MajorAuthResourceClient extends BaseResourceClient {\n /**\n * Grant a user view access to this application by email.\n * If the user doesn't have an account, one will be created.\n * If the user isn't a member of the organization, they will be invited.\n */\n async shareAccess(\n email: string,\n invocationKey: string,\n ): Promise<AuthInvokeResponse> {\n const payload = buildAuthShareAccessPayload(email);\n return this.invokeRaw(payload, invocationKey) as Promise<AuthInvokeResponse>;\n }\n\n /**\n * Revoke a user's view access to this application by email.\n * Only removes app-level access; does not affect org membership or roles.\n */\n async revokeAccess(\n email: string,\n invocationKey: string,\n ): Promise<AuthInvokeResponse> {\n const payload = buildAuthRevokeAccessPayload(email);\n return this.invokeRaw(payload, invocationKey) as Promise<AuthInvokeResponse>;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AACA;;;;;AAAA,kBAAmC;AACnC,kBAA0E;AAEpE,MAAO,gCAAgC,+BAAkB;EAH/D,OAG+D;;;;;;;;EAM7D,MAAM,YACJ,OACA,eAAqB;AAErB,UAAM,cAAU,yCAA4B,KAAK;AACjD,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;EAMA,MAAM,aACJ,OACA,eAAqB;AAErB,UAAM,cAAU,0CAA6B,KAAK;AAClD,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;",
6
+ "names": []
7
+ }
@@ -0,0 +1,16 @@
1
+ import type { AuthInvokeResponse } from "../schemas";
2
+ import { BaseResourceClient } from "../base";
3
+ export declare class MajorAuthResourceClient extends BaseResourceClient {
4
+ /**
5
+ * Grant a user view access to this application by email.
6
+ * If the user doesn't have an account, one will be created.
7
+ * If the user isn't a member of the organization, they will be invited.
8
+ */
9
+ shareAccess(email: string, invocationKey: string): Promise<AuthInvokeResponse>;
10
+ /**
11
+ * Revoke a user's view access to this application by email.
12
+ * Only removes app-level access; does not affect org membership or roles.
13
+ */
14
+ revokeAccess(email: string, invocationKey: string): Promise<AuthInvokeResponse>;
15
+ }
16
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/clients/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,qBAAa,uBAAwB,SAAQ,kBAAkB;IAC7D;;;;OAIG;IACG,WAAW,CACf,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,kBAAkB,CAAC;IAK9B;;;OAGG;IACG,YAAY,CAChB,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,kBAAkB,CAAC;CAI/B"}
@@ -0,0 +1,22 @@
1
+ import { BaseResourceClient } from "../base";
2
+ import { buildAuthShareAccessPayload, buildAuthRevokeAccessPayload } from "../payload-builders/auth";
3
+ export class MajorAuthResourceClient extends BaseResourceClient {
4
+ /**
5
+ * Grant a user view access to this application by email.
6
+ * If the user doesn't have an account, one will be created.
7
+ * If the user isn't a member of the organization, they will be invited.
8
+ */
9
+ async shareAccess(email, invocationKey) {
10
+ const payload = buildAuthShareAccessPayload(email);
11
+ return this.invokeRaw(payload, invocationKey);
12
+ }
13
+ /**
14
+ * Revoke a user's view access to this application by email.
15
+ * Only removes app-level access; does not affect org membership or roles.
16
+ */
17
+ async revokeAccess(email, invocationKey) {
18
+ const payload = buildAuthRevokeAccessPayload(email);
19
+ return this.invokeRaw(payload, invocationKey);
20
+ }
21
+ }
22
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/clients/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAErG,MAAM,OAAO,uBAAwB,SAAQ,kBAAkB;IAC7D;;;;OAIG;IACH,KAAK,CAAC,WAAW,CACf,KAAa,EACb,aAAqB;QAErB,MAAM,OAAO,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAAgC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAChB,KAAa,EACb,aAAqB;QAErB,MAAM,OAAO,GAAG,4BAA4B,CAAC,KAAK,CAAC,CAAC;QACpD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAAgC,CAAC;IAC/E,CAAC;CACF"}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var google_analytics_exports = {};
21
+ __export(google_analytics_exports, {
22
+ GoogleAnalyticsResourceClient: () => GoogleAnalyticsResourceClient
23
+ });
24
+ module.exports = __toCommonJS(google_analytics_exports);
25
+ var import_base = require("../base");
26
+ var import_google_analytics = require("../payload-builders/google-analytics");
27
+ class GoogleAnalyticsResourceClient extends import_base.BaseResourceClient {
28
+ static {
29
+ __name(this, "GoogleAnalyticsResourceClient");
30
+ }
31
+ /**
32
+ * Run a GA4 report with dimensions, metrics, and date ranges
33
+ * @param dimensions Dimensions to group by (e.g. [{name: 'country'}])
34
+ * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])
35
+ * @param dateRanges Date ranges (e.g. [{startDate: '2024-01-01', endDate: '2024-01-31'}])
36
+ * @param invocationKey Unique key for tracking this invocation
37
+ * @param options Optional report options (filters, ordering, limit, offset)
38
+ */
39
+ async runReport(dimensions, metrics, dateRanges, invocationKey, options) {
40
+ const payload = (0, import_google_analytics.buildGoogleAnalyticsRunReportPayload)(dimensions, metrics, dateRanges, options);
41
+ return this.invokeRaw(payload, invocationKey);
42
+ }
43
+ /**
44
+ * Get available dimensions and metrics for the GA4 property
45
+ * @param invocationKey Unique key for tracking this invocation
46
+ */
47
+ async getMetadata(invocationKey) {
48
+ const payload = (0, import_google_analytics.buildGoogleAnalyticsGetMetadataPayload)();
49
+ return this.invokeRaw(payload, invocationKey);
50
+ }
51
+ /**
52
+ * Run a realtime report showing current live user activity
53
+ * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])
54
+ * @param invocationKey Unique key for tracking this invocation
55
+ * @param dimensions Optional dimensions to group by
56
+ * @param limit Optional row limit
57
+ */
58
+ async runRealtimeReport(metrics, invocationKey, dimensions, limit) {
59
+ const payload = (0, import_google_analytics.buildGoogleAnalyticsRunRealtimeReportPayload)(metrics, dimensions, limit);
60
+ return this.invokeRaw(payload, invocationKey);
61
+ }
62
+ /**
63
+ * List all GA4 accounts accessible to the authenticated user
64
+ * @param invocationKey Unique key for tracking this invocation
65
+ * @param options Optional pagination options
66
+ */
67
+ async listAccounts(invocationKey, options) {
68
+ const payload = (0, import_google_analytics.buildGoogleAnalyticsListAccountsPayload)(options);
69
+ return this.invokeRaw(payload, invocationKey);
70
+ }
71
+ /**
72
+ * List GA4 properties, optionally filtered by account
73
+ * @param invocationKey Unique key for tracking this invocation
74
+ * @param accountId Optional account filter (e.g. 'accounts/12345')
75
+ * @param options Optional pagination options
76
+ */
77
+ async listProperties(invocationKey, accountId, options) {
78
+ const payload = (0, import_google_analytics.buildGoogleAnalyticsListPropertiesPayload)(accountId, options);
79
+ return this.invokeRaw(payload, invocationKey);
80
+ }
81
+ /**
82
+ * List data streams for a GA4 property
83
+ * @param invocationKey Unique key for tracking this invocation
84
+ * @param propertyId Optional property ID (defaults to configured property)
85
+ * @param options Optional pagination options
86
+ */
87
+ async listDataStreams(invocationKey, propertyId, options) {
88
+ const payload = (0, import_google_analytics.buildGoogleAnalyticsListDataStreamsPayload)(propertyId, options);
89
+ return this.invokeRaw(payload, invocationKey);
90
+ }
91
+ /**
92
+ * Execute a raw Google Analytics operation
93
+ * @param payload The raw operation payload
94
+ * @param invocationKey Unique key for tracking this invocation
95
+ */
96
+ async invoke(payload, invocationKey) {
97
+ const p = (0, import_google_analytics.buildGoogleAnalyticsInvokePayload)(payload);
98
+ return this.invokeRaw(p, invocationKey);
99
+ }
100
+ }
101
+ //# sourceMappingURL=google-analytics.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/clients/google-analytics.ts"],
4
+ "sourcesContent": ["import type {\n GADimension,\n GAMetric,\n GADateRange,\n GARunReportOptions,\n GoogleAnalyticsInvokeResponse,\n} from \"../schemas\";\nimport { BaseResourceClient } from \"../base\";\nimport {\n buildGoogleAnalyticsRunReportPayload,\n buildGoogleAnalyticsGetMetadataPayload,\n buildGoogleAnalyticsRunRealtimeReportPayload,\n buildGoogleAnalyticsListAccountsPayload,\n buildGoogleAnalyticsListPropertiesPayload,\n buildGoogleAnalyticsListDataStreamsPayload,\n buildGoogleAnalyticsInvokePayload,\n} from \"../payload-builders/google-analytics\";\n\nexport class GoogleAnalyticsResourceClient extends BaseResourceClient {\n /**\n * Run a GA4 report with dimensions, metrics, and date ranges\n * @param dimensions Dimensions to group by (e.g. [{name: 'country'}])\n * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])\n * @param dateRanges Date ranges (e.g. [{startDate: '2024-01-01', endDate: '2024-01-31'}])\n * @param invocationKey Unique key for tracking this invocation\n * @param options Optional report options (filters, ordering, limit, offset)\n */\n async runReport(\n dimensions: GADimension[],\n metrics: GAMetric[],\n dateRanges: GADateRange[],\n invocationKey: string,\n options?: GARunReportOptions\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const payload = buildGoogleAnalyticsRunReportPayload(dimensions, metrics, dateRanges, options);\n return this.invokeRaw(payload, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n\n /**\n * Get available dimensions and metrics for the GA4 property\n * @param invocationKey Unique key for tracking this invocation\n */\n async getMetadata(\n invocationKey: string\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const payload = buildGoogleAnalyticsGetMetadataPayload();\n return this.invokeRaw(payload, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n\n /**\n * Run a realtime report showing current live user activity\n * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])\n * @param invocationKey Unique key for tracking this invocation\n * @param dimensions Optional dimensions to group by\n * @param limit Optional row limit\n */\n async runRealtimeReport(\n metrics: GAMetric[],\n invocationKey: string,\n dimensions?: GADimension[],\n limit?: number\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const payload = buildGoogleAnalyticsRunRealtimeReportPayload(metrics, dimensions, limit);\n return this.invokeRaw(payload, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n\n /**\n * List all GA4 accounts accessible to the authenticated user\n * @param invocationKey Unique key for tracking this invocation\n * @param options Optional pagination options\n */\n async listAccounts(\n invocationKey: string,\n options?: { pageSize?: number; pageToken?: string }\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const payload = buildGoogleAnalyticsListAccountsPayload(options);\n return this.invokeRaw(payload, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n\n /**\n * List GA4 properties, optionally filtered by account\n * @param invocationKey Unique key for tracking this invocation\n * @param accountId Optional account filter (e.g. 'accounts/12345')\n * @param options Optional pagination options\n */\n async listProperties(\n invocationKey: string,\n accountId?: string,\n options?: { pageSize?: number; pageToken?: string }\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const payload = buildGoogleAnalyticsListPropertiesPayload(accountId, options);\n return this.invokeRaw(payload, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n\n /**\n * List data streams for a GA4 property\n * @param invocationKey Unique key for tracking this invocation\n * @param propertyId Optional property ID (defaults to configured property)\n * @param options Optional pagination options\n */\n async listDataStreams(\n invocationKey: string,\n propertyId?: string,\n options?: { pageSize?: number; pageToken?: string }\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const payload = buildGoogleAnalyticsListDataStreamsPayload(propertyId, options);\n return this.invokeRaw(payload, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n\n /**\n * Execute a raw Google Analytics operation\n * @param payload The raw operation payload\n * @param invocationKey Unique key for tracking this invocation\n */\n async invoke(\n payload: Record<string, unknown>,\n invocationKey: string\n ): Promise<GoogleAnalyticsInvokeResponse> {\n const p = buildGoogleAnalyticsInvokePayload(payload);\n return this.invokeRaw(p, invocationKey) as Promise<GoogleAnalyticsInvokeResponse>;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAOA;;;;;AAAA,kBAAmC;AACnC,8BAQO;AAED,MAAO,sCAAsC,+BAAkB;EAXrE,OAWqE;;;;;;;;;;;EASnE,MAAM,UACJ,YACA,SACA,YACA,eACA,SAA4B;AAE5B,UAAM,cAAU,8DAAqC,YAAY,SAAS,YAAY,OAAO;AAC7F,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;EAMA,MAAM,YACJ,eAAqB;AAErB,UAAM,cAAU,gEAAsC;AACtD,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;;;;EASA,MAAM,kBACJ,SACA,eACA,YACA,OAAc;AAEd,UAAM,cAAU,sEAA6C,SAAS,YAAY,KAAK;AACvF,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;;EAOA,MAAM,aACJ,eACA,SAAmD;AAEnD,UAAM,cAAU,iEAAwC,OAAO;AAC/D,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;;;EAQA,MAAM,eACJ,eACA,WACA,SAAmD;AAEnD,UAAM,cAAU,mEAA0C,WAAW,OAAO;AAC5E,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;;;EAQA,MAAM,gBACJ,eACA,YACA,SAAmD;AAEnD,UAAM,cAAU,oEAA2C,YAAY,OAAO;AAC9E,WAAO,KAAK,UAAU,SAAS,aAAa;EAC9C;;;;;;EAOA,MAAM,OACJ,SACA,eAAqB;AAErB,UAAM,QAAI,2DAAkC,OAAO;AACnD,WAAO,KAAK,UAAU,GAAG,aAAa;EACxC;;",
6
+ "names": []
7
+ }
@@ -0,0 +1,62 @@
1
+ import type { GADimension, GAMetric, GADateRange, GARunReportOptions, GoogleAnalyticsInvokeResponse } from "../schemas";
2
+ import { BaseResourceClient } from "../base";
3
+ export declare class GoogleAnalyticsResourceClient extends BaseResourceClient {
4
+ /**
5
+ * Run a GA4 report with dimensions, metrics, and date ranges
6
+ * @param dimensions Dimensions to group by (e.g. [{name: 'country'}])
7
+ * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])
8
+ * @param dateRanges Date ranges (e.g. [{startDate: '2024-01-01', endDate: '2024-01-31'}])
9
+ * @param invocationKey Unique key for tracking this invocation
10
+ * @param options Optional report options (filters, ordering, limit, offset)
11
+ */
12
+ runReport(dimensions: GADimension[], metrics: GAMetric[], dateRanges: GADateRange[], invocationKey: string, options?: GARunReportOptions): Promise<GoogleAnalyticsInvokeResponse>;
13
+ /**
14
+ * Get available dimensions and metrics for the GA4 property
15
+ * @param invocationKey Unique key for tracking this invocation
16
+ */
17
+ getMetadata(invocationKey: string): Promise<GoogleAnalyticsInvokeResponse>;
18
+ /**
19
+ * Run a realtime report showing current live user activity
20
+ * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])
21
+ * @param invocationKey Unique key for tracking this invocation
22
+ * @param dimensions Optional dimensions to group by
23
+ * @param limit Optional row limit
24
+ */
25
+ runRealtimeReport(metrics: GAMetric[], invocationKey: string, dimensions?: GADimension[], limit?: number): Promise<GoogleAnalyticsInvokeResponse>;
26
+ /**
27
+ * List all GA4 accounts accessible to the authenticated user
28
+ * @param invocationKey Unique key for tracking this invocation
29
+ * @param options Optional pagination options
30
+ */
31
+ listAccounts(invocationKey: string, options?: {
32
+ pageSize?: number;
33
+ pageToken?: string;
34
+ }): Promise<GoogleAnalyticsInvokeResponse>;
35
+ /**
36
+ * List GA4 properties, optionally filtered by account
37
+ * @param invocationKey Unique key for tracking this invocation
38
+ * @param accountId Optional account filter (e.g. 'accounts/12345')
39
+ * @param options Optional pagination options
40
+ */
41
+ listProperties(invocationKey: string, accountId?: string, options?: {
42
+ pageSize?: number;
43
+ pageToken?: string;
44
+ }): Promise<GoogleAnalyticsInvokeResponse>;
45
+ /**
46
+ * List data streams for a GA4 property
47
+ * @param invocationKey Unique key for tracking this invocation
48
+ * @param propertyId Optional property ID (defaults to configured property)
49
+ * @param options Optional pagination options
50
+ */
51
+ listDataStreams(invocationKey: string, propertyId?: string, options?: {
52
+ pageSize?: number;
53
+ pageToken?: string;
54
+ }): Promise<GoogleAnalyticsInvokeResponse>;
55
+ /**
56
+ * Execute a raw Google Analytics operation
57
+ * @param payload The raw operation payload
58
+ * @param invocationKey Unique key for tracking this invocation
59
+ */
60
+ invoke(payload: Record<string, unknown>, invocationKey: string): Promise<GoogleAnalyticsInvokeResponse>;
61
+ }
62
+ //# sourceMappingURL=google-analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-analytics.d.ts","sourceRoot":"","sources":["../../src/clients/google-analytics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,6BAA6B,EAC9B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAW7C,qBAAa,6BAA8B,SAAQ,kBAAkB;IACnE;;;;;;;OAOG;IACG,SAAS,CACb,UAAU,EAAE,WAAW,EAAE,EACzB,OAAO,EAAE,QAAQ,EAAE,EACnB,UAAU,EAAE,WAAW,EAAE,EACzB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;OAGG;IACG,WAAW,CACf,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;;;;OAMG;IACG,iBAAiB,CACrB,OAAO,EAAE,QAAQ,EAAE,EACnB,aAAa,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,WAAW,EAAE,EAC1B,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;;OAIG;IACG,YAAY,CAChB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;;;OAKG;IACG,cAAc,CAClB,aAAa,EAAE,MAAM,EACrB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;;;OAKG;IACG,eAAe,CACnB,aAAa,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,6BAA6B,CAAC;IAKzC;;;;OAIG;IACG,MAAM,CACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,6BAA6B,CAAC;CAI1C"}
@@ -0,0 +1,74 @@
1
+ import { BaseResourceClient } from "../base";
2
+ import { buildGoogleAnalyticsRunReportPayload, buildGoogleAnalyticsGetMetadataPayload, buildGoogleAnalyticsRunRealtimeReportPayload, buildGoogleAnalyticsListAccountsPayload, buildGoogleAnalyticsListPropertiesPayload, buildGoogleAnalyticsListDataStreamsPayload, buildGoogleAnalyticsInvokePayload, } from "../payload-builders/google-analytics";
3
+ export class GoogleAnalyticsResourceClient extends BaseResourceClient {
4
+ /**
5
+ * Run a GA4 report with dimensions, metrics, and date ranges
6
+ * @param dimensions Dimensions to group by (e.g. [{name: 'country'}])
7
+ * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])
8
+ * @param dateRanges Date ranges (e.g. [{startDate: '2024-01-01', endDate: '2024-01-31'}])
9
+ * @param invocationKey Unique key for tracking this invocation
10
+ * @param options Optional report options (filters, ordering, limit, offset)
11
+ */
12
+ async runReport(dimensions, metrics, dateRanges, invocationKey, options) {
13
+ const payload = buildGoogleAnalyticsRunReportPayload(dimensions, metrics, dateRanges, options);
14
+ return this.invokeRaw(payload, invocationKey);
15
+ }
16
+ /**
17
+ * Get available dimensions and metrics for the GA4 property
18
+ * @param invocationKey Unique key for tracking this invocation
19
+ */
20
+ async getMetadata(invocationKey) {
21
+ const payload = buildGoogleAnalyticsGetMetadataPayload();
22
+ return this.invokeRaw(payload, invocationKey);
23
+ }
24
+ /**
25
+ * Run a realtime report showing current live user activity
26
+ * @param metrics Metrics to retrieve (e.g. [{name: 'activeUsers'}])
27
+ * @param invocationKey Unique key for tracking this invocation
28
+ * @param dimensions Optional dimensions to group by
29
+ * @param limit Optional row limit
30
+ */
31
+ async runRealtimeReport(metrics, invocationKey, dimensions, limit) {
32
+ const payload = buildGoogleAnalyticsRunRealtimeReportPayload(metrics, dimensions, limit);
33
+ return this.invokeRaw(payload, invocationKey);
34
+ }
35
+ /**
36
+ * List all GA4 accounts accessible to the authenticated user
37
+ * @param invocationKey Unique key for tracking this invocation
38
+ * @param options Optional pagination options
39
+ */
40
+ async listAccounts(invocationKey, options) {
41
+ const payload = buildGoogleAnalyticsListAccountsPayload(options);
42
+ return this.invokeRaw(payload, invocationKey);
43
+ }
44
+ /**
45
+ * List GA4 properties, optionally filtered by account
46
+ * @param invocationKey Unique key for tracking this invocation
47
+ * @param accountId Optional account filter (e.g. 'accounts/12345')
48
+ * @param options Optional pagination options
49
+ */
50
+ async listProperties(invocationKey, accountId, options) {
51
+ const payload = buildGoogleAnalyticsListPropertiesPayload(accountId, options);
52
+ return this.invokeRaw(payload, invocationKey);
53
+ }
54
+ /**
55
+ * List data streams for a GA4 property
56
+ * @param invocationKey Unique key for tracking this invocation
57
+ * @param propertyId Optional property ID (defaults to configured property)
58
+ * @param options Optional pagination options
59
+ */
60
+ async listDataStreams(invocationKey, propertyId, options) {
61
+ const payload = buildGoogleAnalyticsListDataStreamsPayload(propertyId, options);
62
+ return this.invokeRaw(payload, invocationKey);
63
+ }
64
+ /**
65
+ * Execute a raw Google Analytics operation
66
+ * @param payload The raw operation payload
67
+ * @param invocationKey Unique key for tracking this invocation
68
+ */
69
+ async invoke(payload, invocationKey) {
70
+ const p = buildGoogleAnalyticsInvokePayload(payload);
71
+ return this.invokeRaw(p, invocationKey);
72
+ }
73
+ }
74
+ //# sourceMappingURL=google-analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-analytics.js","sourceRoot":"","sources":["../../src/clients/google-analytics.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,oCAAoC,EACpC,sCAAsC,EACtC,4CAA4C,EAC5C,uCAAuC,EACvC,yCAAyC,EACzC,0CAA0C,EAC1C,iCAAiC,GAClC,MAAM,sCAAsC,CAAC;AAE9C,MAAM,OAAO,6BAA8B,SAAQ,kBAAkB;IACnE;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,CACb,UAAyB,EACzB,OAAmB,EACnB,UAAyB,EACzB,aAAqB,EACrB,OAA4B;QAE5B,MAAM,OAAO,GAAG,oCAAoC,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;QAC/F,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAA2C,CAAC;IAC1F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAW,CACf,aAAqB;QAErB,MAAM,OAAO,GAAG,sCAAsC,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAA2C,CAAC;IAC1F,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAmB,EACnB,aAAqB,EACrB,UAA0B,EAC1B,KAAc;QAEd,MAAM,OAAO,GAAG,4CAA4C,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACzF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAA2C,CAAC;IAC1F,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,YAAY,CAChB,aAAqB,EACrB,OAAmD;QAEnD,MAAM,OAAO,GAAG,uCAAuC,CAAC,OAAO,CAAC,CAAC;QACjE,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAA2C,CAAC;IAC1F,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,aAAqB,EACrB,SAAkB,EAClB,OAAmD;QAEnD,MAAM,OAAO,GAAG,yCAAyC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAA2C,CAAC;IAC1F,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,aAAqB,EACrB,UAAmB,EACnB,OAAmD;QAEnD,MAAM,OAAO,GAAG,0CAA0C,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAChF,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,aAAa,CAA2C,CAAC;IAC1F,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CACV,OAAgC,EAChC,aAAqB;QAErB,MAAM,CAAC,GAAG,iCAAiC,CAAC,OAAO,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,aAAa,CAA2C,CAAC;IACpF,CAAC;CACF"}
package/dist/index.cjs CHANGED
@@ -24,9 +24,11 @@ __export(index_exports, {
24
24
  CosmosDBResourceClient: () => import_cosmosdb.CosmosDBResourceClient,
25
25
  CustomApiResourceClient: () => import_api_custom.CustomApiResourceClient,
26
26
  DynamoDBResourceClient: () => import_dynamodb.DynamoDBResourceClient,
27
+ GoogleAnalyticsResourceClient: () => import_google_analytics.GoogleAnalyticsResourceClient,
27
28
  GoogleSheetsResourceClient: () => import_googlesheets.GoogleSheetsResourceClient,
28
29
  HubSpotResourceClient: () => import_hubspot.HubSpotResourceClient,
29
30
  LambdaResourceClient: () => import_lambda.LambdaResourceClient,
31
+ MajorAuthResourceClient: () => import_auth.MajorAuthResourceClient,
30
32
  MssqlResourceClient: () => import_mssql.MssqlResourceClient,
31
33
  Neo4jResourceClient: () => import_neo4j.Neo4jResourceClient,
32
34
  OutreachResourceClient: () => import_outreach.OutreachResourceClient,
@@ -56,5 +58,7 @@ var import_bigquery = require("./clients/bigquery");
56
58
  var import_outreach = require("./clients/outreach");
57
59
  var import_neo4j = require("./clients/neo4j");
58
60
  var import_slack = require("./clients/slack");
61
+ var import_auth = require("./clients/auth");
62
+ var import_google_analytics = require("./clients/google-analytics");
59
63
  __reExport(index_exports, require("./payload-builders"), module.exports);
60
64
  //# sourceMappingURL=index.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
- "sourcesContent": ["// Export all schemas and types\nexport * from \"./schemas\";\n\n// Export base client and config\nexport { BaseResourceClient, type BaseClientConfig } from \"./base\";\n\n// Export errors\nexport { ResourceInvokeError } from \"./errors\";\n\n// Export individual clients\nexport { PostgresResourceClient } from \"./clients/postgres\";\nexport { MssqlResourceClient } from \"./clients/mssql\";\nexport { DynamoDBResourceClient } from \"./clients/dynamodb\";\nexport { CosmosDBResourceClient } from \"./clients/cosmosdb\";\nexport { SnowflakeResourceClient } from \"./clients/snowflake\";\nexport { CustomApiResourceClient } from \"./clients/api-custom\";\nexport { HubSpotResourceClient } from \"./clients/hubspot\";\nexport { SalesforceResourceClient } from \"./clients/salesforce\";\nexport { GoogleSheetsResourceClient } from \"./clients/googlesheets\";\nexport { S3ResourceClient } from \"./clients/s3\";\nexport { LambdaResourceClient } from \"./clients/lambda\";\nexport { BigQueryResourceClient } from \"./clients/bigquery\";\nexport { OutreachResourceClient } from \"./clients/outreach\";\nexport { Neo4jResourceClient } from \"./clients/neo4j\";\nexport { SlackResourceClient } from \"./clients/slack\";\n\n// Export payload builders (for use in testing UIs, etc.)\nexport * from \"./payload-builders\";\n\n// Re-export common response types for convenience\nexport type {\n DatabaseInvokeResponse,\n DynamoDBInvokeResponse,\n CosmosDBInvokeResponse,\n SnowflakeInvokeResponse,\n ApiInvokeResponse,\n StorageInvokeResponse,\n LambdaInvokeResponse,\n BigQueryInvokeResponse,\n OutreachInvokeResponse,\n Neo4jInvokeResponse,\n SlackInvokeResponse,\n BaseInvokeSuccess,\n} from \"./schemas/response\";\n\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;AACA,0BAAc,sBADd;AAIA,kBAA0D;AAG1D,oBAAoC;AAGpC,sBAAuC;AACvC,mBAAoC;AACpC,sBAAuC;AACvC,sBAAuC;AACvC,uBAAwC;AACxC,wBAAwC;AACxC,qBAAsC;AACtC,wBAAyC;AACzC,0BAA2C;AAC3C,gBAAiC;AACjC,oBAAqC;AACrC,sBAAuC;AACvC,sBAAuC;AACvC,mBAAoC;AACpC,mBAAoC;AAGpC,0BAAc,+BA3Bd;",
4
+ "sourcesContent": ["// Export all schemas and types\nexport * from \"./schemas\";\n\n// Export base client and config\nexport { BaseResourceClient, type BaseClientConfig } from \"./base\";\n\n// Export errors\nexport { ResourceInvokeError } from \"./errors\";\n\n// Export individual clients\nexport { PostgresResourceClient } from \"./clients/postgres\";\nexport { MssqlResourceClient } from \"./clients/mssql\";\nexport { DynamoDBResourceClient } from \"./clients/dynamodb\";\nexport { CosmosDBResourceClient } from \"./clients/cosmosdb\";\nexport { SnowflakeResourceClient } from \"./clients/snowflake\";\nexport { CustomApiResourceClient } from \"./clients/api-custom\";\nexport { HubSpotResourceClient } from \"./clients/hubspot\";\nexport { SalesforceResourceClient } from \"./clients/salesforce\";\nexport { GoogleSheetsResourceClient } from \"./clients/googlesheets\";\nexport { S3ResourceClient } from \"./clients/s3\";\nexport { LambdaResourceClient } from \"./clients/lambda\";\nexport { BigQueryResourceClient } from \"./clients/bigquery\";\nexport { OutreachResourceClient } from \"./clients/outreach\";\nexport { Neo4jResourceClient } from \"./clients/neo4j\";\nexport { SlackResourceClient } from \"./clients/slack\";\nexport { MajorAuthResourceClient } from \"./clients/auth\";\nexport { GoogleAnalyticsResourceClient } from \"./clients/google-analytics\";\n\n// Export payload builders (for use in testing UIs, etc.)\nexport * from \"./payload-builders\";\n\n// Re-export common response types for convenience\nexport type {\n DatabaseInvokeResponse,\n DynamoDBInvokeResponse,\n CosmosDBInvokeResponse,\n SnowflakeInvokeResponse,\n ApiInvokeResponse,\n StorageInvokeResponse,\n LambdaInvokeResponse,\n BigQueryInvokeResponse,\n OutreachInvokeResponse,\n Neo4jInvokeResponse,\n SlackInvokeResponse,\n AuthInvokeResponse,\n GoogleAnalyticsInvokeResponse,\n BaseInvokeSuccess,\n} from \"./schemas/response\";\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;AACA,0BAAc,sBADd;AAIA,kBAA0D;AAG1D,oBAAoC;AAGpC,sBAAuC;AACvC,mBAAoC;AACpC,sBAAuC;AACvC,sBAAuC;AACvC,uBAAwC;AACxC,wBAAwC;AACxC,qBAAsC;AACtC,wBAAyC;AACzC,0BAA2C;AAC3C,gBAAiC;AACjC,oBAAqC;AACrC,sBAAuC;AACvC,sBAAuC;AACvC,mBAAoC;AACpC,mBAAoC;AACpC,kBAAwC;AACxC,8BAA8C;AAG9C,0BAAc,+BA7Bd;",
6
6
  "names": []
7
7
  }
package/dist/index.d.ts CHANGED
@@ -16,6 +16,8 @@ export { BigQueryResourceClient } from "./clients/bigquery";
16
16
  export { OutreachResourceClient } from "./clients/outreach";
17
17
  export { Neo4jResourceClient } from "./clients/neo4j";
18
18
  export { SlackResourceClient } from "./clients/slack";
19
+ export { MajorAuthResourceClient } from "./clients/auth";
20
+ export { GoogleAnalyticsResourceClient } from "./clients/google-analytics";
19
21
  export * from "./payload-builders";
20
- export type { DatabaseInvokeResponse, DynamoDBInvokeResponse, CosmosDBInvokeResponse, SnowflakeInvokeResponse, ApiInvokeResponse, StorageInvokeResponse, LambdaInvokeResponse, BigQueryInvokeResponse, OutreachInvokeResponse, Neo4jInvokeResponse, SlackInvokeResponse, BaseInvokeSuccess, } from "./schemas/response";
22
+ export type { DatabaseInvokeResponse, DynamoDBInvokeResponse, CosmosDBInvokeResponse, SnowflakeInvokeResponse, ApiInvokeResponse, StorageInvokeResponse, LambdaInvokeResponse, BigQueryInvokeResponse, OutreachInvokeResponse, Neo4jInvokeResponse, SlackInvokeResponse, AuthInvokeResponse, GoogleAnalyticsInvokeResponse, BaseInvokeSuccess, } from "./schemas/response";
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAG1B,OAAO,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE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OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAG3E,cAAc,oBAAoB,CAAC;AAGnC,YAAY,EACV,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,6BAA6B,EAC7B,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -20,6 +20,8 @@ export { BigQueryResourceClient } from "./clients/bigquery";
20
20
  export { OutreachResourceClient } from "./clients/outreach";
21
21
  export { Neo4jResourceClient } from "./clients/neo4j";
22
22
  export { SlackResourceClient } from "./clients/slack";
23
+ export { MajorAuthResourceClient } from "./clients/auth";
24
+ export { GoogleAnalyticsResourceClient } from "./clients/google-analytics";
23
25
  // Export payload builders (for use in testing UIs, etc.)
24
26
  export * from "./payload-builders";
25
27
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,cAAc,WAAW,CAAC;AAE1B,gCAAgC;AAChC,OAAO,EAAE,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