featurebase-node 0.10.0 → 0.11.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 +8 -0
- package/package.json +1 -1
- package/resources/support/conversations/conversations.d.mts +14 -10
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +14 -10
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +3 -1
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +3 -1
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +237 -1
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +237 -1
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +94 -0
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +94 -0
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/companies/index.js.map +1 -1
- package/resources/users/companies/index.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +261 -1
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +261 -1
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +99 -0
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +99 -0
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.js.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +4 -4
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +4 -4
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/src/resources/support/conversations/conversations.ts +14 -12
- package/src/resources/users/companies/companies.ts +289 -0
- package/src/resources/users/companies/index.ts +2 -0
- package/src/resources/users/contacts/contacts.ts +320 -0
- package/src/resources/users/contacts/index.ts +2 -0
- package/src/resources/users/index.ts +4 -0
- package/src/resources/users/users.ts +8 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/users/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,GACzB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B;OACM,EAAE,KAAK,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/users/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B;OACM,EAAE,KAAK,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/users/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/users/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAY2B;AAXzB,kGAAA,SAAS,OAAA;AAYX,6CAkB0B;AAjBxB,iGAAA,QAAQ,OAAA;AAkBV,oCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/users/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/users/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAWV;OACM,EACL,QAAQ,GAiBT;OACM,EAAE,KAAK,EAAE"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as CompaniesAPI from "./companies/companies.mjs";
|
|
3
|
-
import { Companies, CompaniesCursorPage, Company, CompanyCreateOrUpdateParams, CompanyDeleteByCompanyIDParams, CompanyDeleteParams, CompanyListParams, CompanyRetrieveParams, DeletedCompany } from "./companies/companies.mjs";
|
|
3
|
+
import { Companies, CompaniesCursorPage, Company, CompanyCreateOrUpdateParams, CompanyDeleteByCompanyIDParams, CompanyDeleteParams, CompanyListParams, CompanyRetrieveParams, CompanySearchParams, CompanySearchResponse, DeletedCompany } from "./companies/companies.mjs";
|
|
4
4
|
import * as ContactsAPI from "./contacts/contacts.mjs";
|
|
5
|
-
import { Contact, ContactBlockParams, ContactBlockResponse, ContactCreateOrUpdateParams, ContactCreateOrUpdateResponse, ContactDeleteParams, ContactList, ContactListDataCursorPage, ContactListParams, ContactRetrieveParams, ContactRetrieveResponse, ContactUnblockParams, ContactUnblockResponse, Contacts, DeletedContact } from "./contacts/contacts.mjs";
|
|
5
|
+
import { Contact, ContactBlockParams, ContactBlockResponse, ContactCreateOrUpdateParams, ContactCreateOrUpdateResponse, ContactDeleteParams, ContactList, ContactListDataCursorPage, ContactListParams, ContactRetrieveParams, ContactRetrieveResponse, ContactSearchParams, ContactSearchResponse, ContactUnblockParams, ContactUnblockResponse, Contacts, DeletedContact } from "./contacts/contacts.mjs";
|
|
6
6
|
export declare class Users extends APIResource {
|
|
7
7
|
contacts: ContactsAPI.Contacts;
|
|
8
8
|
companies: CompaniesAPI.Companies;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Users {
|
|
11
|
-
export { Contacts as Contacts, type Contact as Contact, type ContactList as ContactList, type DeletedContact as DeletedContact, type ContactRetrieveResponse as ContactRetrieveResponse, type ContactBlockResponse as ContactBlockResponse, type ContactCreateOrUpdateResponse as ContactCreateOrUpdateResponse, type ContactUnblockResponse as ContactUnblockResponse, type ContactListDataCursorPage as ContactListDataCursorPage, type ContactRetrieveParams as ContactRetrieveParams, type ContactListParams as ContactListParams, type ContactDeleteParams as ContactDeleteParams, type ContactBlockParams as ContactBlockParams, type ContactCreateOrUpdateParams as ContactCreateOrUpdateParams, type ContactUnblockParams as ContactUnblockParams, };
|
|
12
|
-
export { Companies as Companies, type Company as Company, type DeletedCompany as DeletedCompany, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, };
|
|
11
|
+
export { Contacts as Contacts, type Contact as Contact, type ContactList as ContactList, type DeletedContact as DeletedContact, type ContactRetrieveResponse as ContactRetrieveResponse, type ContactBlockResponse as ContactBlockResponse, type ContactCreateOrUpdateResponse as ContactCreateOrUpdateResponse, type ContactSearchResponse as ContactSearchResponse, type ContactUnblockResponse as ContactUnblockResponse, type ContactListDataCursorPage as ContactListDataCursorPage, type ContactRetrieveParams as ContactRetrieveParams, type ContactListParams as ContactListParams, type ContactDeleteParams as ContactDeleteParams, type ContactBlockParams as ContactBlockParams, type ContactCreateOrUpdateParams as ContactCreateOrUpdateParams, type ContactSearchParams as ContactSearchParams, type ContactUnblockParams as ContactUnblockParams, };
|
|
12
|
+
export { Companies as Companies, type Company as Company, type DeletedCompany as DeletedCompany, type CompanySearchResponse as CompanySearchResponse, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, type CompanySearchParams as CompanySearchParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=users.d.mts.map
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IAAI,SAAS,EACtB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,mBAAmB,EACnB,OAAO,EACP,2BAA2B,EAC3B,8BAA8B,EAC9B,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACf;OACM,KAAK,WAAW;OAChB,EACL,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,WAAW,EACX,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACf;AAED,qBAAa,KAAM,SAAQ,WAAW;IACpC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAKD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as CompaniesAPI from "./companies/companies.js";
|
|
3
|
-
import { Companies, CompaniesCursorPage, Company, CompanyCreateOrUpdateParams, CompanyDeleteByCompanyIDParams, CompanyDeleteParams, CompanyListParams, CompanyRetrieveParams, DeletedCompany } from "./companies/companies.js";
|
|
3
|
+
import { Companies, CompaniesCursorPage, Company, CompanyCreateOrUpdateParams, CompanyDeleteByCompanyIDParams, CompanyDeleteParams, CompanyListParams, CompanyRetrieveParams, CompanySearchParams, CompanySearchResponse, DeletedCompany } from "./companies/companies.js";
|
|
4
4
|
import * as ContactsAPI from "./contacts/contacts.js";
|
|
5
|
-
import { Contact, ContactBlockParams, ContactBlockResponse, ContactCreateOrUpdateParams, ContactCreateOrUpdateResponse, ContactDeleteParams, ContactList, ContactListDataCursorPage, ContactListParams, ContactRetrieveParams, ContactRetrieveResponse, ContactUnblockParams, ContactUnblockResponse, Contacts, DeletedContact } from "./contacts/contacts.js";
|
|
5
|
+
import { Contact, ContactBlockParams, ContactBlockResponse, ContactCreateOrUpdateParams, ContactCreateOrUpdateResponse, ContactDeleteParams, ContactList, ContactListDataCursorPage, ContactListParams, ContactRetrieveParams, ContactRetrieveResponse, ContactSearchParams, ContactSearchResponse, ContactUnblockParams, ContactUnblockResponse, Contacts, DeletedContact } from "./contacts/contacts.js";
|
|
6
6
|
export declare class Users extends APIResource {
|
|
7
7
|
contacts: ContactsAPI.Contacts;
|
|
8
8
|
companies: CompaniesAPI.Companies;
|
|
9
9
|
}
|
|
10
10
|
export declare namespace Users {
|
|
11
|
-
export { Contacts as Contacts, type Contact as Contact, type ContactList as ContactList, type DeletedContact as DeletedContact, type ContactRetrieveResponse as ContactRetrieveResponse, type ContactBlockResponse as ContactBlockResponse, type ContactCreateOrUpdateResponse as ContactCreateOrUpdateResponse, type ContactUnblockResponse as ContactUnblockResponse, type ContactListDataCursorPage as ContactListDataCursorPage, type ContactRetrieveParams as ContactRetrieveParams, type ContactListParams as ContactListParams, type ContactDeleteParams as ContactDeleteParams, type ContactBlockParams as ContactBlockParams, type ContactCreateOrUpdateParams as ContactCreateOrUpdateParams, type ContactUnblockParams as ContactUnblockParams, };
|
|
12
|
-
export { Companies as Companies, type Company as Company, type DeletedCompany as DeletedCompany, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, };
|
|
11
|
+
export { Contacts as Contacts, type Contact as Contact, type ContactList as ContactList, type DeletedContact as DeletedContact, type ContactRetrieveResponse as ContactRetrieveResponse, type ContactBlockResponse as ContactBlockResponse, type ContactCreateOrUpdateResponse as ContactCreateOrUpdateResponse, type ContactSearchResponse as ContactSearchResponse, type ContactUnblockResponse as ContactUnblockResponse, type ContactListDataCursorPage as ContactListDataCursorPage, type ContactRetrieveParams as ContactRetrieveParams, type ContactListParams as ContactListParams, type ContactDeleteParams as ContactDeleteParams, type ContactBlockParams as ContactBlockParams, type ContactCreateOrUpdateParams as ContactCreateOrUpdateParams, type ContactSearchParams as ContactSearchParams, type ContactUnblockParams as ContactUnblockParams, };
|
|
12
|
+
export { Companies as Companies, type Company as Company, type DeletedCompany as DeletedCompany, type CompanySearchResponse as CompanySearchResponse, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, type CompanySearchParams as CompanySearchParams, };
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,EACT,mBAAmB,EACnB,OAAO,EACP,2BAA2B,EAC3B,8BAA8B,EAC9B,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACf;OACM,KAAK,WAAW;OAChB,EACL,OAAO,EACP,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,WAAW,EACX,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACf;AAED,qBAAa,K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,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+EAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+EAAsD;AACtD,wDAY+B;AAC/B,4EAAmD;AACnD,qDAkB6B;AAE7B,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAHD,sBAGC;AAED,KAAK,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC1B,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EACL,SAAS,GAWV;OACM,KAAK,WAAW;OAChB,EAgBL,QAAQ,GAET;AAED,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC1B,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -946,7 +946,9 @@ export class Conversations extends APIResource {
|
|
|
946
946
|
* `sort` to `last_activity_at:asc` for the inverse.
|
|
947
947
|
* - **Search mode** (`search` set, `query` optional): full-text search across
|
|
948
948
|
* conversation messages, then narrowed by the same `query` AST so the same
|
|
949
|
-
* filters apply. Results are ranked by relevance
|
|
949
|
+
* filters apply. Results are ranked by relevance by default; set `sort` to order
|
|
950
|
+
* by `lastActivityAt` instead (the same query string still gates which
|
|
951
|
+
* conversations appear, only their ordering changes).
|
|
950
952
|
*
|
|
951
953
|
* ### Structured query AST
|
|
952
954
|
*
|
|
@@ -3596,9 +3598,7 @@ export interface ConversationSearchParams {
|
|
|
3596
3598
|
* top-level AND group. Use this for filtering by `state`, `tag_ids`,
|
|
3597
3599
|
* `admin_assignee_id`, etc.
|
|
3598
3600
|
*/
|
|
3599
|
-
query?:
|
|
3600
|
-
| ConversationSearchParams.ConversationSearchFilter
|
|
3601
|
-
| ConversationSearchParams.ConversationSearchFilterGroup;
|
|
3601
|
+
query?: ConversationSearchParams.SearchFilter | ConversationSearchParams.SearchFilterGroup;
|
|
3602
3602
|
|
|
3603
3603
|
/**
|
|
3604
3604
|
* Body param: Plain-text full-text search across conversation messages.
|
|
@@ -3607,8 +3607,10 @@ export interface ConversationSearchParams {
|
|
|
3607
3607
|
search?: string;
|
|
3608
3608
|
|
|
3609
3609
|
/**
|
|
3610
|
-
* Body param:
|
|
3611
|
-
*
|
|
3610
|
+
* Body param: Result ordering. When omitted, filter mode defaults to
|
|
3611
|
+
* last_activity_at:desc and search mode defaults to relevance ranking. When set,
|
|
3612
|
+
* both modes order by lastActivityAt in the requested direction (so you can ask a
|
|
3613
|
+
* search query to return its hits in chronological order).
|
|
3612
3614
|
*/
|
|
3613
3615
|
sort?: 'last_activity_at:desc' | 'last_activity_at:asc';
|
|
3614
3616
|
|
|
@@ -3620,7 +3622,7 @@ export interface ConversationSearchParams {
|
|
|
3620
3622
|
}
|
|
3621
3623
|
|
|
3622
3624
|
export namespace ConversationSearchParams {
|
|
3623
|
-
export interface
|
|
3625
|
+
export interface SearchFilter {
|
|
3624
3626
|
/**
|
|
3625
3627
|
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
3626
3628
|
*/
|
|
@@ -3629,7 +3631,7 @@ export namespace ConversationSearchParams {
|
|
|
3629
3631
|
/**
|
|
3630
3632
|
* Comparison operator
|
|
3631
3633
|
*/
|
|
3632
|
-
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '~' | '!~' | '^' | '$';
|
|
3634
|
+
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
3633
3635
|
|
|
3634
3636
|
/**
|
|
3635
3637
|
* Value to compare against (primitive or array of primitives)
|
|
@@ -3637,7 +3639,7 @@ export namespace ConversationSearchParams {
|
|
|
3637
3639
|
value: string | number | boolean | Array<string | number> | null;
|
|
3638
3640
|
}
|
|
3639
3641
|
|
|
3640
|
-
export interface
|
|
3642
|
+
export interface SearchFilterGroup {
|
|
3641
3643
|
/**
|
|
3642
3644
|
* Group operator: AND (all match) or OR (any match)
|
|
3643
3645
|
*/
|
|
@@ -3646,10 +3648,10 @@ export namespace ConversationSearchParams {
|
|
|
3646
3648
|
/**
|
|
3647
3649
|
* Array of filter clauses (1-15 entries)
|
|
3648
3650
|
*/
|
|
3649
|
-
value: Array<
|
|
3651
|
+
value: Array<SearchFilterGroup.Value>;
|
|
3650
3652
|
}
|
|
3651
3653
|
|
|
3652
|
-
export namespace
|
|
3654
|
+
export namespace SearchFilterGroup {
|
|
3653
3655
|
export interface Value {
|
|
3654
3656
|
/**
|
|
3655
3657
|
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
@@ -3659,7 +3661,7 @@ export namespace ConversationSearchParams {
|
|
|
3659
3661
|
/**
|
|
3660
3662
|
* Comparison operator
|
|
3661
3663
|
*/
|
|
3662
|
-
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '~' | '!~' | '^' | '$';
|
|
3664
|
+
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
3663
3665
|
|
|
3664
3666
|
/**
|
|
3665
3667
|
* Value to compare against (primitive or array of primitives)
|
|
@@ -411,6 +411,101 @@ export class Companies extends APIResource {
|
|
|
411
411
|
]),
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Search companies with a structured filter AST, sorting, and cursor pagination.
|
|
417
|
+
*
|
|
418
|
+
* ### Structured query AST
|
|
419
|
+
*
|
|
420
|
+
* Each clause has the shape `{ field, operator, value }`. You can pass a single
|
|
421
|
+
* clause or wrap up to 15 in a top-level `AND` group:
|
|
422
|
+
*
|
|
423
|
+
* ```json
|
|
424
|
+
* {
|
|
425
|
+
* "query": {
|
|
426
|
+
* "operator": "AND",
|
|
427
|
+
* "value": [
|
|
428
|
+
* { "field": "plan", "operator": "IN", "value": ["enterprise", "pro"] },
|
|
429
|
+
* { "field": "monthly_spend", "operator": ">", "value": 1000 }
|
|
430
|
+
* ]
|
|
431
|
+
* },
|
|
432
|
+
* "sort": "monthly_spend:desc",
|
|
433
|
+
* "limit": 20
|
|
434
|
+
* }
|
|
435
|
+
* ```
|
|
436
|
+
*
|
|
437
|
+
* Top-level `OR` groups and nested groups are not supported in this version.
|
|
438
|
+
*
|
|
439
|
+
* ### Supported fields and operators
|
|
440
|
+
*
|
|
441
|
+
* | Field | Type | Operators |
|
|
442
|
+
* | --------------- | ----------------------------------- | --------------------------- |
|
|
443
|
+
* | `external_id` | string (caller-provided company id) | `=`, `!=`, `IN`, `NIN` |
|
|
444
|
+
* | `name` | string | `=`, `!=`, `IN`, `NIN`, `~` |
|
|
445
|
+
* | `monthly_spend` | number | `=`, `!=`, `>`, `<` |
|
|
446
|
+
* | `plan` | string | `=`, `!=`, `IN`, `NIN` |
|
|
447
|
+
* | `industry` | string | `=`, `!=`, `IN`, `NIN` |
|
|
448
|
+
* | `website` | string | `=`, `!=`, `IN`, `NIN` |
|
|
449
|
+
* | `company_size` | number | `=`, `!=`, `>`, `<` |
|
|
450
|
+
* | `linked_users` | number | `=`, `!=`, `>`, `<` |
|
|
451
|
+
* | `last_activity` | unix seconds | `=`, `!=`, `>`, `<` |
|
|
452
|
+
* | `created_at` | unix seconds | `=`, `!=`, `>`, `<` |
|
|
453
|
+
*
|
|
454
|
+
* The `name ~ "..."` operator runs a word-aware substring search via the
|
|
455
|
+
* underlying text index. Other string operators (`!~`, `^`, `$`) are reserved for
|
|
456
|
+
* future use and currently return `400`.
|
|
457
|
+
*
|
|
458
|
+
* A query consisting only of `!=` or `NIN` clauses is rejected with
|
|
459
|
+
* `query_too_broad` to prevent full-org scans. Combine the negation with at least
|
|
460
|
+
* one positive clause (`=`, `IN`, `>`, `<`) instead.
|
|
461
|
+
*
|
|
462
|
+
* ### Sort
|
|
463
|
+
*
|
|
464
|
+
* Allowed values:
|
|
465
|
+
*
|
|
466
|
+
* - `created_at:desc` (default), `created_at:asc`
|
|
467
|
+
* - `monthly_spend:desc`, `monthly_spend:asc`
|
|
468
|
+
* - `last_activity:desc`, `last_activity:asc`
|
|
469
|
+
*
|
|
470
|
+
* The chosen sort axis is encoded in the cursor; switching `sort` mid-pagination
|
|
471
|
+
* returns `400 invalid_cursor`. Restart pagination without a cursor when changing
|
|
472
|
+
* sort.
|
|
473
|
+
*
|
|
474
|
+
* ### Pagination
|
|
475
|
+
*
|
|
476
|
+
* Cursor-based, `limit` between 1 and 100 (default 10). `totalCount` is
|
|
477
|
+
* approximate and capped at 5000; `totalCountCapped` is `true` when the real count
|
|
478
|
+
* may be higher.
|
|
479
|
+
*
|
|
480
|
+
* ### Response
|
|
481
|
+
*
|
|
482
|
+
* Returns a standard list envelope with company rows identical to
|
|
483
|
+
* `GET /v2/companies/{id}`.
|
|
484
|
+
*
|
|
485
|
+
* ### Version Availability
|
|
486
|
+
*
|
|
487
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
488
|
+
*
|
|
489
|
+
* @example
|
|
490
|
+
* ```ts
|
|
491
|
+
* const response = await client.users.companies.search();
|
|
492
|
+
* ```
|
|
493
|
+
*/
|
|
494
|
+
search(params: CompanySearchParams, options?: RequestOptions): APIPromise<CompanySearchResponse> {
|
|
495
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
496
|
+
return this._client.post('/v2/companies/search', {
|
|
497
|
+
body,
|
|
498
|
+
...options,
|
|
499
|
+
headers: buildHeaders([
|
|
500
|
+
{
|
|
501
|
+
...(featurebaseVersion?.toString() != null ?
|
|
502
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
503
|
+
: undefined),
|
|
504
|
+
},
|
|
505
|
+
options?.headers,
|
|
506
|
+
]),
|
|
507
|
+
});
|
|
508
|
+
}
|
|
414
509
|
}
|
|
415
510
|
|
|
416
511
|
export type CompaniesCursorPage = CursorPage<Company>;
|
|
@@ -504,6 +599,110 @@ export interface DeletedCompany {
|
|
|
504
599
|
object: 'company';
|
|
505
600
|
}
|
|
506
601
|
|
|
602
|
+
export interface CompanySearchResponse {
|
|
603
|
+
/**
|
|
604
|
+
* Array of search results
|
|
605
|
+
*/
|
|
606
|
+
data: Array<CompanySearchResponse.Data>;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Cursor for fetching the next page (null if no more results)
|
|
610
|
+
*/
|
|
611
|
+
nextCursor: string | null;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Object type identifier
|
|
615
|
+
*/
|
|
616
|
+
object: 'list';
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Total number of companies matching the query, capped at 5000. When the actual
|
|
620
|
+
* total is at or above the cap, `totalCountCapped` is true and the value is
|
|
621
|
+
* exactly the cap.
|
|
622
|
+
*/
|
|
623
|
+
totalCount?: number;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* True when `totalCount` is exactly the cap and the real count may be higher. UI
|
|
627
|
+
* can render as e.g. "5000+".
|
|
628
|
+
*/
|
|
629
|
+
totalCountCapped?: boolean;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export namespace CompanySearchResponse {
|
|
633
|
+
export interface Data {
|
|
634
|
+
/**
|
|
635
|
+
* Featurebase internal ID
|
|
636
|
+
*/
|
|
637
|
+
id: string;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* External company ID from your system
|
|
641
|
+
*/
|
|
642
|
+
companyId: string;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Company employee headcount
|
|
646
|
+
*/
|
|
647
|
+
companySize: number | null;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* ISO date when company was created
|
|
651
|
+
*/
|
|
652
|
+
createdAt: string | null;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Industry
|
|
656
|
+
*/
|
|
657
|
+
industry: string | null;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* ISO date of last activity
|
|
661
|
+
*/
|
|
662
|
+
lastActivity: string | null;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Number of users linked to this company
|
|
666
|
+
*/
|
|
667
|
+
linkedUsers: number | null;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Monthly spend
|
|
671
|
+
*/
|
|
672
|
+
monthlySpend: number | null;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Company name
|
|
676
|
+
*/
|
|
677
|
+
name: string;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Object type identifier
|
|
681
|
+
*/
|
|
682
|
+
object: 'company';
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Plan or tier name
|
|
686
|
+
*/
|
|
687
|
+
plan: string | null;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* ISO date when company was last updated
|
|
691
|
+
*/
|
|
692
|
+
updatedAt: string | null;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Company website URL
|
|
696
|
+
*/
|
|
697
|
+
website: string | null;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Custom field values
|
|
701
|
+
*/
|
|
702
|
+
customFields?: { [key: string]: unknown };
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
507
706
|
export interface CompanyRetrieveParams {
|
|
508
707
|
/**
|
|
509
708
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -605,18 +804,108 @@ export interface CompanyDeleteByCompanyIDParams {
|
|
|
605
804
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
606
805
|
}
|
|
607
806
|
|
|
807
|
+
export interface CompanySearchParams {
|
|
808
|
+
/**
|
|
809
|
+
* Body param: An opaque cursor for pagination. Use the `nextCursor` value from a
|
|
810
|
+
* previous response to fetch the next page of results.
|
|
811
|
+
*/
|
|
812
|
+
cursor?: string;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Body param: A limit on the number of objects to be returned, between 1 and 100.
|
|
816
|
+
*/
|
|
817
|
+
limit?: number;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Body param: Structured filter AST. Either a single filter clause or one
|
|
821
|
+
* top-level AND group (max 15 clauses). Top-level OR groups are not yet supported.
|
|
822
|
+
*/
|
|
823
|
+
query?: CompanySearchParams.SearchFilter | CompanySearchParams.SearchFilterGroup;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Body param: Sort field + direction. Defaults to `created_at:desc`. The chosen
|
|
827
|
+
* sort axis is encoded in the cursor; switching `sort` mid-pagination returns
|
|
828
|
+
* `400 invalid_cursor`.
|
|
829
|
+
*/
|
|
830
|
+
sort?:
|
|
831
|
+
| 'created_at:desc'
|
|
832
|
+
| 'created_at:asc'
|
|
833
|
+
| 'monthly_spend:desc'
|
|
834
|
+
| 'monthly_spend:asc'
|
|
835
|
+
| 'last_activity:desc'
|
|
836
|
+
| 'last_activity:asc';
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
840
|
+
* configured API version if not specified.
|
|
841
|
+
*/
|
|
842
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export namespace CompanySearchParams {
|
|
846
|
+
export interface SearchFilter {
|
|
847
|
+
/**
|
|
848
|
+
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
849
|
+
*/
|
|
850
|
+
field: string;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Comparison operator
|
|
854
|
+
*/
|
|
855
|
+
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Value to compare against (primitive or array of primitives)
|
|
859
|
+
*/
|
|
860
|
+
value: string | number | boolean | Array<string | number> | null;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export interface SearchFilterGroup {
|
|
864
|
+
/**
|
|
865
|
+
* Group operator: AND (all match) or OR (any match)
|
|
866
|
+
*/
|
|
867
|
+
operator: 'AND' | 'OR';
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Array of filter clauses (1-15 entries)
|
|
871
|
+
*/
|
|
872
|
+
value: Array<SearchFilterGroup.Value>;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
export namespace SearchFilterGroup {
|
|
876
|
+
export interface Value {
|
|
877
|
+
/**
|
|
878
|
+
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
879
|
+
*/
|
|
880
|
+
field: string;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Comparison operator
|
|
884
|
+
*/
|
|
885
|
+
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Value to compare against (primitive or array of primitives)
|
|
889
|
+
*/
|
|
890
|
+
value: string | number | boolean | Array<string | number> | null;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
608
895
|
Companies.Contacts = Contacts;
|
|
609
896
|
|
|
610
897
|
export declare namespace Companies {
|
|
611
898
|
export {
|
|
612
899
|
type Company as Company,
|
|
613
900
|
type DeletedCompany as DeletedCompany,
|
|
901
|
+
type CompanySearchResponse as CompanySearchResponse,
|
|
614
902
|
type CompaniesCursorPage as CompaniesCursorPage,
|
|
615
903
|
type CompanyRetrieveParams as CompanyRetrieveParams,
|
|
616
904
|
type CompanyListParams as CompanyListParams,
|
|
617
905
|
type CompanyDeleteParams as CompanyDeleteParams,
|
|
618
906
|
type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams,
|
|
619
907
|
type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams,
|
|
908
|
+
type CompanySearchParams as CompanySearchParams,
|
|
620
909
|
};
|
|
621
910
|
|
|
622
911
|
export {
|
|
@@ -4,11 +4,13 @@ export {
|
|
|
4
4
|
Companies,
|
|
5
5
|
type Company,
|
|
6
6
|
type DeletedCompany,
|
|
7
|
+
type CompanySearchResponse,
|
|
7
8
|
type CompanyRetrieveParams,
|
|
8
9
|
type CompanyListParams,
|
|
9
10
|
type CompanyDeleteParams,
|
|
10
11
|
type CompanyCreateOrUpdateParams,
|
|
11
12
|
type CompanyDeleteByCompanyIDParams,
|
|
13
|
+
type CompanySearchParams,
|
|
12
14
|
type CompaniesCursorPage,
|
|
13
15
|
} from './companies';
|
|
14
16
|
export {
|