@major-tech/resource-client 0.2.47 → 0.2.49

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 (39) hide show
  1. package/bin/generate-clients.mjs +7 -3
  2. package/dist/clients/linear.d.ts +10 -0
  3. package/dist/clients/linear.d.ts.map +1 -0
  4. package/dist/clients/ringcentral.d.ts +111 -0
  5. package/dist/clients/ringcentral.d.ts.map +1 -0
  6. package/dist/clients/zohodesk.d.ts +13 -0
  7. package/dist/clients/zohodesk.d.ts.map +1 -0
  8. package/dist/clients/zohoprojects.d.ts +13 -0
  9. package/dist/clients/zohoprojects.d.ts.map +1 -0
  10. package/dist/index.cjs +314 -1
  11. package/dist/index.cjs.map +3 -3
  12. package/dist/index.d.ts +5 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +314 -1
  15. package/dist/index.js.map +3 -3
  16. package/dist/payload-builders/from-extracted-params.d.ts.map +1 -1
  17. package/dist/payload-builders/index.d.ts +4 -0
  18. package/dist/payload-builders/index.d.ts.map +1 -1
  19. package/dist/payload-builders/linear.d.ts +7 -0
  20. package/dist/payload-builders/linear.d.ts.map +1 -0
  21. package/dist/payload-builders/ringcentral.d.ts +63 -0
  22. package/dist/payload-builders/ringcentral.d.ts.map +1 -0
  23. package/dist/payload-builders/zohodesk.d.ts +13 -0
  24. package/dist/payload-builders/zohodesk.d.ts.map +1 -0
  25. package/dist/payload-builders/zohoprojects.d.ts +13 -0
  26. package/dist/payload-builders/zohoprojects.d.ts.map +1 -0
  27. package/dist/schemas/api-linear.d.ts +9 -0
  28. package/dist/schemas/api-linear.d.ts.map +1 -0
  29. package/dist/schemas/api-ringcentral.d.ts +20 -0
  30. package/dist/schemas/api-ringcentral.d.ts.map +1 -0
  31. package/dist/schemas/api-zohodesk.d.ts +20 -0
  32. package/dist/schemas/api-zohodesk.d.ts.map +1 -0
  33. package/dist/schemas/api-zohoprojects.d.ts +20 -0
  34. package/dist/schemas/api-zohoprojects.d.ts.map +1 -0
  35. package/dist/schemas/index.d.ts +9 -1
  36. package/dist/schemas/index.d.ts.map +1 -1
  37. package/dist/schemas/response.d.ts +16 -0
  38. package/dist/schemas/response.d.ts.map +1 -1
  39. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,6 +22,10 @@ export { GoogleAnalyticsResourceClient } from "./clients/google-analytics";
22
22
  export { GraphQLResourceClient } from "./clients/api-graphql";
23
23
  export { GongResourceClient } from "./clients/gong";
24
24
  export { DynamicsResourceClient } from "./clients/dynamics";
25
+ export { LinearResourceClient } from "./clients/linear";
26
+ export { RingCentralResourceClient } from "./clients/ringcentral";
27
+ export { ZohoDeskResourceClient } from "./clients/zohodesk";
28
+ export { ZohoProjectsResourceClient } from "./clients/zohoprojects";
25
29
  export * from "./payload-builders";
26
- export type { DatabaseInvokeResponse, DynamoDBInvokeResponse, CosmosDBInvokeResponse, SnowflakeInvokeResponse, ApiInvokeResponse, StorageInvokeResponse, LambdaInvokeResponse, BigQueryInvokeResponse, OutreachInvokeResponse, Neo4jInvokeResponse, SlackInvokeResponse, QuickBooksInvokeResponse, AuthInvokeResponse, GoogleAnalyticsInvokeResponse, GraphQLInvokeResponse, GongInvokeResponse, DynamicsInvokeResponse, BaseInvokeSuccess, } from "./schemas/response";
30
+ export type { DatabaseInvokeResponse, DynamoDBInvokeResponse, CosmosDBInvokeResponse, SnowflakeInvokeResponse, ApiInvokeResponse, StorageInvokeResponse, LambdaInvokeResponse, BigQueryInvokeResponse, OutreachInvokeResponse, Neo4jInvokeResponse, SlackInvokeResponse, QuickBooksInvokeResponse, AuthInvokeResponse, GoogleAnalyticsInvokeResponse, GraphQLInvokeResponse, GongInvokeResponse, DynamicsInvokeResponse, LinearInvokeResponse, RingCentralInvokeResponse, ZohoDeskInvokeResponse, ZohoProjectsInvokeResponse, BaseInvokeSuccess, } from "./schemas/response";
27
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts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AsB,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,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAGpE,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,wBAAwB,EACxB,kBAAkB,EAClB,6BAA6B,EAC7B,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1605,6 +1605,244 @@ var DynamicsResourceClient = class extends BaseResourceClient {
1605
1605
  }
