linkbreakers 1.34.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/LICENSE +21 -0
- package/README.md +87 -0
- package/dist/apis/CustomDomainsApi.d.ts +254 -0
- package/dist/apis/CustomDomainsApi.js +309 -0
- package/dist/apis/EventsApi.d.ts +161 -0
- package/dist/apis/EventsApi.js +205 -0
- package/dist/apis/IntegrationsServiceApi.d.ts +60 -0
- package/dist/apis/IntegrationsServiceApi.js +96 -0
- package/dist/apis/LinkSettingsApi.d.ts +105 -0
- package/dist/apis/LinkSettingsApi.js +146 -0
- package/dist/apis/LinksApi.d.ts +431 -0
- package/dist/apis/LinksApi.js +510 -0
- package/dist/apis/MediaApi.d.ts +181 -0
- package/dist/apis/MediaApi.js +231 -0
- package/dist/apis/MembersApi.d.ts +408 -0
- package/dist/apis/MembersApi.js +491 -0
- package/dist/apis/PageThemesApi.d.ts +138 -0
- package/dist/apis/PageThemesApi.js +184 -0
- package/dist/apis/QRCodeDesignsApi.d.ts +181 -0
- package/dist/apis/QRCodeDesignsApi.js +231 -0
- package/dist/apis/QRCodeTemplatesApi.d.ts +401 -0
- package/dist/apis/QRCodeTemplatesApi.js +472 -0
- package/dist/apis/TagsApi.d.ts +108 -0
- package/dist/apis/TagsApi.js +151 -0
- package/dist/apis/TimeSeriesApi.d.ts +61 -0
- package/dist/apis/TimeSeriesApi.js +98 -0
- package/dist/apis/VisitorsApi.d.ts +281 -0
- package/dist/apis/VisitorsApi.js +339 -0
- package/dist/apis/WebhooksApi.d.ts +219 -0
- package/dist/apis/WebhooksApi.js +272 -0
- package/dist/apis/WorkflowStepsApi.d.ts +325 -0
- package/dist/apis/WorkflowStepsApi.js +396 -0
- package/dist/apis/WorkspaceMetricsApi.d.ts +136 -0
- package/dist/apis/WorkspaceMetricsApi.js +180 -0
- package/dist/apis/WorkspaceTokensApi.d.ts +173 -0
- package/dist/apis/WorkspaceTokensApi.js +222 -0
- package/dist/apis/WorkspacesApi.d.ts +320 -0
- package/dist/apis/WorkspacesApi.js +389 -0
- package/dist/apis/index.d.ts +18 -0
- package/dist/apis/index.js +36 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Action.d.ts +28 -0
- package/dist/models/Action.js +54 -0
- package/dist/models/AddWorkflowStepRelationshipResponse.d.ts +32 -0
- package/dist/models/AddWorkflowStepRelationshipResponse.js +48 -0
- package/dist/models/ApiTag.d.ts +51 -0
- package/dist/models/ApiTag.js +52 -0
- package/dist/models/BackgroundOptions.d.ts +33 -0
- package/dist/models/BackgroundOptions.js +49 -0
- package/dist/models/CanvasPosition.d.ts +38 -0
- package/dist/models/CanvasPosition.js +50 -0
- package/dist/models/CheckCustomDomainResponse.d.ts +33 -0
- package/dist/models/CheckCustomDomainResponse.js +49 -0
- package/dist/models/ClientRedirectPayload.d.ts +38 -0
- package/dist/models/ClientRedirectPayload.js +50 -0
- package/dist/models/ContactCardTraceCard.d.ts +104 -0
- package/dist/models/ContactCardTraceCard.js +72 -0
- package/dist/models/ContactCardTraceData.d.ts +33 -0
- package/dist/models/ContactCardTraceData.js +49 -0
- package/dist/models/ContainerConfig.d.ts +85 -0
- package/dist/models/ContainerConfig.js +80 -0
- package/dist/models/CornersDotOptions.d.ts +39 -0
- package/dist/models/CornersDotOptions.js +51 -0
- package/dist/models/CornersSquareOptions.d.ts +39 -0
- package/dist/models/CornersSquareOptions.js +51 -0
- package/dist/models/CountryConditionOutcome.d.ts +38 -0
- package/dist/models/CountryConditionOutcome.js +50 -0
- package/dist/models/CountryConditionPayload.d.ts +39 -0
- package/dist/models/CountryConditionPayload.js +51 -0
- package/dist/models/CountryConditionTraceData.d.ts +39 -0
- package/dist/models/CountryConditionTraceData.js +51 -0
- package/dist/models/CountryConditionTraceOption.d.ts +38 -0
- package/dist/models/CountryConditionTraceOption.js +50 -0
- package/dist/models/CreateBulkLinksRequest.d.ts +34 -0
- package/dist/models/CreateBulkLinksRequest.js +51 -0
- package/dist/models/CreateBulkLinksResponse.d.ts +33 -0
- package/dist/models/CreateBulkLinksResponse.js +49 -0
- package/dist/models/CreateContactLinkRequest.d.ts +108 -0
- package/dist/models/CreateContactLinkRequest.js +73 -0
- package/dist/models/CreateContactLinkResponse.d.ts +33 -0
- package/dist/models/CreateContactLinkResponse.js +49 -0
- package/dist/models/CreateCustomDomainRequest.d.ts +32 -0
- package/dist/models/CreateCustomDomainRequest.js +48 -0
- package/dist/models/CreateCustomDomainResponse.d.ts +33 -0
- package/dist/models/CreateCustomDomainResponse.js +49 -0
- package/dist/models/CreateEventTraceResponse.d.ts +33 -0
- package/dist/models/CreateEventTraceResponse.js +49 -0
- package/dist/models/CreateLinkRequest.d.ts +107 -0
- package/dist/models/CreateLinkRequest.js +72 -0
- package/dist/models/CreateLinkResponse.d.ts +33 -0
- package/dist/models/CreateLinkResponse.js +49 -0
- package/dist/models/CreateMediaRequest.d.ts +54 -0
- package/dist/models/CreateMediaRequest.js +56 -0
- package/dist/models/CreateMediaResponse.d.ts +33 -0
- package/dist/models/CreateMediaResponse.js +49 -0
- package/dist/models/CreateQrcodeTemplateRequest.d.ts +63 -0
- package/dist/models/CreateQrcodeTemplateRequest.js +58 -0
- package/dist/models/CreateQrcodeTemplateResponse.d.ts +33 -0
- package/dist/models/CreateQrcodeTemplateResponse.js +49 -0
- package/dist/models/CreateWebhookRequest.d.ts +62 -0
- package/dist/models/CreateWebhookRequest.js +62 -0
- package/dist/models/CreateWebhookResponse.d.ts +33 -0
- package/dist/models/CreateWebhookResponse.js +49 -0
- package/dist/models/CreateWorkflowStepResponse.d.ts +33 -0
- package/dist/models/CreateWorkflowStepResponse.js +49 -0
- package/dist/models/CreateWorkspaceTokenRequest.d.ts +32 -0
- package/dist/models/CreateWorkspaceTokenRequest.js +48 -0
- package/dist/models/CreateWorkspaceTokenResponse.d.ts +40 -0
- package/dist/models/CreateWorkspaceTokenResponse.js +51 -0
- package/dist/models/CustomDomain.d.ts +94 -0
- package/dist/models/CustomDomain.js +70 -0
- package/dist/models/CustomDomainStatus.d.ts +36 -0
- package/dist/models/CustomDomainStatus.js +62 -0
- package/dist/models/DataCollection.d.ts +32 -0
- package/dist/models/DataCollection.js +58 -0
- package/dist/models/DayOfMonthConditionPayload.d.ts +39 -0
- package/dist/models/DayOfMonthConditionPayload.js +51 -0
- package/dist/models/DayOfMonthConditionTraceData.d.ts +39 -0
- package/dist/models/DayOfMonthConditionTraceData.js +51 -0
- package/dist/models/DayOfMonthConditionTraceOption.d.ts +50 -0
- package/dist/models/DayOfMonthConditionTraceOption.js +54 -0
- package/dist/models/DayOfMonthOption.d.ts +50 -0
- package/dist/models/DayOfMonthOption.js +54 -0
- package/dist/models/DayOfWeekConditionPayload.d.ts +39 -0
- package/dist/models/DayOfWeekConditionPayload.js +51 -0
- package/dist/models/DayOfWeekConditionTraceData.d.ts +39 -0
- package/dist/models/DayOfWeekConditionTraceData.js +51 -0
- package/dist/models/DayOfWeekConditionTraceOption.d.ts +50 -0
- package/dist/models/DayOfWeekConditionTraceOption.js +54 -0
- package/dist/models/DayOfWeekOption.d.ts +50 -0
- package/dist/models/DayOfWeekOption.js +54 -0
- package/dist/models/DeleteAttributeResponse.d.ts +32 -0
- package/dist/models/DeleteAttributeResponse.js +48 -0
- package/dist/models/DeleteVisitorResponse.d.ts +32 -0
- package/dist/models/DeleteVisitorResponse.js +48 -0
- package/dist/models/Device.d.ts +232 -0
- package/dist/models/Device.js +121 -0
- package/dist/models/DeviceInput.d.ts +134 -0
- package/dist/models/DeviceInput.js +82 -0
- package/dist/models/DeviceType.d.ts +36 -0
- package/dist/models/DeviceType.js +62 -0
- package/dist/models/DotsOptions.d.ts +39 -0
- package/dist/models/DotsOptions.js +51 -0
- package/dist/models/EntryAccessTraceData.d.ts +56 -0
- package/dist/models/EntryAccessTraceData.js +56 -0
- package/dist/models/ErrorResponse.d.ts +50 -0
- package/dist/models/ErrorResponse.js +62 -0
- package/dist/models/Event.d.ts +170 -0
- package/dist/models/Event.js +101 -0
- package/dist/models/EventAction.d.ts +50 -0
- package/dist/models/EventAction.js +76 -0
- package/dist/models/EventTrace.d.ts +94 -0
- package/dist/models/EventTrace.js +69 -0
- package/dist/models/EventTraceData.d.ts +110 -0
- package/dist/models/EventTraceData.js +82 -0
- package/dist/models/EventsMetric.d.ts +105 -0
- package/dist/models/EventsMetric.js +79 -0
- package/dist/models/EventsServiceCreateEventTraceBody.d.ts +45 -0
- package/dist/models/EventsServiceCreateEventTraceBody.js +53 -0
- package/dist/models/EventsServiceUpdateDeviceBody.d.ts +33 -0
- package/dist/models/EventsServiceUpdateDeviceBody.js +49 -0
- package/dist/models/EventsTimeSeries.d.ts +45 -0
- package/dist/models/EventsTimeSeries.js +53 -0
- package/dist/models/EventsTimeSeriesData.d.ts +38 -0
- package/dist/models/EventsTimeSeriesData.js +50 -0
- package/dist/models/FontConfig.d.ts +71 -0
- package/dist/models/FontConfig.js +71 -0
- package/dist/models/FormField.d.ts +94 -0
- package/dist/models/FormField.js +70 -0
- package/dist/models/FormFieldOption.d.ts +38 -0
- package/dist/models/FormFieldOption.js +50 -0
- package/dist/models/FormFieldType.d.ts +34 -0
- package/dist/models/FormFieldType.js +60 -0
- package/dist/models/FormPayload.d.ts +69 -0
- package/dist/models/FormPayload.js +61 -0
- package/dist/models/FormTraceData.d.ts +75 -0
- package/dist/models/FormTraceData.js +63 -0
- package/dist/models/FormTraceDataField.d.ts +56 -0
- package/dist/models/FormTraceDataField.js +56 -0
- package/dist/models/GetCustomDomainResponse.d.ts +33 -0
- package/dist/models/GetCustomDomainResponse.js +49 -0
- package/dist/models/GetEventsTimeSeriesRequest.d.ts +50 -0
- package/dist/models/GetEventsTimeSeriesRequest.js +54 -0
- package/dist/models/GetEventsTimeSeriesResponse.d.ts +33 -0
- package/dist/models/GetEventsTimeSeriesResponse.js +49 -0
- package/dist/models/GetLeadScoreExplanationResponse.d.ts +51 -0
- package/dist/models/GetLeadScoreExplanationResponse.js +55 -0
- package/dist/models/GetLinkResponse.d.ts +33 -0
- package/dist/models/GetLinkResponse.js +49 -0
- package/dist/models/GetLinkSettingResponse.d.ts +33 -0
- package/dist/models/GetLinkSettingResponse.js +49 -0
- package/dist/models/GetMediaResponse.d.ts +33 -0
- package/dist/models/GetMediaResponse.js +49 -0
- package/dist/models/GetPageThemeResponse.d.ts +33 -0
- package/dist/models/GetPageThemeResponse.js +49 -0
- package/dist/models/GetQrcodeDesignResponse.d.ts +33 -0
- package/dist/models/GetQrcodeDesignResponse.js +49 -0
- package/dist/models/GetWebhookResponse.d.ts +33 -0
- package/dist/models/GetWebhookResponse.js +49 -0
- package/dist/models/GetWorkflowStepResponse.d.ts +33 -0
- package/dist/models/GetWorkflowStepResponse.js +49 -0
- package/dist/models/GetWorkspaceTokenResponse.d.ts +33 -0
- package/dist/models/GetWorkspaceTokenResponse.js +49 -0
- package/dist/models/GooglerpcStatus.d.ts +45 -0
- package/dist/models/GooglerpcStatus.js +53 -0
- package/dist/models/IdentifyRequest.d.ts +45 -0
- package/dist/models/IdentifyRequest.js +53 -0
- package/dist/models/IdentifyResponse.d.ts +39 -0
- package/dist/models/IdentifyResponse.js +51 -0
- package/dist/models/ImportQrcodeTemplateRequest.d.ts +32 -0
- package/dist/models/ImportQrcodeTemplateRequest.js +48 -0
- package/dist/models/ImportQrcodeTemplateResponse.d.ts +33 -0
- package/dist/models/ImportQrcodeTemplateResponse.js +49 -0
- package/dist/models/InviteMemberRequest.d.ts +44 -0
- package/dist/models/InviteMemberRequest.js +52 -0
- package/dist/models/LeadScore.d.ts +111 -0
- package/dist/models/LeadScore.js +74 -0
- package/dist/models/LeadScoreBreakdown.d.ts +56 -0
- package/dist/models/LeadScoreBreakdown.js +56 -0
- package/dist/models/Link.d.ts +182 -0
- package/dist/models/Link.js +88 -0
- package/dist/models/LinkSetting.d.ts +51 -0
- package/dist/models/LinkSetting.js +55 -0
- package/dist/models/LinkSortField.d.ts +34 -0
- package/dist/models/LinkSortField.js +60 -0
- package/dist/models/LinksServiceUpdateBody.d.ts +84 -0
- package/dist/models/LinksServiceUpdateBody.js +64 -0
- package/dist/models/ListCustomDomainsResponse.d.ts +33 -0
- package/dist/models/ListCustomDomainsResponse.js +49 -0
- package/dist/models/ListEventTracesResponse.d.ts +33 -0
- package/dist/models/ListEventTracesResponse.js +49 -0
- package/dist/models/ListEventsCsvResponse.d.ts +38 -0
- package/dist/models/ListEventsCsvResponse.js +50 -0
- package/dist/models/ListEventsJsonResponse.d.ts +51 -0
- package/dist/models/ListEventsJsonResponse.js +55 -0
- package/dist/models/ListEventsResponse.d.ts +40 -0
- package/dist/models/ListEventsResponse.js +52 -0
- package/dist/models/ListLinksResponse.d.ts +45 -0
- package/dist/models/ListLinksResponse.js +53 -0
- package/dist/models/ListMediaResponse.d.ts +39 -0
- package/dist/models/ListMediaResponse.js +51 -0
- package/dist/models/ListPageThemesResponse.d.ts +33 -0
- package/dist/models/ListPageThemesResponse.js +49 -0
- package/dist/models/ListQrcodeTemplatesResponse.d.ts +45 -0
- package/dist/models/ListQrcodeTemplatesResponse.js +53 -0
- package/dist/models/ListResponse.d.ts +33 -0
- package/dist/models/ListResponse.js +49 -0
- package/dist/models/ListTagsResponse.d.ts +39 -0
- package/dist/models/ListTagsResponse.js +51 -0
- package/dist/models/ListVisitorsCsvResponse.d.ts +38 -0
- package/dist/models/ListVisitorsCsvResponse.js +50 -0
- package/dist/models/ListVisitorsJsonResponse.d.ts +51 -0
- package/dist/models/ListVisitorsJsonResponse.js +55 -0
- package/dist/models/ListVisitorsResponse.d.ts +40 -0
- package/dist/models/ListVisitorsResponse.js +52 -0
- package/dist/models/ListWebhooksResponse.d.ts +33 -0
- package/dist/models/ListWebhooksResponse.js +49 -0
- package/dist/models/ListWorkflowStepsResponse.d.ts +39 -0
- package/dist/models/ListWorkflowStepsResponse.js +51 -0
- package/dist/models/ListWorkspaceTokensResponse.d.ts +33 -0
- package/dist/models/ListWorkspaceTokensResponse.js +49 -0
- package/dist/models/Media.d.ts +96 -0
- package/dist/models/Media.js +65 -0
- package/dist/models/MediaSelection.d.ts +38 -0
- package/dist/models/MediaSelection.js +50 -0
- package/dist/models/MediaType.d.ts +30 -0
- package/dist/models/MediaType.js +56 -0
- package/dist/models/MediaVisibility.d.ts +29 -0
- package/dist/models/MediaVisibility.js +55 -0
- package/dist/models/Member.d.ts +124 -0
- package/dist/models/Member.js +79 -0
- package/dist/models/MembersServiceUpdateBody.d.ts +57 -0
- package/dist/models/MembersServiceUpdateBody.js +57 -0
- package/dist/models/ModelHTTPMethod.d.ts +31 -0
- package/dist/models/ModelHTTPMethod.js +57 -0
- package/dist/models/MultiLinkButton.d.ts +50 -0
- package/dist/models/MultiLinkButton.js +54 -0
- package/dist/models/MultiLinkPayload.d.ts +45 -0
- package/dist/models/MultiLinkPayload.js +53 -0
- package/dist/models/MultiLinkSelectedButton.d.ts +44 -0
- package/dist/models/MultiLinkSelectedButton.js +52 -0
- package/dist/models/MultiLinkTraceData.d.ts +33 -0
- package/dist/models/MultiLinkTraceData.js +49 -0
- package/dist/models/OutputFileFormat.d.ts +32 -0
- package/dist/models/OutputFileFormat.js +58 -0
- package/dist/models/PageTheme.d.ts +145 -0
- package/dist/models/PageTheme.js +96 -0
- package/dist/models/PageThemeBadgeShape.d.ts +27 -0
- package/dist/models/PageThemeBadgeShape.js +53 -0
- package/dist/models/PageThemeBorderStyle.d.ts +30 -0
- package/dist/models/PageThemeBorderStyle.js +56 -0
- package/dist/models/PageThemeCanvasCoverMode.d.ts +27 -0
- package/dist/models/PageThemeCanvasCoverMode.js +53 -0
- package/dist/models/PageThemeContainerVariant.d.ts +26 -0
- package/dist/models/PageThemeContainerVariant.js +52 -0
- package/dist/models/PageThemeFontFamily.d.ts +31 -0
- package/dist/models/PageThemeFontFamily.js +57 -0
- package/dist/models/PageThemesServiceUpdatePageThemeBody.d.ts +122 -0
- package/dist/models/PageThemesServiceUpdatePageThemeBody.js +93 -0
- package/dist/models/PasswordPayload.d.ts +44 -0
- package/dist/models/PasswordPayload.js +52 -0
- package/dist/models/PasswordTraceData.d.ts +32 -0
- package/dist/models/PasswordTraceData.js +48 -0
- package/dist/models/PreferredLinkType.d.ts +32 -0
- package/dist/models/PreferredLinkType.js +58 -0
- package/dist/models/ProtobufAny.d.ts +33 -0
- package/dist/models/ProtobufAny.js +50 -0
- package/dist/models/ProtobufNullValue.d.ts +29 -0
- package/dist/models/ProtobufNullValue.js +55 -0
- package/dist/models/PublicCreateQrcodeDesignRequest.d.ts +134 -0
- package/dist/models/PublicCreateQrcodeDesignRequest.js +95 -0
- package/dist/models/PublicCreateQrcodeDesignResponse.d.ts +33 -0
- package/dist/models/PublicCreateQrcodeDesignResponse.js +49 -0
- package/dist/models/PublicListQrcodeTemplatesResponse.d.ts +45 -0
- package/dist/models/PublicListQrcodeTemplatesResponse.js +53 -0
- package/dist/models/PublicQrcodeTemplate.d.ts +87 -0
- package/dist/models/PublicQrcodeTemplate.js +67 -0
- package/dist/models/PublicWorkspace.d.ts +74 -0
- package/dist/models/PublicWorkspace.js +62 -0
- package/dist/models/PublishQrcodeTemplateResponse.d.ts +33 -0
- package/dist/models/PublishQrcodeTemplateResponse.js +49 -0
- package/dist/models/QrcodeDesign.d.ts +157 -0
- package/dist/models/QrcodeDesign.js +98 -0
- package/dist/models/QrcodeDesignServiceUpdateBody.d.ts +140 -0
- package/dist/models/QrcodeDesignServiceUpdateBody.js +97 -0
- package/dist/models/QrcodeTemplate.d.ts +135 -0
- package/dist/models/QrcodeTemplate.js +81 -0
- package/dist/models/QrcodeTemplatesServiceUpdateQrcodeTemplateBody.d.ts +62 -0
- package/dist/models/QrcodeTemplatesServiceUpdateQrcodeTemplateBody.js +58 -0
- package/dist/models/RedirectTraceData.d.ts +44 -0
- package/dist/models/RedirectTraceData.js +52 -0
- package/dist/models/RemoveWorkflowStepRelationshipResponse.d.ts +32 -0
- package/dist/models/RemoveWorkflowStepRelationshipResponse.js +48 -0
- package/dist/models/RequestWorkspaceEnrollmentRequest.d.ts +32 -0
- package/dist/models/RequestWorkspaceEnrollmentRequest.js +48 -0
- package/dist/models/ResponseFormat.d.ts +30 -0
- package/dist/models/ResponseFormat.js +56 -0
- package/dist/models/Role.d.ts +29 -0
- package/dist/models/Role.js +55 -0
- package/dist/models/SettingsServiceUpdateLinkSettingBody.d.ts +33 -0
- package/dist/models/SettingsServiceUpdateLinkSettingBody.js +49 -0
- package/dist/models/Shape.d.ts +28 -0
- package/dist/models/Shape.js +54 -0
- package/dist/models/ShortlinkAvailabilityResponse.d.ts +32 -0
- package/dist/models/ShortlinkAvailabilityResponse.js +48 -0
- package/dist/models/ShortlinkRandomResponse.d.ts +32 -0
- package/dist/models/ShortlinkRandomResponse.js +48 -0
- package/dist/models/SocialLinkButton.d.ts +50 -0
- package/dist/models/SocialLinkButton.js +54 -0
- package/dist/models/SocialLinksDisplayStyle.d.ts +27 -0
- package/dist/models/SocialLinksDisplayStyle.js +53 -0
- package/dist/models/SocialLinksPayload.d.ts +52 -0
- package/dist/models/SocialLinksPayload.js +56 -0
- package/dist/models/SortDirection.d.ts +28 -0
- package/dist/models/SortDirection.js +54 -0
- package/dist/models/SpecificDateConditionPayload.d.ts +39 -0
- package/dist/models/SpecificDateConditionPayload.js +51 -0
- package/dist/models/SpecificDateConditionTraceData.d.ts +39 -0
- package/dist/models/SpecificDateConditionTraceData.js +51 -0
- package/dist/models/SpecificDateConditionTraceOption.d.ts +62 -0
- package/dist/models/SpecificDateConditionTraceOption.js +58 -0
- package/dist/models/SpecificDateOption.d.ts +62 -0
- package/dist/models/SpecificDateOption.js +58 -0
- package/dist/models/SubscriptionType.d.ts +34 -0
- package/dist/models/SubscriptionType.js +60 -0
- package/dist/models/ThemeColor.d.ts +61 -0
- package/dist/models/ThemeColor.js +68 -0
- package/dist/models/ThemeColorThemeColorType.d.ts +27 -0
- package/dist/models/ThemeColorThemeColorType.js +53 -0
- package/dist/models/TimeOfDayConditionPayload.d.ts +39 -0
- package/dist/models/TimeOfDayConditionPayload.js +51 -0
- package/dist/models/TimeOfDayConditionTraceData.d.ts +39 -0
- package/dist/models/TimeOfDayConditionTraceData.js +51 -0
- package/dist/models/TimeOfDayConditionTraceRange.d.ts +56 -0
- package/dist/models/TimeOfDayConditionTraceRange.js +56 -0
- package/dist/models/TimeOfDayRange.d.ts +56 -0
- package/dist/models/TimeOfDayRange.js +56 -0
- package/dist/models/TriggeredBy.d.ts +26 -0
- package/dist/models/TriggeredBy.js +52 -0
- package/dist/models/UpdateDeviceResponse.d.ts +32 -0
- package/dist/models/UpdateDeviceResponse.js +48 -0
- package/dist/models/UpdateLinkResponse.d.ts +33 -0
- package/dist/models/UpdateLinkResponse.js +49 -0
- package/dist/models/UpdateLinkSettingResponse.d.ts +33 -0
- package/dist/models/UpdateLinkSettingResponse.js +49 -0
- package/dist/models/UpdateMeRequest.d.ts +50 -0
- package/dist/models/UpdateMeRequest.js +54 -0
- package/dist/models/UpdatePageThemeResponse.d.ts +33 -0
- package/dist/models/UpdatePageThemeResponse.js +49 -0
- package/dist/models/UpdateQrcodeDesignResponse.d.ts +33 -0
- package/dist/models/UpdateQrcodeDesignResponse.js +49 -0
- package/dist/models/UpdateQrcodeTemplateResponse.d.ts +33 -0
- package/dist/models/UpdateQrcodeTemplateResponse.js +49 -0
- package/dist/models/UpdateWebhookResponse.d.ts +33 -0
- package/dist/models/UpdateWebhookResponse.js +49 -0
- package/dist/models/UpdateWorkflowStepResponse.d.ts +33 -0
- package/dist/models/UpdateWorkflowStepResponse.js +49 -0
- package/dist/models/UpdateWorkspaceOriginInquiryRequest.d.ts +32 -0
- package/dist/models/UpdateWorkspaceOriginInquiryRequest.js +48 -0
- package/dist/models/UpdateWorkspaceOriginPurposeRequest.d.ts +32 -0
- package/dist/models/UpdateWorkspaceOriginPurposeRequest.js +48 -0
- package/dist/models/UpdateWorkspaceRequest.d.ts +74 -0
- package/dist/models/UpdateWorkspaceRequest.js +62 -0
- package/dist/models/VCardData.d.ts +104 -0
- package/dist/models/VCardData.js +72 -0
- package/dist/models/VCardPayload.d.ts +104 -0
- package/dist/models/VCardPayload.js +72 -0
- package/dist/models/ValidationInstructionsCustomDomainResponse.d.ts +33 -0
- package/dist/models/ValidationInstructionsCustomDomainResponse.js +49 -0
- package/dist/models/ValidationInstructionsCustomDomainResponseValidation.d.ts +52 -0
- package/dist/models/ValidationInstructionsCustomDomainResponseValidation.js +56 -0
- package/dist/models/ValidationInstructionsCustomDomainResponseValidationType.d.ts +26 -0
- package/dist/models/ValidationInstructionsCustomDomainResponseValidationType.js +52 -0
- package/dist/models/ValidationPurpose.d.ts +28 -0
- package/dist/models/ValidationPurpose.js +54 -0
- package/dist/models/VisitType.d.ts +28 -0
- package/dist/models/VisitType.js +54 -0
- package/dist/models/VisitTypeConditionOption.d.ts +38 -0
- package/dist/models/VisitTypeConditionOption.js +50 -0
- package/dist/models/VisitTypeConditionPayload.d.ts +39 -0
- package/dist/models/VisitTypeConditionPayload.js +51 -0
- package/dist/models/VisitTypeConditionTraceData.d.ts +45 -0
- package/dist/models/VisitTypeConditionTraceData.js +53 -0
- package/dist/models/VisitTypeConditionTraceOption.d.ts +38 -0
- package/dist/models/VisitTypeConditionTraceOption.js +50 -0
- package/dist/models/Visitor.d.ts +102 -0
- package/dist/models/Visitor.js +73 -0
- package/dist/models/VisitorEvent.d.ts +62 -0
- package/dist/models/VisitorEvent.js +58 -0
- package/dist/models/VisitorInput.d.ts +34 -0
- package/dist/models/VisitorInput.js +48 -0
- package/dist/models/VisitorLink.d.ts +68 -0
- package/dist/models/VisitorLink.js +60 -0
- package/dist/models/VisitorsServiceUpdateBody.d.ts +33 -0
- package/dist/models/VisitorsServiceUpdateBody.js +49 -0
- package/dist/models/Webhook.d.ts +128 -0
- package/dist/models/Webhook.js +73 -0
- package/dist/models/WebhookSource.d.ts +30 -0
- package/dist/models/WebhookSource.js +56 -0
- package/dist/models/WebhookStatus.d.ts +30 -0
- package/dist/models/WebhookStatus.js +56 -0
- package/dist/models/WebhooksServiceUpdateBody.d.ts +69 -0
- package/dist/models/WebhooksServiceUpdateBody.js +61 -0
- package/dist/models/WorkflowStep.d.ts +149 -0
- package/dist/models/WorkflowStep.js +97 -0
- package/dist/models/WorkflowStepKind.d.ts +32 -0
- package/dist/models/WorkflowStepKind.js +58 -0
- package/dist/models/WorkflowStepNodeType.d.ts +56 -0
- package/dist/models/WorkflowStepNodeType.js +82 -0
- package/dist/models/WorkflowStepPayload.d.ts +116 -0
- package/dist/models/WorkflowStepPayload.js +84 -0
- package/dist/models/WorkflowStepsServiceAddRelationshipBody.d.ts +32 -0
- package/dist/models/WorkflowStepsServiceAddRelationshipBody.js +48 -0
- package/dist/models/WorkflowStepsServiceCreateBody.d.ts +85 -0
- package/dist/models/WorkflowStepsServiceCreateBody.js +76 -0
- package/dist/models/WorkflowStepsServiceUpdateBody.d.ts +40 -0
- package/dist/models/WorkflowStepsServiceUpdateBody.js +52 -0
- package/dist/models/Workspace.d.ts +158 -0
- package/dist/models/Workspace.js +96 -0
- package/dist/models/WorkspaceInsight.d.ts +34 -0
- package/dist/models/WorkspaceInsight.js +49 -0
- package/dist/models/WorkspaceMetric.d.ts +68 -0
- package/dist/models/WorkspaceMetric.js +60 -0
- package/dist/models/WorkspaceToken.d.ts +69 -0
- package/dist/models/WorkspaceToken.js +57 -0
- package/dist/models/index.d.ts +212 -0
- package/dist/models/index.js +230 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +338 -0
- package/package.json +40 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Linkbreakers API
|
|
6
|
+
* This is a documentation of all the APIs of Linkbreakers
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.34.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.LinksApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class LinksApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for linksServiceCreate without sending the request
|
|
58
|
+
*/
|
|
59
|
+
async linksServiceCreateRequestOpts(requestParameters) {
|
|
60
|
+
if (requestParameters['createLinkRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('createLinkRequest', 'Required parameter "createLinkRequest" was null or undefined when calling linksServiceCreate().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = await token("bearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
let urlPath = `/v1/links`;
|
|
74
|
+
return {
|
|
75
|
+
path: urlPath,
|
|
76
|
+
method: 'POST',
|
|
77
|
+
headers: headerParameters,
|
|
78
|
+
query: queryParameters,
|
|
79
|
+
body: (0, index_1.CreateLinkRequestToJSON)(requestParameters['createLinkRequest']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* This endpoint allows users to create a new shortened URL link in their Linkbreakers workspace. The URL will be checked for malicious content before being shortened.
|
|
84
|
+
* Create a new link
|
|
85
|
+
*/
|
|
86
|
+
async linksServiceCreateRaw(requestParameters, initOverrides) {
|
|
87
|
+
const requestOptions = await this.linksServiceCreateRequestOpts(requestParameters);
|
|
88
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateLinkResponseFromJSON)(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This endpoint allows users to create a new shortened URL link in their Linkbreakers workspace. The URL will be checked for malicious content before being shortened.
|
|
93
|
+
* Create a new link
|
|
94
|
+
*/
|
|
95
|
+
async linksServiceCreate(requestParameters, initOverrides) {
|
|
96
|
+
const response = await this.linksServiceCreateRaw(requestParameters, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Creates request options for linksServiceCreateBulk without sending the request
|
|
101
|
+
*/
|
|
102
|
+
async linksServiceCreateBulkRequestOpts(requestParameters) {
|
|
103
|
+
if (requestParameters['createBulkLinksRequest'] == null) {
|
|
104
|
+
throw new runtime.RequiredError('createBulkLinksRequest', 'Required parameter "createBulkLinksRequest" was null or undefined when calling linksServiceCreateBulk().');
|
|
105
|
+
}
|
|
106
|
+
const queryParameters = {};
|
|
107
|
+
const headerParameters = {};
|
|
108
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
const token = this.configuration.accessToken;
|
|
111
|
+
const tokenString = await token("bearerAuth", []);
|
|
112
|
+
if (tokenString) {
|
|
113
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
let urlPath = `/v1/links/bulk`;
|
|
117
|
+
return {
|
|
118
|
+
path: urlPath,
|
|
119
|
+
method: 'POST',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
body: (0, index_1.CreateBulkLinksRequestToJSON)(requestParameters['createBulkLinksRequest']),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Creates links in batch using the same per-link options as Create. This operation is transactional: if one link fails validation or insertion, no links from the batch are created.
|
|
127
|
+
* Create multiple links in a single request
|
|
128
|
+
*/
|
|
129
|
+
async linksServiceCreateBulkRaw(requestParameters, initOverrides) {
|
|
130
|
+
const requestOptions = await this.linksServiceCreateBulkRequestOpts(requestParameters);
|
|
131
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateBulkLinksResponseFromJSON)(jsonValue));
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Creates links in batch using the same per-link options as Create. This operation is transactional: if one link fails validation or insertion, no links from the batch are created.
|
|
136
|
+
* Create multiple links in a single request
|
|
137
|
+
*/
|
|
138
|
+
async linksServiceCreateBulk(requestParameters, initOverrides) {
|
|
139
|
+
const response = await this.linksServiceCreateBulkRaw(requestParameters, initOverrides);
|
|
140
|
+
return await response.value();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for linksServiceCreateContactLink without sending the request
|
|
144
|
+
*/
|
|
145
|
+
async linksServiceCreateContactLinkRequestOpts(requestParameters) {
|
|
146
|
+
if (requestParameters['createContactLinkRequest'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('createContactLinkRequest', 'Required parameter "createContactLinkRequest" was null or undefined when calling linksServiceCreateContactLink().');
|
|
148
|
+
}
|
|
149
|
+
const queryParameters = {};
|
|
150
|
+
const headerParameters = {};
|
|
151
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
const token = this.configuration.accessToken;
|
|
154
|
+
const tokenString = await token("bearerAuth", []);
|
|
155
|
+
if (tokenString) {
|
|
156
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
let urlPath = `/v1/links/contact`;
|
|
160
|
+
return {
|
|
161
|
+
path: urlPath,
|
|
162
|
+
method: 'POST',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
body: (0, index_1.CreateContactLinkRequestToJSON)(requestParameters['createContactLinkRequest']),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* This endpoint allows users to create a new vCard contact link in their Linkbreakers workspace. The link will generate a vCard file for contact information sharing.
|
|
170
|
+
* Create a new contact card link
|
|
171
|
+
*/
|
|
172
|
+
async linksServiceCreateContactLinkRaw(requestParameters, initOverrides) {
|
|
173
|
+
const requestOptions = await this.linksServiceCreateContactLinkRequestOpts(requestParameters);
|
|
174
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateContactLinkResponseFromJSON)(jsonValue));
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* This endpoint allows users to create a new vCard contact link in their Linkbreakers workspace. The link will generate a vCard file for contact information sharing.
|
|
179
|
+
* Create a new contact card link
|
|
180
|
+
*/
|
|
181
|
+
async linksServiceCreateContactLink(requestParameters, initOverrides) {
|
|
182
|
+
const response = await this.linksServiceCreateContactLinkRaw(requestParameters, initOverrides);
|
|
183
|
+
return await response.value();
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Creates request options for linksServiceDelete without sending the request
|
|
187
|
+
*/
|
|
188
|
+
async linksServiceDeleteRequestOpts(requestParameters) {
|
|
189
|
+
if (requestParameters['id'] == null) {
|
|
190
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling linksServiceDelete().');
|
|
191
|
+
}
|
|
192
|
+
const queryParameters = {};
|
|
193
|
+
const headerParameters = {};
|
|
194
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
195
|
+
const token = this.configuration.accessToken;
|
|
196
|
+
const tokenString = await token("bearerAuth", []);
|
|
197
|
+
if (tokenString) {
|
|
198
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
let urlPath = `/v1/links/{id}`;
|
|
202
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
203
|
+
return {
|
|
204
|
+
path: urlPath,
|
|
205
|
+
method: 'DELETE',
|
|
206
|
+
headers: headerParameters,
|
|
207
|
+
query: queryParameters,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Removes a shortened link from the workspace. This operation cannot be undone.
|
|
212
|
+
* Delete a link
|
|
213
|
+
*/
|
|
214
|
+
async linksServiceDeleteRaw(requestParameters, initOverrides) {
|
|
215
|
+
const requestOptions = await this.linksServiceDeleteRequestOpts(requestParameters);
|
|
216
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
217
|
+
return new runtime.JSONApiResponse(response);
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Removes a shortened link from the workspace. This operation cannot be undone.
|
|
221
|
+
* Delete a link
|
|
222
|
+
*/
|
|
223
|
+
async linksServiceDelete(requestParameters, initOverrides) {
|
|
224
|
+
const response = await this.linksServiceDeleteRaw(requestParameters, initOverrides);
|
|
225
|
+
return await response.value();
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for linksServiceGet without sending the request
|
|
229
|
+
*/
|
|
230
|
+
async linksServiceGetRequestOpts(requestParameters) {
|
|
231
|
+
if (requestParameters['id'] == null) {
|
|
232
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling linksServiceGet().');
|
|
233
|
+
}
|
|
234
|
+
const queryParameters = {};
|
|
235
|
+
if (requestParameters['include'] != null) {
|
|
236
|
+
queryParameters['include'] = requestParameters['include'];
|
|
237
|
+
}
|
|
238
|
+
const headerParameters = {};
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = await token("bearerAuth", []);
|
|
242
|
+
if (tokenString) {
|
|
243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
let urlPath = `/v1/links/{id}`;
|
|
247
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
248
|
+
return {
|
|
249
|
+
path: urlPath,
|
|
250
|
+
method: 'GET',
|
|
251
|
+
headers: headerParameters,
|
|
252
|
+
query: queryParameters,
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Retrieves information about a shortened link including its metadata and metrics.
|
|
257
|
+
* Get link details
|
|
258
|
+
*/
|
|
259
|
+
async linksServiceGetRaw(requestParameters, initOverrides) {
|
|
260
|
+
const requestOptions = await this.linksServiceGetRequestOpts(requestParameters);
|
|
261
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
262
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetLinkResponseFromJSON)(jsonValue));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Retrieves information about a shortened link including its metadata and metrics.
|
|
266
|
+
* Get link details
|
|
267
|
+
*/
|
|
268
|
+
async linksServiceGet(requestParameters, initOverrides) {
|
|
269
|
+
const response = await this.linksServiceGetRaw(requestParameters, initOverrides);
|
|
270
|
+
return await response.value();
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Creates request options for linksServiceGetLeadScoreExplanation without sending the request
|
|
274
|
+
*/
|
|
275
|
+
async linksServiceGetLeadScoreExplanationRequestOpts(requestParameters) {
|
|
276
|
+
if (requestParameters['linkId'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('linkId', 'Required parameter "linkId" was null or undefined when calling linksServiceGetLeadScoreExplanation().');
|
|
278
|
+
}
|
|
279
|
+
if (requestParameters['eventId'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling linksServiceGetLeadScoreExplanation().');
|
|
281
|
+
}
|
|
282
|
+
const queryParameters = {};
|
|
283
|
+
const headerParameters = {};
|
|
284
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
285
|
+
const token = this.configuration.accessToken;
|
|
286
|
+
const tokenString = await token("bearerAuth", []);
|
|
287
|
+
if (tokenString) {
|
|
288
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
let urlPath = `/v1/links/{linkId}/lead-score-explanation/{eventId}`;
|
|
292
|
+
urlPath = urlPath.replace(`{${"linkId"}}`, encodeURIComponent(String(requestParameters['linkId'])));
|
|
293
|
+
urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
|
|
294
|
+
return {
|
|
295
|
+
path: urlPath,
|
|
296
|
+
method: 'GET',
|
|
297
|
+
headers: headerParameters,
|
|
298
|
+
query: queryParameters,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Generates an AI-powered explanation for a lead score result based on event data.
|
|
303
|
+
* Get lead score explanation
|
|
304
|
+
*/
|
|
305
|
+
async linksServiceGetLeadScoreExplanationRaw(requestParameters, initOverrides) {
|
|
306
|
+
const requestOptions = await this.linksServiceGetLeadScoreExplanationRequestOpts(requestParameters);
|
|
307
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
308
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetLeadScoreExplanationResponseFromJSON)(jsonValue));
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Generates an AI-powered explanation for a lead score result based on event data.
|
|
312
|
+
* Get lead score explanation
|
|
313
|
+
*/
|
|
314
|
+
async linksServiceGetLeadScoreExplanation(requestParameters, initOverrides) {
|
|
315
|
+
const response = await this.linksServiceGetLeadScoreExplanationRaw(requestParameters, initOverrides);
|
|
316
|
+
return await response.value();
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Creates request options for linksServiceList without sending the request
|
|
320
|
+
*/
|
|
321
|
+
async linksServiceListRequestOpts(requestParameters) {
|
|
322
|
+
if (requestParameters['pageSize'] == null) {
|
|
323
|
+
throw new runtime.RequiredError('pageSize', 'Required parameter "pageSize" was null or undefined when calling linksServiceList().');
|
|
324
|
+
}
|
|
325
|
+
const queryParameters = {};
|
|
326
|
+
if (requestParameters['pageSize'] != null) {
|
|
327
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
328
|
+
}
|
|
329
|
+
if (requestParameters['pageToken'] != null) {
|
|
330
|
+
queryParameters['pageToken'] = requestParameters['pageToken'];
|
|
331
|
+
}
|
|
332
|
+
if (requestParameters['include'] != null) {
|
|
333
|
+
queryParameters['include'] = requestParameters['include'];
|
|
334
|
+
}
|
|
335
|
+
if (requestParameters['tags'] != null) {
|
|
336
|
+
queryParameters['tags'] = requestParameters['tags'];
|
|
337
|
+
}
|
|
338
|
+
if (requestParameters['search'] != null) {
|
|
339
|
+
queryParameters['search'] = requestParameters['search'];
|
|
340
|
+
}
|
|
341
|
+
if (requestParameters['sortBy'] != null) {
|
|
342
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['sortDirection'] != null) {
|
|
345
|
+
queryParameters['sortDirection'] = requestParameters['sortDirection'];
|
|
346
|
+
}
|
|
347
|
+
const headerParameters = {};
|
|
348
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
349
|
+
const token = this.configuration.accessToken;
|
|
350
|
+
const tokenString = await token("bearerAuth", []);
|
|
351
|
+
if (tokenString) {
|
|
352
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
let urlPath = `/v1/links`;
|
|
356
|
+
return {
|
|
357
|
+
path: urlPath,
|
|
358
|
+
method: 'GET',
|
|
359
|
+
headers: headerParameters,
|
|
360
|
+
query: queryParameters,
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Retrieves the shortened links for your workspace
|
|
365
|
+
* List links
|
|
366
|
+
*/
|
|
367
|
+
async linksServiceListRaw(requestParameters, initOverrides) {
|
|
368
|
+
const requestOptions = await this.linksServiceListRequestOpts(requestParameters);
|
|
369
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
370
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListLinksResponseFromJSON)(jsonValue));
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Retrieves the shortened links for your workspace
|
|
374
|
+
* List links
|
|
375
|
+
*/
|
|
376
|
+
async linksServiceList(requestParameters, initOverrides) {
|
|
377
|
+
const response = await this.linksServiceListRaw(requestParameters, initOverrides);
|
|
378
|
+
return await response.value();
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Creates request options for linksServiceShortlinkAvailability without sending the request
|
|
382
|
+
*/
|
|
383
|
+
async linksServiceShortlinkAvailabilityRequestOpts(requestParameters) {
|
|
384
|
+
const queryParameters = {};
|
|
385
|
+
if (requestParameters['shortlink'] != null) {
|
|
386
|
+
queryParameters['shortlink'] = requestParameters['shortlink'];
|
|
387
|
+
}
|
|
388
|
+
if (requestParameters['customDomainId'] != null) {
|
|
389
|
+
queryParameters['customDomainId'] = requestParameters['customDomainId'];
|
|
390
|
+
}
|
|
391
|
+
const headerParameters = {};
|
|
392
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
393
|
+
const token = this.configuration.accessToken;
|
|
394
|
+
const tokenString = await token("bearerAuth", []);
|
|
395
|
+
if (tokenString) {
|
|
396
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
let urlPath = `/v1/links/shortlink-availability`;
|
|
400
|
+
return {
|
|
401
|
+
path: urlPath,
|
|
402
|
+
method: 'GET',
|
|
403
|
+
headers: headerParameters,
|
|
404
|
+
query: queryParameters,
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Checks if a shortlink is available for use to create a new link. A custom domain can be provided to check against. It typically checks the shortlink slugs and shortlink IDs already present within the system.
|
|
409
|
+
* Check shortlink availability
|
|
410
|
+
*/
|
|
411
|
+
async linksServiceShortlinkAvailabilityRaw(requestParameters, initOverrides) {
|
|
412
|
+
const requestOptions = await this.linksServiceShortlinkAvailabilityRequestOpts(requestParameters);
|
|
413
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
414
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ShortlinkAvailabilityResponseFromJSON)(jsonValue));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Checks if a shortlink is available for use to create a new link. A custom domain can be provided to check against. It typically checks the shortlink slugs and shortlink IDs already present within the system.
|
|
418
|
+
* Check shortlink availability
|
|
419
|
+
*/
|
|
420
|
+
async linksServiceShortlinkAvailability(requestParameters = {}, initOverrides) {
|
|
421
|
+
const response = await this.linksServiceShortlinkAvailabilityRaw(requestParameters, initOverrides);
|
|
422
|
+
return await response.value();
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Creates request options for linksServiceShortlinkRandom without sending the request
|
|
426
|
+
*/
|
|
427
|
+
async linksServiceShortlinkRandomRequestOpts() {
|
|
428
|
+
const queryParameters = {};
|
|
429
|
+
const headerParameters = {};
|
|
430
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
431
|
+
const token = this.configuration.accessToken;
|
|
432
|
+
const tokenString = await token("bearerAuth", []);
|
|
433
|
+
if (tokenString) {
|
|
434
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
let urlPath = `/v1/links/shortlink-random`;
|
|
438
|
+
return {
|
|
439
|
+
path: urlPath,
|
|
440
|
+
method: 'GET',
|
|
441
|
+
headers: headerParameters,
|
|
442
|
+
query: queryParameters,
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Generates a random availableshortlink for a new link.
|
|
447
|
+
* Get a random shortlink
|
|
448
|
+
*/
|
|
449
|
+
async linksServiceShortlinkRandomRaw(initOverrides) {
|
|
450
|
+
const requestOptions = await this.linksServiceShortlinkRandomRequestOpts();
|
|
451
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
452
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ShortlinkRandomResponseFromJSON)(jsonValue));
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Generates a random availableshortlink for a new link.
|
|
456
|
+
* Get a random shortlink
|
|
457
|
+
*/
|
|
458
|
+
async linksServiceShortlinkRandom(initOverrides) {
|
|
459
|
+
const response = await this.linksServiceShortlinkRandomRaw(initOverrides);
|
|
460
|
+
return await response.value();
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Creates request options for linksServiceUpdate without sending the request
|
|
464
|
+
*/
|
|
465
|
+
async linksServiceUpdateRequestOpts(requestParameters) {
|
|
466
|
+
if (requestParameters['id'] == null) {
|
|
467
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling linksServiceUpdate().');
|
|
468
|
+
}
|
|
469
|
+
if (requestParameters['linksServiceUpdateBody'] == null) {
|
|
470
|
+
throw new runtime.RequiredError('linksServiceUpdateBody', 'Required parameter "linksServiceUpdateBody" was null or undefined when calling linksServiceUpdate().');
|
|
471
|
+
}
|
|
472
|
+
const queryParameters = {};
|
|
473
|
+
const headerParameters = {};
|
|
474
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
475
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
476
|
+
const token = this.configuration.accessToken;
|
|
477
|
+
const tokenString = await token("bearerAuth", []);
|
|
478
|
+
if (tokenString) {
|
|
479
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
let urlPath = `/v1/links/{id}`;
|
|
483
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
484
|
+
return {
|
|
485
|
+
path: urlPath,
|
|
486
|
+
method: 'PATCH',
|
|
487
|
+
headers: headerParameters,
|
|
488
|
+
query: queryParameters,
|
|
489
|
+
body: (0, index_1.LinksServiceUpdateBodyToJSON)(requestParameters['linksServiceUpdateBody']),
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* Updates an existing shortened link in your Linkbreakers workspace.
|
|
494
|
+
* Update a link
|
|
495
|
+
*/
|
|
496
|
+
async linksServiceUpdateRaw(requestParameters, initOverrides) {
|
|
497
|
+
const requestOptions = await this.linksServiceUpdateRequestOpts(requestParameters);
|
|
498
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
499
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UpdateLinkResponseFromJSON)(jsonValue));
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Updates an existing shortened link in your Linkbreakers workspace.
|
|
503
|
+
* Update a link
|
|
504
|
+
*/
|
|
505
|
+
async linksServiceUpdate(requestParameters, initOverrides) {
|
|
506
|
+
const response = await this.linksServiceUpdateRaw(requestParameters, initOverrides);
|
|
507
|
+
return await response.value();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
exports.LinksApi = LinksApi;
|