|
| 1 | +import { BaseAPIRequestFactory } from './baseapi'; |
| 2 | +import { Configuration } from '../configuration'; |
| 3 | +import { RequestContext, ResponseContext } from '../http/http'; |
| 4 | +import { ApiKeyTokensListResponse } from '../models/ApiKeyTokensListResponse'; |
| 5 | +import { App } from '../models/App'; |
| 6 | +import { CopyTemplateRequest } from '../models/CopyTemplateRequest'; |
| 7 | +import { CreateApiKeyRequest } from '../models/CreateApiKeyRequest'; |
| 8 | +import { CreateApiKeyResponse } from '../models/CreateApiKeyResponse'; |
| 9 | +import { CreateNotificationSuccessResponse } from '../models/CreateNotificationSuccessResponse'; |
| 10 | +import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse'; |
| 11 | +import { CreateTemplateRequest } from '../models/CreateTemplateRequest'; |
| 12 | +import { CustomEventsRequest } from '../models/CustomEventsRequest'; |
| 13 | +import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse'; |
| 14 | +import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody'; |
| 15 | +import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse'; |
| 16 | +import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse'; |
| 17 | +import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody'; |
| 18 | +import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse'; |
| 19 | +import { Notification } from '../models/Notification'; |
| 20 | +import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse'; |
| 21 | +import { NotificationSlice } from '../models/NotificationSlice'; |
| 22 | +import { NotificationWithMeta } from '../models/NotificationWithMeta'; |
| 23 | +import { OutcomesData } from '../models/OutcomesData'; |
| 24 | +import { PropertiesBody } from '../models/PropertiesBody'; |
| 25 | +import { Segment } from '../models/Segment'; |
| 26 | +import { StartLiveActivityRequest } from '../models/StartLiveActivityRequest'; |
| 27 | +import { StartLiveActivitySuccessResponse } from '../models/StartLiveActivitySuccessResponse'; |
| 28 | +import { SubscriptionBody } from '../models/SubscriptionBody'; |
| 29 | +import { TemplateResource } from '../models/TemplateResource'; |
| 30 | +import { TemplatesListResponse } from '../models/TemplatesListResponse'; |
| 31 | +import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody'; |
| 32 | +import { UpdateApiKeyRequest } from '../models/UpdateApiKeyRequest'; |
| 33 | +import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest'; |
| 34 | +import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse'; |
| 35 | +import { UpdateTemplateRequest } from '../models/UpdateTemplateRequest'; |
| 36 | +import { UpdateUserRequest } from '../models/UpdateUserRequest'; |
| 37 | +import { User } from '../models/User'; |
| 38 | +import { UserIdentityBody } from '../models/UserIdentityBody'; |
| 39 | +export declare class DefaultApiRequestFactory extends BaseAPIRequestFactory { |
| 40 | + cancelNotification(appId: string, notificationId: string, _options?: Configuration): Promise<RequestContext>; |
| 41 | + copyTemplateToApp(templateId: string, appId: string, copyTemplateRequest: CopyTemplateRequest, _options?: Configuration): Promise<RequestContext>; |
| 42 | + createAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<RequestContext>; |
| 43 | + createAliasBySubscription(appId: string, subscriptionId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<RequestContext>; |
| 44 | + createApiKey(appId: string, createApiKeyRequest: CreateApiKeyRequest, _options?: Configuration): Promise<RequestContext>; |
| 45 | + createApp(app: App, _options?: Configuration): Promise<RequestContext>; |
| 46 | + createCustomEvents(appId: string, customEventsRequest: CustomEventsRequest, _options?: Configuration): Promise<RequestContext>; |
| 47 | + createNotification(notification: Notification, _options?: Configuration): Promise<RequestContext>; |
| 48 | + createSegment(appId: string, segment?: Segment, _options?: Configuration): Promise<RequestContext>; |
| 49 | + createSubscription(appId: string, aliasLabel: string, aliasId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>; |
| 50 | + createTemplate(createTemplateRequest: CreateTemplateRequest, _options?: Configuration): Promise<RequestContext>; |
| 51 | + createUser(appId: string, user: User, _options?: Configuration): Promise<RequestContext>; |
| 52 | + deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<RequestContext>; |
| 53 | + deleteApiKey(appId: string, tokenId: string, _options?: Configuration): Promise<RequestContext>; |
| 54 | + deleteSegment(appId: string, segmentId: string, _options?: Configuration): Promise<RequestContext>; |
| 55 | + deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>; |
| 56 | + deleteTemplate(templateId: string, appId: string, _options?: Configuration): Promise<RequestContext>; |
| 57 | + deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>; |
| 58 | + exportEvents(notificationId: string, appId: string, _options?: Configuration): Promise<RequestContext>; |
| 59 | + exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Promise<RequestContext>; |
| 60 | + getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>; |
| 61 | + getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>; |
| 62 | + getApp(appId: string, _options?: Configuration): Promise<RequestContext>; |
| 63 | + getApps(_options?: Configuration): Promise<RequestContext>; |
| 64 | + getNotification(appId: string, notificationId: string, _options?: Configuration): Promise<RequestContext>; |
| 65 | + getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Promise<RequestContext>; |
| 66 | + getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, _options?: Configuration): Promise<RequestContext>; |
| 67 | + getOutcomes(appId: string, outcomeNames: string, outcomeNames2?: string, outcomeTimeRange?: string, outcomePlatforms?: string, outcomeAttribution?: string, _options?: Configuration): Promise<RequestContext>; |
| 68 | + getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Promise<RequestContext>; |
| 69 | + getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>; |
| 70 | + rotateApiKey(appId: string, tokenId: string, _options?: Configuration): Promise<RequestContext>; |
| 71 | + startLiveActivity(appId: string, activityType: string, startLiveActivityRequest: StartLiveActivityRequest, _options?: Configuration): Promise<RequestContext>; |
| 72 | + transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>; |
| 73 | + unsubscribeEmailWithToken(appId: string, notificationId: string, token: string, _options?: Configuration): Promise<RequestContext>; |
| 74 | + updateApiKey(appId: string, tokenId: string, updateApiKeyRequest: UpdateApiKeyRequest, _options?: Configuration): Promise<RequestContext>; |
| 75 | + updateApp(appId: string, app: App, _options?: Configuration): Promise<RequestContext>; |
| 76 | + updateLiveActivity(appId: string, activityId: string, updateLiveActivityRequest: UpdateLiveActivityRequest, _options?: Configuration): Promise<RequestContext>; |
| 77 | + updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>; |
| 78 | + updateSubscriptionByToken(appId: string, tokenType: string, token: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>; |
| 79 | + updateTemplate(templateId: string, appId: string, updateTemplateRequest: UpdateTemplateRequest, _options?: Configuration): Promise<RequestContext>; |
| 80 | + updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Promise<RequestContext>; |
| 81 | + viewApiKeys(appId: string, _options?: Configuration): Promise<RequestContext>; |
| 82 | + viewTemplate(templateId: string, appId: string, _options?: Configuration): Promise<RequestContext>; |
| 83 | + viewTemplates(appId: string, limit?: number, offset?: number, channel?: 'push' | 'email' | 'sms', _options?: Configuration): Promise<RequestContext>; |
| 84 | +} |
| 85 | +export declare class DefaultApiResponseProcessor { |
| 86 | + cancelNotification(response: ResponseContext): Promise<GenericSuccessBoolResponse>; |
| 87 | + copyTemplateToApp(response: ResponseContext): Promise<TemplateResource>; |
| 88 | + createAlias(response: ResponseContext): Promise<UserIdentityBody>; |
| 89 | + createAliasBySubscription(response: ResponseContext): Promise<UserIdentityBody>; |
| 90 | + createApiKey(response: ResponseContext): Promise<CreateApiKeyResponse>; |
| 91 | + createApp(response: ResponseContext): Promise<App>; |
| 92 | + createCustomEvents(response: ResponseContext): Promise<object>; |
| 93 | + createNotification(response: ResponseContext): Promise<CreateNotificationSuccessResponse>; |
| 94 | + createSegment(response: ResponseContext): Promise<CreateSegmentSuccessResponse>; |
| 95 | + createSubscription(response: ResponseContext): Promise<SubscriptionBody>; |
| 96 | + createTemplate(response: ResponseContext): Promise<TemplateResource>; |
| 97 | + createUser(response: ResponseContext): Promise<User>; |
| 98 | + deleteAlias(response: ResponseContext): Promise<UserIdentityBody>; |
| 99 | + deleteApiKey(response: ResponseContext): Promise<object>; |
| 100 | + deleteSegment(response: ResponseContext): Promise<GenericSuccessBoolResponse>; |
| 101 | + deleteSubscription(response: ResponseContext): Promise<void>; |
| 102 | + deleteTemplate(response: ResponseContext): Promise<GenericSuccessBoolResponse>; |
| 103 | + deleteUser(response: ResponseContext): Promise<void>; |
| 104 | + exportEvents(response: ResponseContext): Promise<ExportEventsSuccessResponse>; |
| 105 | + exportSubscriptions(response: ResponseContext): Promise<ExportSubscriptionsSuccessResponse>; |
| 106 | + getAliases(response: ResponseContext): Promise<UserIdentityBody>; |
| 107 | + getAliasesBySubscription(response: ResponseContext): Promise<UserIdentityBody>; |
| 108 | + getApp(response: ResponseContext): Promise<App>; |
| 109 | + getApps(response: ResponseContext): Promise<Array<App>>; |
| 110 | + getNotification(response: ResponseContext): Promise<NotificationWithMeta>; |
| 111 | + getNotificationHistory(response: ResponseContext): Promise<NotificationHistorySuccessResponse>; |
| 112 | + getNotifications(response: ResponseContext): Promise<NotificationSlice>; |
| 113 | + getOutcomes(response: ResponseContext): Promise<OutcomesData>; |
| 114 | + getSegments(response: ResponseContext): Promise<GetSegmentsSuccessResponse>; |
| 115 | + getUser(response: ResponseContext): Promise<User>; |
| 116 | + rotateApiKey(response: ResponseContext): Promise<CreateApiKeyResponse>; |
| 117 | + startLiveActivity(response: ResponseContext): Promise<StartLiveActivitySuccessResponse>; |
| 118 | + transferSubscription(response: ResponseContext): Promise<UserIdentityBody>; |
| 119 | + unsubscribeEmailWithToken(response: ResponseContext): Promise<GenericSuccessBoolResponse>; |
| 120 | + updateApiKey(response: ResponseContext): Promise<object>; |
| 121 | + updateApp(response: ResponseContext): Promise<App>; |
| 122 | + updateLiveActivity(response: ResponseContext): Promise<UpdateLiveActivitySuccessResponse>; |
| 123 | + updateSubscription(response: ResponseContext): Promise<void>; |
| 124 | + updateSubscriptionByToken(response: ResponseContext): Promise<object>; |
| 125 | + updateTemplate(response: ResponseContext): Promise<TemplateResource>; |
| 126 | + updateUser(response: ResponseContext): Promise<PropertiesBody>; |
| 127 | + viewApiKeys(response: ResponseContext): Promise<ApiKeyTokensListResponse>; |
| 128 | + viewTemplate(response: ResponseContext): Promise<TemplateResource>; |
| 129 | + viewTemplates(response: ResponseContext): Promise<TemplatesListResponse>; |
| 130 | +} |
0 commit comments