@oracle/ia-flows-sdk
Advanced tools
Comparing version 12.2.28 to 23.0.0
/** | ||
* @license | ||
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. | ||
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. | ||
* Licensed under The Universal Permissive License (UPL), Version 1.0 | ||
@@ -125,2 +125,27 @@ * as shown at https://oss.oracle.com/licenses/upl/ | ||
/** | ||
* The plain text label for the group | ||
* @since 23.0.0 | ||
*/ | ||
readonly text: string; | ||
/** | ||
* The translation key for the plain text label for the group | ||
* @since 23.0.0 | ||
* */ | ||
readonly textTranslationKey: string; | ||
/** | ||
* The HTML marked-up label for the group | ||
* @since 23.0.0 | ||
* */ | ||
readonly html: string; | ||
/** | ||
* The translation key for the HTML marked-up label for the group | ||
* @since 23.0.0 | ||
* */ | ||
readonly htmlTranslationKey: string; | ||
/** | ||
* The substitution parameters for translations | ||
* @since 23.0.0 | ||
*/ | ||
readonly translationParameters: string[]; | ||
/** | ||
* The identifier of the scheme item this action was derived from | ||
@@ -358,2 +383,27 @@ */ | ||
/** | ||
* The plain text label for the group | ||
* @since 23.0.0 | ||
*/ | ||
readonly text: string; | ||
/** | ||
* The translation key for the plain text label for the group | ||
* @since 23.0.0 | ||
*/ | ||
readonly textTranslationKey: string; | ||
/** | ||
* The HTML marked-up label for the group | ||
* @since 23.0.0 | ||
*/ | ||
readonly html: string; | ||
/** | ||
* The translation key for the HTML marked-up label for the group | ||
* @since 23.0.0 | ||
*/ | ||
readonly htmlTranslationKey: string; | ||
/** | ||
* The substitution parameters for translations | ||
* @since 23.0.0 | ||
*/ | ||
readonly translationParameters: string[]; | ||
/** | ||
* The identifier of the scheme item this action was derived from | ||
@@ -749,2 +799,7 @@ */ | ||
/** | ||
* The style of input control. | ||
* @since 23.0.0 | ||
*/ | ||
export declare type IAInputControlStyle = "radioButtons" | "checkBox" | "textBox" | "textArea" | "dropDown" | "custom"; | ||
/** | ||
* A control that collects a single value. | ||
@@ -777,2 +832,7 @@ * | ||
/** | ||
* The control's input style. | ||
* @since 23.0.0 | ||
*/ | ||
readonly inputStyle: IAInputControlStyle; | ||
/** | ||
* Returns true if this control is read-only, otherwise false | ||
@@ -779,0 +839,0 @@ */ |
/** | ||
* @license | ||
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. | ||
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. | ||
* Licensed under The Universal Permissive License (UPL), Version 1.0 | ||
@@ -23,2 +23,5 @@ * as shown at https://oss.oracle.com/licenses/upl/ | ||
export declare type IAResumeMode = "latestVersion" | "sameVersion"; | ||
/** | ||
* Parameters to start a flow session | ||
*/ | ||
export interface IACreateSessionParams { | ||
@@ -25,0 +28,0 @@ /** |
@@ -1,6 +0,6 @@ | ||
/* Copyright (c) 2021, 2022, Oracle and/or its affiliates. Licensed under The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/ */ | ||
var c=(t,r,o)=>new Promise((s,n)=>{var d=e=>{try{i(o.next(e))}catch(a){n(a)}},m=e=>{try{i(o.throw(e))}catch(a){n(a)}},i=e=>e.done?s(e.value):Promise.resolve(e.value).then(d,m);i((o=o.apply(t,r)).next())});function S(t){let r=t.split(".")[1].replace("/-/g","+").replace("/_/g","/"),o=atob(r).split("").map(s=>"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)).join("");return JSON.parse(decodeURIComponent(o))}var l={releaseVersion:"12.2.28.374",releaseBuildDate:"Wednesday, 09 November 2022 23:32",releaseName:"22C"};var u=new Function("n","return import(n)"),p=l.releaseVersion;function f(t){return c(this,null,function*(){let r;for(let o=0;o<3;++o){try{return yield t()}catch(s){r=s}yield new Promise(s=>setTimeout(s,100))}throw r})}function A(t){return c(this,null,function*(){let r,o;try{o=S(t.jwt)}catch(i){throw"Error: JWT token is not valid."}if(typeof o.iss!="string")throw"Error: JWT token is not valid.";let s=o.iss,n={loaderVersion:p,projectSha256:void 0,schemeSha256:void 0};if(t.resumeMode){if(JSON.parse(o.sub).action!=="startOrResume")throw"resuming is not currently supported for debug flow sessions.";try{r=JSON.parse(t.storedSessionState)}catch(e){throw"storedSessionState not provided or is invalid."}if(typeof r.projectSha256!="string"||typeof r.schemeSha256!="string")throw"storedSessionState not provided or is invalid.";t.resumeMode==="sameVersion"&&(n.projectSha256=r.projectSha256,n.schemeSha256=r.schemeSha256)}let d=JSON.stringify(n);return f(function(){return c(this,null,function*(){let e=yield(yield fetch(s+"/flow/initLoader",{method:"POST",headers:{Authorization:"Bearer "+t.jwt},body:d})).json();if(e.type==="error")throw e.message;let a=yield w(e.flowEngineUrl);return e.globalInputData=t.globalInputData,e.storedSessionState=r,e.loaderVersion=l.releaseVersion,a.engineCreateSession(e)})})})}function w(t){return window["@@ia_test_mock_import"]?window["@@ia_test_mock_import"](t):u(t)}export{p as IASDKVersion,A as createSession}; | ||
/* Copyright (c) 2021, 2023, Oracle and/or its affiliates. Licensed under The Universal Permissive License (UPL), Version 1.0 as shown at https://oss.oracle.com/licenses/upl/ */ | ||
var c=(t,o,r)=>new Promise((s,i)=>{var u=e=>{try{n(r.next(e))}catch(a){i(a)}},d=e=>{try{n(r.throw(e))}catch(a){i(a)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(u,d);n((r=r.apply(t,o)).next())});function m(t){let o=t.split(".")[1].replace("/-/g","+").replace("/_/g","/"),r=atob(o).split("").map(s=>"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)).join("");return JSON.parse(decodeURIComponent(r))}var l={version:"23.0.0"};var f=new Function("n","return import(n)"),S=l.version;function g(t){return c(this,null,function*(){let o;for(let r=0;r<3;++r){try{return yield t()}catch(s){o=s}yield new Promise(s=>setTimeout(s,100))}throw o})}function I(t){return c(this,null,function*(){let o,r;try{r=m(t.jwt)}catch(n){throw"Error: JWT token is not valid."}if(typeof r.iss!="string")throw"Error: JWT token is not valid.";let s=r.iss,i={loaderVersion:S,projectSha256:void 0,schemeSha256:void 0};if(t.resumeMode){if(JSON.parse(r.sub).action!=="startOrResume")throw"resuming is not currently supported for debug flow sessions.";try{o=JSON.parse(t.storedSessionState)}catch(e){throw"storedSessionState not provided or is invalid."}if(typeof o.projectSha256!="string"||typeof o.schemeSha256!="string")throw"storedSessionState not provided or is invalid.";t.resumeMode==="sameVersion"&&(i.projectSha256=o.projectSha256,i.schemeSha256=o.schemeSha256)}let u=JSON.stringify(i);return g(function(){return c(this,null,function*(){let e=yield(yield fetch(s+"/flow/initLoader",{method:"POST",headers:{Authorization:"Bearer "+t.jwt},body:u})).json();if(e.type==="error")throw e.message;let a=yield w(e.flowEngineUrl);return e.globalInputData=t.globalInputData,e.storedSessionState=o,e.loaderVersion=l,a.engineCreateSession(e)})})})}function A(t){return c(this,null,function*(){let o;try{o=m(t.jwt)}catch(n){throw"Error: JWT token is not valid."}if(typeof o.iss!="string")throw"Error: JWT token is not valid.";let r;try{r=JSON.parse(o.sub)}catch(n){throw"Error: JWT token is not valid."}if(r.action!=="debug")throw"Error: JWT session token must be a debugging token";let s=o.iss,i={loaderVersion:S},u=JSON.stringify(i);return g(function(){return c(this,null,function*(){let e=yield(yield fetch(s+"/flow/initLoader",{method:"POST",headers:{Authorization:"Bearer "+t.jwt},body:u})).json();if(e.type==="error")throw e.message;let a=yield w(e.flowEngineUrl);return e.globalInputData=t.globalInputData,e.loaderVersion=l,e.uiLanguage=t.uiLanguage,a.engineCreateDebugSession(e)})})})}function w(t){return window["@@ia_test_mock_import"]?window["@@ia_test_mock_import"](t):f(t)}export{S as IASDKVersion,A as createDebugSession,I as createSession}; | ||
/** | ||
* @license | ||
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. | ||
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. | ||
* Licensed under The Universal Permissive License (UPL), Version 1.0 | ||
@@ -7,0 +7,0 @@ * as shown at https://oss.oracle.com/licenses/upl/ |
{ | ||
"name": "@oracle/ia-flows-sdk", | ||
"version": "12.2.28", | ||
"description": "Oracle Intelligent Flows SDK for custom flow runtime integration", | ||
"version": "23.0.0", | ||
"description": "Oracle Intelligent Advisor Flows SDK for custom flow runtime integration", | ||
"module": "index.js", | ||
@@ -6,0 +6,0 @@ "typings": "index.d.ts", |
@@ -21,3 +21,3 @@ # Intelligent Advisor Flows API SDK | ||
## License | ||
Copyright (c) 2022 Oracle and/or its affiliates and released under the | ||
Copyright (c) 2023 Oracle and/or its affiliates and released under the | ||
[Universal Permissive License (UPL)](https://oss.oracle.com/licenses/upl/), Version 1.0 |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45853
1171
2