featurebase-node 0.1.0 → 0.2.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/README.md +8 -8
- package/client.d.mts +15 -90
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -90
- package/client.d.ts.map +1 -1
- package/client.js +15 -90
- package/client.js.map +1 -1
- package/client.mjs +15 -90
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/{boards.d.mts → feedback/boards.d.mts} +15 -3
- package/resources/feedback/boards.d.mts.map +1 -0
- package/resources/{boards.d.ts → feedback/boards.d.ts} +15 -3
- package/resources/feedback/boards.d.ts.map +1 -0
- package/resources/{boards.js → feedback/boards.js} +15 -3
- package/resources/feedback/boards.js.map +1 -0
- package/resources/{boards.mjs → feedback/boards.mjs} +15 -3
- package/resources/feedback/boards.mjs.map +1 -0
- package/resources/{comments.d.mts → feedback/comments.d.mts} +10 -10
- package/resources/feedback/comments.d.mts.map +1 -0
- package/resources/{comments.d.ts → feedback/comments.d.ts} +10 -10
- package/resources/feedback/comments.d.ts.map +1 -0
- package/resources/{comments.js → feedback/comments.js} +9 -9
- package/resources/feedback/comments.js.map +1 -0
- package/resources/{comments.mjs → feedback/comments.mjs} +9 -9
- package/resources/feedback/comments.mjs.map +1 -0
- package/resources/{custom-fields.d.mts → feedback/custom-fields.d.mts} +17 -3
- package/resources/feedback/custom-fields.d.mts.map +1 -0
- package/resources/{custom-fields.d.ts → feedback/custom-fields.d.ts} +17 -3
- package/resources/feedback/custom-fields.d.ts.map +1 -0
- package/resources/{custom-fields.js → feedback/custom-fields.js} +17 -3
- package/resources/feedback/custom-fields.js.map +1 -0
- package/resources/{custom-fields.mjs → feedback/custom-fields.mjs} +17 -3
- package/resources/feedback/custom-fields.mjs.map +1 -0
- package/resources/feedback/feedback.d.mts +26 -0
- package/resources/feedback/feedback.d.mts.map +1 -0
- package/resources/feedback/feedback.d.ts +26 -0
- package/resources/feedback/feedback.d.ts.map +1 -0
- package/resources/feedback/feedback.js +33 -0
- package/resources/feedback/feedback.js.map +1 -0
- package/resources/feedback/feedback.mjs +28 -0
- package/resources/feedback/feedback.mjs.map +1 -0
- package/resources/feedback/index.d.mts +7 -0
- package/resources/feedback/index.d.mts.map +1 -0
- package/resources/feedback/index.d.ts +7 -0
- package/resources/feedback/index.d.ts.map +1 -0
- package/resources/feedback/index.js +17 -0
- package/resources/feedback/index.js.map +1 -0
- package/resources/feedback/index.mjs +8 -0
- package/resources/feedback/index.mjs.map +1 -0
- package/resources/{post-statuses.d.mts → feedback/post-statuses.d.mts} +17 -3
- package/resources/feedback/post-statuses.d.mts.map +1 -0
- package/resources/{post-statuses.d.ts → feedback/post-statuses.d.ts} +17 -3
- package/resources/feedback/post-statuses.d.ts.map +1 -0
- package/resources/{post-statuses.js → feedback/post-statuses.js} +17 -3
- package/resources/feedback/post-statuses.js.map +1 -0
- package/resources/{post-statuses.mjs → feedback/post-statuses.mjs} +17 -3
- package/resources/feedback/post-statuses.mjs.map +1 -0
- package/resources/feedback/posts/index.d.mts.map +1 -0
- package/resources/feedback/posts/index.d.ts.map +1 -0
- package/resources/feedback/posts/index.js.map +1 -0
- package/resources/feedback/posts/index.mjs.map +1 -0
- package/resources/{posts → feedback/posts}/posts.d.mts +9 -9
- package/resources/feedback/posts/posts.d.mts.map +1 -0
- package/resources/{posts → feedback/posts}/posts.d.ts +9 -9
- package/resources/feedback/posts/posts.d.ts.map +1 -0
- package/resources/{posts → feedback/posts}/posts.js +9 -9
- package/resources/feedback/posts/posts.js.map +1 -0
- package/resources/{posts → feedback/posts}/posts.mjs +8 -8
- package/resources/feedback/posts/posts.mjs.map +1 -0
- package/resources/{posts → feedback/posts}/voters.d.mts +7 -7
- package/resources/feedback/posts/voters.d.mts.map +1 -0
- package/resources/{posts → feedback/posts}/voters.d.ts +7 -7
- package/resources/feedback/posts/voters.d.ts.map +1 -0
- package/resources/{posts → feedback/posts}/voters.js +6 -6
- package/resources/feedback/posts/voters.js.map +1 -0
- package/resources/{posts → feedback/posts}/voters.mjs +6 -6
- package/resources/feedback/posts/voters.mjs.map +1 -0
- package/resources/{posts.d.mts.map → feedback/posts.d.mts.map} +1 -1
- package/resources/{posts.d.ts.map → feedback/posts.d.ts.map} +1 -1
- package/resources/{posts.js → feedback/posts.js} +1 -1
- package/resources/feedback/posts.js.map +1 -0
- package/resources/feedback/posts.mjs.map +1 -0
- package/resources/feedback.d.mts +2 -0
- package/resources/feedback.d.mts.map +1 -0
- package/resources/feedback.d.ts +2 -0
- package/resources/feedback.d.ts.map +1 -0
- package/resources/feedback.js +6 -0
- package/resources/feedback.js.map +1 -0
- package/resources/feedback.mjs +3 -0
- package/resources/feedback.mjs.map +1 -0
- package/resources/index.d.mts +5 -15
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -31
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -15
- package/resources/index.mjs.map +1 -1
- package/resources/integrations/index.d.mts +3 -0
- package/resources/integrations/index.d.mts.map +1 -0
- package/resources/integrations/index.d.ts +3 -0
- package/resources/integrations/index.d.ts.map +1 -0
- package/resources/integrations/index.js +9 -0
- package/resources/integrations/index.js.map +1 -0
- package/resources/integrations/index.mjs +4 -0
- package/resources/integrations/index.mjs.map +1 -0
- package/resources/integrations/integrations.d.mts +10 -0
- package/resources/integrations/integrations.d.mts.map +1 -0
- package/resources/integrations/integrations.d.ts +10 -0
- package/resources/integrations/integrations.d.ts.map +1 -0
- package/resources/integrations/integrations.js +17 -0
- package/resources/integrations/integrations.js.map +1 -0
- package/resources/integrations/integrations.mjs +12 -0
- package/resources/integrations/integrations.mjs.map +1 -0
- package/resources/{webhooks.d.mts → integrations/webhooks.d.mts} +12 -11
- package/resources/integrations/webhooks.d.mts.map +1 -0
- package/resources/{webhooks.d.ts → integrations/webhooks.d.ts} +12 -11
- package/resources/integrations/webhooks.d.ts.map +1 -0
- package/resources/{webhooks.js → integrations/webhooks.js} +12 -11
- package/resources/integrations/webhooks.js.map +1 -0
- package/resources/{webhooks.mjs → integrations/webhooks.mjs} +12 -11
- package/resources/integrations/webhooks.mjs.map +1 -0
- package/resources/integrations.d.mts +2 -0
- package/resources/integrations.d.mts.map +1 -0
- package/resources/integrations.d.ts +2 -0
- package/resources/integrations.d.ts.map +1 -0
- package/resources/integrations.js +6 -0
- package/resources/integrations.js.map +1 -0
- package/resources/integrations.mjs +3 -0
- package/resources/integrations.mjs.map +1 -0
- package/resources/{admins.d.mts → organization/admins.d.mts} +3 -3
- package/resources/organization/admins.d.mts.map +1 -0
- package/resources/{admins.d.ts → organization/admins.d.ts} +3 -3
- package/resources/organization/admins.d.ts.map +1 -0
- package/resources/{admins.js → organization/admins.js} +3 -3
- package/resources/organization/admins.js.map +1 -0
- package/resources/{admins.mjs → organization/admins.mjs} +3 -3
- package/resources/organization/admins.mjs.map +1 -0
- package/resources/{brands.d.mts → organization/brands.d.mts} +3 -3
- package/resources/organization/brands.d.mts.map +1 -0
- package/resources/{brands.d.ts → organization/brands.d.ts} +3 -3
- package/resources/organization/brands.d.ts.map +1 -0
- package/resources/{brands.js → organization/brands.js} +3 -3
- package/resources/organization/brands.js.map +1 -0
- package/resources/{brands.mjs → organization/brands.mjs} +3 -3
- package/resources/organization/brands.mjs.map +1 -0
- package/resources/organization/index.d.mts +5 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +5 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +13 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +6 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +18 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +18 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +25 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +20 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/{teams.d.mts → organization/teams.d.mts} +3 -3
- package/resources/organization/teams.d.mts.map +1 -0
- package/resources/{teams.d.ts → organization/teams.d.ts} +3 -3
- package/resources/organization/teams.d.ts.map +1 -0
- package/resources/{teams.js → organization/teams.js} +3 -3
- package/resources/organization/teams.js.map +1 -0
- package/resources/{teams.mjs → organization/teams.mjs} +3 -3
- package/resources/organization/teams.mjs.map +1 -0
- package/resources/organization.d.mts +2 -0
- package/resources/organization.d.mts.map +1 -0
- package/resources/organization.d.ts +2 -0
- package/resources/organization.d.ts.map +1 -0
- package/resources/organization.js +6 -0
- package/resources/organization.js.map +1 -0
- package/resources/organization.mjs +3 -0
- package/resources/organization.mjs.map +1 -0
- package/resources/{tags.d.mts → products/conversation-tags.d.mts} +31 -27
- package/resources/products/conversation-tags.d.mts.map +1 -0
- package/resources/{tags.d.ts → products/conversation-tags.d.ts} +31 -27
- package/resources/products/conversation-tags.d.ts.map +1 -0
- package/resources/{tags.js → products/conversation-tags.js} +21 -17
- package/resources/products/conversation-tags.js.map +1 -0
- package/resources/{tags.mjs → products/conversation-tags.mjs} +19 -15
- package/resources/products/conversation-tags.mjs.map +1 -0
- package/resources/{conversations → products/conversations}/conversations.d.mts +37 -36
- package/resources/products/conversations/conversations.d.mts.map +1 -0
- package/resources/{conversations → products/conversations}/conversations.d.ts +37 -36
- package/resources/products/conversations/conversations.d.ts.map +1 -0
- package/resources/{conversations → products/conversations}/conversations.js +32 -31
- package/resources/products/conversations/conversations.js.map +1 -0
- package/resources/{conversations → products/conversations}/conversations.mjs +31 -30
- package/resources/products/conversations/conversations.mjs.map +1 -0
- package/resources/products/conversations/index.d.mts.map +1 -0
- package/resources/products/conversations/index.d.ts.map +1 -0
- package/resources/products/conversations/index.js.map +1 -0
- package/resources/products/conversations/index.mjs.map +1 -0
- package/resources/{conversations → products/conversations}/participants.d.mts +11 -9
- package/resources/products/conversations/participants.d.mts.map +1 -0
- package/resources/{conversations → products/conversations}/participants.d.ts +11 -9
- package/resources/products/conversations/participants.d.ts.map +1 -0
- package/resources/{conversations → products/conversations}/participants.js +11 -9
- package/resources/products/conversations/participants.js.map +1 -0
- package/resources/{conversations → products/conversations}/participants.mjs +11 -9
- package/resources/products/conversations/participants.mjs.map +1 -0
- package/resources/{conversations → products/conversations}/tags.d.mts +5 -5
- package/resources/products/conversations/tags.d.mts.map +1 -0
- package/resources/{conversations → products/conversations}/tags.d.ts +5 -5
- package/resources/products/conversations/tags.d.ts.map +1 -0
- package/resources/{conversations → products/conversations}/tags.js +5 -5
- package/resources/products/conversations/tags.js.map +1 -0
- package/resources/{conversations → products/conversations}/tags.mjs +5 -5
- package/resources/products/conversations/tags.mjs.map +1 -0
- package/resources/products/conversations.d.mts.map +1 -0
- package/resources/products/conversations.d.ts.map +1 -0
- package/resources/{conversations.js → products/conversations.js} +1 -1
- package/resources/products/conversations.js.map +1 -0
- package/resources/products/conversations.mjs.map +1 -0
- package/resources/products/index.d.mts +6 -0
- package/resources/products/index.d.mts.map +1 -0
- package/resources/products/index.d.ts +6 -0
- package/resources/products/index.d.ts.map +1 -0
- package/resources/products/index.js +15 -0
- package/resources/products/index.js.map +1 -0
- package/resources/products/index.mjs +7 -0
- package/resources/products/index.mjs.map +1 -0
- package/resources/products/products.d.mts +22 -0
- package/resources/products/products.d.mts.map +1 -0
- package/resources/products/products.d.ts +22 -0
- package/resources/products/products.d.ts.map +1 -0
- package/resources/products/products.js +29 -0
- package/resources/products/products.js.map +1 -0
- package/resources/products/products.mjs +24 -0
- package/resources/products/products.mjs.map +1 -0
- package/resources/{surveys.d.mts → products/surveys.d.mts} +24 -4
- package/resources/products/surveys.d.mts.map +1 -0
- package/resources/{surveys.d.ts → products/surveys.d.ts} +24 -4
- package/resources/products/surveys.d.ts.map +1 -0
- package/resources/{surveys.js → products/surveys.js} +23 -3
- package/resources/products/surveys.js.map +1 -0
- package/resources/{surveys.mjs → products/surveys.mjs} +23 -3
- package/resources/products/surveys.mjs.map +1 -0
- package/resources/{tickets → products/tickets}/categories.d.mts +10 -8
- package/resources/products/tickets/categories.d.mts.map +1 -0
- package/resources/{tickets → products/tickets}/categories.d.ts +10 -8
- package/resources/products/tickets/categories.d.ts.map +1 -0
- package/resources/{tickets → products/tickets}/categories.js +9 -7
- package/resources/products/tickets/categories.js.map +1 -0
- package/resources/{tickets → products/tickets}/categories.mjs +9 -7
- package/resources/products/tickets/categories.mjs.map +1 -0
- package/resources/{tickets → products/tickets}/custom-fields.d.mts +6 -6
- package/resources/products/tickets/custom-fields.d.mts.map +1 -0
- package/resources/{tickets → products/tickets}/custom-fields.d.ts +6 -6
- package/resources/products/tickets/custom-fields.d.ts.map +1 -0
- package/resources/{tickets → products/tickets}/custom-fields.js +5 -5
- package/resources/products/tickets/custom-fields.js.map +1 -0
- package/resources/{tickets → products/tickets}/custom-fields.mjs +5 -5
- package/resources/products/tickets/custom-fields.mjs.map +1 -0
- package/resources/products/tickets/index.d.mts.map +1 -0
- package/resources/products/tickets/index.d.ts.map +1 -0
- package/resources/products/tickets/index.js.map +1 -0
- package/resources/products/tickets/index.mjs.map +1 -0
- package/resources/{tickets → products/tickets}/statuses.d.mts +10 -8
- package/resources/products/tickets/statuses.d.mts.map +1 -0
- package/resources/{tickets → products/tickets}/statuses.d.ts +10 -8
- package/resources/products/tickets/statuses.d.ts.map +1 -0
- package/resources/{tickets → products/tickets}/statuses.js +9 -7
- package/resources/products/tickets/statuses.js.map +1 -0
- package/resources/{tickets → products/tickets}/statuses.mjs +9 -7
- package/resources/products/tickets/statuses.mjs.map +1 -0
- package/resources/{tickets → products/tickets}/tickets.d.mts +10 -10
- package/resources/products/tickets/tickets.d.mts.map +1 -0
- package/resources/{tickets → products/tickets}/tickets.d.ts +10 -10
- package/resources/products/tickets/tickets.d.ts.map +1 -0
- package/resources/{tickets → products/tickets}/tickets.js +10 -10
- package/resources/products/tickets/tickets.js.map +1 -0
- package/resources/{tickets → products/tickets}/tickets.mjs +9 -9
- package/resources/products/tickets/tickets.mjs.map +1 -0
- package/resources/products/tickets.d.mts.map +1 -0
- package/resources/products/tickets.d.ts.map +1 -0
- package/resources/{tickets.js → products/tickets.js} +1 -1
- package/resources/products/tickets.js.map +1 -0
- package/resources/products/tickets.mjs.map +1 -0
- package/resources/products.d.mts +2 -0
- package/resources/products.d.mts.map +1 -0
- package/resources/products.d.ts +2 -0
- package/resources/products.d.ts.map +1 -0
- package/resources/products.js +6 -0
- package/resources/products.js.map +1 -0
- package/resources/products.mjs +3 -0
- package/resources/products.mjs.map +1 -0
- package/resources/{companies → users/companies}/companies.d.mts +12 -11
- package/resources/users/companies/companies.d.mts.map +1 -0
- package/resources/{companies → users/companies}/companies.d.ts +12 -11
- package/resources/users/companies/companies.d.ts.map +1 -0
- package/resources/{companies → users/companies}/companies.js +13 -12
- package/resources/users/companies/companies.js.map +1 -0
- package/resources/{companies → users/companies}/companies.mjs +12 -11
- package/resources/users/companies/companies.mjs.map +1 -0
- package/resources/{companies → users/companies}/contacts.d.mts +21 -18
- package/resources/users/companies/contacts.d.mts.map +1 -0
- package/resources/{companies → users/companies}/contacts.d.ts +21 -18
- package/resources/users/companies/contacts.d.ts.map +1 -0
- package/resources/{companies → users/companies}/contacts.js +17 -14
- package/resources/users/companies/contacts.js.map +1 -0
- package/resources/{companies → users/companies}/contacts.mjs +17 -14
- package/resources/users/companies/contacts.mjs.map +1 -0
- package/resources/users/companies/index.d.mts.map +1 -0
- package/resources/users/companies/index.d.ts.map +1 -0
- package/resources/users/companies/index.js.map +1 -0
- package/resources/users/companies/index.mjs.map +1 -0
- package/resources/users/companies.d.mts.map +1 -0
- package/resources/users/companies.d.ts.map +1 -0
- package/resources/{companies.js → users/companies.js} +1 -1
- package/resources/users/companies.js.map +1 -0
- package/resources/users/companies.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.d.mts +8 -7
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.d.ts +8 -7
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.js +9 -8
- package/resources/users/contacts/by-user-id/by-user-id.js.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.mjs +8 -7
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.d.mts +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.d.ts +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.js +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.js.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.mjs +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -0
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -0
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -0
- package/resources/users/contacts/by-user-id/index.js.map +1 -0
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -0
- package/resources/users/contacts/by-user-id.d.mts.map +1 -0
- package/resources/users/contacts/by-user-id.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id.js +1 -1
- package/resources/users/contacts/by-user-id.js.map +1 -0
- package/resources/users/contacts/by-user-id.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.d.mts +10 -9
- package/resources/users/contacts/contacts.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.d.ts +10 -9
- package/resources/users/contacts/contacts.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.js +11 -10
- package/resources/users/contacts/contacts.js.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.mjs +10 -9
- package/resources/users/contacts/contacts.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.d.mts +5 -5
- package/resources/users/contacts/email-preferences.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.d.ts +5 -5
- package/resources/users/contacts/email-preferences.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.js +5 -5
- package/resources/users/contacts/email-preferences.js.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.mjs +5 -5
- package/resources/users/contacts/email-preferences.mjs.map +1 -0
- package/resources/users/contacts/index.d.mts.map +1 -0
- package/resources/users/contacts/index.d.ts.map +1 -0
- package/resources/users/contacts/index.js.map +1 -0
- package/resources/users/contacts/index.mjs.map +1 -0
- package/resources/users/contacts.d.mts.map +1 -0
- package/resources/users/contacts.d.ts.map +1 -0
- package/resources/{contacts.js → users/contacts.js} +1 -1
- package/resources/users/contacts.js.map +1 -0
- package/resources/users/contacts.mjs.map +1 -0
- package/resources/users/index.d.mts +4 -0
- package/resources/users/index.d.mts.map +1 -0
- package/resources/users/index.d.ts +4 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js +11 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs +5 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/users/users.d.mts +14 -0
- package/resources/users/users.d.mts.map +1 -0
- package/resources/users/users.d.ts +14 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/users/users.js +21 -0
- package/resources/users/users.js.map +1 -0
- package/resources/users/users.mjs +16 -0
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.mts +2 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +6 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/src/client.ts +20 -391
- package/src/resources/{boards.ts → feedback/boards.ts} +17 -5
- package/src/resources/{comments.ts → feedback/comments.ts} +12 -12
- package/src/resources/{custom-fields.ts → feedback/custom-fields.ts} +19 -5
- package/src/resources/feedback/feedback.ts +113 -0
- package/src/resources/feedback/index.ts +48 -0
- package/src/resources/{post-statuses.ts → feedback/post-statuses.ts} +19 -5
- package/src/resources/{posts → feedback/posts}/posts.ts +11 -11
- package/src/resources/{posts → feedback/posts}/voters.ts +9 -9
- package/src/resources/feedback.ts +3 -0
- package/src/resources/index.ts +5 -162
- package/src/resources/integrations/index.ts +16 -0
- package/src/resources/integrations/integrations.ts +39 -0
- package/src/resources/{webhooks.ts → integrations/webhooks.ts} +14 -13
- package/src/resources/integrations.ts +3 -0
- package/src/resources/{admins.ts → organization/admins.ts} +5 -5
- package/src/resources/{brands.ts → organization/brands.ts} +5 -5
- package/src/resources/organization/index.ts +26 -0
- package/src/resources/organization/organization.ts +55 -0
- package/src/resources/{teams.ts → organization/teams.ts} +5 -5
- package/src/resources/organization.ts +3 -0
- package/src/resources/{tags.ts → products/conversation-tags.ts} +44 -34
- package/src/resources/{conversations → products/conversations}/conversations.ts +39 -38
- package/src/resources/{conversations → products/conversations}/participants.ts +13 -11
- package/src/resources/{conversations → products/conversations}/tags.ts +7 -7
- package/src/resources/products/index.ts +57 -0
- package/src/resources/products/products.ts +135 -0
- package/src/resources/{surveys.ts → products/surveys.ts} +26 -6
- package/src/resources/{tickets → products/tickets}/categories.ts +12 -10
- package/src/resources/{tickets → products/tickets}/custom-fields.ts +8 -8
- package/src/resources/{tickets → products/tickets}/statuses.ts +12 -10
- package/src/resources/{tickets → products/tickets}/tickets.ts +12 -12
- package/src/resources/products.ts +3 -0
- package/src/resources/{companies → users/companies}/companies.ts +14 -13
- package/src/resources/{companies → users/companies}/contacts.ts +23 -20
- package/src/resources/{contacts → users/contacts}/by-user-id/by-user-id.ts +10 -9
- package/src/resources/{contacts → users/contacts}/by-user-id/email-preferences.ts +7 -7
- package/src/resources/{contacts → users/contacts}/contacts.ts +12 -11
- package/src/resources/{contacts → users/contacts}/email-preferences.ts +7 -7
- package/src/resources/users/index.ts +30 -0
- package/src/resources/users/users.ts +71 -0
- package/src/resources/users.ts +3 -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
- package/resources/admins.d.mts.map +0 -1
- package/resources/admins.d.ts.map +0 -1
- package/resources/admins.js.map +0 -1
- package/resources/admins.mjs.map +0 -1
- package/resources/boards.d.mts.map +0 -1
- package/resources/boards.d.ts.map +0 -1
- package/resources/boards.js.map +0 -1
- package/resources/boards.mjs.map +0 -1
- package/resources/brands.d.mts.map +0 -1
- package/resources/brands.d.ts.map +0 -1
- package/resources/brands.js.map +0 -1
- package/resources/brands.mjs.map +0 -1
- package/resources/comments.d.mts.map +0 -1
- package/resources/comments.d.ts.map +0 -1
- package/resources/comments.js.map +0 -1
- package/resources/comments.mjs.map +0 -1
- package/resources/companies/companies.d.mts.map +0 -1
- package/resources/companies/companies.d.ts.map +0 -1
- package/resources/companies/companies.js.map +0 -1
- package/resources/companies/companies.mjs.map +0 -1
- package/resources/companies/contacts.d.mts.map +0 -1
- package/resources/companies/contacts.d.ts.map +0 -1
- package/resources/companies/contacts.js.map +0 -1
- package/resources/companies/contacts.mjs.map +0 -1
- package/resources/companies/index.d.mts.map +0 -1
- package/resources/companies/index.d.ts.map +0 -1
- package/resources/companies/index.js.map +0 -1
- package/resources/companies/index.mjs.map +0 -1
- package/resources/companies.d.mts.map +0 -1
- package/resources/companies.d.ts.map +0 -1
- package/resources/companies.js.map +0 -1
- package/resources/companies.mjs.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.d.mts.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.d.ts.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.js.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.mjs.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.d.mts.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.d.ts.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.js.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.mjs.map +0 -1
- package/resources/contacts/by-user-id/index.d.mts.map +0 -1
- package/resources/contacts/by-user-id/index.d.ts.map +0 -1
- package/resources/contacts/by-user-id/index.js.map +0 -1
- package/resources/contacts/by-user-id/index.mjs.map +0 -1
- package/resources/contacts/by-user-id.d.mts.map +0 -1
- package/resources/contacts/by-user-id.d.ts.map +0 -1
- package/resources/contacts/by-user-id.js.map +0 -1
- package/resources/contacts/by-user-id.mjs.map +0 -1
- package/resources/contacts/contacts.d.mts.map +0 -1
- package/resources/contacts/contacts.d.ts.map +0 -1
- package/resources/contacts/contacts.js.map +0 -1
- package/resources/contacts/contacts.mjs.map +0 -1
- package/resources/contacts/email-preferences.d.mts.map +0 -1
- package/resources/contacts/email-preferences.d.ts.map +0 -1
- package/resources/contacts/email-preferences.js.map +0 -1
- package/resources/contacts/email-preferences.mjs.map +0 -1
- package/resources/contacts/index.d.mts.map +0 -1
- package/resources/contacts/index.d.ts.map +0 -1
- package/resources/contacts/index.js.map +0 -1
- package/resources/contacts/index.mjs.map +0 -1
- package/resources/contacts.d.mts.map +0 -1
- package/resources/contacts.d.ts.map +0 -1
- package/resources/contacts.js.map +0 -1
- package/resources/contacts.mjs.map +0 -1
- package/resources/conversations/conversations.d.mts.map +0 -1
- package/resources/conversations/conversations.d.ts.map +0 -1
- package/resources/conversations/conversations.js.map +0 -1
- package/resources/conversations/conversations.mjs.map +0 -1
- package/resources/conversations/index.d.mts.map +0 -1
- package/resources/conversations/index.d.ts.map +0 -1
- package/resources/conversations/index.js.map +0 -1
- package/resources/conversations/index.mjs.map +0 -1
- package/resources/conversations/participants.d.mts.map +0 -1
- package/resources/conversations/participants.d.ts.map +0 -1
- package/resources/conversations/participants.js.map +0 -1
- package/resources/conversations/participants.mjs.map +0 -1
- package/resources/conversations/tags.d.mts.map +0 -1
- package/resources/conversations/tags.d.ts.map +0 -1
- package/resources/conversations/tags.js.map +0 -1
- package/resources/conversations/tags.mjs.map +0 -1
- package/resources/conversations.d.mts.map +0 -1
- package/resources/conversations.d.ts.map +0 -1
- package/resources/conversations.js.map +0 -1
- package/resources/conversations.mjs.map +0 -1
- package/resources/custom-fields.d.mts.map +0 -1
- package/resources/custom-fields.d.ts.map +0 -1
- package/resources/custom-fields.js.map +0 -1
- package/resources/custom-fields.mjs.map +0 -1
- package/resources/post-statuses.d.mts.map +0 -1
- package/resources/post-statuses.d.ts.map +0 -1
- package/resources/post-statuses.js.map +0 -1
- package/resources/post-statuses.mjs.map +0 -1
- package/resources/posts/index.d.mts.map +0 -1
- package/resources/posts/index.d.ts.map +0 -1
- package/resources/posts/index.js.map +0 -1
- package/resources/posts/index.mjs.map +0 -1
- package/resources/posts/posts.d.mts.map +0 -1
- package/resources/posts/posts.d.ts.map +0 -1
- package/resources/posts/posts.js.map +0 -1
- package/resources/posts/posts.mjs.map +0 -1
- package/resources/posts/voters.d.mts.map +0 -1
- package/resources/posts/voters.d.ts.map +0 -1
- package/resources/posts/voters.js.map +0 -1
- package/resources/posts/voters.mjs.map +0 -1
- package/resources/posts.js.map +0 -1
- package/resources/posts.mjs.map +0 -1
- package/resources/surveys.d.mts.map +0 -1
- package/resources/surveys.d.ts.map +0 -1
- package/resources/surveys.js.map +0 -1
- package/resources/surveys.mjs.map +0 -1
- package/resources/tags.d.mts.map +0 -1
- package/resources/tags.d.ts.map +0 -1
- package/resources/tags.js.map +0 -1
- package/resources/tags.mjs.map +0 -1
- package/resources/teams.d.mts.map +0 -1
- package/resources/teams.d.ts.map +0 -1
- package/resources/teams.js.map +0 -1
- package/resources/teams.mjs.map +0 -1
- package/resources/tickets/categories.d.mts.map +0 -1
- package/resources/tickets/categories.d.ts.map +0 -1
- package/resources/tickets/categories.js.map +0 -1
- package/resources/tickets/categories.mjs.map +0 -1
- package/resources/tickets/custom-fields.d.mts.map +0 -1
- package/resources/tickets/custom-fields.d.ts.map +0 -1
- package/resources/tickets/custom-fields.js.map +0 -1
- package/resources/tickets/custom-fields.mjs.map +0 -1
- package/resources/tickets/index.d.mts.map +0 -1
- package/resources/tickets/index.d.ts.map +0 -1
- package/resources/tickets/index.js.map +0 -1
- package/resources/tickets/index.mjs.map +0 -1
- package/resources/tickets/statuses.d.mts.map +0 -1
- package/resources/tickets/statuses.d.ts.map +0 -1
- package/resources/tickets/statuses.js.map +0 -1
- package/resources/tickets/statuses.mjs.map +0 -1
- package/resources/tickets/tickets.d.mts.map +0 -1
- package/resources/tickets/tickets.d.ts.map +0 -1
- package/resources/tickets/tickets.js.map +0 -1
- package/resources/tickets/tickets.mjs.map +0 -1
- package/resources/tickets.d.mts.map +0 -1
- package/resources/tickets.d.ts.map +0 -1
- package/resources/tickets.js.map +0 -1
- package/resources/tickets.mjs.map +0 -1
- package/resources/webhooks.d.mts.map +0 -1
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs.map +0 -1
- /package/resources/{posts → feedback/posts}/index.d.mts +0 -0
- /package/resources/{posts → feedback/posts}/index.d.ts +0 -0
- /package/resources/{posts → feedback/posts}/index.js +0 -0
- /package/resources/{posts → feedback/posts}/index.mjs +0 -0
- /package/resources/{posts.d.mts → feedback/posts.d.mts} +0 -0
- /package/resources/{posts.d.ts → feedback/posts.d.ts} +0 -0
- /package/resources/{posts.mjs → feedback/posts.mjs} +0 -0
- /package/resources/{conversations → products/conversations}/index.d.mts +0 -0
- /package/resources/{conversations → products/conversations}/index.d.ts +0 -0
- /package/resources/{conversations → products/conversations}/index.js +0 -0
- /package/resources/{conversations → products/conversations}/index.mjs +0 -0
- /package/resources/{conversations.d.mts → products/conversations.d.mts} +0 -0
- /package/resources/{conversations.d.ts → products/conversations.d.ts} +0 -0
- /package/resources/{conversations.mjs → products/conversations.mjs} +0 -0
- /package/resources/{tickets → products/tickets}/index.d.mts +0 -0
- /package/resources/{tickets → products/tickets}/index.d.ts +0 -0
- /package/resources/{tickets → products/tickets}/index.js +0 -0
- /package/resources/{tickets → products/tickets}/index.mjs +0 -0
- /package/resources/{tickets.d.mts → products/tickets.d.mts} +0 -0
- /package/resources/{tickets.d.ts → products/tickets.d.ts} +0 -0
- /package/resources/{tickets.mjs → products/tickets.mjs} +0 -0
- /package/resources/{companies → users/companies}/index.d.mts +0 -0
- /package/resources/{companies → users/companies}/index.d.ts +0 -0
- /package/resources/{companies → users/companies}/index.js +0 -0
- /package/resources/{companies → users/companies}/index.mjs +0 -0
- /package/resources/{companies.d.mts → users/companies.d.mts} +0 -0
- /package/resources/{companies.d.ts → users/companies.d.ts} +0 -0
- /package/resources/{companies.mjs → users/companies.mjs} +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.d.mts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.d.ts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.js +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.mjs +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id.d.mts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id.d.ts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id.mjs +0 -0
- /package/resources/{contacts → users/contacts}/index.d.mts +0 -0
- /package/resources/{contacts → users/contacts}/index.d.ts +0 -0
- /package/resources/{contacts → users/contacts}/index.js +0 -0
- /package/resources/{contacts → users/contacts}/index.mjs +0 -0
- /package/resources/{contacts.d.mts → users/contacts.d.mts} +0 -0
- /package/resources/{contacts.d.ts → users/contacts.d.ts} +0 -0
- /package/resources/{contacts.mjs → users/contacts.mjs} +0 -0
- /package/src/resources/{posts → feedback/posts}/index.ts +0 -0
- /package/src/resources/{posts.ts → feedback/posts.ts} +0 -0
- /package/src/resources/{conversations → products/conversations}/index.ts +0 -0
- /package/src/resources/{conversations.ts → products/conversations.ts} +0 -0
- /package/src/resources/{tickets → products/tickets}/index.ts +0 -0
- /package/src/resources/{tickets.ts → products/tickets.ts} +0 -0
- /package/src/resources/{companies → users/companies}/index.ts +0 -0
- /package/src/resources/{companies.ts → users/companies.ts} +0 -0
- /package/src/resources/{contacts → users/contacts}/by-user-id/index.ts +0 -0
- /package/src/resources/{contacts → users/contacts}/by-user-id.ts +0 -0
- /package/src/resources/{contacts → users/contacts}/index.ts +0 -0
- /package/src/resources/{contacts.ts → users/contacts.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ContactsAPI from "./contacts.mjs";
|
|
4
4
|
import { Contacts, } from "./contacts.mjs";
|
|
5
|
-
import { buildHeaders } from "
|
|
6
|
-
import { path } from "
|
|
5
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
7
|
/**
|
|
8
8
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
9
9
|
*/
|
|
@@ -68,7 +68,7 @@ export class Companies extends APIResource {
|
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
70
|
* ```ts
|
|
71
|
-
* const company = await client.companies.retrieve(
|
|
71
|
+
* const company = await client.users.companies.retrieve(
|
|
72
72
|
* '507f1f77bcf86cd799439011',
|
|
73
73
|
* );
|
|
74
74
|
* ```
|
|
@@ -150,7 +150,7 @@ export class Companies extends APIResource {
|
|
|
150
150
|
*
|
|
151
151
|
* @example
|
|
152
152
|
* ```ts
|
|
153
|
-
* const companies = await client.companies.list();
|
|
153
|
+
* const companies = await client.users.companies.list();
|
|
154
154
|
* ```
|
|
155
155
|
*/
|
|
156
156
|
list(params = {}, options) {
|
|
@@ -195,7 +195,7 @@ export class Companies extends APIResource {
|
|
|
195
195
|
*
|
|
196
196
|
* @example
|
|
197
197
|
* ```ts
|
|
198
|
-
* const deletedCompany = await client.companies.delete(
|
|
198
|
+
* const deletedCompany = await client.users.companies.delete(
|
|
199
199
|
* '507f1f77bcf86cd799439011',
|
|
200
200
|
* );
|
|
201
201
|
* ```
|
|
@@ -280,10 +280,9 @@ export class Companies extends APIResource {
|
|
|
280
280
|
*
|
|
281
281
|
* @example
|
|
282
282
|
* ```ts
|
|
283
|
-
* const company = await client.companies.createOrUpdate(
|
|
284
|
-
* companyId: 'comp_12345',
|
|
285
|
-
*
|
|
286
|
-
* });
|
|
283
|
+
* const company = await client.users.companies.createOrUpdate(
|
|
284
|
+
* { companyId: 'comp_12345', name: 'Acme Inc' },
|
|
285
|
+
* );
|
|
287
286
|
* ```
|
|
288
287
|
*/
|
|
289
288
|
createOrUpdate(params, options) {
|
|
@@ -345,7 +344,9 @@ export class Companies extends APIResource {
|
|
|
345
344
|
* @example
|
|
346
345
|
* ```ts
|
|
347
346
|
* const deletedCompany =
|
|
348
|
-
* await client.companies.deleteByCompanyID(
|
|
347
|
+
* await client.users.companies.deleteByCompanyID(
|
|
348
|
+
* 'comp_12345',
|
|
349
|
+
* );
|
|
349
350
|
* ```
|
|
350
351
|
*/
|
|
351
352
|
deleteByCompanyID(companyID, params = {}, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAML,QAAQ,GACT;OAEM,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgX1E,CAAC;IA9WC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;IACH,QAAQ,CACN,EAAU,EACV,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC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ACH,CAAC,CAAC;IACL,CAAC;CACF;AA6ND,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as UsersContactsAPI from "../contacts/contacts.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
7
7
|
*/
|
|
@@ -60,12 +60,13 @@ export declare class Contacts extends APIResource {
|
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* ```ts
|
|
63
|
-
* const contactList =
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* const contactList =
|
|
64
|
+
* await client.users.companies.contacts.list(
|
|
65
|
+
* '507f1f77bcf86cd799439011',
|
|
66
|
+
* );
|
|
66
67
|
* ```
|
|
67
68
|
*/
|
|
68
|
-
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
69
|
+
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<UsersContactsAPI.ContactList>;
|
|
69
70
|
/**
|
|
70
71
|
* Attaches a contact (customer) to a company.
|
|
71
72
|
*
|
|
@@ -126,10 +127,11 @@ export declare class Contacts extends APIResource {
|
|
|
126
127
|
*
|
|
127
128
|
* @example
|
|
128
129
|
* ```ts
|
|
129
|
-
* const response =
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
130
|
+
* const response =
|
|
131
|
+
* await client.users.companies.contacts.attach(
|
|
132
|
+
* '507f1f77bcf86cd799439011',
|
|
133
|
+
* { contactId: '507f1f77bcf86cd799439012' },
|
|
134
|
+
* );
|
|
133
135
|
* ```
|
|
134
136
|
*/
|
|
135
137
|
attach(id: string, params: ContactAttachParams, options?: RequestOptions): APIPromise<ContactAttachResponse>;
|
|
@@ -174,10 +176,11 @@ export declare class Contacts extends APIResource {
|
|
|
174
176
|
*
|
|
175
177
|
* @example
|
|
176
178
|
* ```ts
|
|
177
|
-
* const contact =
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
179
|
+
* const contact =
|
|
180
|
+
* await client.users.companies.contacts.remove(
|
|
181
|
+
* '507f1f77bcf86cd799439012',
|
|
182
|
+
* { id: '507f1f77bcf86cd799439011' },
|
|
183
|
+
* );
|
|
181
184
|
* ```
|
|
182
185
|
*/
|
|
183
186
|
remove(contactID: string, params: ContactRemoveParams, options?: RequestOptions): APIPromise<ContactRemoveResponse>;
|
|
@@ -185,11 +188,11 @@ export declare class Contacts extends APIResource {
|
|
|
185
188
|
/**
|
|
186
189
|
* User who submitted the response
|
|
187
190
|
*/
|
|
188
|
-
export type ContactAttachResponse =
|
|
191
|
+
export type ContactAttachResponse = UsersContactsAPI.Contact | (null & {});
|
|
189
192
|
/**
|
|
190
193
|
* User who submitted the response
|
|
191
194
|
*/
|
|
192
|
-
export type ContactRemoveResponse =
|
|
195
|
+
export type ContactRemoveResponse = UsersContactsAPI.Contact | (null & {});
|
|
193
196
|
export interface ContactListParams {
|
|
194
197
|
/**
|
|
195
198
|
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2DG;IACH,IAAI,CACF,E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,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as UsersContactsAPI from "../contacts/contacts.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
/**
|
|
6
6
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
7
7
|
*/
|
|
@@ -60,12 +60,13 @@ export declare class Contacts extends APIResource {
|
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* ```ts
|
|
63
|
-
* const contactList =
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* const contactList =
|
|
64
|
+
* await client.users.companies.contacts.list(
|
|
65
|
+
* '507f1f77bcf86cd799439011',
|
|
66
|
+
* );
|
|
66
67
|
* ```
|
|
67
68
|
*/
|
|
68
|
-
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
69
|
+
list(id: string, params?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<UsersContactsAPI.ContactList>;
|
|
69
70
|
/**
|
|
70
71
|
* Attaches a contact (customer) to a company.
|
|
71
72
|
*
|
|
@@ -126,10 +127,11 @@ export declare class Contacts extends APIResource {
|
|
|
126
127
|
*
|
|
127
128
|
* @example
|
|
128
129
|
* ```ts
|
|
129
|
-
* const response =
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
130
|
+
* const response =
|
|
131
|
+
* await client.users.companies.contacts.attach(
|
|
132
|
+
* '507f1f77bcf86cd799439011',
|
|
133
|
+
* { contactId: '507f1f77bcf86cd799439012' },
|
|
134
|
+
* );
|
|
133
135
|
* ```
|
|
134
136
|
*/
|
|
135
137
|
attach(id: string, params: ContactAttachParams, options?: RequestOptions): APIPromise<ContactAttachResponse>;
|
|
@@ -174,10 +176,11 @@ export declare class Contacts extends APIResource {
|
|
|
174
176
|
*
|
|
175
177
|
* @example
|
|
176
178
|
* ```ts
|
|
177
|
-
* const contact =
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
179
|
+
* const contact =
|
|
180
|
+
* await client.users.companies.contacts.remove(
|
|
181
|
+
* '507f1f77bcf86cd799439012',
|
|
182
|
+
* { id: '507f1f77bcf86cd799439011' },
|
|
183
|
+
* );
|
|
181
184
|
* ```
|
|
182
185
|
*/
|
|
183
186
|
remove(contactID: string, params: ContactRemoveParams, options?: RequestOptions): APIPromise<ContactRemoveResponse>;
|
|
@@ -185,11 +188,11 @@ export declare class Contacts extends APIResource {
|
|
|
185
188
|
/**
|
|
186
189
|
* User who submitted the response
|
|
187
190
|
*/
|
|
188
|
-
export type ContactAttachResponse =
|
|
191
|
+
export type ContactAttachResponse = UsersContactsAPI.Contact | (null & {});
|
|
189
192
|
/**
|
|
190
193
|
* User who submitted the response
|
|
191
194
|
*/
|
|
192
|
-
export type ContactRemoveResponse =
|
|
195
|
+
export type ContactRemoveResponse = UsersContactsAPI.Contact | (null & {});
|
|
193
196
|
export interface ContactListParams {
|
|
194
197
|
/**
|
|
195
198
|
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;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M,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Contacts = void 0;
|
|
5
|
-
const resource_1 = require("
|
|
6
|
-
const headers_1 = require("
|
|
7
|
-
const path_1 = require("
|
|
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
8
|
/**
|
|
9
9
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
10
10
|
*/
|
|
@@ -63,9 +63,10 @@ class Contacts extends resource_1.APIResource {
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
66
|
-
* const contactList =
|
|
67
|
-
*
|
|
68
|
-
*
|
|
66
|
+
* const contactList =
|
|
67
|
+
* await client.users.companies.contacts.list(
|
|
68
|
+
* '507f1f77bcf86cd799439011',
|
|
69
|
+
* );
|
|
69
70
|
* ```
|
|
70
71
|
*/
|
|
71
72
|
list(id, params = {}, options) {
|
|
@@ -139,10 +140,11 @@ class Contacts extends resource_1.APIResource {
|
|
|
139
140
|
*
|
|
140
141
|
* @example
|
|
141
142
|
* ```ts
|
|
142
|
-
* const response =
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
143
|
+
* const response =
|
|
144
|
+
* await client.users.companies.contacts.attach(
|
|
145
|
+
* '507f1f77bcf86cd799439011',
|
|
146
|
+
* { contactId: '507f1f77bcf86cd799439012' },
|
|
147
|
+
* );
|
|
146
148
|
* ```
|
|
147
149
|
*/
|
|
148
150
|
attach(id, params, options) {
|
|
@@ -197,10 +199,11 @@ class Contacts extends resource_1.APIResource {
|
|
|
197
199
|
*
|
|
198
200
|
* @example
|
|
199
201
|
* ```ts
|
|
200
|
-
* const contact =
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
202
|
+
* const contact =
|
|
203
|
+
* await client.users.companies.contacts.remove(
|
|
204
|
+
* '507f1f77bcf86cd799439012',
|
|
205
|
+
* { id: '507f1f77bcf86cd799439011' },
|
|
206
|
+
* );
|
|
204
207
|
* ```
|
|
205
208
|
*/
|
|
206
209
|
remove(contactID, params, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2DG;IACH,IAAI,CACF,EAAU,EACV,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,WAAW,EAAE;YAC1D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAA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EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA9ND,4BA8NC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
3
|
-
import { buildHeaders } from "
|
|
4
|
-
import { path } from "
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Companies represent organizations or businesses that your users belong to. Use this endpoint to list and retrieve company information.
|
|
7
7
|
*/
|
|
@@ -60,9 +60,10 @@ export class Contacts extends APIResource {
|
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* ```ts
|
|
63
|
-
* const contactList =
|
|
64
|
-
*
|
|
65
|
-
*
|
|
63
|
+
* const contactList =
|
|
64
|
+
* await client.users.companies.contacts.list(
|
|
65
|
+
* '507f1f77bcf86cd799439011',
|
|
66
|
+
* );
|
|
66
67
|
* ```
|
|
67
68
|
*/
|
|
68
69
|
list(id, params = {}, options) {
|
|
@@ -136,10 +137,11 @@ export class Contacts extends APIResource {
|
|
|
136
137
|
*
|
|
137
138
|
* @example
|
|
138
139
|
* ```ts
|
|
139
|
-
* const response =
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
140
|
+
* const response =
|
|
141
|
+
* await client.users.companies.contacts.attach(
|
|
142
|
+
* '507f1f77bcf86cd799439011',
|
|
143
|
+
* { contactId: '507f1f77bcf86cd799439012' },
|
|
144
|
+
* );
|
|
143
145
|
* ```
|
|
144
146
|
*/
|
|
145
147
|
attach(id, params, options) {
|
|
@@ -194,10 +196,11 @@ export class Contacts extends APIResource {
|
|
|
194
196
|
*
|
|
195
197
|
* @example
|
|
196
198
|
* ```ts
|
|
197
|
-
* const contact =
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
199
|
+
* const contact =
|
|
200
|
+
* await client.users.companies.contacts.remove(
|
|
201
|
+
* '507f1f77bcf86cd799439012',
|
|
202
|
+
* { id: '507f1f77bcf86cd799439011' },
|
|
203
|
+
* );
|
|
201
204
|
* ```
|
|
202
205
|
*/
|
|
203
206
|
remove(contactID, params, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../../src/resources/users/companies/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2DG;IACH,IAAI,CACF,EAAU,EACV,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,WAAW,EAAE;YAC1D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkEG;IACH,MAAM,CACJ,EAAU,EACV,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,qBAAqB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8BAA8B,GACpC;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,GACpC;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/users/companies/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,0CAOoB;AANlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/users/companies/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GASV;OACM,EACL,QAAQ,GAMT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.d.mts","sourceRoot":"","sources":["../../src/resources/users/companies.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../src/resources/users/companies.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
5
|
tslib_1.__exportStar(require("./companies/index.js"), exports);
|
|
6
6
|
//# sourceMappingURL=companies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../../src/resources/users/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../../src/resources/users/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
2
|
import * as ContactsAPI from "../contacts.mjs";
|
|
3
3
|
import * as EmailPreferencesAPI from "./email-preferences.mjs";
|
|
4
4
|
import { EmailPreferenceRetrieveParams, EmailPreferenceUpdateParams, EmailPreferences } from "./email-preferences.mjs";
|
|
5
|
-
import { APIPromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
5
|
+
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
7
7
|
/**
|
|
8
8
|
* Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
|
|
9
9
|
*/
|
|
@@ -62,9 +62,10 @@ export declare class ByUserID extends APIResource {
|
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
* const byUserID =
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* const byUserID =
|
|
66
|
+
* await client.users.contacts.byUserID.retrieve(
|
|
67
|
+
* 'usr_12345',
|
|
68
|
+
* );
|
|
68
69
|
* ```
|
|
69
70
|
*/
|
|
70
71
|
retrieve(userID: string, params?: ByUserIDRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ByUserIDRetrieveResponse>;
|
|
@@ -117,7 +118,7 @@ export declare class ByUserID extends APIResource {
|
|
|
117
118
|
* @example
|
|
118
119
|
* ```ts
|
|
119
120
|
* const deletedContact =
|
|
120
|
-
* await client.contacts.byUserID.delete('usr_12345');
|
|
121
|
+
* await client.users.contacts.byUserID.delete('usr_12345');
|
|
121
122
|
* ```
|
|
122
123
|
*/
|
|
123
124
|
delete(userID: string, params?: ByUserIDDeleteParams | null | undefined, options?: RequestOptions): APIPromise<ContactsAPI.DeletedContact>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-user-id.d.mts","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/by-user-id.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,mBAAmB;OACxB,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EACjB;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAWvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC;CAU1C;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
2
|
import * as ContactsAPI from "../contacts.js";
|
|
3
3
|
import * as EmailPreferencesAPI from "./email-preferences.js";
|
|
4
4
|
import { EmailPreferenceRetrieveParams, EmailPreferenceUpdateParams, EmailPreferences } from "./email-preferences.js";
|
|
5
|
-
import { APIPromise } from "
|
|
6
|
-
import { RequestOptions } from "
|
|
5
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
7
7
|
/**
|
|
8
8
|
* Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
|
|
9
9
|
*/
|
|
@@ -62,9 +62,10 @@ export declare class ByUserID extends APIResource {
|
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
* const byUserID =
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* const byUserID =
|
|
66
|
+
* await client.users.contacts.byUserID.retrieve(
|
|
67
|
+
* 'usr_12345',
|
|
68
|
+
* );
|
|
68
69
|
* ```
|
|
69
70
|
*/
|
|
70
71
|
retrieve(userID: string, params?: ByUserIDRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ByUserIDRetrieveResponse>;
|
|
@@ -117,7 +118,7 @@ export declare class ByUserID extends APIResource {
|
|
|
117
118
|
* @example
|
|
118
119
|
* ```ts
|
|
119
120
|
* const deletedContact =
|
|
120
|
-
* await client.contacts.byUserID.delete('usr_12345');
|
|
121
|
+
* await client.users.contacts.byUserID.delete('usr_12345');
|
|
121
122
|
* ```
|
|
122
123
|
*/
|
|
123
124
|
delete(userID: string, params?: ByUserIDDeleteParams | null | undefined, options?: RequestOptions): APIPromise<ContactsAPI.DeletedContact>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-user-id.d.ts","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/by-user-id.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,mBAAmB;OACxB,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EACjB;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAWvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC;CAU1C;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ByUserID = void 0;
|
|
5
|
-
const tslib_1 = require("
|
|
6
|
-
const resource_1 = require("
|
|
5
|
+
const tslib_1 = require("../../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
7
7
|
const EmailPreferencesAPI = tslib_1.__importStar(require("./email-preferences.js"));
|
|
8
8
|
const email_preferences_1 = require("./email-preferences.js");
|
|
9
|
-
const headers_1 = require("
|
|
10
|
-
const path_1 = require("
|
|
9
|
+
const headers_1 = require("../../../../internal/headers.js");
|
|
10
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
11
11
|
/**
|
|
12
12
|
* Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
|
|
13
13
|
*/
|
|
@@ -69,9 +69,10 @@ class ByUserID extends resource_1.APIResource {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* ```ts
|
|
72
|
-
* const byUserID =
|
|
73
|
-
*
|
|
74
|
-
*
|
|
72
|
+
* const byUserID =
|
|
73
|
+
* await client.users.contacts.byUserID.retrieve(
|
|
74
|
+
* 'usr_12345',
|
|
75
|
+
* );
|
|
75
76
|
* ```
|
|
76
77
|
*/
|
|
77
78
|
retrieve(userID, params = {}, options) {
|
|
@@ -133,7 +134,7 @@ class ByUserID extends resource_1.APIResource {
|
|
|
133
134
|
* @example
|
|
134
135
|
* ```ts
|
|
135
136
|
* const deletedContact =
|
|
136
|
-
* await client.contacts.byUserID.delete('usr_12345');
|
|
137
|
+
* await client.users.contacts.byUserID.delete('usr_12345');
|
|
137
138
|
* ```
|
|
138
139
|
*/
|
|
139
140
|
delete(userID, params = {}, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-user-id.js","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/by-user-id.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AAExD,oFAA2D;AAC3D,8DAI6B;AAE7B,6DAA4D;AAE5D,6DAAuD;AAEvD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IA8IJ,CAAC;IA5IC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,QAAQ,CACN,MAAc,EACd,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,MAAM,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,MAAc,EACd,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,MAAM,EAAE,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAjJD,4BAiJC;AAuBD,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
3
|
import * as EmailPreferencesAPI from "./email-preferences.mjs";
|
|
4
4
|
import { EmailPreferences, } from "./email-preferences.mjs";
|
|
5
|
-
import { buildHeaders } from "
|
|
6
|
-
import { path } from "
|
|
5
|
+
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
6
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
7
7
|
/**
|
|
8
8
|
* Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
|
|
9
9
|
*/
|
|
@@ -65,9 +65,10 @@ export class ByUserID extends APIResource {
|
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* ```ts
|
|
68
|
-
* const byUserID =
|
|
69
|
-
*
|
|
70
|
-
*
|
|
68
|
+
* const byUserID =
|
|
69
|
+
* await client.users.contacts.byUserID.retrieve(
|
|
70
|
+
* 'usr_12345',
|
|
71
|
+
* );
|
|
71
72
|
* ```
|
|
72
73
|
*/
|
|
73
74
|
retrieve(userID, params = {}, options) {
|
|
@@ -129,7 +130,7 @@ export class ByUserID extends APIResource {
|
|
|
129
130
|
* @example
|
|
130
131
|
* ```ts
|
|
131
132
|
* const deletedContact =
|
|
132
|
-
* await client.contacts.byUserID.delete('usr_12345');
|
|
133
|
+
* await client.users.contacts.byUserID.delete('usr_12345');
|
|
133
134
|
* ```
|
|
134
135
|
*/
|
|
135
136
|
delete(userID, params = {}, options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"by-user-id.mjs","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/by-user-id.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,mBAAmB;OACxB,EAGL,gBAAgB,GACjB;OAEM,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IA8IJ,CAAC;IA5IC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,QAAQ,CACN,MAAc,EACd,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,MAAM,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,MAAc,EACd,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,MAAM,EAAE,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAuBD,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
2
|
import * as EmailPreferencesAPI from "../email-preferences.mjs";
|
|
3
|
-
import { APIPromise } from "
|
|
4
|
-
import { RequestOptions } from "
|
|
3
|
+
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
|
|
7
7
|
*/
|
|
@@ -53,7 +53,7 @@ export declare class EmailPreferences extends APIResource {
|
|
|
53
53
|
* @example
|
|
54
54
|
* ```ts
|
|
55
55
|
* const preferencesOutput =
|
|
56
|
-
* await client.contacts.byUserID.emailPreferences.retrieve(
|
|
56
|
+
* await client.users.contacts.byUserID.emailPreferences.retrieve(
|
|
57
57
|
* 'usr_12345',
|
|
58
58
|
* );
|
|
59
59
|
* ```
|
|
@@ -142,7 +142,7 @@ export declare class EmailPreferences extends APIResource {
|
|
|
142
142
|
* @example
|
|
143
143
|
* ```ts
|
|
144
144
|
* const preferencesOutput =
|
|
145
|
-
* await client.contacts.byUserID.emailPreferences.update(
|
|
145
|
+
* await client.users.contacts.byUserID.emailPreferences.update(
|
|
146
146
|
* 'usr_12345',
|
|
147
147
|
* { preferences: {} },
|
|
148
148
|
* );
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-preferences.d.mts","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/email-preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC,iBAAiB,CAAC;IAWpD;;;;;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