@linkt/sdk 0.2.0 → 0.4.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/CHANGELOG.md +35 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/entity.d.mts +392 -0
- package/resources/entity.d.mts.map +1 -0
- package/resources/entity.d.ts +392 -0
- package/resources/entity.d.ts.map +1 -0
- package/resources/entity.js +164 -0
- package/resources/entity.js.map +1 -0
- package/resources/entity.mjs +160 -0
- package/resources/entity.mjs.map +1 -0
- package/resources/icp.d.mts +56 -3
- package/resources/icp.d.mts.map +1 -1
- package/resources/icp.d.ts +56 -3
- package/resources/icp.d.ts.map +1 -1
- package/resources/icp.js +2 -2
- package/resources/icp.mjs +2 -2
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/run.d.mts +3 -3
- package/resources/run.d.ts +3 -3
- package/resources/sheet/index.d.mts +1 -2
- package/resources/sheet/index.d.mts.map +1 -1
- package/resources/sheet/index.d.ts +1 -2
- package/resources/sheet/index.d.ts.map +1 -1
- package/resources/sheet/index.js +1 -3
- package/resources/sheet/index.js.map +1 -1
- package/resources/sheet/index.mjs +0 -1
- package/resources/sheet/index.mjs.map +1 -1
- package/resources/sheet/sheet.d.mts +1 -90
- package/resources/sheet/sheet.d.mts.map +1 -1
- package/resources/sheet/sheet.d.ts +1 -90
- package/resources/sheet/sheet.d.ts.map +1 -1
- package/resources/sheet/sheet.js +0 -22
- package/resources/sheet/sheet.js.map +1 -1
- package/resources/sheet/sheet.mjs +0 -22
- package/resources/sheet/sheet.mjs.map +1 -1
- package/resources/task.d.mts +443 -288
- package/resources/task.d.mts.map +1 -1
- package/resources/task.d.ts +443 -288
- package/resources/task.d.ts.map +1 -1
- package/src/client.ts +57 -20
- package/src/resources/entity.ts +491 -0
- package/src/resources/icp.ts +59 -3
- package/src/resources/index.ts +27 -10
- package/src/resources/run.ts +3 -3
- package/src/resources/sheet/index.ts +0 -11
- package/src/resources/sheet/sheet.ts +0 -136
- package/src/resources/task.ts +530 -329
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/sheet/entity.d.mts +0 -52
- package/resources/sheet/entity.d.mts.map +0 -1
- package/resources/sheet/entity.d.ts +0 -52
- package/resources/sheet/entity.d.ts.map +0 -1
- package/resources/sheet/entity.js +0 -45
- package/resources/sheet/entity.js.map +0 -1
- package/resources/sheet/entity.mjs +0 -41
- package/resources/sheet/entity.mjs.map +0 -1
- package/src/resources/sheet/entity.ts +0 -97
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as EntityAPI from "./entity.mjs";
|
|
3
|
-
import { Entity, EntityRetrieveParams, EntityRetrieveResponse, EntityUpdateCommentsParams, EntityUpdateStatusParams } from "./entity.mjs";
|
|
4
2
|
import * as SchemaAPI from "./schema.mjs";
|
|
5
3
|
import { Schema, SchemaAddFieldsParams, SchemaDeleteFieldsParams, SchemaGetDefaultResponse, SchemaGetFieldDefinitionsResponse, SchemaGetResponse } from "./schema.mjs";
|
|
6
4
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
7
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
6
|
export declare class SheetResource extends APIResource {
|
|
9
|
-
entity: EntityAPI.Entity;
|
|
10
7
|
schema: SchemaAPI.Schema;
|
|
11
8
|
/**
|
|
12
9
|
* Create a new sheet linked to an ICP.
|
|
@@ -40,20 +37,6 @@ export declare class SheetResource extends APIResource {
|
|
|
40
37
|
* it. This operation cannot be undone.
|
|
41
38
|
*/
|
|
42
39
|
delete(sheetID: string, options?: RequestOptions): APIPromise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Export sheet entities as a CSV file.
|
|
45
|
-
*
|
|
46
|
-
* Exports entities with proper field formatting based on the sheet's schema. Pass
|
|
47
|
-
* specific entity_ids to export a subset, or omit to export all entities.
|
|
48
|
-
*/
|
|
49
|
-
exportCsv(sheetID: string, query?: SheetExportCsvParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* List all entities in a sheet.
|
|
52
|
-
*
|
|
53
|
-
* Supports text search across name/company fields and comprehensive filtering by
|
|
54
|
-
* status, comments, and date ranges.
|
|
55
|
-
*/
|
|
56
|
-
getEntities(sheetID: string, query?: SheetGetEntitiesParams | null | undefined, options?: RequestOptions): APIPromise<SheetGetEntitiesResponse>;
|
|
57
40
|
}
|
|
58
41
|
/**
|
|
59
42
|
* Valid entity types for sheets.
|
|
@@ -85,25 +68,6 @@ export interface SheetListResponse {
|
|
|
85
68
|
}>;
|
|
86
69
|
total: number;
|
|
87
70
|
}
|
|
88
|
-
export type SheetExportCsvResponse = unknown;
|
|
89
|
-
/**
|
|
90
|
-
* Response schema for paginated list of sheet entities.
|
|
91
|
-
*
|
|
92
|
-
* Uses EntityForHTTP which automatically excludes embedding data for efficient API
|
|
93
|
-
* responses.
|
|
94
|
-
*
|
|
95
|
-
* Attributes: entities: List of EntityForHTTP objects for the current page total:
|
|
96
|
-
* Total number of entities matching the filter criteria page: Current page number
|
|
97
|
-
* (1-based) page_size: Number of items per page
|
|
98
|
-
*/
|
|
99
|
-
export interface SheetGetEntitiesResponse {
|
|
100
|
-
entities: Array<{
|
|
101
|
-
[key: string]: unknown;
|
|
102
|
-
}>;
|
|
103
|
-
page: number;
|
|
104
|
-
page_size: number;
|
|
105
|
-
total: number;
|
|
106
|
-
}
|
|
107
71
|
export interface SheetCreateParams {
|
|
108
72
|
description: string;
|
|
109
73
|
/**
|
|
@@ -135,61 +99,8 @@ export interface SheetListParams {
|
|
|
135
99
|
*/
|
|
136
100
|
sort_by?: string | null;
|
|
137
101
|
}
|
|
138
|
-
export interface SheetExportCsvParams {
|
|
139
|
-
/**
|
|
140
|
-
* Optional list of entity IDs to export. If not provided, exports all entities.
|
|
141
|
-
*/
|
|
142
|
-
entity_ids?: Array<string> | null;
|
|
143
|
-
}
|
|
144
|
-
export interface SheetGetEntitiesParams {
|
|
145
|
-
/**
|
|
146
|
-
* Filter entities created after this date (ISO 8601 format: 2024-01-15T10:30:00Z)
|
|
147
|
-
*/
|
|
148
|
-
created_after?: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* Filter entities created before this date (ISO 8601 format)
|
|
151
|
-
*/
|
|
152
|
-
created_before?: string | null;
|
|
153
|
-
/**
|
|
154
|
-
* Filter entities with or without user comments
|
|
155
|
-
*/
|
|
156
|
-
has_comments?: boolean | null;
|
|
157
|
-
/**
|
|
158
|
-
* Sort order: -1 for descending, 1 for ascending
|
|
159
|
-
*/
|
|
160
|
-
order?: number | null;
|
|
161
|
-
/**
|
|
162
|
-
* Page number (1-based)
|
|
163
|
-
*/
|
|
164
|
-
page?: number;
|
|
165
|
-
/**
|
|
166
|
-
* Items per page (max 100, default 50)
|
|
167
|
-
*/
|
|
168
|
-
page_size?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Search entities by name or company
|
|
171
|
-
*/
|
|
172
|
-
search?: string | null;
|
|
173
|
-
/**
|
|
174
|
-
* Field to sort by (e.g., 'created_at', 'updated_at', 'status')
|
|
175
|
-
*/
|
|
176
|
-
sort_by?: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* Filter by entity status (true=active, false=inactive)
|
|
179
|
-
*/
|
|
180
|
-
status?: boolean | null;
|
|
181
|
-
/**
|
|
182
|
-
* Filter entities updated after this date (ISO 8601 format)
|
|
183
|
-
*/
|
|
184
|
-
updated_after?: string | null;
|
|
185
|
-
/**
|
|
186
|
-
* Filter entities updated before this date (ISO 8601 format)
|
|
187
|
-
*/
|
|
188
|
-
updated_before?: string | null;
|
|
189
|
-
}
|
|
190
102
|
export declare namespace SheetResource {
|
|
191
|
-
export { type EntityType as EntityType, type Sheet as Sheet, type SheetListResponse as SheetListResponse, type
|
|
192
|
-
export { Entity as Entity, type EntityRetrieveResponse as EntityRetrieveResponse, type EntityRetrieveParams as EntityRetrieveParams, type EntityUpdateCommentsParams as EntityUpdateCommentsParams, type EntityUpdateStatusParams as EntityUpdateStatusParams, };
|
|
103
|
+
export { type EntityType as EntityType, type Sheet as Sheet, type SheetListResponse as SheetListResponse, type SheetCreateParams as SheetCreateParams, type SheetUpdateParams as SheetUpdateParams, type SheetListParams as SheetListParams, };
|
|
193
104
|
export { Schema as Schema, type SchemaGetResponse as SchemaGetResponse, type SchemaGetDefaultResponse as SchemaGetDefaultResponse, type SchemaGetFieldDefinitionsResponse as SchemaGetFieldDefinitionsResponse, type SchemaAddFieldsParams as SchemaAddFieldsParams, type SchemaDeleteFieldsParams as SchemaDeleteFieldsParams, };
|
|
194
105
|
}
|
|
195
106
|
//# sourceMappingURL=sheet.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.mts","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,
|
|
1
|
+
{"version":3,"file":"sheet.d.mts","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,iCAAiC,EACjC,iBAAiB,EAClB;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,MAAM,E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EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as EntityAPI from "./entity.js";
|
|
3
|
-
import { Entity, EntityRetrieveParams, EntityRetrieveResponse, EntityUpdateCommentsParams, EntityUpdateStatusParams } from "./entity.js";
|
|
4
2
|
import * as SchemaAPI from "./schema.js";
|
|
5
3
|
import { Schema, SchemaAddFieldsParams, SchemaDeleteFieldsParams, SchemaGetDefaultResponse, SchemaGetFieldDefinitionsResponse, SchemaGetResponse } from "./schema.js";
|
|
6
4
|
import { APIPromise } from "../../core/api-promise.js";
|
|
7
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
8
6
|
export declare class SheetResource extends APIResource {
|
|
9
|
-
entity: EntityAPI.Entity;
|
|
10
7
|
schema: SchemaAPI.Schema;
|
|
11
8
|
/**
|
|
12
9
|
* Create a new sheet linked to an ICP.
|
|
@@ -40,20 +37,6 @@ export declare class SheetResource extends APIResource {
|
|
|
40
37
|
* it. This operation cannot be undone.
|
|
41
38
|
*/
|
|
42
39
|
delete(sheetID: string, options?: RequestOptions): APIPromise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Export sheet entities as a CSV file.
|
|
45
|
-
*
|
|
46
|
-
* Exports entities with proper field formatting based on the sheet's schema. Pass
|
|
47
|
-
* specific entity_ids to export a subset, or omit to export all entities.
|
|
48
|
-
*/
|
|
49
|
-
exportCsv(sheetID: string, query?: SheetExportCsvParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* List all entities in a sheet.
|
|
52
|
-
*
|
|
53
|
-
* Supports text search across name/company fields and comprehensive filtering by
|
|
54
|
-
* status, comments, and date ranges.
|
|
55
|
-
*/
|
|
56
|
-
getEntities(sheetID: string, query?: SheetGetEntitiesParams | null | undefined, options?: RequestOptions): APIPromise<SheetGetEntitiesResponse>;
|
|
57
40
|
}
|
|
58
41
|
/**
|
|
59
42
|
* Valid entity types for sheets.
|
|
@@ -85,25 +68,6 @@ export interface SheetListResponse {
|
|
|
85
68
|
}>;
|
|
86
69
|
total: number;
|
|
87
70
|
}
|
|
88
|
-
export type SheetExportCsvResponse = unknown;
|
|
89
|
-
/**
|
|
90
|
-
* Response schema for paginated list of sheet entities.
|
|
91
|
-
*
|
|
92
|
-
* Uses EntityForHTTP which automatically excludes embedding data for efficient API
|
|
93
|
-
* responses.
|
|
94
|
-
*
|
|
95
|
-
* Attributes: entities: List of EntityForHTTP objects for the current page total:
|
|
96
|
-
* Total number of entities matching the filter criteria page: Current page number
|
|
97
|
-
* (1-based) page_size: Number of items per page
|
|
98
|
-
*/
|
|
99
|
-
export interface SheetGetEntitiesResponse {
|
|
100
|
-
entities: Array<{
|
|
101
|
-
[key: string]: unknown;
|
|
102
|
-
}>;
|
|
103
|
-
page: number;
|
|
104
|
-
page_size: number;
|
|
105
|
-
total: number;
|
|
106
|
-
}
|
|
107
71
|
export interface SheetCreateParams {
|
|
108
72
|
description: string;
|
|
109
73
|
/**
|
|
@@ -135,61 +99,8 @@ export interface SheetListParams {
|
|
|
135
99
|
*/
|
|
136
100
|
sort_by?: string | null;
|
|
137
101
|
}
|
|
138
|
-
export interface SheetExportCsvParams {
|
|
139
|
-
/**
|
|
140
|
-
* Optional list of entity IDs to export. If not provided, exports all entities.
|
|
141
|
-
*/
|
|
142
|
-
entity_ids?: Array<string> | null;
|
|
143
|
-
}
|
|
144
|
-
export interface SheetGetEntitiesParams {
|
|
145
|
-
/**
|
|
146
|
-
* Filter entities created after this date (ISO 8601 format: 2024-01-15T10:30:00Z)
|
|
147
|
-
*/
|
|
148
|
-
created_after?: string | null;
|
|
149
|
-
/**
|
|
150
|
-
* Filter entities created before this date (ISO 8601 format)
|
|
151
|
-
*/
|
|
152
|
-
created_before?: string | null;
|
|
153
|
-
/**
|
|
154
|
-
* Filter entities with or without user comments
|
|
155
|
-
*/
|
|
156
|
-
has_comments?: boolean | null;
|
|
157
|
-
/**
|
|
158
|
-
* Sort order: -1 for descending, 1 for ascending
|
|
159
|
-
*/
|
|
160
|
-
order?: number | null;
|
|
161
|
-
/**
|
|
162
|
-
* Page number (1-based)
|
|
163
|
-
*/
|
|
164
|
-
page?: number;
|
|
165
|
-
/**
|
|
166
|
-
* Items per page (max 100, default 50)
|
|
167
|
-
*/
|
|
168
|
-
page_size?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Search entities by name or company
|
|
171
|
-
*/
|
|
172
|
-
search?: string | null;
|
|
173
|
-
/**
|
|
174
|
-
* Field to sort by (e.g., 'created_at', 'updated_at', 'status')
|
|
175
|
-
*/
|
|
176
|
-
sort_by?: string | null;
|
|
177
|
-
/**
|
|
178
|
-
* Filter by entity status (true=active, false=inactive)
|
|
179
|
-
*/
|
|
180
|
-
status?: boolean | null;
|
|
181
|
-
/**
|
|
182
|
-
* Filter entities updated after this date (ISO 8601 format)
|
|
183
|
-
*/
|
|
184
|
-
updated_after?: string | null;
|
|
185
|
-
/**
|
|
186
|
-
* Filter entities updated before this date (ISO 8601 format)
|
|
187
|
-
*/
|
|
188
|
-
updated_before?: string | null;
|
|
189
|
-
}
|
|
190
102
|
export declare namespace SheetResource {
|
|
191
|
-
export { type EntityType as EntityType, type Sheet as Sheet, type SheetListResponse as SheetListResponse, type
|
|
192
|
-
export { Entity as Entity, type EntityRetrieveResponse as EntityRetrieveResponse, type EntityRetrieveParams as EntityRetrieveParams, type EntityUpdateCommentsParams as EntityUpdateCommentsParams, type EntityUpdateStatusParams as EntityUpdateStatusParams, };
|
|
103
|
+
export { type EntityType as EntityType, type Sheet as Sheet, type SheetListResponse as SheetListResponse, type SheetCreateParams as SheetCreateParams, type SheetUpdateParams as SheetUpdateParams, type SheetListParams as SheetListParams, };
|
|
193
104
|
export { Schema as Schema, type SchemaGetResponse as SchemaGetResponse, type SchemaGetDefaultResponse as SchemaGetDefaultResponse, type SchemaGetFieldDefinitionsResponse as SchemaGetFieldDefinitionsResponse, type SchemaAddFieldsParams as SchemaAddFieldsParams, type SchemaDeleteFieldsParams as SchemaDeleteFieldsParams, };
|
|
194
105
|
}
|
|
195
106
|
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,EACN,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,iCAAiC,EACjC,iBAAiB,EAClB;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAItE;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ5F;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,E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,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAID,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/sheet/sheet.js
CHANGED
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.SheetResource = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const EntityAPI = tslib_1.__importStar(require("./entity.js"));
|
|
8
|
-
const entity_1 = require("./entity.js");
|
|
9
7
|
const SchemaAPI = tslib_1.__importStar(require("./schema.js"));
|
|
10
8
|
const schema_1 = require("./schema.js");
|
|
11
9
|
const headers_1 = require("../../internal/headers.js");
|
|
@@ -13,7 +11,6 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
13
11
|
class SheetResource extends resource_1.APIResource {
|
|
14
12
|
constructor() {
|
|
15
13
|
super(...arguments);
|
|
16
|
-
this.entity = new EntityAPI.Entity(this._client);
|
|
17
14
|
this.schema = new SchemaAPI.Schema(this._client);
|
|
18
15
|
}
|
|
19
16
|
/**
|
|
@@ -65,26 +62,7 @@ class SheetResource extends resource_1.APIResource {
|
|
|
65
62
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
66
63
|
});
|
|
67
64
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Export sheet entities as a CSV file.
|
|
70
|
-
*
|
|
71
|
-
* Exports entities with proper field formatting based on the sheet's schema. Pass
|
|
72
|
-
* specific entity_ids to export a subset, or omit to export all entities.
|
|
73
|
-
*/
|
|
74
|
-
exportCsv(sheetID, query = {}, options) {
|
|
75
|
-
return this._client.get((0, path_1.path) `/v1/sheet/${sheetID}/export-csv`, { query, ...options });
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* List all entities in a sheet.
|
|
79
|
-
*
|
|
80
|
-
* Supports text search across name/company fields and comprehensive filtering by
|
|
81
|
-
* status, comments, and date ranges.
|
|
82
|
-
*/
|
|
83
|
-
getEntities(sheetID, query = {}, options) {
|
|
84
|
-
return this._client.get((0, path_1.path) `/v1/sheet/${sheetID}/entities`, { query, ...options });
|
|
85
|
-
}
|
|
86
65
|
}
|
|
87
66
|
exports.SheetResource = SheetResource;
|
|
88
|
-
SheetResource.Entity = entity_1.Entity;
|
|
89
67
|
SheetResource.Schema = schema_1.Schema;
|
|
90
68
|
//# sourceMappingURL=sheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAOkB;AAElB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,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AAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,sCA2DC;AAqFD,aAAa,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as EntityAPI from "./entity.mjs";
|
|
4
|
-
import { Entity, } from "./entity.mjs";
|
|
5
3
|
import * as SchemaAPI from "./schema.mjs";
|
|
6
4
|
import { Schema, } from "./schema.mjs";
|
|
7
5
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
@@ -9,7 +7,6 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
9
7
|
export class SheetResource extends APIResource {
|
|
10
8
|
constructor() {
|
|
11
9
|
super(...arguments);
|
|
12
|
-
this.entity = new EntityAPI.Entity(this._client);
|
|
13
10
|
this.schema = new SchemaAPI.Schema(this._client);
|
|
14
11
|
}
|
|
15
12
|
/**
|
|
@@ -61,25 +58,6 @@ export class SheetResource extends APIResource {
|
|
|
61
58
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
59
|
});
|
|
63
60
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Export sheet entities as a CSV file.
|
|
66
|
-
*
|
|
67
|
-
* Exports entities with proper field formatting based on the sheet's schema. Pass
|
|
68
|
-
* specific entity_ids to export a subset, or omit to export all entities.
|
|
69
|
-
*/
|
|
70
|
-
exportCsv(sheetID, query = {}, options) {
|
|
71
|
-
return this._client.get(path `/v1/sheet/${sheetID}/export-csv`, { query, ...options });
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* List all entities in a sheet.
|
|
75
|
-
*
|
|
76
|
-
* Supports text search across name/company fields and comprehensive filtering by
|
|
77
|
-
* status, comments, and date ranges.
|
|
78
|
-
*/
|
|
79
|
-
getEntities(sheetID, query = {}, options) {
|
|
80
|
-
return this._client.get(path `/v1/sheet/${sheetID}/entities`, { query, ...options });
|
|
81
|
-
}
|
|
82
61
|
}
|
|
83
|
-
SheetResource.Entity = Entity;
|
|
84
62
|
SheetResource.Schema = Schema;
|
|
85
63
|
//# sourceMappingURL=sheet.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.mjs","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,
|
|
1
|
+
{"version":3,"file":"sheet.mjs","sourceRoot":"","sources":["../../src/resources/sheet/sheet.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EACL,MAAM,GAMP;OAEM,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA0DhE,CAAC;IAxDC;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,OAAO,EAAE,EAAE;YAClD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,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