@meshery/schemas 0.8.54 → 0.8.56
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 +208 -3
- package/dist/cloudApi.d.ts +208 -3
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/mesheryApi.d.mts +82 -82
- package/dist/mesheryApi.d.ts +82 -82
- package/package.json +1 -1
package/dist/cloudApi.d.mts
CHANGED
|
@@ -26,6 +26,7 @@ declare const injectedRtkApi: _reduxjs_toolkit_query.Api<(args: any, api: any, e
|
|
|
26
26
|
updateCurrentItemInProgressTracker: _reduxjs_toolkit_query.MutationDefinition<UpdateCurrentItemInProgressTrackerApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, UpdateCurrentItemInProgressTrackerApiResponse, "api", unknown>;
|
|
27
27
|
submitQuiz: _reduxjs_toolkit_query.MutationDefinition<SubmitQuizApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, SubmitQuizApiResponse, "api", unknown>;
|
|
28
28
|
getAcademyAdminSummary: _reduxjs_toolkit_query.QueryDefinition<void, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, object, "api", unknown>;
|
|
29
|
+
getAcademyAdminRegistrations: _reduxjs_toolkit_query.QueryDefinition<GetAcademyAdminRegistrationsApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, GetAcademyAdminRegistrationsApiResponse, "api", unknown>;
|
|
29
30
|
}, "api", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_dist_query_react.reactHooksModuleName>;
|
|
30
31
|
|
|
31
32
|
type ImportDesignApiResponse = {
|
|
@@ -489,7 +490,7 @@ type RegisterToAcademyContentApiResponse = {
|
|
|
489
490
|
/** ID of the user (foreign key to User) */
|
|
490
491
|
user_id: string;
|
|
491
492
|
/** Status of the user's course registration */
|
|
492
|
-
status: "registered" | "
|
|
493
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
493
494
|
/** When the registration was updated */
|
|
494
495
|
updated_at: string;
|
|
495
496
|
/** When the registration was created */
|
|
@@ -519,7 +520,7 @@ type GetApiAcademyRegistrationsByContentIdApiResponse =
|
|
|
519
520
|
/** ID of the user (foreign key to User) */
|
|
520
521
|
user_id: string;
|
|
521
522
|
/** Status of the user's course registration */
|
|
522
|
-
status: "registered" | "
|
|
523
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
523
524
|
/** When the registration was updated */
|
|
524
525
|
updated_at: string;
|
|
525
526
|
/** When the registration was created */
|
|
@@ -724,6 +725,47 @@ type SubmitQuizApiArg = {
|
|
|
724
725
|
type GetAcademyAdminSummaryApiResponse =
|
|
725
726
|
/** status 200 A list of content with total count and registration metrics */ object;
|
|
726
727
|
type GetAcademyAdminSummaryApiArg = void;
|
|
728
|
+
type GetAcademyAdminRegistrationsApiResponse = {
|
|
729
|
+
data: {
|
|
730
|
+
/** Title of the curricula */
|
|
731
|
+
curricula_title: string;
|
|
732
|
+
/** Type of the curricula */
|
|
733
|
+
curricula_type: "learning-path" | "challenge" | "certification";
|
|
734
|
+
/** Permalink of the curricula */
|
|
735
|
+
curricula_permalink: string;
|
|
736
|
+
/** Unique ID of the registration */
|
|
737
|
+
registration_id: string;
|
|
738
|
+
/** Registration status */
|
|
739
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
740
|
+
/** When the registration was created */
|
|
741
|
+
created_at?: string;
|
|
742
|
+
/** ID of the user */
|
|
743
|
+
user_id: string;
|
|
744
|
+
/** First name of the user */
|
|
745
|
+
user_first_name: string;
|
|
746
|
+
/** Last name of the user */
|
|
747
|
+
user_last_name: string;
|
|
748
|
+
/** Email of the user */
|
|
749
|
+
user_email: string;
|
|
750
|
+
/** Avatar URL of the user */
|
|
751
|
+
user_avatar_url: string;
|
|
752
|
+
/** Total count for pagination */
|
|
753
|
+
total_count: number;
|
|
754
|
+
}[];
|
|
755
|
+
total_count: number;
|
|
756
|
+
page_size: number;
|
|
757
|
+
page: number;
|
|
758
|
+
};
|
|
759
|
+
type GetAcademyAdminRegistrationsApiArg = {
|
|
760
|
+
/** Number of results per page */
|
|
761
|
+
pagesize?: number;
|
|
762
|
+
/** Page number */
|
|
763
|
+
page?: number;
|
|
764
|
+
/** Filter by content types */
|
|
765
|
+
contentType?: string[];
|
|
766
|
+
/** Filter by registration status */
|
|
767
|
+
status?: string[];
|
|
768
|
+
};
|
|
727
769
|
declare const useImportDesignMutation: <R extends Record<string, any> = ({
|
|
728
770
|
requestId?: undefined;
|
|
729
771
|
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
@@ -4612,5 +4654,168 @@ declare const useGetAcademyAdminSummaryQuery: <R extends Record<string, any> = (
|
|
|
4612
4654
|
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
4613
4655
|
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<void, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, object, "api", unknown>>;
|
|
4614
4656
|
};
|
|
4657
|
+
declare const useGetAcademyAdminRegistrationsQuery: <R extends Record<string, any> = ({
|
|
4658
|
+
data?: undefined;
|
|
4659
|
+
error?: undefined;
|
|
4660
|
+
fulfilledTimeStamp?: undefined;
|
|
4661
|
+
originalArgs?: undefined;
|
|
4662
|
+
requestId?: undefined;
|
|
4663
|
+
endpointName?: string | undefined;
|
|
4664
|
+
startedTimeStamp?: undefined;
|
|
4665
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4666
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4667
|
+
isLoading: false;
|
|
4668
|
+
isFetching: false;
|
|
4669
|
+
isSuccess: false;
|
|
4670
|
+
isError: false;
|
|
4671
|
+
isUninitialized: true;
|
|
4672
|
+
} | {
|
|
4673
|
+
error?: unknown;
|
|
4674
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4675
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4676
|
+
requestId?: string | undefined;
|
|
4677
|
+
endpointName?: string | undefined;
|
|
4678
|
+
startedTimeStamp?: number | undefined;
|
|
4679
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4680
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4681
|
+
isUninitialized: false;
|
|
4682
|
+
isSuccess: false;
|
|
4683
|
+
isError: false;
|
|
4684
|
+
isLoading: true;
|
|
4685
|
+
isFetching: boolean;
|
|
4686
|
+
data: undefined;
|
|
4687
|
+
} | {
|
|
4688
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4689
|
+
requestId?: string | undefined;
|
|
4690
|
+
endpointName?: string | undefined;
|
|
4691
|
+
startedTimeStamp?: number | undefined;
|
|
4692
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4693
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4694
|
+
isUninitialized: false;
|
|
4695
|
+
isLoading: false;
|
|
4696
|
+
isError: false;
|
|
4697
|
+
isSuccess: true;
|
|
4698
|
+
isFetching: true;
|
|
4699
|
+
error: undefined;
|
|
4700
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4701
|
+
fulfilledTimeStamp: number;
|
|
4702
|
+
} | {
|
|
4703
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4704
|
+
requestId?: string | undefined;
|
|
4705
|
+
endpointName?: string | undefined;
|
|
4706
|
+
startedTimeStamp?: number | undefined;
|
|
4707
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4708
|
+
isUninitialized: false;
|
|
4709
|
+
isLoading: false;
|
|
4710
|
+
isError: false;
|
|
4711
|
+
isSuccess: true;
|
|
4712
|
+
isFetching: false;
|
|
4713
|
+
error: undefined;
|
|
4714
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4715
|
+
fulfilledTimeStamp: number;
|
|
4716
|
+
currentData: GetAcademyAdminRegistrationsApiResponse;
|
|
4717
|
+
} | {
|
|
4718
|
+
data?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4719
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4720
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4721
|
+
requestId?: string | undefined;
|
|
4722
|
+
endpointName?: string | undefined;
|
|
4723
|
+
startedTimeStamp?: number | undefined;
|
|
4724
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4725
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4726
|
+
isUninitialized: false;
|
|
4727
|
+
isLoading: false;
|
|
4728
|
+
isFetching: false;
|
|
4729
|
+
isSuccess: false;
|
|
4730
|
+
isError: true;
|
|
4731
|
+
error: unknown;
|
|
4732
|
+
}) & {
|
|
4733
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4734
|
+
}>(arg: GetAcademyAdminRegistrationsApiArg | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
4735
|
+
skip?: boolean | undefined;
|
|
4736
|
+
refetchOnMountOrArgChange?: number | boolean | undefined;
|
|
4737
|
+
} & {
|
|
4738
|
+
skip?: boolean | undefined;
|
|
4739
|
+
selectFromResult?: ((state: ({
|
|
4740
|
+
data?: undefined;
|
|
4741
|
+
error?: undefined;
|
|
4742
|
+
fulfilledTimeStamp?: undefined;
|
|
4743
|
+
originalArgs?: undefined;
|
|
4744
|
+
requestId?: undefined;
|
|
4745
|
+
endpointName?: string | undefined;
|
|
4746
|
+
startedTimeStamp?: undefined;
|
|
4747
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4748
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4749
|
+
isLoading: false;
|
|
4750
|
+
isFetching: false;
|
|
4751
|
+
isSuccess: false;
|
|
4752
|
+
isError: false;
|
|
4753
|
+
isUninitialized: true;
|
|
4754
|
+
} | {
|
|
4755
|
+
error?: unknown;
|
|
4756
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4757
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4758
|
+
requestId?: string | undefined;
|
|
4759
|
+
endpointName?: string | undefined;
|
|
4760
|
+
startedTimeStamp?: number | undefined;
|
|
4761
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4762
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4763
|
+
isUninitialized: false;
|
|
4764
|
+
isSuccess: false;
|
|
4765
|
+
isError: false;
|
|
4766
|
+
isLoading: true;
|
|
4767
|
+
isFetching: boolean;
|
|
4768
|
+
data: undefined;
|
|
4769
|
+
} | {
|
|
4770
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4771
|
+
requestId?: string | undefined;
|
|
4772
|
+
endpointName?: string | undefined;
|
|
4773
|
+
startedTimeStamp?: number | undefined;
|
|
4774
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4775
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4776
|
+
isUninitialized: false;
|
|
4777
|
+
isLoading: false;
|
|
4778
|
+
isError: false;
|
|
4779
|
+
isSuccess: true;
|
|
4780
|
+
isFetching: true;
|
|
4781
|
+
error: undefined;
|
|
4782
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4783
|
+
fulfilledTimeStamp: number;
|
|
4784
|
+
} | {
|
|
4785
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4786
|
+
requestId?: string | undefined;
|
|
4787
|
+
endpointName?: string | undefined;
|
|
4788
|
+
startedTimeStamp?: number | undefined;
|
|
4789
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4790
|
+
isUninitialized: false;
|
|
4791
|
+
isLoading: false;
|
|
4792
|
+
isError: false;
|
|
4793
|
+
isSuccess: true;
|
|
4794
|
+
isFetching: false;
|
|
4795
|
+
error: undefined;
|
|
4796
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4797
|
+
fulfilledTimeStamp: number;
|
|
4798
|
+
currentData: GetAcademyAdminRegistrationsApiResponse;
|
|
4799
|
+
} | {
|
|
4800
|
+
data?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4801
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4802
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4803
|
+
requestId?: string | undefined;
|
|
4804
|
+
endpointName?: string | undefined;
|
|
4805
|
+
startedTimeStamp?: number | undefined;
|
|
4806
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4807
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4808
|
+
isUninitialized: false;
|
|
4809
|
+
isLoading: false;
|
|
4810
|
+
isFetching: false;
|
|
4811
|
+
isSuccess: false;
|
|
4812
|
+
isError: true;
|
|
4813
|
+
error: unknown;
|
|
4814
|
+
}) & {
|
|
4815
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4816
|
+
}) => R) | undefined;
|
|
4817
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
4818
|
+
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<GetAcademyAdminRegistrationsApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, GetAcademyAdminRegistrationsApiResponse, "api", unknown>>;
|
|
4819
|
+
};
|
|
4615
4820
|
|
|
4616
|
-
export { type CreateEnvironmentApiArg, type CreateEnvironmentApiResponse, type DeleteApiWorkspacesByIdApiArg, type DeleteApiWorkspacesByIdApiResponse, type GetAcademyAdminSummaryApiArg, type GetAcademyAdminSummaryApiResponse, type GetAcademyCirriculaApiArg, type GetAcademyCirriculaApiResponse, type GetApiAcademyByTypeAndOrgIdSlugApiArg, type GetApiAcademyByTypeAndOrgIdSlugApiResponse, type GetApiAcademyRegistrationsByContentIdApiArg, type GetApiAcademyRegistrationsByContentIdApiResponse, type GetApiWorkspacesApiArg, type GetApiWorkspacesApiResponse, type GetApiWorkspacesByIdApiArg, type GetApiWorkspacesByIdApiResponse, type GetEnvironmentsApiArg, type GetEnvironmentsApiResponse, type GetFeaturesApiArg, type GetFeaturesApiResponse, type GetFeaturesByOrganizationApiArg, type GetFeaturesByOrganizationApiResponse, type GetMyAcademyCirriculaApiArg, type GetMyAcademyCirriculaApiResponse, type GetPlansApiArg, type GetPlansApiResponse, type GetSubscriptionsApiArg, type GetSubscriptionsApiResponse, type ImportDesignApiArg, type ImportDesignApiResponse, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiArg, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiResponse, type PostApiEntitlementSubscriptionsCreateApiArg, type PostApiEntitlementSubscriptionsCreateApiResponse, type PostApiEntitlementSubscriptionsWebhooksApiArg, type PostApiEntitlementSubscriptionsWebhooksApiResponse, type PostApiWorkspacesApiArg, type PostApiWorkspacesApiResponse, type PutApiWorkspacesByIdApiArg, type PutApiWorkspacesByIdApiResponse, type RegisterMeshmodelsApiArg, type RegisterMeshmodelsApiResponse, type RegisterToAcademyContentApiArg, type RegisterToAcademyContentApiResponse, type SubmitQuizApiArg, type SubmitQuizApiResponse, type UpdateCurrentItemInProgressTrackerApiArg, type UpdateCurrentItemInProgressTrackerApiResponse, injectedRtkApi as cloudApi, useCreateEnvironmentMutation, useDeleteApiWorkspacesByIdMutation, useGetAcademyAdminSummaryQuery, useGetAcademyCirriculaQuery, useGetApiAcademyByTypeAndOrgIdSlugQuery, useGetApiAcademyRegistrationsByContentIdQuery, useGetApiWorkspacesByIdQuery, useGetApiWorkspacesQuery, useGetEnvironmentsQuery, useGetFeaturesByOrganizationQuery, useGetFeaturesQuery, useGetMyAcademyCirriculaQuery, useGetPlansQuery, useGetSubscriptionsQuery, useImportDesignMutation, usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation, usePostApiEntitlementSubscriptionsCreateMutation, usePostApiEntitlementSubscriptionsWebhooksMutation, usePostApiWorkspacesMutation, usePutApiWorkspacesByIdMutation, useRegisterMeshmodelsMutation, useRegisterToAcademyContentMutation, useSubmitQuizMutation, useUpdateCurrentItemInProgressTrackerMutation };
|
|
4821
|
+
export { type CreateEnvironmentApiArg, type CreateEnvironmentApiResponse, type DeleteApiWorkspacesByIdApiArg, type DeleteApiWorkspacesByIdApiResponse, type GetAcademyAdminRegistrationsApiArg, type GetAcademyAdminRegistrationsApiResponse, type GetAcademyAdminSummaryApiArg, type GetAcademyAdminSummaryApiResponse, type GetAcademyCirriculaApiArg, type GetAcademyCirriculaApiResponse, type GetApiAcademyByTypeAndOrgIdSlugApiArg, type GetApiAcademyByTypeAndOrgIdSlugApiResponse, type GetApiAcademyRegistrationsByContentIdApiArg, type GetApiAcademyRegistrationsByContentIdApiResponse, type GetApiWorkspacesApiArg, type GetApiWorkspacesApiResponse, type GetApiWorkspacesByIdApiArg, type GetApiWorkspacesByIdApiResponse, type GetEnvironmentsApiArg, type GetEnvironmentsApiResponse, type GetFeaturesApiArg, type GetFeaturesApiResponse, type GetFeaturesByOrganizationApiArg, type GetFeaturesByOrganizationApiResponse, type GetMyAcademyCirriculaApiArg, type GetMyAcademyCirriculaApiResponse, type GetPlansApiArg, type GetPlansApiResponse, type GetSubscriptionsApiArg, type GetSubscriptionsApiResponse, type ImportDesignApiArg, type ImportDesignApiResponse, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiArg, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiResponse, type PostApiEntitlementSubscriptionsCreateApiArg, type PostApiEntitlementSubscriptionsCreateApiResponse, type PostApiEntitlementSubscriptionsWebhooksApiArg, type PostApiEntitlementSubscriptionsWebhooksApiResponse, type PostApiWorkspacesApiArg, type PostApiWorkspacesApiResponse, type PutApiWorkspacesByIdApiArg, type PutApiWorkspacesByIdApiResponse, type RegisterMeshmodelsApiArg, type RegisterMeshmodelsApiResponse, type RegisterToAcademyContentApiArg, type RegisterToAcademyContentApiResponse, type SubmitQuizApiArg, type SubmitQuizApiResponse, type UpdateCurrentItemInProgressTrackerApiArg, type UpdateCurrentItemInProgressTrackerApiResponse, injectedRtkApi as cloudApi, useCreateEnvironmentMutation, useDeleteApiWorkspacesByIdMutation, useGetAcademyAdminRegistrationsQuery, useGetAcademyAdminSummaryQuery, useGetAcademyCirriculaQuery, useGetApiAcademyByTypeAndOrgIdSlugQuery, useGetApiAcademyRegistrationsByContentIdQuery, useGetApiWorkspacesByIdQuery, useGetApiWorkspacesQuery, useGetEnvironmentsQuery, useGetFeaturesByOrganizationQuery, useGetFeaturesQuery, useGetMyAcademyCirriculaQuery, useGetPlansQuery, useGetSubscriptionsQuery, useImportDesignMutation, usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation, usePostApiEntitlementSubscriptionsCreateMutation, usePostApiEntitlementSubscriptionsWebhooksMutation, usePostApiWorkspacesMutation, usePutApiWorkspacesByIdMutation, useRegisterMeshmodelsMutation, useRegisterToAcademyContentMutation, useSubmitQuizMutation, useUpdateCurrentItemInProgressTrackerMutation };
|
package/dist/cloudApi.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare const injectedRtkApi: _reduxjs_toolkit_query.Api<(args: any, api: any, e
|
|
|
26
26
|
updateCurrentItemInProgressTracker: _reduxjs_toolkit_query.MutationDefinition<UpdateCurrentItemInProgressTrackerApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, UpdateCurrentItemInProgressTrackerApiResponse, "api", unknown>;
|
|
27
27
|
submitQuiz: _reduxjs_toolkit_query.MutationDefinition<SubmitQuizApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, SubmitQuizApiResponse, "api", unknown>;
|
|
28
28
|
getAcademyAdminSummary: _reduxjs_toolkit_query.QueryDefinition<void, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, object, "api", unknown>;
|
|
29
|
+
getAcademyAdminRegistrations: _reduxjs_toolkit_query.QueryDefinition<GetAcademyAdminRegistrationsApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, GetAcademyAdminRegistrationsApiResponse, "api", unknown>;
|
|
29
30
|
}, "api", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_dist_query_react.reactHooksModuleName>;
|
|
30
31
|
|
|
31
32
|
type ImportDesignApiResponse = {
|
|
@@ -489,7 +490,7 @@ type RegisterToAcademyContentApiResponse = {
|
|
|
489
490
|
/** ID of the user (foreign key to User) */
|
|
490
491
|
user_id: string;
|
|
491
492
|
/** Status of the user's course registration */
|
|
492
|
-
status: "registered" | "
|
|
493
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
493
494
|
/** When the registration was updated */
|
|
494
495
|
updated_at: string;
|
|
495
496
|
/** When the registration was created */
|
|
@@ -519,7 +520,7 @@ type GetApiAcademyRegistrationsByContentIdApiResponse =
|
|
|
519
520
|
/** ID of the user (foreign key to User) */
|
|
520
521
|
user_id: string;
|
|
521
522
|
/** Status of the user's course registration */
|
|
522
|
-
status: "registered" | "
|
|
523
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
523
524
|
/** When the registration was updated */
|
|
524
525
|
updated_at: string;
|
|
525
526
|
/** When the registration was created */
|
|
@@ -724,6 +725,47 @@ type SubmitQuizApiArg = {
|
|
|
724
725
|
type GetAcademyAdminSummaryApiResponse =
|
|
725
726
|
/** status 200 A list of content with total count and registration metrics */ object;
|
|
726
727
|
type GetAcademyAdminSummaryApiArg = void;
|
|
728
|
+
type GetAcademyAdminRegistrationsApiResponse = {
|
|
729
|
+
data: {
|
|
730
|
+
/** Title of the curricula */
|
|
731
|
+
curricula_title: string;
|
|
732
|
+
/** Type of the curricula */
|
|
733
|
+
curricula_type: "learning-path" | "challenge" | "certification";
|
|
734
|
+
/** Permalink of the curricula */
|
|
735
|
+
curricula_permalink: string;
|
|
736
|
+
/** Unique ID of the registration */
|
|
737
|
+
registration_id: string;
|
|
738
|
+
/** Registration status */
|
|
739
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
740
|
+
/** When the registration was created */
|
|
741
|
+
created_at?: string;
|
|
742
|
+
/** ID of the user */
|
|
743
|
+
user_id: string;
|
|
744
|
+
/** First name of the user */
|
|
745
|
+
user_first_name: string;
|
|
746
|
+
/** Last name of the user */
|
|
747
|
+
user_last_name: string;
|
|
748
|
+
/** Email of the user */
|
|
749
|
+
user_email: string;
|
|
750
|
+
/** Avatar URL of the user */
|
|
751
|
+
user_avatar_url: string;
|
|
752
|
+
/** Total count for pagination */
|
|
753
|
+
total_count: number;
|
|
754
|
+
}[];
|
|
755
|
+
total_count: number;
|
|
756
|
+
page_size: number;
|
|
757
|
+
page: number;
|
|
758
|
+
};
|
|
759
|
+
type GetAcademyAdminRegistrationsApiArg = {
|
|
760
|
+
/** Number of results per page */
|
|
761
|
+
pagesize?: number;
|
|
762
|
+
/** Page number */
|
|
763
|
+
page?: number;
|
|
764
|
+
/** Filter by content types */
|
|
765
|
+
contentType?: string[];
|
|
766
|
+
/** Filter by registration status */
|
|
767
|
+
status?: string[];
|
|
768
|
+
};
|
|
727
769
|
declare const useImportDesignMutation: <R extends Record<string, any> = ({
|
|
728
770
|
requestId?: undefined;
|
|
729
771
|
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
@@ -4612,5 +4654,168 @@ declare const useGetAcademyAdminSummaryQuery: <R extends Record<string, any> = (
|
|
|
4612
4654
|
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
4613
4655
|
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<void, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, object, "api", unknown>>;
|
|
4614
4656
|
};
|
|
4657
|
+
declare const useGetAcademyAdminRegistrationsQuery: <R extends Record<string, any> = ({
|
|
4658
|
+
data?: undefined;
|
|
4659
|
+
error?: undefined;
|
|
4660
|
+
fulfilledTimeStamp?: undefined;
|
|
4661
|
+
originalArgs?: undefined;
|
|
4662
|
+
requestId?: undefined;
|
|
4663
|
+
endpointName?: string | undefined;
|
|
4664
|
+
startedTimeStamp?: undefined;
|
|
4665
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4666
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4667
|
+
isLoading: false;
|
|
4668
|
+
isFetching: false;
|
|
4669
|
+
isSuccess: false;
|
|
4670
|
+
isError: false;
|
|
4671
|
+
isUninitialized: true;
|
|
4672
|
+
} | {
|
|
4673
|
+
error?: unknown;
|
|
4674
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4675
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4676
|
+
requestId?: string | undefined;
|
|
4677
|
+
endpointName?: string | undefined;
|
|
4678
|
+
startedTimeStamp?: number | undefined;
|
|
4679
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4680
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4681
|
+
isUninitialized: false;
|
|
4682
|
+
isSuccess: false;
|
|
4683
|
+
isError: false;
|
|
4684
|
+
isLoading: true;
|
|
4685
|
+
isFetching: boolean;
|
|
4686
|
+
data: undefined;
|
|
4687
|
+
} | {
|
|
4688
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4689
|
+
requestId?: string | undefined;
|
|
4690
|
+
endpointName?: string | undefined;
|
|
4691
|
+
startedTimeStamp?: number | undefined;
|
|
4692
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4693
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4694
|
+
isUninitialized: false;
|
|
4695
|
+
isLoading: false;
|
|
4696
|
+
isError: false;
|
|
4697
|
+
isSuccess: true;
|
|
4698
|
+
isFetching: true;
|
|
4699
|
+
error: undefined;
|
|
4700
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4701
|
+
fulfilledTimeStamp: number;
|
|
4702
|
+
} | {
|
|
4703
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4704
|
+
requestId?: string | undefined;
|
|
4705
|
+
endpointName?: string | undefined;
|
|
4706
|
+
startedTimeStamp?: number | undefined;
|
|
4707
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4708
|
+
isUninitialized: false;
|
|
4709
|
+
isLoading: false;
|
|
4710
|
+
isError: false;
|
|
4711
|
+
isSuccess: true;
|
|
4712
|
+
isFetching: false;
|
|
4713
|
+
error: undefined;
|
|
4714
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4715
|
+
fulfilledTimeStamp: number;
|
|
4716
|
+
currentData: GetAcademyAdminRegistrationsApiResponse;
|
|
4717
|
+
} | {
|
|
4718
|
+
data?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4719
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4720
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4721
|
+
requestId?: string | undefined;
|
|
4722
|
+
endpointName?: string | undefined;
|
|
4723
|
+
startedTimeStamp?: number | undefined;
|
|
4724
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4725
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4726
|
+
isUninitialized: false;
|
|
4727
|
+
isLoading: false;
|
|
4728
|
+
isFetching: false;
|
|
4729
|
+
isSuccess: false;
|
|
4730
|
+
isError: true;
|
|
4731
|
+
error: unknown;
|
|
4732
|
+
}) & {
|
|
4733
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4734
|
+
}>(arg: GetAcademyAdminRegistrationsApiArg | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
4735
|
+
skip?: boolean | undefined;
|
|
4736
|
+
refetchOnMountOrArgChange?: number | boolean | undefined;
|
|
4737
|
+
} & {
|
|
4738
|
+
skip?: boolean | undefined;
|
|
4739
|
+
selectFromResult?: ((state: ({
|
|
4740
|
+
data?: undefined;
|
|
4741
|
+
error?: undefined;
|
|
4742
|
+
fulfilledTimeStamp?: undefined;
|
|
4743
|
+
originalArgs?: undefined;
|
|
4744
|
+
requestId?: undefined;
|
|
4745
|
+
endpointName?: string | undefined;
|
|
4746
|
+
startedTimeStamp?: undefined;
|
|
4747
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4748
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4749
|
+
isLoading: false;
|
|
4750
|
+
isFetching: false;
|
|
4751
|
+
isSuccess: false;
|
|
4752
|
+
isError: false;
|
|
4753
|
+
isUninitialized: true;
|
|
4754
|
+
} | {
|
|
4755
|
+
error?: unknown;
|
|
4756
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4757
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4758
|
+
requestId?: string | undefined;
|
|
4759
|
+
endpointName?: string | undefined;
|
|
4760
|
+
startedTimeStamp?: number | undefined;
|
|
4761
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4762
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4763
|
+
isUninitialized: false;
|
|
4764
|
+
isSuccess: false;
|
|
4765
|
+
isError: false;
|
|
4766
|
+
isLoading: true;
|
|
4767
|
+
isFetching: boolean;
|
|
4768
|
+
data: undefined;
|
|
4769
|
+
} | {
|
|
4770
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4771
|
+
requestId?: string | undefined;
|
|
4772
|
+
endpointName?: string | undefined;
|
|
4773
|
+
startedTimeStamp?: number | undefined;
|
|
4774
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4775
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4776
|
+
isUninitialized: false;
|
|
4777
|
+
isLoading: false;
|
|
4778
|
+
isError: false;
|
|
4779
|
+
isSuccess: true;
|
|
4780
|
+
isFetching: true;
|
|
4781
|
+
error: undefined;
|
|
4782
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4783
|
+
fulfilledTimeStamp: number;
|
|
4784
|
+
} | {
|
|
4785
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4786
|
+
requestId?: string | undefined;
|
|
4787
|
+
endpointName?: string | undefined;
|
|
4788
|
+
startedTimeStamp?: number | undefined;
|
|
4789
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4790
|
+
isUninitialized: false;
|
|
4791
|
+
isLoading: false;
|
|
4792
|
+
isError: false;
|
|
4793
|
+
isSuccess: true;
|
|
4794
|
+
isFetching: false;
|
|
4795
|
+
error: undefined;
|
|
4796
|
+
data: GetAcademyAdminRegistrationsApiResponse;
|
|
4797
|
+
fulfilledTimeStamp: number;
|
|
4798
|
+
currentData: GetAcademyAdminRegistrationsApiResponse;
|
|
4799
|
+
} | {
|
|
4800
|
+
data?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4801
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4802
|
+
originalArgs?: GetAcademyAdminRegistrationsApiArg | undefined;
|
|
4803
|
+
requestId?: string | undefined;
|
|
4804
|
+
endpointName?: string | undefined;
|
|
4805
|
+
startedTimeStamp?: number | undefined;
|
|
4806
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4807
|
+
currentData?: GetAcademyAdminRegistrationsApiResponse | undefined;
|
|
4808
|
+
isUninitialized: false;
|
|
4809
|
+
isLoading: false;
|
|
4810
|
+
isFetching: false;
|
|
4811
|
+
isSuccess: false;
|
|
4812
|
+
isError: true;
|
|
4813
|
+
error: unknown;
|
|
4814
|
+
}) & {
|
|
4815
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4816
|
+
}) => R) | undefined;
|
|
4817
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
4818
|
+
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<GetAcademyAdminRegistrationsApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, GetAcademyAdminRegistrationsApiResponse, "api", unknown>>;
|
|
4819
|
+
};
|
|
4615
4820
|
|
|
4616
|
-
export { type CreateEnvironmentApiArg, type CreateEnvironmentApiResponse, type DeleteApiWorkspacesByIdApiArg, type DeleteApiWorkspacesByIdApiResponse, type GetAcademyAdminSummaryApiArg, type GetAcademyAdminSummaryApiResponse, type GetAcademyCirriculaApiArg, type GetAcademyCirriculaApiResponse, type GetApiAcademyByTypeAndOrgIdSlugApiArg, type GetApiAcademyByTypeAndOrgIdSlugApiResponse, type GetApiAcademyRegistrationsByContentIdApiArg, type GetApiAcademyRegistrationsByContentIdApiResponse, type GetApiWorkspacesApiArg, type GetApiWorkspacesApiResponse, type GetApiWorkspacesByIdApiArg, type GetApiWorkspacesByIdApiResponse, type GetEnvironmentsApiArg, type GetEnvironmentsApiResponse, type GetFeaturesApiArg, type GetFeaturesApiResponse, type GetFeaturesByOrganizationApiArg, type GetFeaturesByOrganizationApiResponse, type GetMyAcademyCirriculaApiArg, type GetMyAcademyCirriculaApiResponse, type GetPlansApiArg, type GetPlansApiResponse, type GetSubscriptionsApiArg, type GetSubscriptionsApiResponse, type ImportDesignApiArg, type ImportDesignApiResponse, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiArg, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiResponse, type PostApiEntitlementSubscriptionsCreateApiArg, type PostApiEntitlementSubscriptionsCreateApiResponse, type PostApiEntitlementSubscriptionsWebhooksApiArg, type PostApiEntitlementSubscriptionsWebhooksApiResponse, type PostApiWorkspacesApiArg, type PostApiWorkspacesApiResponse, type PutApiWorkspacesByIdApiArg, type PutApiWorkspacesByIdApiResponse, type RegisterMeshmodelsApiArg, type RegisterMeshmodelsApiResponse, type RegisterToAcademyContentApiArg, type RegisterToAcademyContentApiResponse, type SubmitQuizApiArg, type SubmitQuizApiResponse, type UpdateCurrentItemInProgressTrackerApiArg, type UpdateCurrentItemInProgressTrackerApiResponse, injectedRtkApi as cloudApi, useCreateEnvironmentMutation, useDeleteApiWorkspacesByIdMutation, useGetAcademyAdminSummaryQuery, useGetAcademyCirriculaQuery, useGetApiAcademyByTypeAndOrgIdSlugQuery, useGetApiAcademyRegistrationsByContentIdQuery, useGetApiWorkspacesByIdQuery, useGetApiWorkspacesQuery, useGetEnvironmentsQuery, useGetFeaturesByOrganizationQuery, useGetFeaturesQuery, useGetMyAcademyCirriculaQuery, useGetPlansQuery, useGetSubscriptionsQuery, useImportDesignMutation, usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation, usePostApiEntitlementSubscriptionsCreateMutation, usePostApiEntitlementSubscriptionsWebhooksMutation, usePostApiWorkspacesMutation, usePutApiWorkspacesByIdMutation, useRegisterMeshmodelsMutation, useRegisterToAcademyContentMutation, useSubmitQuizMutation, useUpdateCurrentItemInProgressTrackerMutation };
|
|
4821
|
+
export { type CreateEnvironmentApiArg, type CreateEnvironmentApiResponse, type DeleteApiWorkspacesByIdApiArg, type DeleteApiWorkspacesByIdApiResponse, type GetAcademyAdminRegistrationsApiArg, type GetAcademyAdminRegistrationsApiResponse, type GetAcademyAdminSummaryApiArg, type GetAcademyAdminSummaryApiResponse, type GetAcademyCirriculaApiArg, type GetAcademyCirriculaApiResponse, type GetApiAcademyByTypeAndOrgIdSlugApiArg, type GetApiAcademyByTypeAndOrgIdSlugApiResponse, type GetApiAcademyRegistrationsByContentIdApiArg, type GetApiAcademyRegistrationsByContentIdApiResponse, type GetApiWorkspacesApiArg, type GetApiWorkspacesApiResponse, type GetApiWorkspacesByIdApiArg, type GetApiWorkspacesByIdApiResponse, type GetEnvironmentsApiArg, type GetEnvironmentsApiResponse, type GetFeaturesApiArg, type GetFeaturesApiResponse, type GetFeaturesByOrganizationApiArg, type GetFeaturesByOrganizationApiResponse, type GetMyAcademyCirriculaApiArg, type GetMyAcademyCirriculaApiResponse, type GetPlansApiArg, type GetPlansApiResponse, type GetSubscriptionsApiArg, type GetSubscriptionsApiResponse, type ImportDesignApiArg, type ImportDesignApiResponse, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiArg, type PostApiEntitlementSubscriptionsBySubscriptionIdCancelApiResponse, type PostApiEntitlementSubscriptionsCreateApiArg, type PostApiEntitlementSubscriptionsCreateApiResponse, type PostApiEntitlementSubscriptionsWebhooksApiArg, type PostApiEntitlementSubscriptionsWebhooksApiResponse, type PostApiWorkspacesApiArg, type PostApiWorkspacesApiResponse, type PutApiWorkspacesByIdApiArg, type PutApiWorkspacesByIdApiResponse, type RegisterMeshmodelsApiArg, type RegisterMeshmodelsApiResponse, type RegisterToAcademyContentApiArg, type RegisterToAcademyContentApiResponse, type SubmitQuizApiArg, type SubmitQuizApiResponse, type UpdateCurrentItemInProgressTrackerApiArg, type UpdateCurrentItemInProgressTrackerApiResponse, injectedRtkApi as cloudApi, useCreateEnvironmentMutation, useDeleteApiWorkspacesByIdMutation, useGetAcademyAdminRegistrationsQuery, useGetAcademyAdminSummaryQuery, useGetAcademyCirriculaQuery, useGetApiAcademyByTypeAndOrgIdSlugQuery, useGetApiAcademyRegistrationsByContentIdQuery, useGetApiWorkspacesByIdQuery, useGetApiWorkspacesQuery, useGetEnvironmentsQuery, useGetFeaturesByOrganizationQuery, useGetFeaturesQuery, useGetMyAcademyCirriculaQuery, useGetPlansQuery, useGetSubscriptionsQuery, useImportDesignMutation, usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation, usePostApiEntitlementSubscriptionsCreateMutation, usePostApiEntitlementSubscriptionsWebhooksMutation, usePostApiWorkspacesMutation, usePutApiWorkspacesByIdMutation, useRegisterMeshmodelsMutation, useRegisterToAcademyContentMutation, useSubmitQuizMutation, useUpdateCurrentItemInProgressTrackerMutation };
|
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})}),getAcademyAdminSummary:t.query({query:()=>({url:"/api/academy/admin/summary"})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:
|
|
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})}),getAcademyAdminSummary:t.query({query:()=>({url:"/api/academy/admin/summary"})}),getAcademyAdminRegistrations:t.query({query:e=>({url:"/api/academy/admin/registrations",params:{pagesize:e.pagesize,page:e.page,content_type:e.contentType,status:e.status}})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:R,usePostApiEntitlementSubscriptionsWebhooksMutation:k,useGetPlansQuery:h,useGetFeaturesQuery:S,useGetFeaturesByOrganizationQuery:G,useGetApiWorkspacesQuery:x,usePostApiWorkspacesMutation:P,useGetApiWorkspacesByIdQuery:C,usePutApiWorkspacesByIdMutation:E,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:v,useGetApiAcademyByTypeAndOrgIdSlugQuery:W,useRegisterToAcademyContentMutation:O,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:f,useSubmitQuizMutation:q,useGetAcademyAdminSummaryQuery:M,useGetAcademyAdminRegistrationsQuery:Q}=d;exports.cloudApi=d;exports.useCreateEnvironmentMutation=B;exports.useDeleteApiWorkspacesByIdMutation=T;exports.useGetAcademyAdminRegistrationsQuery=Q;exports.useGetAcademyAdminSummaryQuery=M;exports.useGetAcademyCirriculaQuery=v;exports.useGetApiAcademyByTypeAndOrgIdSlugQuery=W;exports.useGetApiAcademyRegistrationsByContentIdQuery=w;exports.useGetApiWorkspacesByIdQuery=C;exports.useGetApiWorkspacesQuery=x;exports.useGetEnvironmentsQuery=z;exports.useGetFeaturesByOrganizationQuery=G;exports.useGetFeaturesQuery=S;exports.useGetMyAcademyCirriculaQuery=D;exports.useGetPlansQuery=h;exports.useGetSubscriptionsQuery=b;exports.useImportDesignMutation=A;exports.usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation=I;exports.usePostApiEntitlementSubscriptionsCreateMutation=R;exports.usePostApiEntitlementSubscriptionsWebhooksMutation=k;exports.usePostApiWorkspacesMutation=P;exports.usePutApiWorkspacesByIdMutation=E;exports.useRegisterMeshmodelsMutation=_;exports.useRegisterToAcademyContentMutation=O;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})}),getAcademyAdminSummary:t.query({query:()=>({url:"/api/academy/admin/summary"})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:
|
|
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})}),getAcademyAdminSummary:t.query({query:()=>({url:"/api/academy/admin/summary"})}),getAcademyAdminRegistrations:t.query({query:e=>({url:"/api/academy/admin/registrations",params:{pagesize:e.pagesize,page:e.page,content_type:e.contentType,status:e.status}})})}),overrideExisting:false});var {useImportDesignMutation:A,useRegisterMeshmodelsMutation:_,useGetSubscriptionsQuery:b,usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation:I,usePostApiEntitlementSubscriptionsCreateMutation:R,usePostApiEntitlementSubscriptionsWebhooksMutation:k,useGetPlansQuery:h,useGetFeaturesQuery:S,useGetFeaturesByOrganizationQuery:G,useGetApiWorkspacesQuery:x,usePostApiWorkspacesMutation:P,useGetApiWorkspacesByIdQuery:C,usePutApiWorkspacesByIdMutation:E,useDeleteApiWorkspacesByIdMutation:T,useCreateEnvironmentMutation:B,useGetEnvironmentsQuery:z,useGetMyAcademyCirriculaQuery:D,useGetAcademyCirriculaQuery:v,useGetApiAcademyByTypeAndOrgIdSlugQuery:W,useRegisterToAcademyContentMutation:O,useGetApiAcademyRegistrationsByContentIdQuery:w,useUpdateCurrentItemInProgressTrackerMutation:f,useSubmitQuizMutation:q,useGetAcademyAdminSummaryQuery:M,useGetAcademyAdminRegistrationsQuery:Q}=d;export{d as cloudApi,B as useCreateEnvironmentMutation,T as useDeleteApiWorkspacesByIdMutation,Q as useGetAcademyAdminRegistrationsQuery,M as useGetAcademyAdminSummaryQuery,v as useGetAcademyCirriculaQuery,W as useGetApiAcademyByTypeAndOrgIdSlugQuery,w as useGetApiAcademyRegistrationsByContentIdQuery,C as useGetApiWorkspacesByIdQuery,x as useGetApiWorkspacesQuery,z as useGetEnvironmentsQuery,G as useGetFeaturesByOrganizationQuery,S as useGetFeaturesQuery,D as useGetMyAcademyCirriculaQuery,h as useGetPlansQuery,b as useGetSubscriptionsQuery,A as useImportDesignMutation,I as usePostApiEntitlementSubscriptionsBySubscriptionIdCancelMutation,R as usePostApiEntitlementSubscriptionsCreateMutation,k as usePostApiEntitlementSubscriptionsWebhooksMutation,P as usePostApiWorkspacesMutation,E as usePutApiWorkspacesByIdMutation,_ as useRegisterMeshmodelsMutation,O as useRegisterToAcademyContentMutation,q as useSubmitQuizMutation,f as useUpdateCurrentItemInProgressTrackerMutation};
|