import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export interface TriggerAcceleratedProgramRequestParams { /** The id of the accelerated program to trigger */ acceleratedProgramId: string; /** The id of the company to trigger */ companyId: string; } export interface TriggerAskSlackAuthorizationRequestParams { /** email of the slack admin to send the slack authorization request email to */ slackAdminEmail: string; } export interface TriggerCompanyStatsRequestParams { /** An array of company ids to filter company that will be concerned by the trigger The company still need to match the trigger conditions (Connector time, Connector day, etc.) if not provided, all companies will be concerned by the trigger and the company will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ companyIds?: string; /** An array of user ids to filter users that will be concerned by the trigger The user still need to match the trigger conditions (Company concerned by the trigger, Connector is active, etc.) if not provided, all users will be concerned by the trigger and the user will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ userIds?: string; /** The datetime to use to trigger the session continue (used to simulate a trigger in the past or in the future for example) Should be used only for debug and test purpose and not in production */ datetime?: Date; /** The ID of the company that the user sending the request is related to. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. */ companyId?: string; /** The ID of the user sending the request. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. Used to set the `createdBy` property on creation of entities. */ userId?: string; } export interface TriggerSessionContinueRequestParams { /** An array of company ids to filter company that will be concerned by the trigger The company still need to match the trigger conditions (Connector time, Connector day, etc.) if not provided, all companies will be concerned by the trigger and the company will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ companyIds?: string; /** An array of user ids to filter users that will be concerned by the trigger The user still need to match the trigger conditions (Company concerned by the trigger, Connector is active, etc.) if not provided, all users will be concerned by the trigger and the user will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ userIds?: string; /** The datetime to use to trigger the session continue (used to simulate a trigger in the past or in the future for example) Should be used only for debug and test purpose and not in production */ datetime?: Date; /** An array of question idsto send to the connector when the trigger is triggered if not provided, the getNextQuestion algorithm will be used to get the next question if provided, the getNextQuestion algorithm will be ignored and the questionIds will be used to push the questions Should be used only for debug and test purpose and not in production */ questionIds?: string; /** The ID of the company that the user sending the request is related to. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. */ companyId?: string; /** The ID of the user sending the request. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. Used to set the `createdBy` property on creation of entities. */ userId?: string; } export interface TriggerUserStatsRequestParams { /** An array of company ids to filter company that will be concerned by the trigger The company still need to match the trigger conditions (Connector time, Connector day, etc.) if not provided, all companies will be concerned by the trigger and the company will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ companyIds?: string; /** An array of user ids to filter users that will be concerned by the trigger The user still need to match the trigger conditions (Company concerned by the trigger, Connector is active, etc.) if not provided, all users will be concerned by the trigger and the user will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ userIds?: string; /** The datetime to use to trigger the session continue (used to simulate a trigger in the past or in the future for example) Should be used only for debug and test purpose and not in production */ datetime?: Date; /** The ID of the company that the user sending the request is related to. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. */ companyId?: string; /** The ID of the user sending the request. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. Used to set the `createdBy` property on creation of entities. */ userId?: string; } export interface TriggerUsersInactivityRequestParams { /** An array of company ids to filter company that will be concerned by the trigger The company still need to match the trigger conditions (Connector time, Connector day, etc.) if not provided, all companies will be concerned by the trigger and the company will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ companyIds?: string; /** An array of user ids to filter users that will be concerned by the trigger The user still need to match the trigger conditions (Company concerned by the trigger, Connector is active, etc.) if not provided, all users will be concerned by the trigger and the user will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ userIds?: string; /** The datetime to use to trigger the session continue (used to simulate a trigger in the past or in the future for example) Should be used only for debug and test purpose and not in production */ datetime?: Date; /** The ID of the company that the user sending the request is related to. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. */ companyId?: string; /** The ID of the user sending the request. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. Used to set the `createdBy` property on creation of entities. */ userId?: string; } export interface TriggerUsersNoActivityRequestParams { /** An array of company ids to filter company that will be concerned by the trigger The company still need to match the trigger conditions (Connector time, Connector day, etc.) if not provided, all companies will be concerned by the trigger and the company will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ companyIds?: string; /** An array of user ids to filter users that will be concerned by the trigger The user still need to match the trigger conditions (Company concerned by the trigger, Connector is active, etc.) if not provided, all users will be concerned by the trigger and the user will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ userIds?: string; /** The datetime to use to trigger the session continue (used to simulate a trigger in the past or in the future for example) Should be used only for debug and test purpose and not in production */ datetime?: Date; /** The ID of the company that the user sending the request is related to. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. */ companyId?: string; /** The ID of the user sending the request. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. Used to set the `createdBy` property on creation of entities. */ userId?: string; } export interface TriggerWaitingModerationRequestParams { /** An array of company ids to filter company that will be concerned by the trigger The company still need to match the trigger conditions (Connector time, Connector day, etc.) if not provided, all companies will be concerned by the trigger and the company will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ companyIds?: string; /** An array of user ids to filter users that will be concerned by the trigger The user still need to match the trigger conditions (Company concerned by the trigger, Connector is active, etc.) if not provided, all users will be concerned by the trigger and the user will be filtered by the trigger conditions Should be used only for debug and test purpose and not in production */ userIds?: string; /** The datetime to use to trigger the session continue (used to simulate a trigger in the past or in the future for example) Should be used only for debug and test purpose and not in production */ datetime?: Date; /** The ID of the company that the user sending the request is related to. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. */ companyId?: string; /** The ID of the user sending the request. This field is required when using the API Key. It will be included in the JSON Web Token (JWT) when using Auth0 authentication. Used to set the `createdBy` property on creation of entities. */ userId?: string; } export declare class TriggersApiService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Trigger the accelerated program * This endpoint is used to trigger the accelerated program event In production it should be called by a company lead It will trigger the accelerated program event for the teams concerned by the event * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerAcceleratedProgram(requestParameters: TriggerAcceleratedProgramRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerAcceleratedProgram(requestParameters: TriggerAcceleratedProgramRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerAcceleratedProgram(requestParameters: TriggerAcceleratedProgramRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the ask slack authorization event to send an email to the slack admin to ask him to authorize Alto to access the slack workspace * This endpoint is used to trigger the email-ask-slack-authorization it will be called by a trainX lead to ask the slack admin to authorize Alto to access the slack workspace * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerAskSlackAuthorization(requestParameters: TriggerAskSlackAuthorizationRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerAskSlackAuthorization(requestParameters: TriggerAskSlackAuthorizationRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerAskSlackAuthorization(requestParameters: TriggerAskSlackAuthorizationRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the company stats event * This endpoint is used to trigger the company stats event In production it should be called by a cron job at the specified datetime It will trigger the company stats event for all companies and users concerned by the event It will send an event on the right topic the event will contains the company stats and the id of the user who will receive the event * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerCompanyStats(requestParameters: TriggerCompanyStatsRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerCompanyStats(requestParameters: TriggerCompanyStatsRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerCompanyStats(requestParameters: TriggerCompanyStatsRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the send gchat instruction event to send an email to the users to explain how to install the gchat connector * This endpoint is used to trigger the email-send-gchat-instruction it will be called by a trainX lead to send an email to the users to explain how to install the gchat connector * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerSendGchatInstruction(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerSendGchatInstruction(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerSendGchatInstruction(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the send microsoft Teams instruction event to send an email to the users to explain how to install the microsoft teams connector * This endpoint is used to trigger the email-send-teams-instruction it will be called by a trainX lead to send an email to the users to explain how to install the Microsoft teams connector * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerSendTeamsInstruction(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerSendTeamsInstruction(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerSendTeamsInstruction(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the session continue * This endpoint is used to trigger the session continue event In production it should be called by a cron job at the specified time (connectorTime for example) It will trigger the session continue event for all companies and users concerned by the event It will send an event on the right topic the event will contains the company and user ids and a list of questions * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerSessionContinue(requestParameters: TriggerSessionContinueRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerSessionContinue(requestParameters: TriggerSessionContinueRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerSessionContinue(requestParameters: TriggerSessionContinueRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the users stats event * This endpoint is used to trigger the users stats event In production it should be called by a cron job at the specified datetime It will trigger the users stats event for all companies and users concerned by the event It will send an event on the right topic the event will contains the user statistics * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerUserStats(requestParameters: TriggerUserStatsRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerUserStats(requestParameters: TriggerUserStatsRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerUserStats(requestParameters: TriggerUserStatsRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the users inactivity event * This endpoint is used to trigger the users inactivity event In production it should be called by a cron job at the specified time It will trigger the users inactivity event for all companies and users concerned by the event It will send an event on the right topic the event will contains the company and user ids and the inactive users * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerUsersInactivity(requestParameters: TriggerUsersInactivityRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerUsersInactivity(requestParameters: TriggerUsersInactivityRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerUsersInactivity(requestParameters: TriggerUsersInactivityRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the users no activity event to send an email to users who have not been active for 15 days * This endpoint is used to trigger the trainx-notif-user-no-activity-for-15days In production it should be called by a daily cron job It will trigger check activity for all companies and users and send an email to the users who have not been active for 15 days * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerUsersNoActivity(requestParameters: TriggerUsersNoActivityRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerUsersNoActivity(requestParameters: TriggerUsersNoActivityRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerUsersNoActivity(requestParameters: TriggerUsersNoActivityRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; /** * Trigger the waiting moderation event * This endpoint is used to trigger the waiting moderation event In production it should be called by a cron job at the specified time It will trigger the waiting moderation event for all companies and leads concerned by the event It will send an event on the right topic the event will contains the company and lead ids and the number of comments and questions submitted * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ triggerWaitingModeration(requestParameters: TriggerWaitingModerationRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable; triggerWaitingModeration(requestParameters: TriggerWaitingModerationRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; triggerWaitingModeration(requestParameters: TriggerWaitingModerationRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }