@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
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class Entity extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get a specific entity from a sheet.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(entityID: string, params: EntityRetrieveParams, options?: RequestOptions): APIPromise<EntityRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update the comments on an entity.
|
|
11
|
-
*
|
|
12
|
-
* Pass null to clear existing comments.
|
|
13
|
-
*/
|
|
14
|
-
updateComments(entityID: string, params: EntityUpdateCommentsParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Update the status of an entity.
|
|
17
|
-
*
|
|
18
|
-
* Use status to mark entities as qualified (true) or disqualified (false) from
|
|
19
|
-
* your target list.
|
|
20
|
-
*/
|
|
21
|
-
updateStatus(entityID: string, params: EntityUpdateStatusParams, options?: RequestOptions): APIPromise<void>;
|
|
22
|
-
}
|
|
23
|
-
export type EntityRetrieveResponse = {
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
export interface EntityRetrieveParams {
|
|
27
|
-
sheet_id: string;
|
|
28
|
-
}
|
|
29
|
-
export interface EntityUpdateCommentsParams {
|
|
30
|
-
/**
|
|
31
|
-
* Path param:
|
|
32
|
-
*/
|
|
33
|
-
sheet_id: string;
|
|
34
|
-
/**
|
|
35
|
-
* Body param: Comments for the entity
|
|
36
|
-
*/
|
|
37
|
-
comments?: string | null;
|
|
38
|
-
}
|
|
39
|
-
export interface EntityUpdateStatusParams {
|
|
40
|
-
/**
|
|
41
|
-
* Path param:
|
|
42
|
-
*/
|
|
43
|
-
sheet_id: string;
|
|
44
|
-
/**
|
|
45
|
-
* Body param:
|
|
46
|
-
*/
|
|
47
|
-
status: boolean;
|
|
48
|
-
}
|
|
49
|
-
export declare namespace Entity {
|
|
50
|
-
export { type EntityRetrieveResponse as EntityRetrieveResponse, type EntityRetrieveParams as EntityRetrieveParams, type EntityUpdateCommentsParams as EntityUpdateCommentsParams, type EntityUpdateStatusParams as EntityUpdateStatusParams, };
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=entity.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.mts","sourceRoot":"","sources":["../../src/resources/sheet/entity.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;;OAIG;IACH,cAAc,CACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;OAKG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAQpB;AAED,MAAM,MAAM,sBAAsB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
export declare class Entity extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get a specific entity from a sheet.
|
|
7
|
-
*/
|
|
8
|
-
retrieve(entityID: string, params: EntityRetrieveParams, options?: RequestOptions): APIPromise<EntityRetrieveResponse>;
|
|
9
|
-
/**
|
|
10
|
-
* Update the comments on an entity.
|
|
11
|
-
*
|
|
12
|
-
* Pass null to clear existing comments.
|
|
13
|
-
*/
|
|
14
|
-
updateComments(entityID: string, params: EntityUpdateCommentsParams, options?: RequestOptions): APIPromise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Update the status of an entity.
|
|
17
|
-
*
|
|
18
|
-
* Use status to mark entities as qualified (true) or disqualified (false) from
|
|
19
|
-
* your target list.
|
|
20
|
-
*/
|
|
21
|
-
updateStatus(entityID: string, params: EntityUpdateStatusParams, options?: RequestOptions): APIPromise<void>;
|
|
22
|
-
}
|
|
23
|
-
export type EntityRetrieveResponse = {
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
export interface EntityRetrieveParams {
|
|
27
|
-
sheet_id: string;
|
|
28
|
-
}
|
|
29
|
-
export interface EntityUpdateCommentsParams {
|
|
30
|
-
/**
|
|
31
|
-
* Path param:
|
|
32
|
-
*/
|
|
33
|
-
sheet_id: string;
|
|
34
|
-
/**
|
|
35
|
-
* Body param: Comments for the entity
|
|
36
|
-
*/
|
|
37
|
-
comments?: string | null;
|
|
38
|
-
}
|
|
39
|
-
export interface EntityUpdateStatusParams {
|
|
40
|
-
/**
|
|
41
|
-
* Path param:
|
|
42
|
-
*/
|
|
43
|
-
sheet_id: string;
|
|
44
|
-
/**
|
|
45
|
-
* Body param:
|
|
46
|
-
*/
|
|
47
|
-
status: boolean;
|
|
48
|
-
}
|
|
49
|
-
export declare namespace Entity {
|
|
50
|
-
export { type EntityRetrieveResponse as EntityRetrieveResponse, type EntityRetrieveParams as EntityRetrieveParams, type EntityUpdateCommentsParams as EntityUpdateCommentsParams, type EntityUpdateStatusParams as EntityUpdateStatusParams, };
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/resources/sheet/entity.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;;OAIG;IACH,cAAc,CACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IASnB;;;;;OAKG;IACH,YAAY,CACV,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAQpB;AAED,MAAM,MAAM,sBAAsB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEhE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Entity = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
-
class Entity extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Get a specific entity from a sheet.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(entityID, params, options) {
|
|
13
|
-
const { sheet_id } = params;
|
|
14
|
-
return this._client.get((0, path_1.path) `/v1/sheet/${sheet_id}/entity/${entityID}`, options);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Update the comments on an entity.
|
|
18
|
-
*
|
|
19
|
-
* Pass null to clear existing comments.
|
|
20
|
-
*/
|
|
21
|
-
updateComments(entityID, params, options) {
|
|
22
|
-
const { sheet_id, ...body } = params;
|
|
23
|
-
return this._client.put((0, path_1.path) `/v1/sheet/${sheet_id}/entity/${entityID}/comments`, {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Update the status of an entity.
|
|
31
|
-
*
|
|
32
|
-
* Use status to mark entities as qualified (true) or disqualified (false) from
|
|
33
|
-
* your target list.
|
|
34
|
-
*/
|
|
35
|
-
updateStatus(entityID, params, options) {
|
|
36
|
-
const { sheet_id, ...body } = params;
|
|
37
|
-
return this._client.put((0, path_1.path) `/v1/sheet/${sheet_id}/entity/${entityID}/status`, {
|
|
38
|
-
body,
|
|
39
|
-
...options,
|
|
40
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.Entity = Entity;
|
|
45
|
-
//# sourceMappingURL=entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../src/resources/sheet/entity.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,QAAQ,WAAW,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,QAAQ,WAAW,QAAQ,WAAW,EAAE;YAC/E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,YAAY,CACV,QAAgB,EAChB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,QAAQ,WAAW,QAAQ,SAAS,EAAE;YAC7E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAjDD,wBAiDC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
-
export class Entity extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get a specific entity from a sheet.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(entityID, params, options) {
|
|
10
|
-
const { sheet_id } = params;
|
|
11
|
-
return this._client.get(path `/v1/sheet/${sheet_id}/entity/${entityID}`, options);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Update the comments on an entity.
|
|
15
|
-
*
|
|
16
|
-
* Pass null to clear existing comments.
|
|
17
|
-
*/
|
|
18
|
-
updateComments(entityID, params, options) {
|
|
19
|
-
const { sheet_id, ...body } = params;
|
|
20
|
-
return this._client.put(path `/v1/sheet/${sheet_id}/entity/${entityID}/comments`, {
|
|
21
|
-
body,
|
|
22
|
-
...options,
|
|
23
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Update the status of an entity.
|
|
28
|
-
*
|
|
29
|
-
* Use status to mark entities as qualified (true) or disqualified (false) from
|
|
30
|
-
* your target list.
|
|
31
|
-
*/
|
|
32
|
-
updateStatus(entityID, params, options) {
|
|
33
|
-
const { sheet_id, ...body } = params;
|
|
34
|
-
return this._client.put(path `/v1/sheet/${sheet_id}/entity/${entityID}/status`, {
|
|
35
|
-
body,
|
|
36
|
-
...options,
|
|
37
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=entity.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.mjs","sourceRoot":"","sources":["../../src/resources/sheet/entity.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CACN,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,QAAQ,WAAW,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACH,cAAc,CACZ,QAAgB,EAChB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,QAAQ,WAAW,QAAQ,WAAW,EAAE;YAC/E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,YAAY,CACV,QAAgB,EAChB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,QAAQ,WAAW,QAAQ,SAAS,EAAE;YAC7E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Entity extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Get a specific entity from a sheet.
|
|
12
|
-
*/
|
|
13
|
-
retrieve(
|
|
14
|
-
entityID: string,
|
|
15
|
-
params: EntityRetrieveParams,
|
|
16
|
-
options?: RequestOptions,
|
|
17
|
-
): APIPromise<EntityRetrieveResponse> {
|
|
18
|
-
const { sheet_id } = params;
|
|
19
|
-
return this._client.get(path`/v1/sheet/${sheet_id}/entity/${entityID}`, options);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Update the comments on an entity.
|
|
24
|
-
*
|
|
25
|
-
* Pass null to clear existing comments.
|
|
26
|
-
*/
|
|
27
|
-
updateComments(
|
|
28
|
-
entityID: string,
|
|
29
|
-
params: EntityUpdateCommentsParams,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): APIPromise<void> {
|
|
32
|
-
const { sheet_id, ...body } = params;
|
|
33
|
-
return this._client.put(path`/v1/sheet/${sheet_id}/entity/${entityID}/comments`, {
|
|
34
|
-
body,
|
|
35
|
-
...options,
|
|
36
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Update the status of an entity.
|
|
42
|
-
*
|
|
43
|
-
* Use status to mark entities as qualified (true) or disqualified (false) from
|
|
44
|
-
* your target list.
|
|
45
|
-
*/
|
|
46
|
-
updateStatus(
|
|
47
|
-
entityID: string,
|
|
48
|
-
params: EntityUpdateStatusParams,
|
|
49
|
-
options?: RequestOptions,
|
|
50
|
-
): APIPromise<void> {
|
|
51
|
-
const { sheet_id, ...body } = params;
|
|
52
|
-
return this._client.put(path`/v1/sheet/${sheet_id}/entity/${entityID}/status`, {
|
|
53
|
-
body,
|
|
54
|
-
...options,
|
|
55
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type EntityRetrieveResponse = { [key: string]: unknown };
|
|
61
|
-
|
|
62
|
-
export interface EntityRetrieveParams {
|
|
63
|
-
sheet_id: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface EntityUpdateCommentsParams {
|
|
67
|
-
/**
|
|
68
|
-
* Path param:
|
|
69
|
-
*/
|
|
70
|
-
sheet_id: string;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Body param: Comments for the entity
|
|
74
|
-
*/
|
|
75
|
-
comments?: string | null;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface EntityUpdateStatusParams {
|
|
79
|
-
/**
|
|
80
|
-
* Path param:
|
|
81
|
-
*/
|
|
82
|
-
sheet_id: string;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Body param:
|
|
86
|
-
*/
|
|
87
|
-
status: boolean;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export declare namespace Entity {
|
|
91
|
-
export {
|
|
92
|
-
type EntityRetrieveResponse as EntityRetrieveResponse,
|
|
93
|
-
type EntityRetrieveParams as EntityRetrieveParams,
|
|
94
|
-
type EntityUpdateCommentsParams as EntityUpdateCommentsParams,
|
|
95
|
-
type EntityUpdateStatusParams as EntityUpdateStatusParams,
|
|
96
|
-
};
|
|
97
|
-
}
|