@parra/parra-js-sdk 0.3.120 → 0.3.121

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.
@@ -1889,29 +1889,32 @@ export interface UserCollectionResponse {
1889
1889
  total_count: number;
1890
1890
  data: Array<UserResponse>;
1891
1891
  }
1892
+ type Options = {
1893
+ signal?: AbortSignal | null;
1894
+ };
1892
1895
  declare class ParraAPI {
1893
1896
  private http;
1894
1897
  private options;
1895
1898
  constructor(http: HTTPClient, options: {
1896
1899
  baseUrl: string;
1897
1900
  });
1898
- checkAuthorization: (body: CheckAuthorizationRequestBody) => Promise<CheckAuthorization>;
1899
- getUserInfo: () => Promise<UserInfoResponse>;
1900
- getParraAuthToken: () => Promise<AuthToken>;
1901
- uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageWithGroupRequestBody) => Promise<ImageAsset>;
1902
- uploadAvatarForUser: (body: UploadImageRequestBody) => Promise<ImageAssetStub>;
1903
- uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody) => Promise<ImageAssetStub>;
1904
- uploadIconForTenantApplication: (tenant_id: string, application_id: string, body: UploadImageRequestBody) => Promise<ImageAsset>;
1905
- uploadHeaderForTenantRelease: (tenant_id: string, release_id: string, body: UploadImageRequestBody) => Promise<ImageAsset>;
1906
- uploadAttachmentForTicketById: (tenant_id: string, ticket_id: string, body: UploadImageRequestBody) => Promise<ImageAsset>;
1907
- uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody) => Promise<ImageAsset>;
1908
- createCheckoutSession: (body: CreateCheckoutSessionRequestBody) => Promise<CheckoutSession>;
1909
- getPlansForTenantById: (tenant_id: string) => Promise<TenantPlansResponse>;
1910
- createBillingPortalSession: (tenant_id: string) => Promise<BillingPortalSession>;
1911
- createSubscriberForAudienceById: (audience_id: string, body: CreateSubscriberRequestBody) => Promise<Response>;
1912
- getFormById: (feedback_form_id: string) => Promise<FeedbackFormDataStub>;
1913
- submitFormById: (feedback_form_id: string, body?: SubmitFeedbackFormResponseBody) => Promise<Response>;
1914
- createQuestion: (body: CreateQuestionRequestBody) => Promise<Question>;
1901
+ checkAuthorization: (body: CheckAuthorizationRequestBody, options?: Options) => Promise<CheckAuthorization>;
1902
+ getUserInfo: (options?: Options) => Promise<UserInfoResponse>;
1903
+ getParraAuthToken: (options?: Options) => Promise<AuthToken>;
1904
+ uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageWithGroupRequestBody, options?: Options) => Promise<ImageAsset>;
1905
+ uploadAvatarForUser: (body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
1906
+ uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAssetStub>;
1907
+ uploadIconForTenantApplication: (tenant_id: string, application_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
1908
+ uploadHeaderForTenantRelease: (tenant_id: string, release_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
1909
+ uploadAttachmentForTicketById: (tenant_id: string, ticket_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
1910
+ uploadLogoForTenantById: (tenant_id: string, body: UploadImageRequestBody, options?: Options) => Promise<ImageAsset>;
1911
+ createCheckoutSession: (body: CreateCheckoutSessionRequestBody, options?: Options) => Promise<CheckoutSession>;
1912
+ getPlansForTenantById: (tenant_id: string, options?: Options) => Promise<TenantPlansResponse>;
1913
+ createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
1914
+ createSubscriberForAudienceById: (audience_id: string, body: CreateSubscriberRequestBody, options?: Options) => Promise<Response>;
1915
+ getFormById: (feedback_form_id: string, options?: Options) => Promise<FeedbackFormDataStub>;
1916
+ submitFormById: (feedback_form_id: string, body?: SubmitFeedbackFormResponseBody, options?: Options) => Promise<Response>;
1917
+ createQuestion: (body: CreateQuestionRequestBody, options?: Options) => Promise<Question>;
1915
1918
  paginateQuestions: (query?: {
1916
1919
  $select?: string;
1917
1920
  $top?: number;
@@ -1920,12 +1923,12 @@ declare class ParraAPI {
1920
1923
  $filter?: string;
1921
1924
  $expand?: string;
1922
1925
  $search?: string;
1923
- }) => Promise<QuestionCollectionResponse>;
1926
+ }, options?: Options) => Promise<QuestionCollectionResponse>;
1924
1927
  getQuestionById: (question_id: string, query?: {
1925
1928
  campaign_id?: string;
1926
- }) => Promise<Question>;
1927
- updateQuestionById: (question_id: string, body: UpdateQuestionRequestBody) => Promise<Question>;
1928
- deleteQuestionById: (question_id: string) => Promise<Response>;
1929
+ }, options?: Options) => Promise<Question>;
1930
+ updateQuestionById: (question_id: string, body: UpdateQuestionRequestBody, options?: Options) => Promise<Question>;
1931
+ deleteQuestionById: (question_id: string, options?: Options) => Promise<Response>;
1929
1932
  paginateAnswersForQuestionById: (question_id: string, query?: {
1930
1933
  $select?: string;
1931
1934
  $top?: number;
@@ -1934,12 +1937,12 @@ declare class ParraAPI {
1934
1937
  $filter?: string;
1935
1938
  $expand?: string;
1936
1939
  $search?: string;
1937
- }) => Promise<AnswerCollectionResponse>;
1938
- answerQuestionById: (question_id: string, body: AnswerQuestionBody) => Promise<Response>;
1939
- bulkAnswerQuestions: (body?: BulkAnswersQuestionBody) => Promise<Response>;
1940
+ }, options?: Options) => Promise<AnswerCollectionResponse>;
1941
+ answerQuestionById: (question_id: string, body: AnswerQuestionBody, options?: Options) => Promise<Response>;
1942
+ bulkAnswerQuestions: (body?: BulkAnswersQuestionBody, options?: Options) => Promise<Response>;
1940
1943
  getCardsForTenantById: (tenant_id: string, query?: {
1941
1944
  app_area_id?: string;
1942
- }) => Promise<CardsResponse>;
1945
+ }, options?: Options) => Promise<CardsResponse>;
1943
1946
  paginateFeedbackFormsForTenantById: (tenant_id: string, query?: {
1944
1947
  $select?: string;
1945
1948
  $top?: number;
@@ -1948,13 +1951,13 @@ declare class ParraAPI {
1948
1951
  $filter?: string;
1949
1952
  $expand?: string;
1950
1953
  $search?: string;
1951
- }) => Promise<FeedbackFormCollectionResponse>;
1952
- createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
1954
+ }, options?: Options) => Promise<FeedbackFormCollectionResponse>;
1955
+ createFeedbackFormForTenantById: (tenant_id: string, body?: CreateFeedbackFormRequestBody, options?: Options) => Promise<FeedbackFormResponse>;
1953
1956
  getFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
