@parra/parra-js-sdk 0.3.120 → 0.3.122

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