@usepylon/sdk 0.1.0-alpha.5 → 0.1.0-beta.2
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/dist/cjs/BaseClient.js +1 -1
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +51 -46
- package/dist/cjs/api/resources/accounts/client/requests/AccountsSearchRequest.d.ts +2 -0
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +25 -1
- package/dist/cjs/api/resources/contacts/client/Client.js +74 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +1 -1
- package/dist/cjs/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.d.ts +10 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.js +3 -0
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortal/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/customerPortal/client/Client.js +193 -0
- package/dist/cjs/api/resources/customerPortal/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortal/client/index.js +17 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.js +3 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerPortal/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerPortal/exports.js +21 -0
- package/dist/cjs/api/resources/customerPortal/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortal/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/issues/client/Client.d.ts +11 -0
- package/dist/cjs/api/resources/issues/client/Client.js +11 -0
- package/dist/cjs/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +11 -0
- package/dist/cjs/api/resources/issues/client/requests/IssuesSearchRequest.d.ts +2 -0
- package/dist/cjs/api/resources/issues/resources/voiceCalls/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/issues/resources/voiceCalls/client/Client.js +1 -1
- package/dist/cjs/api/resources/teams/client/Client.d.ts +26 -0
- package/dist/cjs/api/resources/teams/client/Client.js +72 -0
- package/dist/cjs/api/resources/teams/client/requests/TeamsDeleteRequest.d.ts +10 -0
- package/dist/cjs/api/resources/teams/client/requests/TeamsDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/teams/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/users/client/Client.d.ts +25 -0
- package/dist/cjs/api/resources/users/client/Client.js +71 -0
- package/dist/cjs/api/resources/users/client/requests/UsersInviteRequest.d.ts +15 -0
- package/dist/cjs/api/resources/users/client/requests/UsersInviteRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/ArticleVisibilityConfig.d.ts +5 -0
- package/dist/cjs/api/types/CustomerPortalAccessSettings.d.ts +16 -0
- package/dist/cjs/api/types/CustomerPortalAccessSettings.js +3 -0
- package/dist/cjs/api/types/CustomerPortalBranding.d.ts +14 -0
- package/dist/cjs/api/types/CustomerPortalBranding.js +3 -0
- package/dist/cjs/api/types/CustomerPortalDisplaySettings.d.ts +8 -0
- package/dist/cjs/api/types/CustomerPortalDisplaySettings.js +3 -0
- package/dist/cjs/api/types/CustomerPortalFooterCategory.d.ts +7 -0
- package/dist/cjs/api/types/CustomerPortalFooterCategory.js +3 -0
- package/dist/cjs/api/types/CustomerPortalInvitationResult.d.ts +4 -0
- package/dist/cjs/api/types/CustomerPortalInvitationResult.js +3 -0
- package/dist/cjs/api/types/CustomerPortalLink.d.ts +6 -0
- package/dist/cjs/api/types/CustomerPortalLink.js +3 -0
- package/dist/cjs/api/types/CustomerPortalNavigation.d.ts +7 -0
- package/dist/cjs/api/types/CustomerPortalNavigation.js +3 -0
- package/dist/cjs/api/types/CustomerPortalSettings.d.ts +11 -0
- package/dist/cjs/api/types/CustomerPortalSettings.js +3 -0
- package/dist/cjs/api/types/CustomerPortalTabs.d.ts +8 -0
- package/dist/cjs/api/types/CustomerPortalTabs.js +3 -0
- package/dist/cjs/api/types/CustomerPortalUserPermissions.d.ts +8 -0
- package/dist/cjs/api/types/CustomerPortalUserPermissions.js +3 -0
- package/dist/cjs/api/types/DeleteTeamResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/DeleteTeamResponseBody.js +3 -0
- package/dist/cjs/api/types/DestinationMetadata.d.ts +2 -0
- package/dist/cjs/api/types/ErrorApiResponseBody.d.ts +7 -1
- package/dist/cjs/api/types/ExternalIssue.d.ts +8 -0
- package/dist/cjs/api/types/Filter.d.ts +17 -7
- package/dist/cjs/api/types/Filter.js +6 -1
- package/dist/cjs/api/types/FilterError.d.ts +26 -0
- package/dist/cjs/api/types/FilterError.js +3 -0
- package/dist/cjs/api/types/FilterRelatedObject.d.ts +14 -0
- package/dist/cjs/api/types/FilterRelatedObject.js +3 -0
- package/dist/cjs/api/types/GetCustomerPortalSettingsResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/GetCustomerPortalSettingsResponseBody.js +3 -0
- package/dist/cjs/api/types/IssueThread.d.ts +6 -0
- package/dist/cjs/api/types/SearchAccountsSort.d.ts +23 -0
- package/dist/cjs/api/types/SearchAccountsSort.js +20 -0
- package/dist/cjs/api/types/SearchIssuesSort.d.ts +23 -0
- package/dist/cjs/api/types/SearchIssuesSort.js +20 -0
- package/dist/cjs/api/types/SendCustomerPortalInvitationResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/SendCustomerPortalInvitationResponseBody.js +3 -0
- package/dist/cjs/api/types/Task.d.ts +2 -0
- package/dist/cjs/api/types/TicketFormLayoutField.d.ts +11 -1
- package/dist/cjs/api/types/UpdateCustomerPortalAccessSettings.d.ts +16 -0
- package/dist/cjs/api/types/UpdateCustomerPortalAccessSettings.js +3 -0
- package/dist/cjs/api/types/UpdateCustomerPortalBranding.d.ts +14 -0
- package/dist/cjs/api/types/UpdateCustomerPortalBranding.js +3 -0
- package/dist/cjs/api/types/UpdateCustomerPortalDisplaySettings.d.ts +8 -0
- package/dist/cjs/api/types/UpdateCustomerPortalDisplaySettings.js +3 -0
- package/dist/cjs/api/types/UpdateCustomerPortalNavigation.d.ts +7 -0
- package/dist/cjs/api/types/UpdateCustomerPortalNavigation.js +3 -0
- package/dist/cjs/api/types/UpdateCustomerPortalTabs.d.ts +8 -0
- package/dist/cjs/api/types/UpdateCustomerPortalTabs.js +3 -0
- package/dist/cjs/api/types/UpdateCustomerPortalUserPermissions.d.ts +8 -0
- package/dist/cjs/api/types/UpdateCustomerPortalUserPermissions.js +3 -0
- package/dist/cjs/api/types/VoiceCall.d.ts +2 -0
- package/dist/cjs/api/types/VoiceCallParticipant.d.ts +20 -0
- package/dist/cjs/api/types/VoiceCallParticipant.js +3 -0
- package/dist/cjs/api/types/index.d.ts +24 -0
- package/dist/cjs/api/types/index.js +24 -0
- package/dist/esm/BaseClient.js +1 -1
- package/dist/esm/Client.d.ts +3 -0
- package/dist/esm/Client.js +5 -0
- package/dist/esm/api/resources/accounts/client/requests/AccountsSearchRequest.d.ts +2 -0
- package/dist/esm/api/resources/contacts/client/Client.d.ts +25 -1
- package/dist/esm/api/resources/contacts/client/Client.js +74 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +1 -1
- package/dist/esm/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.d.ts +10 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.js +2 -0
- package/dist/esm/api/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/customerPortal/client/Client.d.ts +53 -0
- package/dist/esm/api/resources/customerPortal/client/Client.js +156 -0
- package/dist/esm/api/resources/customerPortal/client/index.d.ts +1 -0
- package/dist/esm/api/resources/customerPortal/client/index.js +1 -0
- package/dist/esm/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.d.ts +15 -0
- package/dist/esm/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.js +2 -0
- package/dist/esm/api/resources/customerPortal/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/customerPortal/client/requests/index.js +1 -0
- package/dist/esm/api/resources/customerPortal/exports.d.ts +2 -0
- package/dist/esm/api/resources/customerPortal/exports.js +3 -0
- package/dist/esm/api/resources/customerPortal/index.d.ts +1 -0
- package/dist/esm/api/resources/customerPortal/index.js +1 -0
- package/dist/esm/api/resources/index.d.ts +2 -0
- package/dist/esm/api/resources/index.js +2 -0
- package/dist/esm/api/resources/issues/client/Client.d.ts +11 -0
- package/dist/esm/api/resources/issues/client/Client.js +11 -0
- package/dist/esm/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +11 -0
- package/dist/esm/api/resources/issues/client/requests/IssuesSearchRequest.d.ts +2 -0
- package/dist/esm/api/resources/issues/resources/voiceCalls/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/issues/resources/voiceCalls/client/Client.js +1 -1
- package/dist/esm/api/resources/teams/client/Client.d.ts +26 -0
- package/dist/esm/api/resources/teams/client/Client.js +72 -0
- package/dist/esm/api/resources/teams/client/requests/TeamsDeleteRequest.d.ts +10 -0
- package/dist/esm/api/resources/teams/client/requests/TeamsDeleteRequest.js +2 -0
- package/dist/esm/api/resources/teams/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/users/client/Client.d.ts +25 -0
- package/dist/esm/api/resources/users/client/Client.js +71 -0
- package/dist/esm/api/resources/users/client/requests/UsersInviteRequest.d.ts +15 -0
- package/dist/esm/api/resources/users/client/requests/UsersInviteRequest.js +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/esm/api/types/ArticleVisibilityConfig.d.ts +5 -0
- package/dist/esm/api/types/CustomerPortalAccessSettings.d.ts +16 -0
- package/dist/esm/api/types/CustomerPortalAccessSettings.js +2 -0
- package/dist/esm/api/types/CustomerPortalBranding.d.ts +14 -0
- package/dist/esm/api/types/CustomerPortalBranding.js +2 -0
- package/dist/esm/api/types/CustomerPortalDisplaySettings.d.ts +8 -0
- package/dist/esm/api/types/CustomerPortalDisplaySettings.js +2 -0
- package/dist/esm/api/types/CustomerPortalFooterCategory.d.ts +7 -0
- package/dist/esm/api/types/CustomerPortalFooterCategory.js +2 -0
- package/dist/esm/api/types/CustomerPortalInvitationResult.d.ts +4 -0
- package/dist/esm/api/types/CustomerPortalInvitationResult.js +2 -0
- package/dist/esm/api/types/CustomerPortalLink.d.ts +6 -0
- package/dist/esm/api/types/CustomerPortalLink.js +2 -0
- package/dist/esm/api/types/CustomerPortalNavigation.d.ts +7 -0
- package/dist/esm/api/types/CustomerPortalNavigation.js +2 -0
- package/dist/esm/api/types/CustomerPortalSettings.d.ts +11 -0
- package/dist/esm/api/types/CustomerPortalSettings.js +2 -0
- package/dist/esm/api/types/CustomerPortalTabs.d.ts +8 -0
- package/dist/esm/api/types/CustomerPortalTabs.js +2 -0
- package/dist/esm/api/types/CustomerPortalUserPermissions.d.ts +8 -0
- package/dist/esm/api/types/CustomerPortalUserPermissions.js +2 -0
- package/dist/esm/api/types/DeleteTeamResponseBody.d.ts +4 -0
- package/dist/esm/api/types/DeleteTeamResponseBody.js +2 -0
- package/dist/esm/api/types/DestinationMetadata.d.ts +2 -0
- package/dist/esm/api/types/ErrorApiResponseBody.d.ts +7 -1
- package/dist/esm/api/types/ExternalIssue.d.ts +8 -0
- package/dist/esm/api/types/Filter.d.ts +17 -7
- package/dist/esm/api/types/Filter.js +6 -1
- package/dist/esm/api/types/FilterError.d.ts +26 -0
- package/dist/esm/api/types/FilterError.js +2 -0
- package/dist/esm/api/types/FilterRelatedObject.d.ts +14 -0
- package/dist/esm/api/types/FilterRelatedObject.js +2 -0
- package/dist/esm/api/types/GetCustomerPortalSettingsResponseBody.d.ts +6 -0
- package/dist/esm/api/types/GetCustomerPortalSettingsResponseBody.js +2 -0
- package/dist/esm/api/types/IssueThread.d.ts +6 -0
- package/dist/esm/api/types/SearchAccountsSort.d.ts +23 -0
- package/dist/esm/api/types/SearchAccountsSort.js +17 -0
- package/dist/esm/api/types/SearchIssuesSort.d.ts +23 -0
- package/dist/esm/api/types/SearchIssuesSort.js +17 -0
- package/dist/esm/api/types/SendCustomerPortalInvitationResponseBody.d.ts +6 -0
- package/dist/esm/api/types/SendCustomerPortalInvitationResponseBody.js +2 -0
- package/dist/esm/api/types/Task.d.ts +2 -0
- package/dist/esm/api/types/TicketFormLayoutField.d.ts +11 -1
- package/dist/esm/api/types/UpdateCustomerPortalAccessSettings.d.ts +16 -0
- package/dist/esm/api/types/UpdateCustomerPortalAccessSettings.js +2 -0
- package/dist/esm/api/types/UpdateCustomerPortalBranding.d.ts +14 -0
- package/dist/esm/api/types/UpdateCustomerPortalBranding.js +2 -0
- package/dist/esm/api/types/UpdateCustomerPortalDisplaySettings.d.ts +8 -0
- package/dist/esm/api/types/UpdateCustomerPortalDisplaySettings.js +2 -0
- package/dist/esm/api/types/UpdateCustomerPortalNavigation.d.ts +7 -0
- package/dist/esm/api/types/UpdateCustomerPortalNavigation.js +2 -0
- package/dist/esm/api/types/UpdateCustomerPortalTabs.d.ts +8 -0
- package/dist/esm/api/types/UpdateCustomerPortalTabs.js +2 -0
- package/dist/esm/api/types/UpdateCustomerPortalUserPermissions.d.ts +8 -0
- package/dist/esm/api/types/UpdateCustomerPortalUserPermissions.js +2 -0
- package/dist/esm/api/types/VoiceCall.d.ts +2 -0
- package/dist/esm/api/types/VoiceCallParticipant.d.ts +20 -0
- package/dist/esm/api/types/VoiceCallParticipant.js +2 -0
- package/dist/esm/api/types/index.d.ts +24 -0
- package/dist/esm/api/types/index.js +24 -0
- package/package.json +1 -1
|
@@ -78,6 +78,16 @@ __exportStar(require("./CrmDetails.js"), exports);
|
|
|
78
78
|
__exportStar(require("./CrmSettings.js"), exports);
|
|
79
79
|
__exportStar(require("./CsatResponse.js"), exports);
|
|
80
80
|
__exportStar(require("./CustomActivity.js"), exports);
|
|
81
|
+
__exportStar(require("./CustomerPortalAccessSettings.js"), exports);
|
|
82
|
+
__exportStar(require("./CustomerPortalBranding.js"), exports);
|
|
83
|
+
__exportStar(require("./CustomerPortalDisplaySettings.js"), exports);
|
|
84
|
+
__exportStar(require("./CustomerPortalFooterCategory.js"), exports);
|
|
85
|
+
__exportStar(require("./CustomerPortalInvitationResult.js"), exports);
|
|
86
|
+
__exportStar(require("./CustomerPortalLink.js"), exports);
|
|
87
|
+
__exportStar(require("./CustomerPortalNavigation.js"), exports);
|
|
88
|
+
__exportStar(require("./CustomerPortalSettings.js"), exports);
|
|
89
|
+
__exportStar(require("./CustomerPortalTabs.js"), exports);
|
|
90
|
+
__exportStar(require("./CustomerPortalUserPermissions.js"), exports);
|
|
81
91
|
__exportStar(require("./CustomFieldDefinition.js"), exports);
|
|
82
92
|
__exportStar(require("./CustomFieldDefinitionSelectOption.js"), exports);
|
|
83
93
|
__exportStar(require("./CustomFieldValue.js"), exports);
|
|
@@ -103,6 +113,7 @@ __exportStar(require("./DeleteProjectResponseBody.js"), exports);
|
|
|
103
113
|
__exportStar(require("./DeleteTagResponseBody.js"), exports);
|
|
104
114
|
__exportStar(require("./DeleteTaskCommentResponseBody.js"), exports);
|
|
105
115
|
__exportStar(require("./DeleteTaskResponseBody.js"), exports);
|
|
116
|
+
__exportStar(require("./DeleteTeamResponseBody.js"), exports);
|
|
106
117
|
__exportStar(require("./DeleteTrainingDataDocumentsResponseBody.js"), exports);
|
|
107
118
|
__exportStar(require("./DestinationMetadata.js"), exports);
|
|
108
119
|
__exportStar(require("./EmailActivity.js"), exports);
|
|
@@ -118,6 +129,8 @@ __exportStar(require("./FeatureRequest.js"), exports);
|
|
|
118
129
|
__exportStar(require("./FeatureRequestEvidence.js"), exports);
|
|
119
130
|
__exportStar(require("./FeatureRequestSearchResult.js"), exports);
|
|
120
131
|
__exportStar(require("./Filter.js"), exports);
|
|
132
|
+
__exportStar(require("./FilterError.js"), exports);
|
|
133
|
+
__exportStar(require("./FilterRelatedObject.js"), exports);
|
|
121
134
|
__exportStar(require("./Follower.js"), exports);
|
|
122
135
|
__exportStar(require("./GetAccountNotebookNotesResponseBody.js"), exports);
|
|
123
136
|
__exportStar(require("./GetAccountRelationshipsResponseBody.js"), exports);
|
|
@@ -134,6 +147,7 @@ __exportStar(require("./GetCollectionResponseBody.js"), exports);
|
|
|
134
147
|
__exportStar(require("./GetCollectionsResponseBody.js"), exports);
|
|
135
148
|
__exportStar(require("./GetContactResponseBody.js"), exports);
|
|
136
149
|
__exportStar(require("./GetContactsResponseBody.js"), exports);
|
|
150
|
+
__exportStar(require("./GetCustomerPortalSettingsResponseBody.js"), exports);
|
|
137
151
|
__exportStar(require("./GetCustomFieldResponseBody.js"), exports);
|
|
138
152
|
__exportStar(require("./GetCustomFieldsResponseBody.js"), exports);
|
|
139
153
|
__exportStar(require("./GetCustomObjectResponseBody.js"), exports);
|
|
@@ -238,11 +252,13 @@ __exportStar(require("./RequestArticleReviewData.js"), exports);
|
|
|
238
252
|
__exportStar(require("./RequestArticleReviewResponseBody.js"), exports);
|
|
239
253
|
__exportStar(require("./RouteRedirect.js"), exports);
|
|
240
254
|
__exportStar(require("./SearchAccountsResponseBody.js"), exports);
|
|
255
|
+
__exportStar(require("./SearchAccountsSort.js"), exports);
|
|
241
256
|
__exportStar(require("./SearchCallRecordingsResponseBody.js"), exports);
|
|
242
257
|
__exportStar(require("./SearchContactsResponseBody.js"), exports);
|
|
243
258
|
__exportStar(require("./SearchCustomObjectsResponseBody.js"), exports);
|
|
244
259
|
__exportStar(require("./SearchFeatureRequestsResponseBody.js"), exports);
|
|
245
260
|
__exportStar(require("./SearchIssuesResponseBody.js"), exports);
|
|
261
|
+
__exportStar(require("./SearchIssuesSort.js"), exports);
|
|
246
262
|
__exportStar(require("./SearchMilestonesResponseBody.js"), exports);
|
|
247
263
|
__exportStar(require("./SearchProjectsResponseBody.js"), exports);
|
|
248
264
|
__exportStar(require("./SearchSurveysResponseBody.js"), exports);
|
|
@@ -250,6 +266,7 @@ __exportStar(require("./SearchTagsResponseBody.js"), exports);
|
|
|
250
266
|
__exportStar(require("./SearchTasksResponseBody.js"), exports);
|
|
251
267
|
__exportStar(require("./SearchUsersResponseBody.js"), exports);
|
|
252
268
|
__exportStar(require("./SelectMetadata.js"), exports);
|
|
269
|
+
__exportStar(require("./SendCustomerPortalInvitationResponseBody.js"), exports);
|
|
253
270
|
__exportStar(require("./SetFeatureRequestPortalVisibilityResponseBody.js"), exports);
|
|
254
271
|
__exportStar(require("./SkippedIssue.js"), exports);
|
|
255
272
|
__exportStar(require("./SlackInfo.js"), exports);
|
|
@@ -290,6 +307,12 @@ __exportStar(require("./UpdateCallRecordingResponseBody.js"), exports);
|
|
|
290
307
|
__exportStar(require("./UpdateCollectionResponseBody.js"), exports);
|
|
291
308
|
__exportStar(require("./UpdateContactEmail.js"), exports);
|
|
292
309
|
__exportStar(require("./UpdateContactResponseBody.js"), exports);
|
|
310
|
+
__exportStar(require("./UpdateCustomerPortalAccessSettings.js"), exports);
|
|
311
|
+
__exportStar(require("./UpdateCustomerPortalBranding.js"), exports);
|
|
312
|
+
__exportStar(require("./UpdateCustomerPortalDisplaySettings.js"), exports);
|
|
313
|
+
__exportStar(require("./UpdateCustomerPortalNavigation.js"), exports);
|
|
314
|
+
__exportStar(require("./UpdateCustomerPortalTabs.js"), exports);
|
|
315
|
+
__exportStar(require("./UpdateCustomerPortalUserPermissions.js"), exports);
|
|
293
316
|
__exportStar(require("./UpdateCustomFieldResponseBody.js"), exports);
|
|
294
317
|
__exportStar(require("./UpdateCustomFieldSelectOptionResponseBody.js"), exports);
|
|
295
318
|
__exportStar(require("./UpdateCustomObjectResponseBody.js"), exports);
|
|
@@ -317,5 +340,6 @@ __exportStar(require("./UserStatus.js"), exports);
|
|
|
317
340
|
__exportStar(require("./Visibility.js"), exports);
|
|
318
341
|
__exportStar(require("./VisibilityInput.js"), exports);
|
|
319
342
|
__exportStar(require("./VoiceCall.js"), exports);
|
|
343
|
+
__exportStar(require("./VoiceCallParticipant.js"), exports);
|
|
320
344
|
__exportStar(require("./VoiceCallRecording.js"), exports);
|
|
321
345
|
__exportStar(require("./VoiceCallTranscriptSegment.js"), exports);
|
package/dist/esm/BaseClient.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as core from "./core/index.js";
|
|
|
5
5
|
export function normalizeClientOptions(options) {
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
|
-
"User-Agent": "@usepylon/sdk/0.1.0-
|
|
8
|
+
"User-Agent": "@usepylon/sdk/0.1.0-beta.2",
|
|
9
9
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
10
10
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
11
11
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { AttachmentsClient } from "./api/resources/attachments/client/Client.js"
|
|
|
5
5
|
import { AuditLogsClient } from "./api/resources/auditLogs/client/Client.js";
|
|
6
6
|
import { CallRecordingsClient } from "./api/resources/callRecordings/client/Client.js";
|
|
7
7
|
import { ContactsClient } from "./api/resources/contacts/client/Client.js";
|
|
8
|
+
import { CustomerPortalClient } from "./api/resources/customerPortal/client/Client.js";
|
|
8
9
|
import { CustomFieldsClient } from "./api/resources/customFields/client/Client.js";
|
|
9
10
|
import { CustomObjectsClient } from "./api/resources/customObjects/client/Client.js";
|
|
10
11
|
import { EmailSuppressionsClient } from "./api/resources/emailSuppressions/client/Client.js";
|
|
@@ -47,6 +48,7 @@ export declare class PylonClient {
|
|
|
47
48
|
protected _contacts: ContactsClient | undefined;
|
|
48
49
|
protected _customFields: CustomFieldsClient | undefined;
|
|
49
50
|
protected _customObjects: CustomObjectsClient | undefined;
|
|
51
|
+
protected _customerPortal: CustomerPortalClient | undefined;
|
|
50
52
|
protected _emailSuppressions: EmailSuppressionsClient | undefined;
|
|
51
53
|
protected _featureRequests: FeatureRequestsClient | undefined;
|
|
52
54
|
protected _issueGroups: IssueGroupsClient | undefined;
|
|
@@ -78,6 +80,7 @@ export declare class PylonClient {
|
|
|
78
80
|
get contacts(): ContactsClient;
|
|
79
81
|
get customFields(): CustomFieldsClient;
|
|
80
82
|
get customObjects(): CustomObjectsClient;
|
|
83
|
+
get customerPortal(): CustomerPortalClient;
|
|
81
84
|
get emailSuppressions(): EmailSuppressionsClient;
|
|
82
85
|
get featureRequests(): FeatureRequestsClient;
|
|
83
86
|
get issueGroups(): IssueGroupsClient;
|
package/dist/esm/Client.js
CHANGED
|
@@ -15,6 +15,7 @@ import { AttachmentsClient } from "./api/resources/attachments/client/Client.js"
|
|
|
15
15
|
import { AuditLogsClient } from "./api/resources/auditLogs/client/Client.js";
|
|
16
16
|
import { CallRecordingsClient } from "./api/resources/callRecordings/client/Client.js";
|
|
17
17
|
import { ContactsClient } from "./api/resources/contacts/client/Client.js";
|
|
18
|
+
import { CustomerPortalClient } from "./api/resources/customerPortal/client/Client.js";
|
|
18
19
|
import { CustomFieldsClient } from "./api/resources/customFields/client/Client.js";
|
|
19
20
|
import { CustomObjectsClient } from "./api/resources/customObjects/client/Client.js";
|
|
20
21
|
import { EmailSuppressionsClient } from "./api/resources/emailSuppressions/client/Client.js";
|
|
@@ -80,6 +81,10 @@ export class PylonClient {
|
|
|
80
81
|
var _a;
|
|
81
82
|
return ((_a = this._customObjects) !== null && _a !== void 0 ? _a : (this._customObjects = new CustomObjectsClient(this._options)));
|
|
82
83
|
}
|
|
84
|
+
get customerPortal() {
|
|
85
|
+
var _a;
|
|
86
|
+
return ((_a = this._customerPortal) !== null && _a !== void 0 ? _a : (this._customerPortal = new CustomerPortalClient(this._options)));
|
|
87
|
+
}
|
|
83
88
|
get emailSuppressions() {
|
|
84
89
|
var _a;
|
|
85
90
|
return ((_a = this._emailSuppressions) !== null && _a !== void 0 ? _a : (this._emailSuppressions = new EmailSuppressionsClient(this._options)));
|
|
@@ -11,4 +11,6 @@ export interface AccountsSearchRequest {
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
/** Fuzzy text search. Results are intersected with any provided filter. */
|
|
13
13
|
search_text?: string;
|
|
14
|
+
/** The order of results, as a list of sort keys. Only one sort key is supported right now. Omit for the default order. Send the same sort with every page of a cursor. */
|
|
15
|
+
sort?: Pylon.SearchAccountsSort[];
|
|
14
16
|
}
|
|
@@ -56,7 +56,7 @@ export declare class ContactsClient {
|
|
|
56
56
|
create(request: Pylon.ContactsCreateRequest, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Pylon.CreateContactResponseBody>;
|
|
57
57
|
private __create;
|
|
58
58
|
/**
|
|
59
|
-
* Merges a contact into a surviving contact.
|
|
59
|
+
* Merges a contact into a surviving contact. Both contacts must belong to the same account, unless the merged contact has no account, in which case it is first moved to the surviving contact's account. Issues, emails, phone numbers, survey responses, and other associated data are then transferred to the surviving contact, and the merged contact is permanently deleted. This cannot be undone.
|
|
60
60
|
*
|
|
61
61
|
* **Rate limit:** 30 requests per minute
|
|
62
62
|
*
|
|
@@ -180,4 +180,28 @@ export declare class ContactsClient {
|
|
|
180
180
|
*/
|
|
181
181
|
update(request: Pylon.ContactsUpdateRequest, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Pylon.UpdateContactResponseBody>;
|
|
182
182
|
private __update;
|
|
183
|
+
/**
|
|
184
|
+
* Sends or resends a portal invitation to the contact's primary email. The portal must be enabled and the contact must already have portal access. Does not change the contact's role. Requires customer portal settings write permission and write access to the contact's primary account, if any. Each successful call requests another invitation; success does not guarantee email delivery.
|
|
185
|
+
*
|
|
186
|
+
* **Rate limit:** 30 requests per minute
|
|
187
|
+
*
|
|
188
|
+
* @param {Pylon.ContactsPortalInvitationRequest} request
|
|
189
|
+
* @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link Pylon.BadRequestError}
|
|
192
|
+
* @throws {@link Pylon.UnauthorizedError}
|
|
193
|
+
* @throws {@link Pylon.ForbiddenError}
|
|
194
|
+
* @throws {@link Pylon.NotFoundError}
|
|
195
|
+
* @throws {@link Pylon.TooManyRequestsError}
|
|
196
|
+
* @throws {@link Pylon.InternalServerError}
|
|
197
|
+
* @throws {@link errors.PylonError}
|
|
198
|
+
* @throws {@link errors.PylonTimeoutError}
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.contacts.portalInvitation({
|
|
202
|
+
* contact_id: "id"
|
|
203
|
+
* })
|
|
204
|
+
*/
|
|
205
|
+
portalInvitation(request: Pylon.ContactsPortalInvitationRequest, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Pylon.SendCustomerPortalInvitationResponseBody>;
|
|
206
|
+
private __portalInvitation;
|
|
183
207
|
}
|
|
@@ -197,7 +197,7 @@ export class ContactsClient {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Merges a contact into a surviving contact.
|
|
200
|
+
* Merges a contact into a surviving contact. Both contacts must belong to the same account, unless the merged contact has no account, in which case it is first moved to the surviving contact's account. Issues, emails, phone numbers, survey responses, and other associated data are then transferred to the surviving contact, and the merged contact is permanently deleted. This cannot be undone.
|
|
201
201
|
*
|
|
202
202
|
* **Rate limit:** 30 requests per minute
|
|
203
203
|
*
|
|
@@ -572,4 +572,77 @@ export class ContactsClient {
|
|
|
572
572
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/contacts/{id}");
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* Sends or resends a portal invitation to the contact's primary email. The portal must be enabled and the contact must already have portal access. Does not change the contact's role. Requires customer portal settings write permission and write access to the contact's primary account, if any. Each successful call requests another invitation; success does not guarantee email delivery.
|
|
577
|
+
*
|
|
578
|
+
* **Rate limit:** 30 requests per minute
|
|
579
|
+
*
|
|
580
|
+
* @param {Pylon.ContactsPortalInvitationRequest} request
|
|
581
|
+
* @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
582
|
+
*
|
|
583
|
+
* @throws {@link Pylon.BadRequestError}
|
|
584
|
+
* @throws {@link Pylon.UnauthorizedError}
|
|
585
|
+
* @throws {@link Pylon.ForbiddenError}
|
|
586
|
+
* @throws {@link Pylon.NotFoundError}
|
|
587
|
+
* @throws {@link Pylon.TooManyRequestsError}
|
|
588
|
+
* @throws {@link Pylon.InternalServerError}
|
|
589
|
+
* @throws {@link errors.PylonError}
|
|
590
|
+
* @throws {@link errors.PylonTimeoutError}
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* await client.contacts.portalInvitation({
|
|
594
|
+
* contact_id: "id"
|
|
595
|
+
* })
|
|
596
|
+
*/
|
|
597
|
+
portalInvitation(request, requestOptions) {
|
|
598
|
+
return core.HttpResponsePromise.fromPromise(this.__portalInvitation(request, requestOptions));
|
|
599
|
+
}
|
|
600
|
+
__portalInvitation(request, requestOptions) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
603
|
+
const { contact_id: contactId } = request;
|
|
604
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
605
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
606
|
+
const _response = yield core.fetcher({
|
|
607
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PylonEnvironment.Us, `contacts/${core.url.encodePathParam(contactId)}/portal-invitation`),
|
|
608
|
+
method: "POST",
|
|
609
|
+
headers: _headers,
|
|
610
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
611
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
612
|
+
maxRetries: 0,
|
|
613
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
614
|
+
fetchFn: (_g = this._options) === null || _g === void 0 ? void 0 : _g.fetch,
|
|
615
|
+
logging: this._options.logging,
|
|
616
|
+
});
|
|
617
|
+
if (_response.ok) {
|
|
618
|
+
return {
|
|
619
|
+
data: _response.body,
|
|
620
|
+
rawResponse: _response.rawResponse,
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
if (_response.error.reason === "status-code") {
|
|
624
|
+
switch (_response.error.statusCode) {
|
|
625
|
+
case 400:
|
|
626
|
+
throw new Pylon.BadRequestError(_response.error.body, _response.rawResponse);
|
|
627
|
+
case 401:
|
|
628
|
+
throw new Pylon.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
629
|
+
case 403:
|
|
630
|
+
throw new Pylon.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
631
|
+
case 404:
|
|
632
|
+
throw new Pylon.NotFoundError(_response.error.body, _response.rawResponse);
|
|
633
|
+
case 429:
|
|
634
|
+
throw new Pylon.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
635
|
+
case 500:
|
|
636
|
+
throw new Pylon.InternalServerError(_response.error.body, _response.rawResponse);
|
|
637
|
+
default:
|
|
638
|
+
throw new errors.PylonError({
|
|
639
|
+
statusCode: _response.error.statusCode,
|
|
640
|
+
body: _response.error.body,
|
|
641
|
+
rawResponse: _response.rawResponse,
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/contacts/{contact_id}/portal-invitation");
|
|
646
|
+
});
|
|
647
|
+
}
|
|
575
648
|
}
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
export interface ContactsMergeRequest {
|
|
9
9
|
/** The ID of the contact to merge into the surviving contact. This contact is permanently deleted after its data is transferred. */
|
|
10
10
|
merge_contact_id: string;
|
|
11
|
-
/** The ID of the contact that will survive the merge and receive the merged data.
|
|
11
|
+
/** The ID of the contact that will survive the merge and receive the merged data. If the merged contact belongs to an account, this contact must belong to the same account. */
|
|
12
12
|
merge_into_contact_id: string;
|
|
13
13
|
}
|
|
@@ -3,5 +3,6 @@ export type { ContactsDeleteRequest } from "./ContactsDeleteRequest.js";
|
|
|
3
3
|
export type { ContactsGetRequest } from "./ContactsGetRequest.js";
|
|
4
4
|
export type { ContactsListRequest } from "./ContactsListRequest.js";
|
|
5
5
|
export type { ContactsMergeRequest } from "./ContactsMergeRequest.js";
|
|
6
|
+
export type { ContactsPortalInvitationRequest } from "./ContactsPortalInvitationRequest.js";
|
|
6
7
|
export type { ContactsSearchRequest } from "./ContactsSearchRequest.js";
|
|
7
8
|
export type { ContactsUpdateRequest } from "./ContactsUpdateRequest.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Pylon from "../../../index.js";
|
|
5
|
+
export declare namespace CustomerPortalClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CustomerPortalClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerPortalClient.Options>;
|
|
12
|
+
constructor(options: CustomerPortalClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Returns the organization's customer portal settings.
|
|
15
|
+
*
|
|
16
|
+
* **Rate limit:** 120 requests per minute
|
|
17
|
+
*
|
|
18
|
+
* @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link Pylon.UnauthorizedError}
|
|
21
|
+
* @throws {@link Pylon.ForbiddenError}
|
|
22
|
+
* @throws {@link Pylon.TooManyRequestsError}
|
|
23
|
+
* @throws {@link Pylon.InternalServerError}
|
|
24
|
+
* @throws {@link errors.PylonError}
|
|
25
|
+
* @throws {@link errors.PylonTimeoutError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.customerPortal.getSettings()
|
|
29
|
+
*/
|
|
30
|
+
getSettings(requestOptions?: CustomerPortalClient.RequestOptions): core.HttpResponsePromise<Pylon.GetCustomerPortalSettingsResponseBody>;
|
|
31
|
+
private __getSettings;
|
|
32
|
+
/**
|
|
33
|
+
* Updates the organization's customer portal settings. Only provided fields are modified.
|
|
34
|
+
*
|
|
35
|
+
* **Rate limit:** 30 requests per minute
|
|
36
|
+
*
|
|
37
|
+
* @param {Pylon.CustomerPortalUpdateSettingsRequest} request
|
|
38
|
+
* @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Pylon.BadRequestError}
|
|
41
|
+
* @throws {@link Pylon.UnauthorizedError}
|
|
42
|
+
* @throws {@link Pylon.ForbiddenError}
|
|
43
|
+
* @throws {@link Pylon.TooManyRequestsError}
|
|
44
|
+
* @throws {@link Pylon.InternalServerError}
|
|
45
|
+
* @throws {@link errors.PylonError}
|
|
46
|
+
* @throws {@link errors.PylonTimeoutError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.customerPortal.updateSettings()
|
|
50
|
+
*/
|
|
51
|
+
updateSettings(request?: Pylon.CustomerPortalUpdateSettingsRequest, requestOptions?: CustomerPortalClient.RequestOptions): core.HttpResponsePromise<Pylon.GetCustomerPortalSettingsResponseBody>;
|
|
52
|
+
private __updateSettings;
|
|
53
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.js";
|
|
13
|
+
import * as core from "../../../../core/index.js";
|
|
14
|
+
import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.js";
|
|
15
|
+
import * as environments from "../../../../environments.js";
|
|
16
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
|
|
17
|
+
import * as errors from "../../../../errors/index.js";
|
|
18
|
+
import * as Pylon from "../../../index.js";
|
|
19
|
+
export class CustomerPortalClient {
|
|
20
|
+
constructor(options) {
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns the organization's customer portal settings.
|
|
25
|
+
*
|
|
26
|
+
* **Rate limit:** 120 requests per minute
|
|
27
|
+
*
|
|
28
|
+
* @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link Pylon.UnauthorizedError}
|
|
31
|
+
* @throws {@link Pylon.ForbiddenError}
|
|
32
|
+
* @throws {@link Pylon.TooManyRequestsError}
|
|
33
|
+
* @throws {@link Pylon.InternalServerError}
|
|
34
|
+
* @throws {@link errors.PylonError}
|
|
35
|
+
* @throws {@link errors.PylonTimeoutError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.customerPortal.getSettings()
|
|
39
|
+
*/
|
|
40
|
+
getSettings(requestOptions) {
|
|
41
|
+
return core.HttpResponsePromise.fromPromise(this.__getSettings(requestOptions));
|
|
42
|
+
}
|
|
43
|
+
__getSettings(requestOptions) {
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
46
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
47
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
|
+
const _response = yield core.fetcher({
|
|
49
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PylonEnvironment.Us, "customer-portal/settings"),
|
|
50
|
+
method: "GET",
|
|
51
|
+
headers: _headers,
|
|
52
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
53
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
54
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
55
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
56
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
57
|
+
logging: this._options.logging,
|
|
58
|
+
});
|
|
59
|
+
if (_response.ok) {
|
|
60
|
+
return {
|
|
61
|
+
data: _response.body,
|
|
62
|
+
rawResponse: _response.rawResponse,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
if (_response.error.reason === "status-code") {
|
|
66
|
+
switch (_response.error.statusCode) {
|
|
67
|
+
case 401:
|
|
68
|
+
throw new Pylon.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
69
|
+
case 403:
|
|
70
|
+
throw new Pylon.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
71
|
+
case 429:
|
|
72
|
+
throw new Pylon.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
73
|
+
case 500:
|
|
74
|
+
throw new Pylon.InternalServerError(_response.error.body, _response.rawResponse);
|
|
75
|
+
default:
|
|
76
|
+
throw new errors.PylonError({
|
|
77
|
+
statusCode: _response.error.statusCode,
|
|
78
|
+
body: _response.error.body,
|
|
79
|
+
rawResponse: _response.rawResponse,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer-portal/settings");
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Updates the organization's customer portal settings. Only provided fields are modified.
|
|
88
|
+
*
|
|
89
|
+
* **Rate limit:** 30 requests per minute
|
|
90
|
+
*
|
|
91
|
+
* @param {Pylon.CustomerPortalUpdateSettingsRequest} request
|
|
92
|
+
* @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link Pylon.BadRequestError}
|
|
95
|
+
* @throws {@link Pylon.UnauthorizedError}
|
|
96
|
+
* @throws {@link Pylon.ForbiddenError}
|
|
97
|
+
* @throws {@link Pylon.TooManyRequestsError}
|
|
98
|
+
* @throws {@link Pylon.InternalServerError}
|
|
99
|
+
* @throws {@link errors.PylonError}
|
|
100
|
+
* @throws {@link errors.PylonTimeoutError}
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* await client.customerPortal.updateSettings()
|
|
104
|
+
*/
|
|
105
|
+
updateSettings(request = {}, requestOptions) {
|
|
106
|
+
return core.HttpResponsePromise.fromPromise(this.__updateSettings(request, requestOptions));
|
|
107
|
+
}
|
|
108
|
+
__updateSettings() {
|
|
109
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
110
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
111
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
112
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
113
|
+
const _response = yield core.fetcher({
|
|
114
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PylonEnvironment.Us, "customer-portal/settings"),
|
|
115
|
+
method: "PATCH",
|
|
116
|
+
headers: _headers,
|
|
117
|
+
contentType: "application/json",
|
|
118
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
119
|
+
requestType: "json",
|
|
120
|
+
body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
121
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
122
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
123
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
124
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
125
|
+
logging: this._options.logging,
|
|
126
|
+
});
|
|
127
|
+
if (_response.ok) {
|
|
128
|
+
return {
|
|
129
|
+
data: _response.body,
|
|
130
|
+
rawResponse: _response.rawResponse,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
if (_response.error.reason === "status-code") {
|
|
134
|
+
switch (_response.error.statusCode) {
|
|
135
|
+
case 400:
|
|
136
|
+
throw new Pylon.BadRequestError(_response.error.body, _response.rawResponse);
|
|
137
|
+
case 401:
|
|
138
|
+
throw new Pylon.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 403:
|
|
140
|
+
throw new Pylon.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
141
|
+
case 429:
|
|
142
|
+
throw new Pylon.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
143
|
+
case 500:
|
|
144
|
+
throw new Pylon.InternalServerError(_response.error.body, _response.rawResponse);
|
|
145
|
+
default:
|
|
146
|
+
throw new errors.PylonError({
|
|
147
|
+
statusCode: _response.error.statusCode,
|
|
148
|
+
body: _response.error.body,
|
|
149
|
+
rawResponse: _response.rawResponse,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/customer-portal/settings");
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Pylon from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface CustomerPortalUpdateSettingsRequest {
|
|
7
|
+
access?: Pylon.UpdateCustomerPortalAccessSettings;
|
|
8
|
+
branding?: Pylon.UpdateCustomerPortalBranding;
|
|
9
|
+
display?: Pylon.UpdateCustomerPortalDisplaySettings;
|
|
10
|
+
/** Whether the customer portal is enabled. Enabling it requires a plan that includes the customer portal. */
|
|
11
|
+
enabled?: boolean;
|
|
12
|
+
navigation?: Pylon.UpdateCustomerPortalNavigation;
|
|
13
|
+
portal_user_permissions?: Pylon.UpdateCustomerPortalUserPermissions;
|
|
14
|
+
tabs?: Pylon.UpdateCustomerPortalTabs;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CustomerPortalUpdateSettingsRequest } from "./CustomerPortalUpdateSettingsRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -11,6 +11,8 @@ export * from "./callRecordings/client/requests/index.js";
|
|
|
11
11
|
export * as callRecordings from "./callRecordings/index.js";
|
|
12
12
|
export * from "./contacts/client/requests/index.js";
|
|
13
13
|
export * as contacts from "./contacts/index.js";
|
|
14
|
+
export * from "./customerPortal/client/requests/index.js";
|
|
15
|
+
export * as customerPortal from "./customerPortal/index.js";
|
|
14
16
|
export * from "./customFields/client/requests/index.js";
|
|
15
17
|
export * as customFields from "./customFields/index.js";
|
|
16
18
|
export * from "./customFields/types/index.js";
|
|
@@ -11,6 +11,8 @@ export * from "./callRecordings/client/requests/index.js";
|
|
|
11
11
|
export * as callRecordings from "./callRecordings/index.js";
|
|
12
12
|
export * from "./contacts/client/requests/index.js";
|
|
13
13
|
export * as contacts from "./contacts/index.js";
|
|
14
|
+
export * from "./customerPortal/client/requests/index.js";
|
|
15
|
+
export * as customerPortal from "./customerPortal/index.js";
|
|
14
16
|
export * from "./customFields/client/requests/index.js";
|
|
15
17
|
export * as customFields from "./customFields/index.js";
|
|
16
18
|
export * from "./customFields/types/index.js";
|
|
@@ -99,6 +99,17 @@ export declare class IssuesClient {
|
|
|
99
99
|
*
|
|
100
100
|
* @example
|
|
101
101
|
* await client.issues.create({
|
|
102
|
+
* account_id: "acc_123",
|
|
103
|
+
* body_html: "<p>We are scheduling maintenance for this weekend.</p>",
|
|
104
|
+
* destination_metadata: {
|
|
105
|
+
* destination: "slack",
|
|
106
|
+
* slack_channel_id: "C0123456789"
|
|
107
|
+
* },
|
|
108
|
+
* title: "Maintenance window"
|
|
109
|
+
* })
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.issues.create({
|
|
102
113
|
* body_html: "<p>Your order is ready.</p>",
|
|
103
114
|
* destination_metadata: {
|
|
104
115
|
* destination: "whatsapp",
|
|
@@ -201,6 +201,17 @@ export class IssuesClient {
|
|
|
201
201
|
*
|
|
202
202
|
* @example
|
|
203
203
|
* await client.issues.create({
|
|
204
|
+
* account_id: "acc_123",
|
|
205
|
+
* body_html: "<p>We are scheduling maintenance for this weekend.</p>",
|
|
206
|
+
* destination_metadata: {
|
|
207
|
+
* destination: "slack",
|
|
208
|
+
* slack_channel_id: "C0123456789"
|
|
209
|
+
* },
|
|
210
|
+
* title: "Maintenance window"
|
|
211
|
+
* })
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* await client.issues.create({
|
|
204
215
|
* body_html: "<p>Your order is ready.</p>",
|
|
205
216
|
* destination_metadata: {
|
|
206
217
|
* destination: "whatsapp",
|