1954
1957
  include?: string;
1955
- }) => Promise<FeedbackFormResponse>;
1956
- updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody) => Promise<FeedbackFormResponse>;
1957
- deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string) => Promise<Response>;
1958
+ }, options?: Options) => Promise<FeedbackFormResponse>;
1959
+ updateFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, body: UpdateFeedbackFormRequestBody, options?: Options) => Promise<FeedbackFormResponse>;
1960
+ deleteFeedbackFormForTenantById: (tenant_id: string, feedback_form_id: string, options?: Options) => Promise<Response>;
1958
1961
  paginateFeedbackFormResponsesForTenantById: (tenant_id: string, feedback_form_id: string, query?: {
1959
1962
  $select?: string;
1960
1963
  $top?: number;
@@ -1963,8 +1966,8 @@ declare class ParraAPI {
1963
1966
  $filter?: string;
1964
1967
  $expand?: string;
1965
1968
  $search?: string;
1966
- }) => Promise<FeedbackFormSubmissionCollectionResponse>;
1967
- createAnalyticEventTypeForTenantById: (tenant_id: string, body: CreateAnalyticEventTypeRequestBody) => Promise<AnalyticEventType>;
1969
+ }, options?: Options) => Promise<FeedbackFormSubmissionCollectionResponse>;
1970
+ createAnalyticEventTypeForTenantById: (tenant_id: string, body: CreateAnalyticEventTypeRequestBody, options?: Options) => Promise<AnalyticEventType>;
1968
1971
  paginateAnalyticEventTypesForTenantById: (tenant_id: string, query?: {
1969
1972
  $select?: string;
1970
1973
  $top?: number;
@@ -1973,13 +1976,13 @@ declare class ParraAPI {
1973
1976
  $filter?: string;
1974
1977
  $expand?: string;
1975
1978
  $search?: string;
1976
- }) => Promise<AnalyticEventTypeCollectionResponse>;
1977
- createAppArea: (tenant_id: string, body?: CreateAppAreaRequestBody) => Promise<AppArea>;
1978
- listAppAreas: (tenant_id: string) => Promise<Array<AppArea>>;
1979
- getAppAreaById: (tenant_id: string, app_area_id: string) => Promise<AppArea>;
1980
- updateAppAreaById: (tenant_id: string, app_area_id: string, body: UpdateAppAreaRequestBody) => Promise<AppArea>;
1981
- deleteAppAreaById: (tenant_id: string, app_area_id: string) => Promise<Response>;
1982
- createCampaign: (tenant_id: string, body?: CreateCampaignRequestBody) => Promise<Campaign>;
1979
+ }, options?: Options) => Promise<AnalyticEventTypeCollectionResponse>;
1980
+ createAppArea: (tenant_id: string, body?: CreateAppAreaRequestBody, options?: Options) => Promise<AppArea>;
1981
+ listAppAreas: (tenant_id: string, options?: Options) => Promise<Array<AppArea>>;
1982
+ getAppAreaById: (tenant_id: string, app_area_id: string, options?: Options) => Promise<AppArea>;
1983
+ updateAppAreaById: (tenant_id: string, app_area_id: string, body: UpdateAppAreaRequestBody, options?: Options) => Promise<AppArea>;
1984
+ deleteAppAreaById: (tenant_id: string, app_area_id: string, options?: Options) => Promise<Response>;
1985
+ createCampaign: (tenant_id: string, body?: CreateCampaignRequestBody, options?: Options) => Promise<Campaign>;
1983
1986
  paginateCampaignsForTenantById: (tenant_id: string, query?: {
1984
1987
  $select?: string;
1985
1988
  $top?: number;
@@ -1988,14 +1991,14 @@ declare class ParraAPI {
1988
1991
  $filter?: string;
1989
1992
  $expand?: string;
1990
1993
  $search?: string;
1991
- }) => Promise<CampaignCollectionResponse>;
1994
+ }, options?: Options) => Promise<CampaignCollectionResponse>;
1992
1995
  getCampaignById: (tenant_id: string, campaign_id: string, query?: {
1993
1996
  include?: string;
1994
- }) => Promise<Campaign>;
1995
- updateCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody) => Promise<Campaign>;
1996
- deleteCampaignById: (tenant_id: string, campaign_id: string) => Promise<Response>;
1997
- closeCampaignById: (tenant_id: string, campaign_id: string) => Promise<Campaign>;
1998
- publishCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody) => Promise<Campaign>;
1997
+ }, options?: Options) => Promise<Campaign>;
1998
+ updateCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody, options?: Options) => Promise<Campaign>;
1999
+ deleteCampaignById: (tenant_id: string, campaign_id: string, options?: Options) => Promise<Response>;
2000
+ closeCampaignById: (tenant_id: string, campaign_id: string, options?: Options) => Promise<Campaign>;
2001
+ publishCampaignById: (tenant_id: string, campaign_id: string, body?: UpdateCampaignRequestBody, options?: Options) => Promise<Campaign>;
1999
2002
  paginateTemplatesForTenantById: (tenant_id: string, query?: {
2000
2003
  $select?: string;
2001
2004
  $top?: number;
@@ -2004,8 +2007,8 @@ declare class ParraAPI {
2004
2007
  $filter?: string;
2005
2008
  $expand?: string;
2006
2009
  $search?: string;
2007
- }) => Promise<TemplateCollectionResponse>;
2008
- cloneTemplateForTenantById: (tenant_id: string, template_id: string) => Promise<Template>;
2010
+ }, options?: Options) => Promise<TemplateCollectionResponse>;
2011
+ cloneTemplateForTenantById: (tenant_id: string, template_id: string, options?: Options) => Promise<Template>;
2009
2012
  paginateTemplateTags: (query?: {
2010
2013
  $select?: string;
2011
2014
  $top?: number;
@@ -2014,10 +2017,10 @@ declare class ParraAPI {
2014
2017
  $filter?: string;
2015
2018
  $expand?: string;
2016
2019
  $search?: string;
2017
- }) => Promise<TemplateTagCollectionResponse>;
2018
- createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody) => Promise<Board>;
2019
- listBoardsForTenantById: (tenant_id: string) => Promise<Array<Board>>;
2020
- createTicketForBoard: (tenant_id: string, board_id: string, body: CreateTicketRequestBody) => Promise<Ticket>;
2020
+ }, options?: Options) => Promise<TemplateTagCollectionResponse>;
2021
+ createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody, options?: Options) => Promise<Board>;
2022
+ listBoardsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<Board>>;
2023
+ createTicketForBoard: (tenant_id: string, board_id: string, body: CreateTicketRequestBody, options?: Options) => Promise<Ticket>;
2021
2024
  paginateTicketsForBoard: (tenant_id: string, board_id: string, query?: {
2022
2025
  $select?: string;
2023
2026
  $top?: number;
@@ -2026,8 +2029,8 @@ declare class ParraAPI {
2026
2029
  $filter?: string;
2027
2030
  $expand?: string;
2028
2031
  $search?: string;
2029
- }) => Promise<TicketCollectionResponse>;
2030
- createUserNoteForBoard: (tenant_id: string, board_id: string, body: CreateUserNoteRequestBody) => Promise<UserNote>;
2032
+ }, options?: Options) => Promise<TicketCollectionResponse>;
2033
+ createUserNoteForBoard: (tenant_id: string, board_id: string, body: CreateUserNoteRequestBody, options?: Options) => Promise<UserNote>;
2031
2034
  paginateUserNotesForBoard: (tenant_id: string, board_id: string, query?: {
2032
2035
  $select?: string;
2033
2036
  $top?: number;
@@ -2036,21 +2039,21 @@ declare class ParraAPI {
2036
2039
  $filter?: string;
2037
2040
  $expand?: string;
2038
2041
  $search?: string;
2039
- }) => Promise<UserNoteCollectionResponse>;
2040
- generateUserNoteMetricsForBoard: (tenant_id: string, board_id: string) => Promise<UserNoteMetrics>;
2041
- deleteUserNoteById: (tenant_id: string, user_note_id: string) => Promise<Response>;
2042
- linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody) => Promise<Response>;
2043
- bulkUpdateTickets: (tenant_id: string, body?: BulkUpdateTicketsRequestBody) => Promise<Response>;
2044
- getTicketById: (tenant_id: string, ticket_id: string) => Promise<Ticket>;
2045
- updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody) => Promise<Ticket>;
2046
- deleteTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
2047
- deleteAttachmentForTicketById: (tenant_id: string, ticket_id: string, ticket_attachment_id: string) => Promise<Response>;
2048
- updateReleaseForTicketById: (tenant_id: string, ticket_id: string, body: UpdateReleaseForTicketRequestBody) => Promise<Ticket>;
2049
- removeReleaseFromTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
2050
- voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
2051
- removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
2052
- generateNextReleaseVersionInfoForTenantById: (tenant_id: string, body: ReleaseVersionInfoRequestBody) => Promise<ReleaseVersionInfo>;
2053
- createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
2042
+ }, options?: Options) => Promise<UserNoteCollectionResponse>;
2043
+ generateUserNoteMetricsForBoard: (tenant_id: string, board_id: string, options?: Options) => Promise<UserNoteMetrics>;
2044
+ deleteUserNoteById: (tenant_id: string, user_note_id: string, options?: Options) => Promise<Response>;
2045
+ linkUserNoteToTicket: (tenant_id: string, user_note_id: string, body: LinkUserNoteRequestBody, options?: Options) => Promise<Response>;
2046
+ bulkUpdateTickets: (tenant_id: string, body?: BulkUpdateTicketsRequestBody, options?: Options) => Promise<Response>;
2047
+ getTicketById: (tenant_id: string, ticket_id: string, options?: Options) => Promise<Ticket>;
2048
+ updateTicketById: (tenant_id: string, ticket_id: string, body?: UpdateTicketRequestBody, options?: Options) => Promise<Ticket>;
2049
+ deleteTicketById: (tenant_id: string, ticket_id: string, options?: Options) => Promise<Response>;
2050
+ deleteAttachmentForTicketById: (tenant_id: string, ticket_id: string, ticket_attachment_id: string, options?: Options) => Promise<Response>;
2051
+ updateReleaseForTicketById: (tenant_id: string, ticket_id: string, body: UpdateReleaseForTicketRequestBody, options?: Options) => Promise<Ticket>;
2052
+ removeReleaseFromTicketById: (tenant_id: string, ticket_id: string, options?: Options) => Promise<Response>;
2053
+ voteForTicketById: (tenant_id: string, ticket_id: string, options?: Options) => Promise<UserTicket>;
2054
+ removeVoteForTicketById: (tenant_id: string, ticket_id: string, options?: Options) => Promise<UserTicket>;
2055
+ generateNextReleaseVersionInfoForTenantById: (tenant_id: string, body: ReleaseVersionInfoRequestBody, options?: Options) => Promise<ReleaseVersionInfo>;
2056
+ createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody, options?: Options) => Promise<Release>;
2054
2057
  paginateReleasesForTenantById: (tenant_id: string, query?: {
2055
2058
  $select?: string;
2056
2059
  $top?: number;
@@ -2059,41 +2062,41 @@ declare class ParraAPI {
2059
2062
  $filter?: string;
2060
2063
  $expand?: string;
2061
2064
  $search?: string;
2062
- }) => Promise<ReleaseCollectionResponse>;
2063
- getReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Release>;
2064
- updateReleaseForTenantById: (tenant_id: string, release_id: string, body?: UpdateReleaseRequestBody) => Promise<Release>;
2065
- deleteReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Response>;
2066
- cutReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Release>;
2067
- createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody) => Promise<ReleaseItem>;
2065
+ }, options?: Options) => Promise<ReleaseCollectionResponse>;
2066
+ getReleaseForTenantById: (tenant_id: string, release_id: string, options?: Options) => Promise<Release>;
2067
+ updateReleaseForTenantById: (tenant_id: string, release_id: string, body?: UpdateReleaseRequestBody, options?: Options) => Promise<Release>;
2068
+ deleteReleaseForTenantById: (tenant_id: string, release_id: string, options?: Options) => Promise<Response>;
2069
+ cutReleaseForTenantById: (tenant_id: string, release_id: string, options?: Options) => Promise<Release>;
2070
+ createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody, options?: Options) => Promise<ReleaseItem>;
2068
2071
  getAppInfoForTenantApplication: (tenant_id: string, application_id: string, query?: {
2069
2072
  version_token?: string;
2070
- }) => Promise<AppInfo>;
2073
+ }, options?: Options) => Promise<AppInfo>;
2071
2074
  paginateTicketsForApplication: (tenant_id: string, application_id: string, query?: {
2072
2075
  limit?: number;
2073
2076
  offset?: number;
2074
2077
  filter?: string;
2075
- }) => Promise<UserTicketCollectionResponse>;
2076
- getRoadmapForTenantApplication: (tenant_id: string, application_id: string) => Promise<AppRoadmapConfiguration>;
2078
+ }, options?: Options) => Promise<UserTicketCollectionResponse>;
2079
+ getRoadmapForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<AppRoadmapConfiguration>;
2077
2080
  paginateReleasesForTenantApplication: (tenant_id: string, application_id: string, query?: {
2078
2081
  limit?: number;
2079
2082
  offset?: number;
2080
- }) => Promise<AppReleaseCollectionResponse>;
2081
- getReleaseForTenantApplication: (tenant_id: string, application_id: string, release_id: string) => Promise<AppRelease>;
2082
- createVersionForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppVersionRequestBody) => Promise<AppVersion>;
2083
- listVersionsForTenantApplication: (tenant_id: string, application_id: string) => Promise<Array<AppVersion>>;
2084
- getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
2085
- updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody) => Promise<AppVersion>;
2086
- deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<Response>;
2087
- updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody) => Promise<ApnsConfiguration>;
2088
- getApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string) => Promise<ApnsConfiguration>;
2083
+ }, options?: Options) => Promise<AppReleaseCollectionResponse>;
2084
+ getReleaseForTenantApplication: (tenant_id: string, application_id: string, release_id: string, options?: Options) => Promise<AppRelease>;
2085
+ createVersionForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppVersionRequestBody, options?: Options) => Promise<AppVersion>;
2086
+ listVersionsForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Array<AppVersion>>;
2087
+ getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, options?: Options) => Promise<AppVersion>;
2088
+ updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody, options?: Options) => Promise<AppVersion>;
2089
+ deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, options?: Options) => Promise<Response>;
2090
+ updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody, options?: Options) => Promise<ApnsConfiguration>;
2091
+ getApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<ApnsConfiguration>;
2089
2092
  getInboxItemsForTenantUser: (tenant_id: string, query?: {
2090
2093
  limit?: number;
2091
2094
  offset?: number;
2092
2095
  segment?: string;
2093
2096
  archived?: boolean;
2094
- }) => Promise<InboxItemCollectionResponse>;
2095
- readInboxItemsForTenantUser: (tenant_id: string, body: ReadInboxItemsRequestBody) => Promise<Response>;
2096
- createNotificationTemplate: (tenant_id: string, body?: CreateNotificationTemplateRequestBody) => Promise<NotificationTemplate>;
2097
+ }, options?: Options) => Promise<InboxItemCollectionResponse>;
2098
+ readInboxItemsForTenantUser: (tenant_id: string, body: ReadInboxItemsRequestBody, options?: Options) => Promise<Response>;
2099
+ createNotificationTemplate: (tenant_id: string, body?: CreateNotificationTemplateRequestBody, options?: Options) => Promise<NotificationTemplate>;
2097
2100
  paginateNotificationTemplatesForTenantById: (tenant_id: string, query?: {
2098
2101
  $select?: string;
2099
2102
  $top?: number;
@@ -2102,24 +2105,24 @@ declare class ParraAPI {
2102
2105
  $filter?: string;
2103
2106
  $expand?: string;
2104
2107
  $search?: string;
2105
- }) => Promise<NotificationTemplateCollectionResponse>;
2108
+ }, options?: Options) => Promise<NotificationTemplateCollectionResponse>;
2106
2109
  getNotificationTemplateById: (tenant_id: string, notification_template_id: string, query?: {
2107
2110
  include?: string;
2108
- }) => Promise<NotificationTemplate>;
2109
- updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body: UpdateNotificationTemplateRequestBody) => Promise<NotificationTemplate>;
2110
- deleteNotificationTemplateById: (tenant_id: string, notification_template_id: string) => Promise<Response>;
2111
- createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody) => Promise<Channel>;
2112
- updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody) => Promise<Channel>;
2113
- deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string) => Promise<Response>;
2114
- checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody) => Promise<SubdomainAvailabilityResponse>;
2115
- loginUserForTenant: (tenant_id: string) => Promise<TenantUserInfo>;
2116
- getTenantUserInfo: (tenant_id: string) => Promise<TenantUserInfo>;
2117
- logoutUserForTenant: (tenant_id: string) => Promise<Response>;
2118
- getClientForTenantApplication: (tenant_id: string, application_id: string) => Promise<Client>;
2119
- createClientForTenantApplication: (tenant_id: string, application_id: string) => Promise<Client>;
2120
- updateClientForTenantApplication: (tenant_id: string, application_id: string, body?: UpdateClientRequestBody) => Promise<Client>;
2121
- deleteClientForTenantApplication: (tenant_id: string, application_id: string) => Promise<Response>;
2122
- createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
2111
+ }, options?: Options) => Promise<NotificationTemplate>;
2112
+ updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body: UpdateNotificationTemplateRequestBody, options?: Options) => Promise<NotificationTemplate>;
2113
+ deleteNotificationTemplateById: (tenant_id: string, notification_template_id: string, options?: Options) => Promise<Response>;
2114
+ createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody, options?: Options) => Promise<Channel>;
2115
+ updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody, options?: Options) => Promise<Channel>;
2116
+ deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, options?: Options) => Promise<Response>;
2117
+ checkSubdomainAvailability: (body: SubdomainAvailabilityRequestBody, options?: Options) => Promise<SubdomainAvailabilityResponse>;
2118
+ loginUserForTenant: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
2119
+ getTenantUserInfo: (tenant_id: string, options?: Options) => Promise<TenantUserInfo>;
2120
+ logoutUserForTenant: (tenant_id: string, options?: Options) => Promise<Response>;
2121
+ getClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Client>;
2122
+ createClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Client>;
2123
+ updateClientForTenantApplication: (tenant_id: string, application_id: string, body?: UpdateClientRequestBody, options?: Options) => Promise<Client>;
2124
+ deleteClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
2125
+ createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody, options?: Options) => Promise<Application>;
2123
2126
  paginateApplicationsForTenantById: (tenant_id: string, query?: {
2124
2127
  $select?: string;
2125
2128
  $top?: number;
@@ -2128,40 +2131,40 @@ declare class ParraAPI {
2128
2131
  $filter?: string;
2129
2132
  $expand?: string;
2130
2133
  $search?: string;
2131
- }) => Promise<ApplicationCollectionResponse>;
2132
- getApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Application>;
2133
- updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody) => Promise<Application>;
2134
- deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
2135
- getTenantForApiKeyById: (api_key_id: string) => Promise<Tenant>;
2136
- acceptInvitationByCode: (invitation_code: string) => Promise<TenantInvitation>;
2137
- deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
2138
- createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody) => Promise<ApiKeyWithSecretResponse>;
2139
- getApiKeysForTenantById: (tenant_id: string) => Promise<ApiKeyCollectionResponse>;
2134
+ }, options?: Options) => Promise<ApplicationCollectionResponse>;
2135
+ getApplicationByIdForTenantById: (tenant_id: string, application_id: string, options?: Options) => Promise<Application>;
2136
+ updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody, options?: Options) => Promise<Application>;
2137
+ deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
2138
+ getTenantForApiKeyById: (api_key_id: string, options?: Options) => Promise<Tenant>;
2139
+ acceptInvitationByCode: (invitation_code: string, options?: Options) => Promise<TenantInvitation>;
2140
+ deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string, options?: Options) => Promise<Response>;
2141
+ createApiKeyForTenantById: (tenant_id: string, body: CreateApiKeyRequestBody, options?: Options) => Promise<ApiKeyWithSecretResponse>;
2142
+ getApiKeysForTenantById: (tenant_id: string, options?: Options) => Promise<ApiKeyCollectionResponse>;
2140
2143
  listConnectedAppsForTenantById: (tenant_id: string, query?: {
2141
2144
  include?: string;
2142
- }) => Promise<Array<TenantConnectedApp>>;
2143
- updateConnectedAppConnectionById: (tenant_id: string, connected_app_connection_id: string, body?: UpdateConnectedAppConnectionRequestBody) => Promise<ConnectedAppConnection>;
2144
- deleteConnectedAppConnectionById: (tenant_id: string, connected_app_connection_id: string) => Promise<ConnectedAppConnection>;
2145
- createConnectionForConnectedApp: (tenant_id: string, connected_app_id: string, body?: CreateConnectedAppConnectionRequestBody) => Promise<ConnectedAppConnection>;
2145
+ }, options?: Options) => Promise<Array<TenantConnectedApp>>;
2146
+ updateConnectedAppConnectionById: (tenant_id: string, connected_app_connection_id: string, body?: UpdateConnectedAppConnectionRequestBody, options?: Options) => Promise<ConnectedAppConnection>;
2147
+ deleteConnectedAppConnectionById: (tenant_id: string, connected_app_connection_id: string, options?: Options) => Promise<ConnectedAppConnection>;
2148
+ createConnectionForConnectedApp: (tenant_id: string, connected_app_id: string, body?: CreateConnectedAppConnectionRequestBody, options?: Options) => Promise<ConnectedAppConnection>;
2146
2149
  listIntegrationsForTenantById: (tenant_id: string, query?: {
2147
2150
  include?: string;
2148
2151
  collection: string;
2149
2152
  resource_id?: string;
2150
- }) => Promise<Array<TenantIntegration>>;
2151
- updateIntegrationConnectionById: (tenant_id: string, integration_connection_id: string, body?: UpdateIntegrationConnectionRequestBody) => Promise<IntegrationConnection>;
2152
- deleteIntegrationConnectionById: (tenant_id: string, integration_connection_id: string) => Promise<IntegrationConnection>;
2153
- updateDataForIntegrationConnectionById: (tenant_id: string, integration_connection_id: string, body?: UpdateIntegrationConnectionDataRequestBody) => Promise<IntegrationConnection>;
2154
- createConnectionForIntegration: (tenant_id: string, integration_id: string, body?: CreateIntegrationConnectionRequestBody) => Promise<IntegrationConnection>;
2155
- getInvitationsForTenantById: (tenant_id: string) => Promise<Array<TenantInvitation>>;
2156
- createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody) => Promise<TenantInvitation>;
2157
- getTeamMembersForTenantById: (tenant_id: string) => Promise<Array<TeamMember>>;
2158
- deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string) => Promise<Response>;
2153
+ }, options?: Options) => Promise<Array<TenantIntegration>>;
2154
+ updateIntegrationConnectionById: (tenant_id: string, integration_connection_id: string, body?: UpdateIntegrationConnectionRequestBody, options?: Options) => Promise<IntegrationConnection>;
2155
+ deleteIntegrationConnectionById: (tenant_id: string, integration_connection_id: string, options?: Options) => Promise<IntegrationConnection>;
2156
+ updateDataForIntegrationConnectionById: (tenant_id: string, integration_connection_id: string, body?: UpdateIntegrationConnectionDataRequestBody, options?: Options) => Promise<IntegrationConnection>;
2157
+ createConnectionForIntegration: (tenant_id: string, integration_id: string, body?: CreateIntegrationConnectionRequestBody, options?: Options) => Promise<IntegrationConnection>;
2158
+ getInvitationsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TenantInvitation>>;
2159
+ createInvitationForTenantById: (tenant_id: string, body: TenantInvitationRequestBody, options?: Options) => Promise<TenantInvitation>;
2160
+ getTeamMembersForTenantById: (tenant_id: string, options?: Options) => Promise<Array<TeamMember>>;
2161
+ deleteTeamMemberForTenantById: (tenant_id: string, team_member_id: string, options?: Options) => Promise<Response>;
2159
2162
  getUserForTenantById: (tenant_id: string, user_id: string, query?: {
2160
2163
  include?: string;
2161
- }) => Promise<TenantUser>;
2162
- updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody) => Promise<TenantUser>;
2163
- deleteUserForTenantById: (tenant_id: string, user_id: string) => Promise<Response>;
2164
- createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody) => Promise<TenantUser>;
2164
+ }, options?: Options) => Promise<TenantUser>;
2165
+ updateUserForTenantById: (tenant_id: string, user_id: string, body?: UpdateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
2166
+ deleteUserForTenantById: (tenant_id: string, user_id: string, options?: Options) => Promise<Response>;
2167
+ createUserForTenantById: (tenant_id: string, body?: CreateTenantUserRequestBody, options?: Options) => Promise<TenantUser>;
2165
2168
  paginateTenantUsersForTenantById: (tenant_id: string, query?: {
2166
2169
  $select?: string;
2167
2170
  $top?: number;
@@ -2170,19 +2173,19 @@ declare class ParraAPI {
2170
2173
  $filter?: string;
2171
2174
  $expand?: string;
2172
2175
  $search?: string;
2173
- }) => Promise<TenantUserCollectionResponse>;
2176
+ }, options?: Options) => Promise<TenantUserCollectionResponse>;
2174
2177
  getTenantById: (tenant_id: string, query?: {
2175
2178
  include?: string;
2176
- }) => Promise<Tenant>;
2177
- updateTenantById: (tenant_id: string, body?: UpdateTenantRequestBody) => Promise<Tenant>;
2178
- deleteTenantById: (tenant_id: string) => Promise<Response>;
2179
- createTenant: (body: CreateTenantRequestBody) => Promise<Tenant>;
2180
- createTenantForUserById: (user_id: string, body: CreateTenantForUserRequestBody) => Promise<Tenant>;
2181
- getTenantsForUserById: (user_id: string) => Promise<Array<Tenant>>;
2182
- getUserById: (user_id: string) => Promise<UserResponse>;
2183
- updateUserById: (user_id: string, body: UpdateUserRequestBody) => Promise<UserResponse>;
2184
- deleteUserById: (user_id: string) => Promise<Response>;
2185
- createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
2179
+ }, options?: Options) => Promise<Tenant>;
2180
+ updateTenantById: (tenant_id: string, body?: UpdateTenantRequestBody, options?: Options) => Promise<Tenant>;
2181
+ deleteTenantById: (tenant_id: string, options?: Options) => Promise<Response>;
2182
+ createTenant: (body: CreateTenantRequestBody, options?: Options) => Promise<Tenant>;
2183
+ createTenantForUserById: (user_id: string, body: CreateTenantForUserRequestBody, options?: Options) => Promise<Tenant>;
2184
+ getTenantsForUserById: (user_id: string, options?: Options) => Promise<Array<Tenant>>;
2185
+ getUserById: (user_id: string, options?: Options) => Promise<UserResponse>;
2186
+ updateUserById: (user_id: string, body: UpdateUserRequestBody, options?: Options) => Promise<UserResponse>;
2187
+ deleteUserById: (user_id: string, options?: Options) => Promise<Response>;
2188
+ createUser: (body: CreateUserRequestBody, options?: Options) => Promise<UserResponse>;
2186
2189
  listUsers: (query?: {
2187
2190
  $select?: string;
2188
2191
  $top?: number;
@@ -2191,6 +2194,6 @@ declare class ParraAPI {
2191
2194
  $filter?: string;
2192
2195
  $expand?: string;
2193
2196
  $search?: string;
2194
- }) => Promise<UserCollectionResponse>;
2197
+ }, options?: Options) => Promise<UserCollectionResponse>;
2195
2198
  }
2196
2199
  export default ParraAPI;