@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
1 lines • 10.1 kB
Source Map (JSON)
{"version":3,"sources":["../../../packages/core/rpc/dialog/rpc-dialog-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;GAEG;AACH,qBAAa,YAAY;IACrB,OAAc,OAAO,SAAY;IACjC,OAAc,OAAO,SAAW;CACnC;AAED;;GAEG;AACH,oBAAY,aAAa;IACrB;;OAEG;IACH,sBAAsB,IAAI;IAE1B;;OAEG;IACH,0BAA0B,IAAI;IAE9B;;OAEG;IACH,iBAAiB,IAAI;IAErB;;OAEG;IACH,gBAAgB,IAAI;IAEpB;;OAEG;IACH,qBAAqB,IAAI;IAEzB;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,aAAa,IAAI;CACpB;AAED;;GAEG;AACH,oBAAY,cAAc;IACtB;;OAEG;IACH,MAAM,IAAI;IAEV;;OAEG;IACH,MAAM,IAAI;IAEV;;OAEG;IACH,gBAAgB,IAAI;IAEpB;;OAEG;IACH,MAAM,IAAI;CACb;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,E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E,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,WAAW;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,4BAA4B,GAAG,gCAAgC,GAAG,uBAAuB,GAAG,sBAAsB,CAAC;CAChI;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,6BAA6B,GAAG,wBAAwB,GAAG,uBAAuB,CAAC;IAE9F;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,oBAAY,gBAAgB;IACxB,aAAa,IAAI;IACjB,OAAO,IAAI;IACX,KAAK,IAAI;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC/B","file":"rpc-dialog-model.d.ts","sourcesContent":["import { RpcBaseData } from '../rpc-base';\r\n\r\n/**\r\n * RPC dialog request name and version.\r\n */\r\nexport class RpcDialogKey {\r\n public static command = 'Dialog';\r\n public static version = '0.1.0';\r\n}\r\n\r\n/**\r\n * The RPC dialog type.\r\n */\r\nexport enum RpcDialogType {\r\n /**\r\n * Open the confirmation dialog.\r\n */\r\n OpenConfirmationDialog = 1,\r\n\r\n /**\r\n * Open the confirmation list dialog.\r\n */\r\n OpenConfirmationListDialog = 2,\r\n\r\n /**\r\n * Open the message dialog.\r\n */\r\n OpenMessageDialog = 3,\r\n\r\n /**\r\n * Open the choice dialog.\r\n */\r\n OpenChoiceDialog = 6,\r\n\r\n /**\r\n * Open the register AAD dialog.\r\n */\r\n OpenRegisterAadDialog = 7,\r\n\r\n /**\r\n * Close the dialog.\r\n */\r\n Close = 4,\r\n\r\n /**\r\n * Polling the status of the dialog.\r\n */\r\n PollingStatus = 5\r\n}\r\n\r\n/**\r\n * The RPC dialog state.\r\n */\r\nexport enum RpcDialogState {\r\n /**\r\n * The dialog is opened.\r\n */\r\n Opened = 1,\r\n\r\n /**\r\n * The dialog is closed.\r\n */\r\n Closed = 2,\r\n\r\n /**\r\n * The dialog is terminated by shell or rpc request.\r\n */\r\n ForcedTerminated = 3,\r\n\r\n /**\r\n * The dialog is failed.\r\n */\r\n Failed = 4\r\n}\r\n\r\n/**\r\n * The RPC confirmation dialog request.\r\n */\r\nexport interface RpcDialogConfirmationRequest {\r\n /**\r\n * The text for the dialog cancel button.\r\n */\r\n cancelButtonText: string;\r\n\r\n /**\r\n * The text for the dialog checkbox.\r\n */\r\n checkboxText?: string;\r\n\r\n /**\r\n * The text for the doubleCheck checkbox\r\n */\r\n doubleCheckText?: string;\r\n\r\n /**\r\n * The text for the dialog confirm button.\r\n */\r\n confirmButtonText: string;\r\n\r\n /**\r\n * The message of the dialog body.\r\n */\r\n message: string;\r\n\r\n /**\r\n * The title of the dialog.\r\n */\r\n title: string;\r\n\r\n /**\r\n * The alert of the dialog.\r\n */\r\n alert?: RpcAlert;\r\n\r\n /**\r\n * The alertButtonStyle of the dialog.\r\n */\r\n alertButtonStyle?: RpcAlertSeverity;\r\n}\r\n\r\n/**\r\n * The RPC confirmation list dialog request.\r\n */\r\nexport interface RpcDialogConfirmationListRequest {\r\n /**\r\n * The cancel button text.\r\n */\r\n cancelButtonText: string;\r\n\r\n /**\r\n * The checkbox text.\r\n */\r\n checkboxText?: string;\r\n\r\n /**\r\n * The confirmation button text.\r\n */\r\n confirmButtonText: string;\r\n\r\n /**\r\n * The list footer text.\r\n */\r\n listFooterText: string;\r\n\r\n /**\r\n * The list of data.\r\n */\r\n list: string[];\r\n\r\n /**\r\n * The list header text.\r\n */\r\n listHeaderText: string;\r\n\r\n /**\r\n * The title text.\r\n */\r\n title: string;\r\n}\r\n\r\n/**\r\n * The RPC choice dialog request.\r\n */\r\nexport interface RpcDialogChoiceRequest {\r\n /**\r\n * The text for the dialog cancel button.\r\n */\r\n cancelButtonText: string;\r\n\r\n /**\r\n * The choices of the\r\n */\r\n choices: { name: string, value: any }[];\r\n\r\n /**\r\n * The text for the dialog confirm button.\r\n */\r\n confirmButtonText: string;\r\n\r\n /**\r\n * The text at the bottom of the dialog content.\r\n */\r\n footnote: string;\r\n\r\n /**\r\n * The message of the dialog body.\r\n */\r\n message: string;\r\n\r\n /**\r\n * The title of the dialog.\r\n */\r\n title: string;\r\n}\r\n\r\n/**\r\n * The RPC message dialog link.\r\n */\r\nexport interface RpcDialogMessageLink {\r\n /**\r\n * The link title.\r\n */\r\n title: string;\r\n\r\n /**\r\n * The link url.\r\n */\r\n url: string;\r\n}\r\n\r\n/**\r\n * The RPC message dialog request.\r\n */\r\nexport interface RpcDialogMessageRequest {\r\n /**\r\n * (Optional) The button text of the dialog.\r\n */\r\n buttonText?: string;\r\n\r\n /**\r\n * The message of the dialog body.\r\n */\r\n message: string;\r\n\r\n /**\r\n * The title of the dialog.\r\n */\r\n title: string;\r\n\r\n /**\r\n * (Optional) The link to open referenced information on new tab.\r\n */\r\n externalLink?: RpcDialogMessageLink;\r\n\r\n /**\r\n * (Optional) The text of the checkbox.\r\n */\r\n checkboxText?: string;\r\n}\r\n\r\n/**\r\n * The RPC confirmation dialog response.\r\n */\r\nexport interface RpcDialogConfirmationResponse {\r\n /**\r\n * The result of the dialog confirmation.\r\n */\r\n confirmed: boolean;\r\n\r\n /**\r\n * The result of the dialog checkbox.\r\n */\r\n checkboxResult?: boolean;\r\n}\r\n\r\n/**\r\n * The RPC message dialog response.\r\n */\r\nexport interface RpcDialogMessageResponse {\r\n /**\r\n * The result of the dialog checkbox.\r\n */\r\n checkboxResult?: boolean;\r\n}\r\n\r\n/**\r\n * The RPC choice dialog response.\r\n */\r\nexport interface RpcDialogChoiceResponse {\r\n /**\r\n * The result of the dialog confirmation.\r\n */\r\n confirmed: boolean;\r\n\r\n /**\r\n * The result of the dialog checkbox.\r\n */\r\n choice: { name: string, value: any };\r\n}\r\n\r\n/**\r\n * The RPC dialog request data.\r\n */\r\nexport interface RpcDialogData extends RpcBaseData {\r\n /**\r\n * The identification of dialog.\r\n */\r\n dialogId: string;\r\n\r\n /**\r\n * The type of RPC dialog request.\r\n */\r\n type: RpcDialogType;\r\n\r\n /**\r\n * The request of RPC dialog.\r\n */\r\n request?: RpcDialogConfirmationRequest | RpcDialogConfirmationListRequest | RpcDialogMessageRequest | RpcDialogChoiceRequest;\r\n}\r\n\r\n/**\r\n * The RPC dialog response.\r\n */\r\nexport interface RpcDialogResult {\r\n /**\r\n * The identification of dialog.\r\n */\r\n dialogId: string;\r\n\r\n /**\r\n * The type of RPC dialog.\r\n */\r\n type: RpcDialogType;\r\n\r\n /**\r\n * The state of RPC dialog.\r\n */\r\n state: RpcDialogState;\r\n\r\n /**\r\n * The response of RPC dialog.\r\n */\r\n response?: RpcDialogConfirmationResponse | RpcDialogMessageResponse | RpcDialogChoiceResponse;\r\n\r\n /**\r\n * The time opened.\r\n */\r\n openedTime?: number;\r\n\r\n /**\r\n * The time closed.\r\n */\r\n closedTime?: number;\r\n\r\n /**\r\n * The failed error message.\r\n */\r\n failedMessage?: string;\r\n}\r\n\r\n/**\r\n * The levels of severity of a RPC alert.\r\n */\r\nexport enum RpcAlertSeverity {\r\n Informational = 0,\r\n Warning = 1,\r\n Error = 2\r\n}\r\n\r\n/**\r\n * Defines a RPC Alert object used with Confirmation Dialog\r\n */\r\nexport interface RpcAlert {\r\n message?: string;\r\n severity?: RpcAlertSeverity;\r\n}\r\n"]}