@memberjunction/react-runtime 2.114.0 → 2.115.0
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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +10 -0
- package/dist/runtime.umd.js +1 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
> @memberjunction/react-runtime@2.
|
|
2
|
+
> @memberjunction/react-runtime@2.115.0 build
|
|
3
3
|
> npm run build:node && npm run build:umd
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @memberjunction/react-runtime@2.
|
|
6
|
+
> @memberjunction/react-runtime@2.115.0 build:node
|
|
7
7
|
> tsc
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @memberjunction/react-runtime@2.
|
|
10
|
+
> @memberjunction/react-runtime@2.115.0 build:umd
|
|
11
11
|
> webpack --config webpack.umd.config.js
|
|
12
12
|
|
|
13
|
-
(node:
|
|
13
|
+
(node:8132) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
|
|
14
14
|
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
15
15
|
[BABEL] Note: The code generator has deoptimised the styling of /home/runner/work/MJ/MJ/packages/MJCoreEntities/dist/generated/entity_subclasses.js as it exceeds the max of 500KB.
|
|
16
16
|
asset runtime.umd.js 2.41 MiB [emitted] [minimized] [big] (name: main) 1 related asset
|
|
@@ -21,7 +21,7 @@ modules by path ../../ 4.93 MiB
|
|
|
21
21
|
modules by path ../../MJGlobal/ 180 KiB 35 modules
|
|
22
22
|
modules by path ../../MJCore/ 627 KiB 31 modules
|
|
23
23
|
modules by path ../../MJCoreEntities/dist/ 2.38 MiB 26 modules
|
|
24
|
-
modules by path ../../GraphQLDataProvider/
|
|
24
|
+
modules by path ../../GraphQLDataProvider/ 114 KiB 22 modules
|
|
25
25
|
modules by path ../../InteractiveComponents/dist/*.js 34.5 KiB 10 modules
|
|
26
26
|
modules by path ./dist/ 454 KiB 28 modules
|
|
27
|
-
webpack 5.92.1 compiled successfully in
|
|
27
|
+
webpack 5.92.1 compiled successfully in 103067 ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @memberjunction/react-runtime
|
|
2
2
|
|
|
3
|
+
## 2.115.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @memberjunction/graphql-dataprovider@2.115.0
|
|
8
|
+
- @memberjunction/interactive-component-types@2.115.0
|
|
9
|
+
- @memberjunction/core@2.115.0
|
|
10
|
+
- @memberjunction/core-entities@2.115.0
|
|
11
|
+
- @memberjunction/global@2.115.0
|
|
12
|
+
|
|
3
13
|
## 2.114.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/runtime.umd.js
CHANGED
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
sessionId
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
`,r=new l.Observable((t=>{const r=this._wsClient.subscribe({query:n,variables:{sessionId:e}},{next:e=>t.next(e.data.statusUpdates.message),error:e=>t.error(e),complete:()=>t.complete()});return()=>{r()}}));return this._pushStatusRequests.push({sessionId:e,observable:r}),r}},"_GraphQLDataProvider"),r);I.MJ_CORE_SCHEMA="__mj";let _=I;const N=class{constructor(){this._localStorage={}}async GetItem(e){return new Promise((t=>{this._localStorage.hasOwnProperty(e)?t(this._localStorage[e]):t(null)}))}async SetItem(e,t){return new Promise((n=>{this._localStorage[e]=t,n()}))}async Remove(e){return new Promise((t=>{this._localStorage.hasOwnProperty(e)&&delete this._localStorage[e],t()}))}};a(N,"BrowserStorageProviderBase");let T=N;const E="Metadata_KVPairs",w=class extends T{constructor(){super(),this.dbPromise=c.openDB("MJ_Metadata",1,{upgrade(e){e.objectStoreNames.contains(E)||e.createObjectStore(E)}})}async setItem(e,t){const n=(await this.dbPromise).transaction(E,"readwrite");await n.objectStore(E).put(t,e),await n.done}async getItem(e){return await(await this.dbPromise).transaction(E).objectStore(E).get(e)}async remove(e){const t=(await this.dbPromise).transaction(E,"readwrite");await t.objectStore(E).delete(e),await t.done}};a(w,"BrowserIndexedDBStorageProvider");let A=w;async function C(e){const t=new _;return s.SetProvider(t),await t.Config(e),f.MJGlobal.Instance.RaiseEvent({event:f.MJEventType.LoggedIn,eventCode:null,component:this,args:null}),t}a(C,"setupGraphQLClient");const k=class{};a(k,"SyncRolesAndUsersResult");let P=k;const L=class{};a(L,"RoleInput");let R=L;const F=class{};a(F,"UserInput");let x=F;const j=class{};a(j,"RolesAndUsersInput");let O=j;var V,U=((V=U||{}).Create="Create",V.Update="Update",V.CreateOrUpdate="CreateOrUpdate",V.Delete="Delete",V.DeleteWithFilter="DeleteWithFilter",V);const z=class{};a(z,"ActionItemInput");let G=z;const M=class{constructor(){this.Results=[]}};a(M,"SyncDataResult");let Q=M;const q=class{};a(q,"ActionItemOutput");let B=q;const K=class{get Client(){return this._client}constructor(e,t,n,r){const i={"x-session-id":n};this._sessionId=n,t&&(i.authorization="Bearer "+t),r&&(i["x-mj-api-key"]=r),this._client=new o.GraphQLClient(e,{headers:i})}async GetData(e,t){try{const n=await this.Client.request("query GetData($input: GetDataInputType!) {\n GetData(input: $input) {\n Success\n ErrorMessages\n Queries\n Results\n }\n }",{input:{Queries:e,Token:t}});return n&&n.GetData?{Success:n.GetData.Success,Results:n.GetData.Results.map((e=>e?f.SafeJSONParse(e):null)),ErrorMessages:n.GetData.ErrorMessages,Queries:n.GetData.Queries}:{Success:!1,Results:[],ErrorMessages:n.GetData?.ErrorMessages??["Unknown error"],Queries:n.GetData?.Queries??e}}catch(t){const n=`GraphQLSystemUserClient::GetData - Error getting data - ${t}`;return s.LogError(n),{Success:!1,Results:[],ErrorMessages:[n],Queries:e}}}async GetAllRemoteEntities(){try{const e=await this.Client.request("query GetAllEntities {\n GetAllEntities {\n Success\n ErrorMessage\n Results {\n ID\n Name\n Description\n SchemaName\n BaseView\n BaseTable\n CodeName\n ClassName\n Fields {\n ID\n Name\n Description\n Type\n AllowsNull\n MaxLength\n }\n }\n }\n }");return e&&e.GetAllEntities?e.GetAllEntities:{Success:!1,Results:[],ErrorMessage:e.GetAllEntities?.ErrorMessage??"Unknown error"}}catch(e){return s.LogError(`GraphQLSystemUserClient::GetAllRemoteEntities - Error getting remote entities - ${e}`),{Success:!1,Results:[],ErrorMessage:e}}}async SyncData(e){try{const t=await this.Client.request("mutation SyncData($items: [ActionItemInputType!]!) {\n SyncData(items: $items) {\n Success\n Results {\n Success\n ErrorMessage\n EntityName\n Type\n PrimaryKey {\n KeyValuePairs {\n FieldName\n Value \n }\n }\n AlternateKey {\n KeyValuePairs {\n FieldName\n Value \n }\n }\n DeleteFilter\n RecordJSON\n }\n }\n }",{items:e});return t&&t.SyncData?t.SyncData:{Success:!1,Results:[]}}catch(e){return s.LogError(`GraphQLSystemUserClient::SyncData - Error syncing data - ${e}`),{Success:!1,Results:[]}}}async SyncRolesAndUsers(e){try{const t=await this.Client.request("mutation SyncRolesAndUsers($data: RolesAndUsersInputType!) {\n SyncRolesAndUsers(data: $data) {\n Success\n }\n }",{data:e});return t&&t.SyncRolesAndUsers?t.SyncRolesAndUsers:{Success:!1}}catch(e){return s.LogError(`GraphQLSystemUserClient::SyncRolesAndUsers - Error syncing roles and users - ${e}`),{Success:!1}}}async RunViewByName(e){try{const t=await this.Client.request("query RunViewByNameSystemUser($input: RunViewByNameInput!) {\n RunViewByNameSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunViewByNameSystemUser?t.RunViewByNameSystemUser:{Results:[],Success:!1,ErrorMessage:"Failed to execute view by name"}}catch(e){return s.LogError(`GraphQLSystemUserClient::RunViewByNameSystemUser - Error running view by name - ${e}`),{Results:[],Success:!1,ErrorMessage:e.toString()}}}async RunViewByID(e){try{const t=await this.Client.request("query RunViewByIDSystemUser($input: RunViewByIDInput!) {\n RunViewByIDSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunViewByIDSystemUser?t.RunViewByIDSystemUser:{Results:[],Success:!1,ErrorMessage:"Failed to execute view by ID"}}catch(e){return s.LogError(`GraphQLSystemUserClient::RunViewByIDSystemUser - Error running view by ID - ${e}`),{Results:[],Success:!1,ErrorMessage:e.toString()}}}async RunDynamicView(e){try{const t=await this.Client.request("query RunDynamicViewSystemUser($input: RunDynamicViewInput!) {\n RunDynamicViewSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunDynamicViewSystemUser?t.RunDynamicViewSystemUser:{Results:[],Success:!1,ErrorMessage:"Failed to execute dynamic view"}}catch(e){return s.LogError(`GraphQLSystemUserClient::RunDynamicViewSystemUser - Error running dynamic view - ${e}`),{Results:[],Success:!1,ErrorMessage:e.toString()}}}async RunViews(e){try{const t=await this.Client.request("query RunViewsSystemUser($input: [RunViewGenericInput!]!) {\n RunViewsSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunViewsSystemUser?t.RunViewsSystemUser:[]}catch(e){return s.LogError(`GraphQLSystemUserClient::RunViewsSystemUser - Error running views - ${e}`),[]}}async GetQueryData(e){try{if(void 0!==e.Parameters&&Array.isArray(e.Parameters))throw new Error("Parameters must be a JSON object, not an array. Use {} for empty parameters instead of [].");const t="query GetQueryDataSystemUser($QueryID: String!, $CategoryID: String, $CategoryPath: String, $Parameters: JSONObject, $MaxRows: Int, $StartRow: Int) {\n GetQueryDataSystemUser(QueryID: $QueryID, CategoryID: $CategoryID, CategoryPath: $CategoryPath, Parameters: $Parameters, MaxRows: $MaxRows, StartRow: $StartRow) {\n QueryID\n QueryName\n Success\n Results\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n AppliedParameters\n }\n }",n={QueryID:e.QueryID};void 0!==e.CategoryID&&(n.CategoryID=e.CategoryID),void 0!==e.CategoryPath&&(n.CategoryPath=e.CategoryPath),void 0!==e.Parameters&&(n.Parameters=e.Parameters),void 0!==e.MaxRows&&(n.MaxRows=e.MaxRows),void 0!==e.StartRow&&(n.StartRow=e.StartRow);const r=await this.Client.request(t,n);return r&&r.GetQueryDataSystemUser?{...r.GetQueryDataSystemUser,Results:r.GetQueryDataSystemUser.Results?f.SafeJSONParse(r.GetQueryDataSystemUser.Results):null}:{QueryID:e.QueryID,QueryName:"",Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:"Query execution failed"}}catch(t){return s.LogError(`GraphQLSystemUserClient::GetQueryDataSystemUser - Error executing query - ${t}`),{QueryID:e.QueryID,QueryName:"",Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:t.toString()}}}async GetQueryDataByName(e){try{if(void 0!==e.Parameters&&Array.isArray(e.Parameters))throw new Error("Parameters must be a JSON object, not an array. Use {} for empty parameters instead of [].");const t="query GetQueryDataByNameSystemUser($QueryName: String!, $CategoryID: String, $CategoryPath: String, $Parameters: JSONObject, $MaxRows: Int, $StartRow: Int) {\n GetQueryDataByNameSystemUser(QueryName: $QueryName, CategoryID: $CategoryID, CategoryPath: $CategoryPath, Parameters: $Parameters, MaxRows: $MaxRows, StartRow: $StartRow) {\n QueryID\n QueryName\n Success\n Results\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n AppliedParameters\n }\n }",n={QueryName:e.QueryName};void 0!==e.CategoryID&&(n.CategoryID=e.CategoryID),void 0!==e.CategoryPath&&(n.CategoryPath=e.CategoryPath),void 0!==e.Parameters&&(n.Parameters=e.Parameters),void 0!==e.MaxRows&&(n.MaxRows=e.MaxRows),void 0!==e.StartRow&&(n.StartRow=e.StartRow);const r=await this.Client.request(t,n);return r&&r.GetQueryDataByNameSystemUser?{...r.GetQueryDataByNameSystemUser,Results:r.GetQueryDataByNameSystemUser.Results?f.SafeJSONParse(r.GetQueryDataByNameSystemUser.Results):null}:{QueryID:"",QueryName:e.QueryName,Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:"Query execution failed"}}catch(t){return s.LogError(`GraphQLSystemUserClient::GetQueryDataByNameSystemUser - Error executing query - ${t}`),{QueryID:"",QueryName:e.QueryName,Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:t.toString()}}}async CreateQuery(e){try{const t=await this.Client.request("mutation CreateQuerySystemUser($input: CreateQuerySystemUserInput!) {\n CreateQuerySystemUser(input: $input) {\n Success\n ErrorMessage\n QueryData\n Fields {\n ID\n QueryID\n Name\n Description\n Type\n Sequence\n SQLBaseType\n SQLFullType\n IsComputed\n ComputationDescription\n }\n Parameters {\n ID\n QueryID\n Name\n Type\n DefaultValue\n Comments\n IsRequired\n }\n Entities {\n ID\n QueryID\n EntityID\n EntityName\n }\n Permissions {\n ID\n QueryID\n RoleID\n RoleName\n }\n }\n }",{input:e});return t&&t.CreateQuerySystemUser?t.CreateQuerySystemUser.Success&&t.CreateQuerySystemUser.QueryData?{...t.CreateQuerySystemUser,QueryData:t.CreateQuerySystemUser.QueryData}:t.CreateQuerySystemUser:{Success:!1,ErrorMessage:"Failed to create query"}}catch(e){return s.LogError(`GraphQLSystemUserClient::CreateQuery - Error creating query - ${e}`),{Success:!1,ErrorMessage:e.toString()}}}async UpdateQuery(e){try{const t=await this.Client.request("mutation UpdateQuerySystemUser($input: UpdateQuerySystemUserInput!) {\n UpdateQuerySystemUser(input: $input) {\n Success\n ErrorMessage\n QueryData\n Fields {\n ID\n QueryID\n Name\n Description\n Type\n Sequence\n SQLBaseType\n SQLFullType\n IsComputed\n ComputationDescription\n }\n Parameters {\n ID\n QueryID\n Name\n Type\n DefaultValue\n Comments\n IsRequired\n }\n Entities {\n ID\n QueryID\n EntityID\n EntityName\n Sequence\n }\n Permissions {\n ID\n QueryID\n RoleID\n RoleName\n }\n }\n }",{input:e});return t&&t.UpdateQuerySystemUser?t.UpdateQuerySystemUser.Success&&t.UpdateQuerySystemUser.QueryData?{...t.UpdateQuerySystemUser,QueryData:t.UpdateQuerySystemUser.QueryData}:t.UpdateQuerySystemUser:{Success:!1,ErrorMessage:"Failed to update query"}}catch(e){return s.LogError(`GraphQLSystemUserClient::UpdateQuery - Error updating query - ${e}`),{Success:!1,ErrorMessage:e.toString()}}}async DeleteQuery(e,t){try{if(!e||""===e.trim())return s.LogError("GraphQLSystemUserClient::DeleteQuery - Invalid query ID: ID cannot be null or empty"),{Success:!1,ErrorMessage:"Invalid query ID: ID cannot be null or empty"};const n="mutation DeleteQuerySystemResolver($ID: String!, $options: DeleteOptionsInput) {\n DeleteQuerySystemResolver(ID: $ID, options: $options) {\n Success\n ErrorMessage\n QueryData\n }\n }",r={ID:e};void 0!==t&&(r.options=t);const i=await this.Client.request(n,r);return i&&i.DeleteQuerySystemResolver?i.DeleteQuerySystemResolver:{Success:!1,ErrorMessage:"Failed to delete query"}}catch(e){return s.LogError(`GraphQLSystemUserClient::DeleteQuery - Error deleting query - ${e}`),{Success:!1,ErrorMessage:e.toString()}}}async RunAIPrompt(e){try{const t=o.gql`
|
|
331
|
+
`,r=new l.Observable((t=>{const r=this._wsClient.subscribe({query:n,variables:{sessionId:e}},{next:e=>t.next(e.data.statusUpdates.message),error:e=>t.error(e),complete:()=>t.complete()});return()=>{r()}}));return this._pushStatusRequests.push({sessionId:e,observable:r}),r}},"_GraphQLDataProvider"),r);I.MJ_CORE_SCHEMA="__mj";let _=I;const N=class{constructor(){this._localStorage={}}async GetItem(e){return new Promise((t=>{this._localStorage.hasOwnProperty(e)?t(this._localStorage[e]):t(null)}))}async SetItem(e,t){return new Promise((n=>{this._localStorage[e]=t,n()}))}async Remove(e){return new Promise((t=>{this._localStorage.hasOwnProperty(e)&&delete this._localStorage[e],t()}))}};a(N,"BrowserStorageProviderBase");let T=N;const E="Metadata_KVPairs",w=class extends T{constructor(){super(),this.dbPromise=c.openDB("MJ_Metadata",1,{upgrade(e){e.objectStoreNames.contains(E)||e.createObjectStore(E)}})}async setItem(e,t){const n=(await this.dbPromise).transaction(E,"readwrite");await n.objectStore(E).put(t,e),await n.done}async getItem(e){return await(await this.dbPromise).transaction(E).objectStore(E).get(e)}async remove(e){const t=(await this.dbPromise).transaction(E,"readwrite");await t.objectStore(E).delete(e),await t.done}};a(w,"BrowserIndexedDBStorageProvider");let A=w;async function C(e){const t=new _;return s.SetProvider(t),await t.Config(e),f.MJGlobal.Instance.RaiseEvent({event:f.MJEventType.LoggedIn,eventCode:null,component:this,args:null}),t}a(C,"setupGraphQLClient");const k=class{};a(k,"SyncRolesAndUsersResult");let P=k;const L=class{};a(L,"RoleInput");let R=L;const F=class{};a(F,"UserInput");let x=F;const j=class{};a(j,"RolesAndUsersInput");let O=j;var V,U=((V=U||{}).Create="Create",V.Update="Update",V.CreateOrUpdate="CreateOrUpdate",V.Delete="Delete",V.DeleteWithFilter="DeleteWithFilter",V);const z=class{};a(z,"ActionItemInput");let G=z;const M=class{constructor(){this.Results=[]}};a(M,"SyncDataResult");let Q=M;const q=class{};a(q,"ActionItemOutput");let B=q;const K=class{get Client(){return this._client}constructor(e,t,n,r){const i={"x-session-id":n};this._sessionId=n,t&&(i.authorization="Bearer "+t),r&&(i["x-mj-api-key"]=r),this._client=new o.GraphQLClient(e,{headers:i})}async GetData(e,t){try{const n=await this.Client.request("query GetData($input: GetDataInputType!) {\n GetData(input: $input) {\n Success\n ErrorMessages\n Queries\n Results\n }\n }",{input:{Queries:e,Token:t}});return n&&n.GetData?{Success:n.GetData.Success,Results:n.GetData.Results.map((e=>e?f.SafeJSONParse(e):null)),ErrorMessages:n.GetData.ErrorMessages,Queries:n.GetData.Queries}:{Success:!1,Results:[],ErrorMessages:n.GetData?.ErrorMessages??["Unknown error"],Queries:n.GetData?.Queries??e}}catch(t){let n=t instanceof Error?t.message:String(t);const r=n.match(/Error: ([^:]+)\./);if(r&&(n=r[1]+"."),s.IsVerboseLoggingEnabled()){const e=`GraphQLSystemUserClient::GetData - Error getting data - ${t}`;s.LogError(e)}return{Success:!1,Results:[],ErrorMessages:[n],Queries:e}}}async GetAllRemoteEntities(){try{const e=await this.Client.request("query GetAllEntities {\n GetAllEntities {\n Success\n ErrorMessage\n Results {\n ID\n Name\n Description\n SchemaName\n BaseView\n BaseTable\n CodeName\n ClassName\n Fields {\n ID\n Name\n Description\n Type\n AllowsNull\n MaxLength\n }\n }\n }\n }");return e&&e.GetAllEntities?e.GetAllEntities:{Success:!1,Results:[],ErrorMessage:e.GetAllEntities?.ErrorMessage??"Unknown error"}}catch(e){return s.LogError(`GraphQLSystemUserClient::GetAllRemoteEntities - Error getting remote entities - ${e}`),{Success:!1,Results:[],ErrorMessage:e}}}async SyncData(e){try{const t=await this.Client.request("mutation SyncData($items: [ActionItemInputType!]!) {\n SyncData(items: $items) {\n Success\n Results {\n Success\n ErrorMessage\n EntityName\n Type\n PrimaryKey {\n KeyValuePairs {\n FieldName\n Value \n }\n }\n AlternateKey {\n KeyValuePairs {\n FieldName\n Value \n }\n }\n DeleteFilter\n RecordJSON\n }\n }\n }",{items:e});return t&&t.SyncData?t.SyncData:{Success:!1,Results:[]}}catch(e){return s.LogError(`GraphQLSystemUserClient::SyncData - Error syncing data - ${e}`),{Success:!1,Results:[]}}}async SyncRolesAndUsers(e){try{const t=await this.Client.request("mutation SyncRolesAndUsers($data: RolesAndUsersInputType!) {\n SyncRolesAndUsers(data: $data) {\n Success\n }\n }",{data:e});return t&&t.SyncRolesAndUsers?t.SyncRolesAndUsers:{Success:!1}}catch(e){return s.LogError(`GraphQLSystemUserClient::SyncRolesAndUsers - Error syncing roles and users - ${e}`),{Success:!1}}}async RunViewByName(e){try{const t=await this.Client.request("query RunViewByNameSystemUser($input: RunViewByNameInput!) {\n RunViewByNameSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunViewByNameSystemUser?t.RunViewByNameSystemUser:{Results:[],Success:!1,ErrorMessage:"Failed to execute view by name"}}catch(e){return s.LogError(`GraphQLSystemUserClient::RunViewByNameSystemUser - Error running view by name - ${e}`),{Results:[],Success:!1,ErrorMessage:e.toString()}}}async RunViewByID(e){try{const t=await this.Client.request("query RunViewByIDSystemUser($input: RunViewByIDInput!) {\n RunViewByIDSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunViewByIDSystemUser?t.RunViewByIDSystemUser:{Results:[],Success:!1,ErrorMessage:"Failed to execute view by ID"}}catch(e){return s.LogError(`GraphQLSystemUserClient::RunViewByIDSystemUser - Error running view by ID - ${e}`),{Results:[],Success:!1,ErrorMessage:e.toString()}}}async RunDynamicView(e){try{const t=await this.Client.request("query RunDynamicViewSystemUser($input: RunDynamicViewInput!) {\n RunDynamicViewSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunDynamicViewSystemUser?t.RunDynamicViewSystemUser:{Results:[],Success:!1,ErrorMessage:"Failed to execute dynamic view"}}catch(e){return s.LogError(`GraphQLSystemUserClient::RunDynamicViewSystemUser - Error running dynamic view - ${e}`),{Results:[],Success:!1,ErrorMessage:e.toString()}}}async RunViews(e){try{const t=await this.Client.request("query RunViewsSystemUser($input: [RunViewGenericInput!]!) {\n RunViewsSystemUser(input: $input) {\n Results {\n PrimaryKey {\n FieldName\n Value\n }\n EntityID\n Data\n }\n UserViewRunID\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n Success\n }\n }",{input:e});return t&&t.RunViewsSystemUser?t.RunViewsSystemUser:[]}catch(e){return s.LogError(`GraphQLSystemUserClient::RunViewsSystemUser - Error running views - ${e}`),[]}}async GetQueryData(e){try{if(void 0!==e.Parameters&&Array.isArray(e.Parameters))throw new Error("Parameters must be a JSON object, not an array. Use {} for empty parameters instead of [].");const t="query GetQueryDataSystemUser($QueryID: String!, $CategoryID: String, $CategoryPath: String, $Parameters: JSONObject, $MaxRows: Int, $StartRow: Int) {\n GetQueryDataSystemUser(QueryID: $QueryID, CategoryID: $CategoryID, CategoryPath: $CategoryPath, Parameters: $Parameters, MaxRows: $MaxRows, StartRow: $StartRow) {\n QueryID\n QueryName\n Success\n Results\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n AppliedParameters\n }\n }",n={QueryID:e.QueryID};void 0!==e.CategoryID&&(n.CategoryID=e.CategoryID),void 0!==e.CategoryPath&&(n.CategoryPath=e.CategoryPath),void 0!==e.Parameters&&(n.Parameters=e.Parameters),void 0!==e.MaxRows&&(n.MaxRows=e.MaxRows),void 0!==e.StartRow&&(n.StartRow=e.StartRow);const r=await this.Client.request(t,n);return r&&r.GetQueryDataSystemUser?{...r.GetQueryDataSystemUser,Results:r.GetQueryDataSystemUser.Results?f.SafeJSONParse(r.GetQueryDataSystemUser.Results):null}:{QueryID:e.QueryID,QueryName:"",Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:"Query execution failed"}}catch(t){return s.LogError(`GraphQLSystemUserClient::GetQueryDataSystemUser - Error executing query - ${t}`),{QueryID:e.QueryID,QueryName:"",Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:t.toString()}}}async GetQueryDataByName(e){try{if(void 0!==e.Parameters&&Array.isArray(e.Parameters))throw new Error("Parameters must be a JSON object, not an array. Use {} for empty parameters instead of [].");const t="query GetQueryDataByNameSystemUser($QueryName: String!, $CategoryID: String, $CategoryPath: String, $Parameters: JSONObject, $MaxRows: Int, $StartRow: Int) {\n GetQueryDataByNameSystemUser(QueryName: $QueryName, CategoryID: $CategoryID, CategoryPath: $CategoryPath, Parameters: $Parameters, MaxRows: $MaxRows, StartRow: $StartRow) {\n QueryID\n QueryName\n Success\n Results\n RowCount\n TotalRowCount\n ExecutionTime\n ErrorMessage\n AppliedParameters\n }\n }",n={QueryName:e.QueryName};void 0!==e.CategoryID&&(n.CategoryID=e.CategoryID),void 0!==e.CategoryPath&&(n.CategoryPath=e.CategoryPath),void 0!==e.Parameters&&(n.Parameters=e.Parameters),void 0!==e.MaxRows&&(n.MaxRows=e.MaxRows),void 0!==e.StartRow&&(n.StartRow=e.StartRow);const r=await this.Client.request(t,n);return r&&r.GetQueryDataByNameSystemUser?{...r.GetQueryDataByNameSystemUser,Results:r.GetQueryDataByNameSystemUser.Results?f.SafeJSONParse(r.GetQueryDataByNameSystemUser.Results):null}:{QueryID:"",QueryName:e.QueryName,Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:"Query execution failed"}}catch(t){return s.LogError(`GraphQLSystemUserClient::GetQueryDataByNameSystemUser - Error executing query - ${t}`),{QueryID:"",QueryName:e.QueryName,Success:!1,Results:null,RowCount:0,TotalRowCount:0,ExecutionTime:0,ErrorMessage:t.toString()}}}async CreateQuery(e){try{const t=await this.Client.request("mutation CreateQuerySystemUser($input: CreateQuerySystemUserInput!) {\n CreateQuerySystemUser(input: $input) {\n Success\n ErrorMessage\n QueryData\n Fields {\n ID\n QueryID\n Name\n Description\n Type\n Sequence\n SQLBaseType\n SQLFullType\n IsComputed\n ComputationDescription\n }\n Parameters {\n ID\n QueryID\n Name\n Type\n DefaultValue\n Comments\n IsRequired\n }\n Entities {\n ID\n QueryID\n EntityID\n EntityName\n }\n Permissions {\n ID\n QueryID\n RoleID\n RoleName\n }\n }\n }",{input:e});return t&&t.CreateQuerySystemUser?t.CreateQuerySystemUser.Success&&t.CreateQuerySystemUser.QueryData?{...t.CreateQuerySystemUser,QueryData:t.CreateQuerySystemUser.QueryData}:t.CreateQuerySystemUser:{Success:!1,ErrorMessage:"Failed to create query"}}catch(e){return s.LogError(`GraphQLSystemUserClient::CreateQuery - Error creating query - ${e}`),{Success:!1,ErrorMessage:e.toString()}}}async UpdateQuery(e){try{const t=await this.Client.request("mutation UpdateQuerySystemUser($input: UpdateQuerySystemUserInput!) {\n UpdateQuerySystemUser(input: $input) {\n Success\n ErrorMessage\n QueryData\n Fields {\n ID\n QueryID\n Name\n Description\n Type\n Sequence\n SQLBaseType\n SQLFullType\n IsComputed\n ComputationDescription\n }\n Parameters {\n ID\n QueryID\n Name\n Type\n DefaultValue\n Comments\n IsRequired\n }\n Entities {\n ID\n QueryID\n EntityID\n EntityName\n Sequence\n }\n Permissions {\n ID\n QueryID\n RoleID\n RoleName\n }\n }\n }",{input:e});return t&&t.UpdateQuerySystemUser?t.UpdateQuerySystemUser.Success&&t.UpdateQuerySystemUser.QueryData?{...t.UpdateQuerySystemUser,QueryData:t.UpdateQuerySystemUser.QueryData}:t.UpdateQuerySystemUser:{Success:!1,ErrorMessage:"Failed to update query"}}catch(e){return s.LogError(`GraphQLSystemUserClient::UpdateQuery - Error updating query - ${e}`),{Success:!1,ErrorMessage:e.toString()}}}async DeleteQuery(e,t){try{if(!e||""===e.trim())return s.LogError("GraphQLSystemUserClient::DeleteQuery - Invalid query ID: ID cannot be null or empty"),{Success:!1,ErrorMessage:"Invalid query ID: ID cannot be null or empty"};const n="mutation DeleteQuerySystemResolver($ID: String!, $options: DeleteOptionsInput) {\n DeleteQuerySystemResolver(ID: $ID, options: $options) {\n Success\n ErrorMessage\n QueryData\n }\n }",r={ID:e};void 0!==t&&(r.options=t);const i=await this.Client.request(n,r);return i&&i.DeleteQuerySystemResolver?i.DeleteQuerySystemResolver:{Success:!1,ErrorMessage:"Failed to delete query"}}catch(e){return s.LogError(`GraphQLSystemUserClient::DeleteQuery - Error deleting query - ${e}`),{Success:!1,ErrorMessage:e.toString()}}}async RunAIPrompt(e){try{const t=o.gql`
|
|
332
332
|
query RunAIPromptSystemUser(
|
|
333
333
|
$promptId: String!,
|
|
334
334
|
$data: String,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/react-runtime",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.115.0",
|
|
4
4
|
"description": "Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/MemberJunction/MJ#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@memberjunction/core": "2.
|
|
31
|
-
"@memberjunction/global": "2.
|
|
32
|
-
"@memberjunction/interactive-component-types": "2.
|
|
33
|
-
"@memberjunction/core-entities": "2.
|
|
34
|
-
"@memberjunction/graphql-dataprovider": "2.
|
|
30
|
+
"@memberjunction/core": "2.115.0",
|
|
31
|
+
"@memberjunction/global": "2.115.0",
|
|
32
|
+
"@memberjunction/interactive-component-types": "2.115.0",
|
|
33
|
+
"@memberjunction/core-entities": "2.115.0",
|
|
34
|
+
"@memberjunction/graphql-dataprovider": "2.115.0",
|
|
35
35
|
"@babel/standalone": "^7.23.5",
|
|
36
36
|
"rxjs": "^7.8.1"
|
|
37
37
|
},
|