@meshery/schemas 0.0.2-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.
@@ -0,0 +1 @@
1
+ 'use strict';var react=require('@reduxjs/toolkit/query/react');var o="Layer5-Current-Orgid";var g=react.fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(e,{getState:t})=>{let n=t().organization.value;return e.set(o,n==null?void 0:n.id),e}}),d=async(e,t,i)=>await g(e,t,i);react.createApi({baseQuery:d,tagTypes:[],endpoints:e=>({})});var a=react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var c=a.injectEndpoints({endpoints:e=>({importDesign:e.mutation({query:t=>({url:"/api/pattern/import",method:"POST",body:t.body})}),registerMeshmodels:e.mutation({query:t=>({url:"/api/meshmodels/register",method:"POST",body:t.body})}),getApiWorkspaces:e.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:e.mutation({query:t=>({url:"/api/workspaces",method:"POST",body:t.body})}),getApiWorkspacesById:e.query({query:t=>({url:`/api/workspaces/${t.id}`})}),putApiWorkspacesById:e.mutation({query:t=>({url:`/api/workspaces/${t.id}`,method:"PUT",body:t.body})}),deleteApiWorkspacesById:e.mutation({query:t=>({url:`/api/workspaces/${t.id}`,method:"DELETE"})}),createEnvironment:e.mutation({query:t=>({url:"/api/environments",method:"POST",body:t.body})}),getEnvironments:e.query({query:t=>({url:"/api/environments",params:{search:t.search,order:t.order,page:t.page,pagesize:t.pagesize,orgID:t.orgId}})}),postEvaluate:e.mutation({query:t=>({url:"/evaluate",method:"POST",body:t.body})})}),overrideExisting:false});var {useImportDesignMutation:b,useRegisterMeshmodelsMutation:v,useGetApiWorkspacesQuery:h,usePostApiWorkspacesMutation:k,useGetApiWorkspacesByIdQuery:f,usePutApiWorkspacesByIdMutation:_,useDeleteApiWorkspacesByIdMutation:C,useCreateEnvironmentMutation:A,useGetEnvironmentsQuery:x,usePostEvaluateMutation:R}=c;exports.mesheryApi=c;exports.useCreateEnvironmentMutation=A;exports.useDeleteApiWorkspacesByIdMutation=C;exports.useGetApiWorkspacesByIdQuery=f;exports.useGetApiWorkspacesQuery=h;exports.useGetEnvironmentsQuery=x;exports.useImportDesignMutation=b;exports.usePostApiWorkspacesMutation=k;exports.usePostEvaluateMutation=R;exports.usePutApiWorkspacesByIdMutation=_;exports.useRegisterMeshmodelsMutation=v;
@@ -0,0 +1 @@
1
+ import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var o="Layer5-Current-Orgid";var g=fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(e,{getState:t})=>{let n=t().organization.value;return e.set(o,n==null?void 0:n.id),e}}),d=async(e,t,i)=>await g(e,t,i);createApi({baseQuery:d,tagTypes:[],endpoints:e=>({})});var a=createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var c=a.injectEndpoints({endpoints:e=>({importDesign:e.mutation({query:t=>({url:"/api/pattern/import",method:"POST",body:t.body})}),registerMeshmodels:e.mutation({query:t=>({url:"/api/meshmodels/register",method:"POST",body:t.body})}),getApiWorkspaces:e.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:e.mutation({query:t=>({url:"/api/workspaces",method:"POST",body:t.body})}),getApiWorkspacesById:e.query({query:t=>({url:`/api/workspaces/${t.id}`})}),putApiWorkspacesById:e.mutation({query:t=>({url:`/api/workspaces/${t.id}`,method:"PUT",body:t.body})}),deleteApiWorkspacesById:e.mutation({query:t=>({url:`/api/workspaces/${t.id}`,method:"DELETE"})}),createEnvironment:e.mutation({query:t=>({url:"/api/environments",method:"POST",body:t.body})}),getEnvironments:e.query({query:t=>({url:"/api/environments",params:{search:t.search,order:t.order,page:t.page,pagesize:t.pagesize,orgID:t.orgId}})}),postEvaluate:e.mutation({query:t=>({url:"/evaluate",method:"POST",body:t.body})})}),overrideExisting:false});var {useImportDesignMutation:b,useRegisterMeshmodelsMutation:v,useGetApiWorkspacesQuery:h,usePostApiWorkspacesMutation:k,useGetApiWorkspacesByIdQuery:f,usePutApiWorkspacesByIdMutation:_,useDeleteApiWorkspacesByIdMutation:C,useCreateEnvironmentMutation:A,useGetEnvironmentsQuery:x,usePostEvaluateMutation:R}=c;export{c as mesheryApi,A as useCreateEnvironmentMutation,C as useDeleteApiWorkspacesByIdMutation,f as useGetApiWorkspacesByIdQuery,h as useGetApiWorkspacesQuery,x as useGetEnvironmentsQuery,b as useImportDesignMutation,k as usePostApiWorkspacesMutation,R as usePostEvaluateMutation,_ as usePutApiWorkspacesByIdMutation,v as useRegisterMeshmodelsMutation};
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@meshery/schemas",
3
+ "version": "0.0.2-0",
4
+ "description": "<p style=\"text-align:center;\" align=\"center\"><a href=\"https://meshery.io\"><picture> <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-light-text-side.svg\"> <source media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-dark-text-side.svg\"> <img src=\"https://raw.githubusercontent.com/meshery/meshery/master/.github/assets/images/readme/meshery-logo-dark-text-side.svg\" alt=\"Meshery Logo\" width=\"70%\" /></picture></a><br /><br /></p> <p align=\"center\"> <a href=\"https://hub.docker.com/r/layer5/meshery\" alt=\"Docker pulls\"> <img src=\"https://img.shields.io/docker/pulls/layer5/meshery.svg\" /></a> <a href=\"https://github.com/issues?q=is%3Aopen+is%3Aissue+archived%3Afalse+org%3Alayer5io+org%3Ameshery+org%3Aservice-mesh-performance+org%3Aservice-mesh-patterns+org%3A+label%3A%22help+wanted%22+\" alt=\"GitHub issues by-label\"> <img src=\"https://img.shields.io/github/issues/layer5io/meshery/help%20wanted.svg?color=informational\" /></a> <a href=\"https://github.com/meshery/meshery/blob/master/LICENSE\" alt=\"LICENSE\"> <img src=\"https://img.shields.io/github/license/meshery/meshery?color=brightgreen\" /></a> <a href=\"https://artifacthub.io/packages/helm/meshery/meshery\" alt=\"Artifact Hub Meshery\"> <img src=\"https://img.shields.io/endpoint?color=brightgreen&label=Helm%20Chart&style=plastic&url=https%3A%2F%2Fartifacthub.io%2Fbadge%2Frepository%2Fartifact-hub\" /></a> <a href=\"https://goreportcard.com/report/github.com/meshery/meshery\" alt=\"Go Report Card\"> <img src=\"https://goreportcard.com/badge/github.com/meshery/meshery\" /></a> <a href=\"https://github.com/meshery/meshery/actions\" alt=\"Build Status\"> <img src=\"https://img.shields.io/github/actions/workflow/status/meshery/meshery/release-drafter.yml\" /></a> <a href=\"https://bestpractices.coreinfrastructure.org/projects/3564\" alt=\"CLI Best Practices\"> <img src=\"https://bestpractices.coreinfrastructure.org/projects/3564/badge\" /></a> <a href=\"http://discuss.meshery.io\" alt=\"Discuss Users\"> <img src=\"https://img.shields.io/discourse/users?label=discuss&logo=discourse&server=https%3A%2F%2Fdiscuss.layer5.io\" /></a> <a href=\"https://slack.meshery.io\" alt=\"Join Slack\"> <img src=\"https://img.shields.io/badge/Slack-@layer5.svg?logo=slack\" /></a> <a href=\"https://twitter.com/intent/follow?screen_name=mesheryio\" alt=\"Twitter Follow\"> <img src=\"https://img.shields.io/twitter/follow/mesheryio.svg?label=Follow+Meshery&style=social\" /></a> <a href=\"https://github.com/meshery/meshery/releases\" alt=\"Meshery Downloads\"> <img src=\"https://img.shields.io/github/downloads/meshery/meshery/total\" /></a> <!-- <a href=\"https://app.fossa.com/projects/git%2Bgithub.com%2Fmeshery%2Fmeshery?ref=badge_shield\" alt=\"License Scan Report\"> <img src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmeshery%2Fmeshery.svg?type=shield\"/></a> --> </p>",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "private": false,
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "scripts": {
16
+ "build": "tsup",
17
+ "generate:types": "./compile-types.sh ./schemas/ ./typescript ./schemas",
18
+ "generate:json": "node ./compile-json-schema.mjs",
19
+ "publish-ts-lib": "node ./publish-npm-package.js"
20
+ },
21
+ "author": "",
22
+ "license": "ISC",
23
+ "devDependencies": {
24
+ "@apidevtools/json-schema-ref-parser": "^11.9.3",
25
+ "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
26
+ "@rtk-query/codegen-openapi": "^2.0.0",
27
+ "esbuild-runner": "^2.2.2",
28
+ "js-yaml": "^4.1.0",
29
+ "json-schema-default": "^1.0.2",
30
+ "json-schema-empty-strings": "^1.0.2",
31
+ "json-schema-faker": "^0.5.8",
32
+ "json-schema-to-typescript": "^14.1.0",
33
+ "lodash.merge": "^4.6.2",
34
+ "ts-node": "^10.9.2",
35
+ "tsup": "^8.4.0",
36
+ "typescript": "^4.9.5"
37
+ },
38
+ "peerDependencies": {
39
+ "@reduxjs/toolkit": "^2.2.5",
40
+ "react-redux": "^8.1.0"
41
+ }
42
+ }