@major-tech/resource-client 0.2.48 → 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.
- package/bin/generate-clients.mjs +5 -3
- package/dist/clients/zohodesk.d.ts +13 -0
- package/dist/clients/zohodesk.d.ts.map +1 -0
- package/dist/clients/zohoprojects.d.ts +13 -0
- package/dist/clients/zohoprojects.d.ts.map +1 -0
- package/dist/index.cjs +65 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +65 -1
- package/dist/index.js.map +3 -3
- package/dist/payload-builders/from-extracted-params.d.ts.map +1 -1
- package/dist/payload-builders/index.d.ts +2 -0
- package/dist/payload-builders/index.d.ts.map +1 -1
- package/dist/payload-builders/zohodesk.d.ts +13 -0
- package/dist/payload-builders/zohodesk.d.ts.map +1 -0
- package/dist/payload-builders/zohoprojects.d.ts +13 -0
- package/dist/payload-builders/zohoprojects.d.ts.map +1 -0
- package/dist/schemas/api-zohodesk.d.ts +20 -0
- package/dist/schemas/api-zohodesk.d.ts.map +1 -0
- package/dist/schemas/api-zohoprojects.d.ts +20 -0
- package/dist/schemas/api-zohoprojects.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +5 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/response.d.ts +8 -0
- package/dist/schemas/response.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export { GongResourceClient } from "./clients/gong";
|
|
|
24
24
|
export { DynamicsResourceClient } from "./clients/dynamics";
|
|
25
25
|
export { LinearResourceClient } from "./clients/linear";
|
|
26
26
|
export { RingCentralResourceClient } from "./clients/ringcentral";
|
|
27
|
+
export { ZohoDeskResourceClient } from "./clients/zohodesk";
|
|
28
|
+
export { ZohoProjectsResourceClient } from "./clients/zohoprojects";
|
|
27
29
|
export * from "./payload-builders";
|
|
28
|
-
export type { DatabaseInvokeResponse, DynamoDBInvokeResponse, CosmosDBInvokeResponse, SnowflakeInvokeResponse, ApiInvokeResponse, StorageInvokeResponse, LambdaInvokeResponse, BigQueryInvokeResponse, OutreachInvokeResponse, Neo4jInvokeResponse, SlackInvokeResponse, QuickBooksInvokeResponse, AuthInvokeResponse, GoogleAnalyticsInvokeResponse, GraphQLInvokeResponse, GongInvokeResponse, DynamicsInvokeResponse, LinearInvokeResponse, RingCentralInvokeResponse, 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";
|
|
29
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,E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AAE,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
|
@@ -1801,6 +1801,48 @@ var RingCentralResourceClient = class extends BaseResourceClient {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
};
|
|
1803
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
|
+
|
|
1804
1846
|
// src/payload-builders/outreach.ts
|
|
1805
1847
|
function buildOutreachInvokePayload(method, path, options) {
|
|
1806
1848
|
return {
|
|
@@ -2284,6 +2326,24 @@ function buildPayloadFromExtractedParams(subtype, methodName, extractedParams) {
|
|
|
2284
2326
|
const options = findParam(extractedParams, "Options");
|
|
2285
2327
|
return buildRingCentralInvokePayload(method, path, options);
|
|
2286
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
|
+
}
|
|
2287
2347
|
default:
|
|
2288
2348
|
throw new Error(`Unsupported resource subtype: ${subtype}`);
|
|
2289
2349
|
}
|
|
@@ -2314,6 +2374,8 @@ export {
|
|
|
2314
2374
|
SalesforceResourceClient,
|
|
2315
2375
|
SlackResourceClient,
|
|
2316
2376
|
SnowflakeResourceClient,
|
|
2377
|
+
ZohoDeskResourceClient,
|
|
2378
|
+
ZohoProjectsResourceClient,
|
|
2317
2379
|
buildAuthRevokeAccessPayload,
|
|
2318
2380
|
buildAuthShareAccessPayload,
|
|
2319
2381
|
buildBigQueryCreateTablePayload,
|
|
@@ -2384,6 +2446,8 @@ export {
|
|
|
2384
2446
|
buildSnowflakeCancelPayload,
|
|
2385
2447
|
buildSnowflakeExecutePayload,
|
|
2386
2448
|
buildSnowflakeInvokePayload,
|
|
2387
|
-
buildSnowflakeStatusPayload
|
|
2449
|
+
buildSnowflakeStatusPayload,
|
|
2450
|
+
buildZohoDeskInvokePayload,
|
|
2451
|
+
buildZohoProjectsInvokePayload
|
|
2388
2452
|
};
|
|
2389
2453
|
//# sourceMappingURL=index.js.map
|