@happyrobot-ai/sdk 0.1.17 → 0.1.18
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/package.json
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
* GET /integrations/whatsapp/message-templates
|
|
25
25
|
*/
|
|
26
26
|
import type { HttpClient } from "../core/http";
|
|
27
|
-
import type { ListIntegrationsQuery, ListIntegrationsResponse, Integration, CreateCredentialBody, CreateCredentialResponse, CategoriesResponse, CredentialIdQuery, GoogleSheetsWorksheetsQuery, GoogleSheetsColumnsQuery, GoogleSheetsRowsQuery, TeamsChannelsQuery, WhatsAppCredentialQuery, WhatsAppBusinessAccountsQuery, WhatsAppPhoneNumbersQuery, WhatsAppMessageTemplatesQuery, ResourceListResponse, ResourceListWithDescriptionResponse, WhatsAppTemplateListResponse } from "../types/integrations.types";
|
|
27
|
+
import type { ListIntegrationsQuery, ListIntegrationsResponse, Integration, CreateCredentialBody, CreateCredentialResponse, CategoriesResponse, CredentialIdQuery, GoogleSheetsSpreadsheetsQuery, GoogleSheetsWorksheetsQuery, GoogleSheetsColumnsQuery, GoogleSheetsRowsQuery, TeamsChannelsQuery, WhatsAppCredentialQuery, WhatsAppBusinessAccountsQuery, WhatsAppPhoneNumbersQuery, WhatsAppMessageTemplatesQuery, PaginatedResourceListResponse, ResourceListResponse, ResourceListWithDescriptionResponse, WhatsAppTemplateListResponse } from "../types/integrations.types";
|
|
28
28
|
declare class GoogleSheetsResource {
|
|
29
29
|
private readonly http;
|
|
30
30
|
constructor(http: HttpClient);
|
|
31
|
-
/** List Google Sheets spreadsheets. */
|
|
32
|
-
spreadsheets(query?:
|
|
31
|
+
/** List Google Sheets spreadsheets. Supports search and cursor-based pagination. */
|
|
32
|
+
spreadsheets(query?: GoogleSheetsSpreadsheetsQuery): Promise<PaginatedResourceListResponse>;
|
|
33
33
|
/** List worksheets in a spreadsheet. */
|
|
34
34
|
worksheets(query: GoogleSheetsWorksheetsQuery): Promise<ResourceListResponse>;
|
|
35
35
|
/** List columns in a worksheet. */
|
|
@@ -32,7 +32,7 @@ class GoogleSheetsResource {
|
|
|
32
32
|
constructor(http) {
|
|
33
33
|
this.http = http;
|
|
34
34
|
}
|
|
35
|
-
/** List Google Sheets spreadsheets. */
|
|
35
|
+
/** List Google Sheets spreadsheets. Supports search and cursor-based pagination. */
|
|
36
36
|
async spreadsheets(query) {
|
|
37
37
|
return this.http.request({
|
|
38
38
|
method: "GET",
|
|
@@ -19,6 +19,13 @@ export type WhatsAppTemplateListResponse = z.infer<typeof WhatsAppTemplateListRe
|
|
|
19
19
|
export interface CredentialIdQuery {
|
|
20
20
|
credential_id?: string;
|
|
21
21
|
}
|
|
22
|
+
export interface GoogleSheetsSpreadsheetsQuery extends CredentialIdQuery {
|
|
23
|
+
search?: string;
|
|
24
|
+
page_token?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PaginatedResourceListResponse extends ResourceListResponse {
|
|
27
|
+
next_page_token?: string;
|
|
28
|
+
}
|
|
22
29
|
export interface GoogleSheetsWorksheetsQuery extends CredentialIdQuery {
|
|
23
30
|
spreadsheet_id: string;
|
|
24
31
|
}
|