1606
1606
  };
1607
1607
 
1608
+ // src/payload-builders/linear.ts
1609
+ function buildLinearGraphQLPayload(query, options) {
1610
+ return {
1611
+ type: "api",
1612
+ subtype: "linear",
1613
+ query,
1614
+ variables: options?.variables,
1615
+ operationName: options?.operationName,
1616
+ timeoutMs: options?.timeoutMs ?? 3e4
1617
+ };
1618
+ }
1619
+
1620
+ // src/clients/linear.ts
1621
+ var LinearResourceClient = class extends BaseResourceClient {
1622
+ async graphql(query, invocationKey, options = {}) {
1623
+ const payload = buildLinearGraphQLPayload(query, options);
1624
+ return this.invokeRaw(payload, invocationKey);
1625
+ }
1626
+ };
1627
+
1628
+ // src/payload-builders/ringcentral.ts
1629
+ function buildRingCentralInvokePayload(method, path, options) {
1630
+ return {
1631
+ type: "api",
1632
+ subtype: "ringcentral",
1633
+ method,
1634
+ path,
1635
+ query: options?.query,
1636
+ body: options?.body,
1637
+ timeoutMs: options?.timeoutMs ?? 3e4
1638
+ };
1639
+ }
1640
+ function buildRingCentralListCallLogPayload(options) {
1641
+ const query = {};
1642
+ if (options?.dateFrom) query.dateFrom = options.dateFrom;
1643
+ if (options?.dateTo) query.dateTo = options.dateTo;
1644
+ if (options?.direction) query.direction = options.direction;
1645
+ if (options?.type) query.type = options.type;
1646
+ if (options?.perPage !== void 0) query.perPage = String(options.perPage);
1647
+ if (options?.page !== void 0) query.page = String(options.page);
1648
+ return buildRingCentralInvokePayload("GET", "/v1.0/account/~/call-log", {
1649
+ query: Object.keys(query).length > 0 ? query : void 0
1650
+ });
1651
+ }
1652
+ function buildRingCentralGetCallRecordPayload(callRecordId) {
1653
+ return buildRingCentralInvokePayload("GET", `/v1.0/account/~/call-log/${callRecordId}`);
1654
+ }
1655
+ function buildRingCentralSendSmsPayload(from, to, text) {
1656
+ return buildRingCentralInvokePayload("POST", "/v1.0/account/~/extension/~/sms", {
1657
+ body: {
1658
+ type: "json",
1659
+ value: {
1660
+ from: { phoneNumber: from },
1661
+ to: [{ phoneNumber: to }],
1662
+ text
1663
+ }
1664
+ }
1665
+ });
1666
+ }
1667
+ function buildRingCentralListMessagesPayload(options) {
1668
+ const query = {};
1669
+ if (options?.messageType) query.messageType = options.messageType;
1670
+ if (options?.dateFrom) query.dateFrom = options.dateFrom;
1671
+ if (options?.dateTo) query.dateTo = options.dateTo;
1672
+ if (options?.perPage !== void 0) query.perPage = String(options.perPage);
1673
+ if (options?.page !== void 0) query.page = String(options.page);
1674
+ return buildRingCentralInvokePayload("GET", "/v1.0/account/~/extension/~/message-store", {
1675
+ query: Object.keys(query).length > 0 ? query : void 0
1676
+ });
1677
+ }
1678
+ function buildRingCentralListExtensionsPayload(options) {
1679
+ const query = {};
1680
+ if (options?.type) query.type = options.type;
1681
+ if (options?.status) query.status = options.status;
1682
+ if (options?.perPage !== void 0) query.perPage = String(options.perPage);
1683
+ if (options?.page !== void 0) query.page = String(options.page);
1684
+ return buildRingCentralInvokePayload("GET", "/v1.0/account/~/extension", {
1685
+ query: Object.keys(query).length > 0 ? query : void 0
1686
+ });
1687
+ }
1688
+ function buildRingCentralGetExtensionPayload(extensionId) {
1689
+ return buildRingCentralInvokePayload("GET", `/v1.0/account/~/extension/${extensionId}`);
1690
+ }
1691
+
1692
+ // src/clients/ringcentral.ts
1693
+ var RingCentralResourceClient = class extends BaseResourceClient {
1694
+ /**
1695
+ * Invoke a RingCentral API request
1696
+ *
1697
+ * @param method - HTTP method (GET, POST, PUT, PATCH, DELETE)
1698
+ * @param path - RingCentral API path (e.g., "/v1.0/account/~/call-log")
1699
+ * @param invocationKey - Unique key for this invocation (for tracking)
1700
+ * @param options - Optional query params, body, and timeout
1701
+ * @returns The API response with status and body
1702
+ */
1703
+ async invoke(method, path, invocationKey, options = {}) {
1704
+ const payload = buildRingCentralInvokePayload(method, path, options);
1705
+ return this.invokeRaw(payload, invocationKey);
1706
+ }
1707
+ /**
1708
+ * List call log entries
1709
+ *
1710
+ * @param invocationKey - Unique key for this invocation
1711
+ * @param options - Optional filters (dateFrom, dateTo, direction, type, perPage, page)
1712
+ * @returns Call log records
1713
+ */
1714
+ async listCallLog(invocationKey, options) {
1715
+ const query = {};
1716
+ if (options?.dateFrom) query.dateFrom = options.dateFrom;
1717
+ if (options?.dateTo) query.dateTo = options.dateTo;
1718
+ if (options?.direction) query.direction = options.direction;
1719
+ if (options?.type) query.type = options.type;
1720
+ if (options?.perPage !== void 0) query.perPage = String(options.perPage);
1721
+ if (options?.page !== void 0) query.page = String(options.page);
1722
+ return this.invoke("GET", "/v1.0/account/~/call-log", invocationKey, {
1723
+ query: Object.keys(query).length > 0 ? query : void 0
1724
+ });
1725
+ }
1726
+ /**
1727
+ * Get a specific call record by ID
1728
+ *
1729
+ * @param callRecordId - The call record ID
1730
+ * @param invocationKey - Unique key for this invocation
1731
+ * @returns The call record details
1732
+ */
1733
+ async getCallRecord(callRecordId, invocationKey) {
1734
+ return this.invoke("GET", `/v1.0/account/~/call-log/${callRecordId}`, invocationKey);
1735
+ }
1736
+ /**
1737
+ * Send an SMS message
1738
+ *
1739
+ * @param from - Sender phone number
1740
+ * @param to - Recipient phone number
1741
+ * @param text - Message text
1742
+ * @param invocationKey - Unique key for this invocation
1743
+ * @returns The sent message details
1744
+ */
1745
+ async sendSms(from, to, text, invocationKey) {
1746
+ return this.invoke("POST", "/v1.0/account/~/extension/~/sms", invocationKey, {
1747
+ body: {
1748
+ type: "json",
1749
+ value: {
1750
+ from: { phoneNumber: from },
1751
+ to: [{ phoneNumber: to }],
1752
+ text
1753
+ }
1754
+ }
1755
+ });
1756
+ }
1757
+ /**
1758
+ * List messages from the message store
1759
+ *
1760
+ * @param invocationKey - Unique key for this invocation
1761
+ * @param options - Optional filters (messageType, dateFrom, dateTo, perPage, page)
1762
+ * @returns Message records
1763
+ */
1764
+ async listMessages(invocationKey, options) {
1765
+ const query = {};
1766
+ if (options?.messageType) query.messageType = options.messageType;
1767
+ if (options?.dateFrom) query.dateFrom = options.dateFrom;
1768
+ if (options?.dateTo) query.dateTo = options.dateTo;
1769
+ if (options?.perPage !== void 0) query.perPage = String(options.perPage);
1770
+ if (options?.page !== void 0) query.page = String(options.page);
1771
+ return this.invoke("GET", "/v1.0/account/~/extension/~/message-store", invocationKey, {
1772
+ query: Object.keys(query).length > 0 ? query : void 0
1773
+ });
1774
+ }
1775
+ /**
1776
+ * List extensions on the account
1777
+ *
1778
+ * @param invocationKey - Unique key for this invocation
1779
+ * @param options - Optional filters (type, status, perPage, page)
1780
+ * @returns Extension records
1781
+ */
1782
+ async listExtensions(invocationKey, options) {
1783
+ const query = {};
1784
+ if (options?.type) query.type = options.type;
1785
+ if (options?.status) query.status = options.status;
1786
+ if (options?.perPage !== void 0) query.perPage = String(options.perPage);
1787
+ if (options?.page !== void 0) query.page = String(options.page);
1788
+ return this.invoke("GET", "/v1.0/account/~/extension", invocationKey, {
1789
+ query: Object.keys(query).length > 0 ? query : void 0
1790
+ });
1791
+ }
1792
+ /**
1793
+ * Get a specific extension by ID
1794
+ *
1795
+ * @param extensionId - The extension ID
1796
+ * @param invocationKey - Unique key for this invocation
1797
+ * @returns The extension details
1798
+ */
1799
+ async getExtension(extensionId, invocationKey) {
1800
+ return this.invoke("GET", `/v1.0/account/~/extension/${extensionId}`, invocationKey);
1801
+ }
1802
+ };
1803
+
1804
+ // src/payload-builders/zohodesk.ts
1805
+ function buildZohoDeskInvokePayload(method, path, options) {
1806
+ return {
1807
+ type: "api",
1808
+ subtype: "zohodesk",
1809
+ method,
1810
+ path,
1811
+ query: options?.query,
1812
+ body: options?.body,
1813
+ timeoutMs: options?.timeoutMs ?? 3e4
1814
+ };
1815
+ }
1816
+
1817
+ // src/clients/zohodesk.ts
1818
+ var ZohoDeskResourceClient = class extends BaseResourceClient {
1819
+ async invoke(method, path, invocationKey, options = {}) {
1820
+ const payload = buildZohoDeskInvokePayload(method, path, options);
1821
+ return this.invokeRaw(payload, invocationKey);
1822
+ }
1823
+ };
1824
+
1825
+ // src/payload-builders/zohoprojects.ts
1826
+ function buildZohoProjectsInvokePayload(method, path, options) {
1827
+ return {
1828
+ type: "api",
1829
+ subtype: "zohoprojects",
1830
+ method,
1831
+ path,
1832
+ query: options?.query,
1833
+ body: options?.body,
1834
+ timeoutMs: options?.timeoutMs ?? 3e4
1835
+ };
1836
+ }
1837
+
1838
+ // src/clients/zohoprojects.ts
1839
+ var ZohoProjectsResourceClient = class extends BaseResourceClient {
1840
+ async invoke(method, path, invocationKey, options = {}) {
1841
+ const payload = buildZohoProjectsInvokePayload(method, path, options);
1842
+ return this.invokeRaw(payload, invocationKey);
1843
+ }
1844
+ };
1845
+
1608
1846
  // src/payload-builders/outreach.ts
