@meshery/schemas 0.8.49 → 0.8.50
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/dist/cloudApi.d.mts +13 -34
- package/dist/cloudApi.d.ts +13 -34
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/package.json +1 -1
package/dist/cloudApi.d.mts
CHANGED
|
@@ -406,7 +406,7 @@ type GetAcademyCirriculaApiArg = {
|
|
|
406
406
|
type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
|
|
407
407
|
/** Id of the cirricula */
|
|
408
408
|
id: string;
|
|
409
|
-
type: "learning-path" | "challenge" | "
|
|
409
|
+
type: "learning-path" | "challenge" | "certification";
|
|
410
410
|
/** Organization ID that owns this learning path */
|
|
411
411
|
orgId: string;
|
|
412
412
|
/** Visibility of the cirricula */
|
|
@@ -433,33 +433,8 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
|
|
|
433
433
|
banner?: string | null;
|
|
434
434
|
/** Canonical URL for the learning path */
|
|
435
435
|
permalink: string;
|
|
436
|
-
/** List of
|
|
437
|
-
|
|
438
|
-
/** Unique identifier for the course */
|
|
439
|
-
id: string;
|
|
440
|
-
/** Title of the course */
|
|
441
|
-
title: string;
|
|
442
|
-
/** URL to the course content */
|
|
443
|
-
permalink: string;
|
|
444
|
-
/** Course description */
|
|
445
|
-
description: string;
|
|
446
|
-
/** Order of the course in the list */
|
|
447
|
-
weight?: number;
|
|
448
|
-
/** Optional banner image */
|
|
449
|
-
banner?: string | null;
|
|
450
|
-
}[];
|
|
451
|
-
[key: string]: any;
|
|
452
|
-
} | {
|
|
453
|
-
/** Title of the learning path */
|
|
454
|
-
title: string;
|
|
455
|
-
/** Description of the learning path */
|
|
456
|
-
description: string;
|
|
457
|
-
/** Optional banner image */
|
|
458
|
-
banner?: string | null;
|
|
459
|
-
/** Canonical URL for the learning path */
|
|
460
|
-
permalink: string;
|
|
461
|
-
/** List of courses in this learning path */
|
|
462
|
-
courses?: {
|
|
436
|
+
/** List of children items in the top-level curricula */
|
|
437
|
+
children?: {
|
|
463
438
|
/** Unique identifier for the course */
|
|
464
439
|
id: string;
|
|
465
440
|
/** Title of the course */
|
|
@@ -472,6 +447,10 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
|
|
|
472
447
|
weight?: number;
|
|
473
448
|
/** Optional banner image */
|
|
474
449
|
banner?: string | null;
|
|
450
|
+
/** Type of the content (e.g., learning-path, challenge, certification) */
|
|
451
|
+
type?: "learning-path" | "challenge" | "certification";
|
|
452
|
+
/** List of child nodes (sub-courses or modules) */
|
|
453
|
+
children?: object[];
|
|
475
454
|
}[];
|
|
476
455
|
[key: string]: any;
|
|
477
456
|
};
|
|
@@ -507,7 +486,7 @@ type RegisterToAcademyContentApiArg = {
|
|
|
507
486
|
body: {
|
|
508
487
|
/** ID of the academy content to register for */
|
|
509
488
|
content_id: string;
|
|
510
|
-
content_type?: "learning-path" | "challenge" | "
|
|
489
|
+
content_type?: "learning-path" | "challenge" | "certification";
|
|
511
490
|
};
|
|
512
491
|
};
|
|
513
492
|
type GetApiAcademyRegistrationsByContentIdApiResponse =
|
|
@@ -547,7 +526,7 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
|
|
|
547
526
|
[key: string]: {
|
|
548
527
|
id: string;
|
|
549
528
|
last_opened: string;
|
|
550
|
-
content_type: "learning-path" | "challenge" | "
|
|
529
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
551
530
|
};
|
|
552
531
|
};
|
|
553
532
|
grades: {
|
|
@@ -628,22 +607,22 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
|
|
|
628
607
|
completed: string;
|
|
629
608
|
};
|
|
630
609
|
registration_id?: string;
|
|
631
|
-
content_type?: "learning-path" | "challenge" | "
|
|
610
|
+
content_type?: "learning-path" | "challenge" | "certification";
|
|
632
611
|
item_data?: {
|
|
633
612
|
id: string;
|
|
634
613
|
last_opened: string;
|
|
635
|
-
content_type: "learning-path" | "challenge" | "
|
|
614
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
636
615
|
};
|
|
637
616
|
};
|
|
638
617
|
type UpdateCurrentItemInProgressTrackerApiArg = {
|
|
639
618
|
/** The ID of the registration */
|
|
640
619
|
registrationId: string;
|
|
641
620
|
body: {
|
|
642
|
-
content_type: "learning-path" | "challenge" | "
|
|
621
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
643
622
|
item_data: {
|
|
644
623
|
id: string;
|
|
645
624
|
last_opened: string;
|
|
646
|
-
content_type: "learning-path" | "challenge" | "
|
|
625
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
647
626
|
};
|
|
648
627
|
};
|
|
649
628
|
};
|
package/dist/cloudApi.d.ts
CHANGED
|
@@ -406,7 +406,7 @@ type GetAcademyCirriculaApiArg = {
|
|
|
406
406
|
type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
|
|
407
407
|
/** Id of the cirricula */
|
|
408
408
|
id: string;
|
|
409
|
-
type: "learning-path" | "challenge" | "
|
|
409
|
+
type: "learning-path" | "challenge" | "certification";
|
|
410
410
|
/** Organization ID that owns this learning path */
|
|
411
411
|
orgId: string;
|
|
412
412
|
/** Visibility of the cirricula */
|
|
@@ -433,33 +433,8 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
|
|
|
433
433
|
banner?: string | null;
|
|
434
434
|
/** Canonical URL for the learning path */
|
|
435
435
|
permalink: string;
|
|
436
|
-
/** List of
|
|
437
|
-
|
|
438
|
-
/** Unique identifier for the course */
|
|
439
|
-
id: string;
|
|
440
|
-
/** Title of the course */
|
|
441
|
-
title: string;
|
|
442
|
-
/** URL to the course content */
|
|
443
|
-
permalink: string;
|
|
444
|
-
/** Course description */
|
|
445
|
-
description: string;
|
|
446
|
-
/** Order of the course in the list */
|
|
447
|
-
weight?: number;
|
|
448
|
-
/** Optional banner image */
|
|
449
|
-
banner?: string | null;
|
|
450
|
-
}[];
|
|
451
|
-
[key: string]: any;
|
|
452
|
-
} | {
|
|
453
|
-
/** Title of the learning path */
|
|
454
|
-
title: string;
|
|
455
|
-
/** Description of the learning path */
|
|
456
|
-
description: string;
|
|
457
|
-
/** Optional banner image */
|
|
458
|
-
banner?: string | null;
|
|
459
|
-
/** Canonical URL for the learning path */
|
|
460
|
-
permalink: string;
|
|
461
|
-
/** List of courses in this learning path */
|
|
462
|
-
courses?: {
|
|
436
|
+
/** List of children items in the top-level curricula */
|
|
437
|
+
children?: {
|
|
463
438
|
/** Unique identifier for the course */
|
|
464
439
|
id: string;
|
|
465
440
|
/** Title of the course */
|
|
@@ -472,6 +447,10 @@ type GetApiAcademyByTypeAndOrgIdSlugApiResponse = {
|
|
|
472
447
|
weight?: number;
|
|
473
448
|
/** Optional banner image */
|
|
474
449
|
banner?: string | null;
|
|
450
|
+
/** Type of the content (e.g., learning-path, challenge, certification) */
|
|
451
|
+
type?: "learning-path" | "challenge" | "certification";
|
|
452
|
+
/** List of child nodes (sub-courses or modules) */
|
|
453
|
+
children?: object[];
|
|
475
454
|
}[];
|
|
476
455
|
[key: string]: any;
|
|
477
456
|
};
|
|
@@ -507,7 +486,7 @@ type RegisterToAcademyContentApiArg = {
|
|
|
507
486
|
body: {
|
|
508
487
|
/** ID of the academy content to register for */
|
|
509
488
|
content_id: string;
|
|
510
|
-
content_type?: "learning-path" | "challenge" | "
|
|
489
|
+
content_type?: "learning-path" | "challenge" | "certification";
|
|
511
490
|
};
|
|
512
491
|
};
|
|
513
492
|
type GetApiAcademyRegistrationsByContentIdApiResponse =
|
|
@@ -547,7 +526,7 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
|
|
|
547
526
|
[key: string]: {
|
|
548
527
|
id: string;
|
|
549
528
|
last_opened: string;
|
|
550
|
-
content_type: "learning-path" | "challenge" | "
|
|
529
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
551
530
|
};
|
|
552
531
|
};
|
|
553
532
|
grades: {
|
|
@@ -628,22 +607,22 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
|
|
|
628
607
|
completed: string;
|
|
629
608
|
};
|
|
630
609
|
registration_id?: string;
|
|
631
|
-
content_type?: "learning-path" | "challenge" | "
|
|
610
|
+
content_type?: "learning-path" | "challenge" | "certification";
|
|
632
611
|
item_data?: {
|
|
633
612
|
id: string;
|
|
634
613
|
last_opened: string;
|
|
635
|
-
content_type: "learning-path" | "challenge" | "
|
|
614
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
636
615
|
};
|
|
637
616
|
};
|
|
638
617
|
type UpdateCurrentItemInProgressTrackerApiArg = {
|
|
639
618
|
/** The ID of the registration */
|
|
640
619
|
registrationId: string;
|
|
641
620
|
body: {
|
|
642
|
-
content_type: "learning-path" | "challenge" | "
|
|
621
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
643
622
|
item_data: {
|
|
644
623
|
id: string;
|
|
645
624
|
last_opened: string;
|
|
646
|
-
content_type: "learning-path" | "challenge" | "
|
|
625
|
+
content_type: "learning-path" | "challenge" | "certification";
|
|
647
626
|
};
|
|
648
627
|
};
|
|
649
628
|
};
|
package/dist/cloudApi.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var react=require('@reduxjs/toolkit/query/react');var p="Layer5-Current-Orgid";var o=react.fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=react.createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:
|
|
1
|
+
'use strict';var react=require('@reduxjs/toolkit/query/react');var p="Layer5-Current-Orgid";var o=react.fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=react.createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});react.createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:react.fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:S,useGetFeaturesByOrganizationQuery:P,useGetApiWorkspacesQuery:x,usePostApiWorkspacesMutation:C,useGetApiWorkspacesByIdQuery:E,usePutApiWorkspacesByIdMutation:G,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:W,useGetApiAcademyByTypeAndOrgIdSlugQuery:O,useRegisterToAcademyContentMutation:v,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:f,useSubmitQuizMutation:q}=d;exports.cloudApi=d;exports.useCreateEnvironmentMutation=B;exports.useDeleteApiWorkspacesByIdMutation=T;exports.useGetAcademyCirriculaQuery=W;exports.useGetApiAcademyByTypeAndOrgIdSlugQuery=O;exports.useGetApiAcademyRegistrationsByContentIdQuery=w;exports.useGetApiWorkspacesByIdQuery=E;exports.useGetApiWorkspacesQuery=x;exports.useGetEnvironmentsQuery=z;exports.useGetFeaturesByOrganizationQuery=P;exports.useGetFeaturesQuery=S;exports.useGetMyAcademyCirriculaQuery=D;exports.useGetPlansQuery=h;exports.useGetSubscriptionsQuery=b;exports.useImportDesignMutation=A;exports.usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation=I;exports.usePostApiEntitlementSubscriptionsCreateMutation=k;exports.usePostApiEntitlementSubscriptionsWebhooksMutation=R;exports.usePostApiWorkspacesMutation=C;exports.usePutApiWorkspacesByIdMutation=G;exports.useRegisterMeshmodelsMutation=_;exports.useRegisterToAcademyContentMutation=v;exports.useSubmitQuizMutation=q;exports.useUpdateCurrentItemInProgressTrackerMutation=f;
|
package/dist/cloudApi.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var p="Layer5-Current-Orgid";var o=fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:
|
|
1
|
+
import {fetchBaseQuery,createApi}from'@reduxjs/toolkit/query/react';var p="Layer5-Current-Orgid";var o=fetchBaseQuery({baseUrl:process.env.RTK_CLOUD_ENDPOINT_PREFIX,credentials:"include",prepareHeaders:(t,{getState:e})=>{let i=e().organization.value;return t.set(p,i==null?void 0:i.id),t}}),g=async(t,e,r)=>await o(t,e,r),a=createApi({baseQuery:g,tagTypes:[],endpoints:t=>({})});createApi({reducerPath:"mesheryRtkSchemasApi",baseQuery:fetchBaseQuery({baseUrl:process.env.RTK_MESHERY_ENDPOINT_PREFIX,credentials:"include"}),endpoints:()=>({})});var d=a.injectEndpoints({endpoints:t=>({importDesign:t.mutation({query:e=>({url:"/api/pattern/import",method:"POST",body:e.body})}),registerMeshmodels:t.mutation({query:e=>({url:"/api/meshmodels/register",method:"POST",body:e.body})}),getSubscriptions:t.query({query:e=>({url:"/api/entitlement/subscriptions",params:{page:e.page,pagesize:e.pagesize,order:e.order,status:e.status}})}),postApiEntitlementSubscriptionsBySubscriptionIdCancel:t.mutation({query:e=>({url:`/api/entitlement/subscriptions/${e.subscriptionId}/cancel`,method:"POST"})}),postApiEntitlementSubscriptionsCreate:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/create",method:"POST",body:e.body})}),postApiEntitlementSubscriptionsWebhooks:t.mutation({query:e=>({url:"/api/entitlement/subscriptions/webhooks",method:"POST",body:e.body})}),getPlans:t.query({query:()=>({url:"/api/entitlement/plans"})}),getFeatures:t.query({query:()=>({url:"/api/entitlement/features"})}),getFeaturesByOrganization:t.query({query:e=>({url:`/api/entitlement/subscriptions/organizations/${e.organizationId}/features`})}),getApiWorkspaces:t.query({query:()=>({url:"/api/workspaces"})}),postApiWorkspaces:t.mutation({query:e=>({url:"/api/workspaces",method:"POST",body:e.body})}),getApiWorkspacesById:t.query({query:e=>({url:`/api/workspaces/${e.id}`})}),putApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"PUT",body:e.body})}),deleteApiWorkspacesById:t.mutation({query:e=>({url:`/api/workspaces/${e.id}`,method:"DELETE"})}),createEnvironment:t.mutation({query:e=>({url:"/api/environments",method:"POST",body:e.body})}),getEnvironments:t.query({query:e=>({url:"/api/environments",params:{search:e.search,order:e.order,page:e.page,pagesize:e.pagesize,orgID:e.orgId}})}),getMyAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula/registered",params:{contentType:e.contentType,orgId:e.orgId}})}),getAcademyCirricula:t.query({query:e=>({url:"/api/academy/cirricula",params:{contentType:e.contentType,visibility:e.visibility,level:e.level,orgId:e.orgId,category:e.category,status:e.status,search:e.search}})}),getApiAcademyByTypeAndOrgIdSlug:t.query({query:e=>({url:`/api/academy/${e.type}/${e.orgId}/${e.slug}`})}),registerToAcademyContent:t.mutation({query:e=>({url:"/api/academy/register",method:"POST",body:e.body})}),getApiAcademyRegistrationsByContentId:t.query({query:e=>({url:`/api/academy/registrations/${e.contentId}`,params:{status:e.status}})}),updateCurrentItemInProgressTracker:t.mutation({query:e=>({url:`/api/academy/registrations/${e.registrationId}/progress-tracker/update-current-item`,method:"POST",body:e.body})}),submitQuiz:t.mutation({query:e=>({url:"/api/academy/quiz/submit",method:"POST",body:e.body})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:k,usePostApiEntitlementSubscriptionsWebhooksMutation:R,useGetPlansQuery:h,useGetFeaturesQuery:S,useGetFeaturesByOrganizationQuery:P,useGetApiWorkspacesQuery:x,usePostApiWorkspacesMutation:C,useGetApiWorkspacesByIdQuery:E,usePutApiWorkspacesByIdMutation:G,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:W,useGetApiAcademyByTypeAndOrgIdSlugQuery:O,useRegisterToAcademyContentMutation:v,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:f,useSubmitQuizMutation:q}=d;export{d as cloudApi,B as useCreateEnvironmentMutation,T as useDeleteApiWorkspacesByIdMutation,W as useGetAcademyCirriculaQuery,O as useGetApiAcademyByTypeAndOrgIdSlugQuery,w as useGetApiAcademyRegistrationsByContentIdQuery,E as useGetApiWorkspacesByIdQuery,x as useGetApiWorkspacesQuery,z as useGetEnvironmentsQuery,P as useGetFeaturesByOrganizationQuery,S as useGetFeaturesQuery,D as useGetMyAcademyCirriculaQuery,h as useGetPlansQuery,b as useGetSubscriptionsQuery,A as useImportDesignMutation,I as usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation,k as usePostApiEntitlementSubscriptionsCreateMutation,R as usePostApiEntitlementSubscriptionsWebhooksMutation,C as usePostApiWorkspacesMutation,G as usePutApiWorkspacesByIdMutation,_ as useRegisterMeshmodelsMutation,v as useRegisterToAcademyContentMutation,q as useSubmitQuizMutation,f as useUpdateCurrentItemInProgressTrackerMutation};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshery/schemas",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.50",
|
|
4
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/meshery/meshery\" alt=\"Docker pulls\"> <img src=\"https://img.shields.io/docker/pulls/meshery/meshery.svg\" /></a> <a href=\"https://github.com/issues?q=is%3Aopen+is%3Aissue+archived%3Afalse+org%meshery+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/meshery/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.meshery.io\" /></a> <a href=\"https://slack.meshery.io\" alt=\"Join Slack\"> <img src=\"https://img.shields.io/badge/Slack-@meshery.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
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|