1609
1847
  function buildOutreachInvokePayload(method, path, options) {
1610
1848
  return {
@@ -2045,6 +2283,67 @@ function buildPayloadFromExtractedParams(subtype, methodName, extractedParams) {
2045
2283
  const options = findParam(extractedParams, "Options");
2046
2284
  return buildDynamicsInvokePayload(method, path, options);
2047
2285
  }
2286
+ // =========================================================================
2287
+ // Linear
2288
+ // =========================================================================
2289
+ case "linear": {
2290
+ const query = findParam(extractedParams, "Query");
2291
+ const options = findParam(extractedParams, "Options");
2292
+ return buildLinearGraphQLPayload(query, options);
2293
+ }
2294
+ // =========================================================================
2295
+ // RingCentral
2296
+ // =========================================================================
2297
+ case "ringcentral": {
2298
+ if (methodName === "listCallLog") {
2299
+ const options2 = findParam(extractedParams, "Options");
2300
+ return buildRingCentralListCallLogPayload(options2);
2301
+ }
2302
+ if (methodName === "getCallRecord") {
2303
+ const callRecordId = findParam(extractedParams, "CallRecordId");
2304
+ return buildRingCentralGetCallRecordPayload(callRecordId);
2305
+ }
2306
+ if (methodName === "sendSms") {
2307
+ const from = findParam(extractedParams, "From");
2308
+ const to = findParam(extractedParams, "To");
2309
+ const text = findParam(extractedParams, "Text");
2310
+ return buildRingCentralSendSmsPayload(from, to, text);
2311
+ }
2312
+ if (methodName === "listMessages") {
2313
+ const options2 = findParam(extractedParams, "Options");
2314
+ return buildRingCentralListMessagesPayload(options2);
2315
+ }
2316
+ if (methodName === "listExtensions") {
2317
+ const options2 = findParam(extractedParams, "Options");
2318
+ return buildRingCentralListExtensionsPayload(options2);
2319
+ }
2320
+ if (methodName === "getExtension") {
2321
+ const extensionId = findParam(extractedParams, "ExtensionId");
2322
+ return buildRingCentralGetExtensionPayload(extensionId);
2323
+ }
2324
+ const method = findParam(extractedParams, "Method");
2325
+ const path = findParam(extractedParams, "Path");
2326
+ const options = findParam(extractedParams, "Options");
2327
+ return buildRingCentralInvokePayload(method, path, options);
2328
+ }
2329
+ // =========================================================================
2330
+ // Zoho Desk
2331
+ // =========================================================================
2332
+ case "zohodesk": {
2333
+ const method = findParam(extractedParams, "Method");
2334
+ const path = findParam(extractedParams, "Path");
2335
+ const options = findParam(extractedParams, "Options");
2336
+ return buildZohoDeskInvokePayload(method, path, options);
2337
+ }
2338
+ // =========================================================================
2339
+ // Zoho Projects
2340
+ // =========================================================================
2341
+ case "zohoprojects": {
2342
+ const method = findParam(extractedParams, "Method");
2343
+ const path = findParam(extractedParams, "Path");
2344
+ const options = findParam(extractedParams, "Options");
2345
+ return buildZohoProjectsInvokePayload(method, path, options);
2346
+ }
2048
2347
  default:
2049
2348
  throw new Error(`Unsupported resource subtype: ${subtype}`);
2050
2349
  }
@@ -2062,6 +2361,7 @@ export {
2062
2361
  GraphQLResourceClient,
2063
2362
  HubSpotResourceClient,
2064
2363
  LambdaResourceClient,
2364
+ LinearResourceClient,
2065
2365
  MajorAuthResourceClient,
2066
2366
  MssqlResourceClient,
2067
2367
  Neo4jResourceClient,
@@ -2069,10 +2369,13 @@ export {
2069
2369
  PostgresResourceClient,
2070
2370
  QuickBooksResourceClient,
2071
2371
  ResourceInvokeError,
2372
+ RingCentralResourceClient,
2072
2373
  S3ResourceClient,
2073
2374
  SalesforceResourceClient,
2074
2375
  SlackResourceClient,
2075
2376
  SnowflakeResourceClient,
2377
+ ZohoDeskResourceClient,
2378
+ ZohoProjectsResourceClient,
2076
2379
  buildAuthRevokeAccessPayload,
2077
2380
  buildAuthShareAccessPayload,
2078
2381
  buildBigQueryCreateTablePayload,
@@ -2116,6 +2419,7 @@ export {
2116
2419
  buildGraphQLInvokePayload,
2117
2420
  buildHubSpotInvokePayload,
2118
2421
  buildLambdaInvokePayload,
2422
+ buildLinearGraphQLPayload,
2119
2423
  buildMssqlInvokePayload,
2120
2424
  buildNeo4jInvokePayload,
2121
2425
  buildOutreachInvokePayload,
@@ -2123,6 +2427,13 @@ export {
2123
2427
  buildPostgresInvokePayload,
2124
2428
  buildQuickBooksInvokePayload,
2125
2429
  buildQuickBooksQueryPayload,
2430
+ buildRingCentralGetCallRecordPayload,
2431
+ buildRingCentralGetExtensionPayload,
2432
+ buildRingCentralInvokePayload,
2433
+ buildRingCentralListCallLogPayload,
2434
+ buildRingCentralListExtensionsPayload,
2435
+ buildRingCentralListMessagesPayload,
2436
+ buildRingCentralSendSmsPayload,
2126
2437
  buildS3InvokePayload,
2127
2438
  buildSalesforceCreateRecordPayload,
2128
2439
  buildSalesforceDeleteRecordPayload,
@@ -2135,6 +2446,8 @@ export {
2135
2446
  buildSnowflakeCancelPayload,
2136
2447
  buildSnowflakeExecutePayload,
2137
2448
  buildSnowflakeInvokePayload,
2138
- buildSnowflakeStatusPayload
2449
+ buildSnowflakeStatusPayload,
2450
+ buildZohoDeskInvokePayload,
2451
+ buildZohoProjectsInvokePayload
2139
2452
  };
2140
2453
  //# sourceMappingURL=index.js.map