@meshery/schemas 0.8.53 → 0.8.55
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 +379 -3
- package/dist/cloudApi.d.ts +379 -3
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/package.json +1 -1
package/dist/cloudApi.d.mts
CHANGED
|
@@ -25,6 +25,8 @@ declare const injectedRtkApi: _reduxjs_toolkit_query.Api<(args: any, api: any, e
|
|
|
25
25
|
getApiAcademyRegistrationsByContentId: _reduxjs_toolkit_query.QueryDefinition<GetApiAcademyRegistrationsByContentIdApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, GetApiAcademyRegistrationsByContentIdApiResponse, "api", unknown>;
|
|
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
|
+
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>;
|
|
28
30
|
}, "api", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_dist_query_react.reactHooksModuleName>;
|
|
29
31
|
|
|
30
32
|
type ImportDesignApiResponse = {
|
|
@@ -488,7 +490,7 @@ type RegisterToAcademyContentApiResponse = {
|
|
|
488
490
|
/** ID of the user (foreign key to User) */
|
|
489
491
|
user_id: string;
|
|
490
492
|
/** Status of the user's course registration */
|
|
491
|
-
status: "registered" | "
|
|
493
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
492
494
|
/** When the registration was updated */
|
|
493
495
|
updated_at: string;
|
|
494
496
|
/** When the registration was created */
|
|
@@ -518,7 +520,7 @@ type GetApiAcademyRegistrationsByContentIdApiResponse =
|
|
|
518
520
|
/** ID of the user (foreign key to User) */
|
|
519
521
|
user_id: string;
|
|
520
522
|
/** Status of the user's course registration */
|
|
521
|
-
status: "registered" | "
|
|
523
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
522
524
|
/** When the registration was updated */
|
|
523
525
|
updated_at: string;
|
|
524
526
|
/** When the registration was created */
|
|
@@ -559,6 +561,8 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
|
|
|
559
561
|
};
|
|
560
562
|
quiz: {
|
|
561
563
|
id: string;
|
|
564
|
+
/** Organization ID that owns this quiz */
|
|
565
|
+
orgId: string;
|
|
562
566
|
/** Indicates if the quiz is final . i.e this quiz will used to evaluate the completion of parent section eg course , module , learning path */
|
|
563
567
|
final: boolean;
|
|
564
568
|
title: string;
|
|
@@ -655,6 +659,8 @@ type SubmitQuizApiResponse = {
|
|
|
655
659
|
};
|
|
656
660
|
quiz: {
|
|
657
661
|
id: string;
|
|
662
|
+
/** Organization ID that owns this quiz */
|
|
663
|
+
orgId: string;
|
|
658
664
|
/** Indicates if the quiz is final . i.e this quiz will used to evaluate the completion of parent section eg course , module , learning path */
|
|
659
665
|
final: boolean;
|
|
660
666
|
title: string;
|
|
@@ -716,6 +722,50 @@ type SubmitQuizApiArg = {
|
|
|
716
722
|
}[];
|
|
717
723
|
};
|
|
718
724
|
};
|
|
725
|
+
type GetAcademyAdminSummaryApiResponse =
|
|
726
|
+
/** status 200 A list of content with total count and registration metrics */ object;
|
|
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
|
+
};
|
|
719
769
|
declare const useImportDesignMutation: <R extends Record<string, any> = ({
|
|
720
770
|
requestId?: undefined;
|
|
721
771
|
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
@@ -4441,5 +4491,331 @@ declare const useSubmitQuizMutation: <R extends Record<string, any> = ({
|
|
|
4441
4491
|
originalArgs?: SubmitQuizApiArg | undefined;
|
|
4442
4492
|
reset: () => void;
|
|
4443
4493
|
}];
|
|
4494
|
+
declare const useGetAcademyAdminSummaryQuery: <R extends Record<string, any> = ({
|
|
4495
|
+
data?: undefined;
|
|
4496
|
+
error?: undefined;
|
|
4497
|
+
fulfilledTimeStamp?: undefined;
|
|
4498
|
+
originalArgs?: undefined;
|
|
4499
|
+
requestId?: undefined;
|
|
4500
|
+
endpointName?: string | undefined;
|
|
4501
|
+
startedTimeStamp?: undefined;
|
|
4502
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4503
|
+
currentData?: object | undefined;
|
|
4504
|
+
isLoading: false;
|
|
4505
|
+
isFetching: false;
|
|
4506
|
+
isSuccess: false;
|
|
4507
|
+
isError: false;
|
|
4508
|
+
isUninitialized: true;
|
|
4509
|
+
} | {
|
|
4510
|
+
error?: unknown;
|
|
4511
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4512
|
+
originalArgs?: void | undefined;
|
|
4513
|
+
requestId?: string | undefined;
|
|
4514
|
+
endpointName?: string | undefined;
|
|
4515
|
+
startedTimeStamp?: number | undefined;
|
|
4516
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4517
|
+
currentData?: object | undefined;
|
|
4518
|
+
isUninitialized: false;
|
|
4519
|
+
isSuccess: false;
|
|
4520
|
+
isError: false;
|
|
4521
|
+
isLoading: true;
|
|
4522
|
+
isFetching: boolean;
|
|
4523
|
+
data: undefined;
|
|
4524
|
+
} | {
|
|
4525
|
+
originalArgs?: void | undefined;
|
|
4526
|
+
requestId?: string | undefined;
|
|
4527
|
+
endpointName?: string | undefined;
|
|
4528
|
+
startedTimeStamp?: number | undefined;
|
|
4529
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4530
|
+
currentData?: object | undefined;
|
|
4531
|
+
isUninitialized: false;
|
|
4532
|
+
isLoading: false;
|
|
4533
|
+
isError: false;
|
|
4534
|
+
isSuccess: true;
|
|
4535
|
+
isFetching: true;
|
|
4536
|
+
error: undefined;
|
|
4537
|
+
data: object;
|
|
4538
|
+
fulfilledTimeStamp: number;
|
|
4539
|
+
} | {
|
|
4540
|
+
originalArgs?: void | undefined;
|
|
4541
|
+
requestId?: string | undefined;
|
|
4542
|
+
endpointName?: string | undefined;
|
|
4543
|
+
startedTimeStamp?: number | undefined;
|
|
4544
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4545
|
+
isUninitialized: false;
|
|
4546
|
+
isLoading: false;
|
|
4547
|
+
isError: false;
|
|
4548
|
+
isSuccess: true;
|
|
4549
|
+
isFetching: false;
|
|
4550
|
+
error: undefined;
|
|
4551
|
+
data: object;
|
|
4552
|
+
fulfilledTimeStamp: number;
|
|
4553
|
+
currentData: object;
|
|
4554
|
+
} | {
|
|
4555
|
+
data?: object | undefined;
|
|
4556
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4557
|
+
originalArgs?: void | undefined;
|
|
4558
|
+
requestId?: string | undefined;
|
|
4559
|
+
endpointName?: string | undefined;
|
|
4560
|
+
startedTimeStamp?: number | undefined;
|
|
4561
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4562
|
+
currentData?: object | undefined;
|
|
4563
|
+
isUninitialized: false;
|
|
4564
|
+
isLoading: false;
|
|
4565
|
+
isFetching: false;
|
|
4566
|
+
isSuccess: false;
|
|
4567
|
+
isError: true;
|
|
4568
|
+
error: unknown;
|
|
4569
|
+
}) & {
|
|
4570
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4571
|
+
}>(arg: void | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
4572
|
+
skip?: boolean | undefined;
|
|
4573
|
+
refetchOnMountOrArgChange?: number | boolean | undefined;
|
|
4574
|
+
} & {
|
|
4575
|
+
skip?: boolean | undefined;
|
|
4576
|
+
selectFromResult?: ((state: ({
|
|
4577
|
+
data?: undefined;
|
|
4578
|
+
error?: undefined;
|
|
4579
|
+
fulfilledTimeStamp?: undefined;
|
|
4580
|
+
originalArgs?: undefined;
|
|
4581
|
+
requestId?: undefined;
|
|
4582
|
+
endpointName?: string | undefined;
|
|
4583
|
+
startedTimeStamp?: undefined;
|
|
4584
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4585
|
+
currentData?: object | undefined;
|
|
4586
|
+
isLoading: false;
|
|
4587
|
+
isFetching: false;
|
|
4588
|
+
isSuccess: false;
|
|
4589
|
+
isError: false;
|
|
4590
|
+
isUninitialized: true;
|
|
4591
|
+
} | {
|
|
4592
|
+
error?: unknown;
|
|
4593
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4594
|
+
originalArgs?: void | undefined;
|
|
4595
|
+
requestId?: string | undefined;
|
|
4596
|
+
endpointName?: string | undefined;
|
|
4597
|
+
startedTimeStamp?: number | undefined;
|
|
4598
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4599
|
+
currentData?: object | undefined;
|
|
4600
|
+
isUninitialized: false;
|
|
4601
|
+
isSuccess: false;
|
|
4602
|
+
isError: false;
|
|
4603
|
+
isLoading: true;
|
|
4604
|
+
isFetching: boolean;
|
|
4605
|
+
data: undefined;
|
|
4606
|
+
} | {
|
|
4607
|
+
originalArgs?: void | undefined;
|
|
4608
|
+
requestId?: string | undefined;
|
|
4609
|
+
endpointName?: string | undefined;
|
|
4610
|
+
startedTimeStamp?: number | undefined;
|
|
4611
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4612
|
+
currentData?: object | undefined;
|
|
4613
|
+
isUninitialized: false;
|
|
4614
|
+
isLoading: false;
|
|
4615
|
+
isError: false;
|
|
4616
|
+
isSuccess: true;
|
|
4617
|
+
isFetching: true;
|
|
4618
|
+
error: undefined;
|
|
4619
|
+
data: object;
|
|
4620
|
+
fulfilledTimeStamp: number;
|
|
4621
|
+
} | {
|
|
4622
|
+
originalArgs?: void | undefined;
|
|
4623
|
+
requestId?: string | undefined;
|
|
4624
|
+
endpointName?: string | undefined;
|
|
4625
|
+
startedTimeStamp?: number | undefined;
|
|
4626
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4627
|
+
isUninitialized: false;
|
|
4628
|
+
isLoading: false;
|
|
4629
|
+
isError: false;
|
|
4630
|
+
isSuccess: true;
|
|
4631
|
+
isFetching: false;
|
|
4632
|
+
error: undefined;
|
|
4633
|
+
data: object;
|
|
4634
|
+
fulfilledTimeStamp: number;
|
|
4635
|
+
currentData: object;
|
|
4636
|
+
} | {
|
|
4637
|
+
data?: object | undefined;
|
|
4638
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4639
|
+
originalArgs?: void | undefined;
|
|
4640
|
+
requestId?: string | undefined;
|
|
4641
|
+
endpointName?: string | undefined;
|
|
4642
|
+
startedTimeStamp?: number | undefined;
|
|
4643
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4644
|
+
currentData?: object | undefined;
|
|
4645
|
+
isUninitialized: false;
|
|
4646
|
+
isLoading: false;
|
|
4647
|
+
isFetching: false;
|
|
4648
|
+
isSuccess: false;
|
|
4649
|
+
isError: true;
|
|
4650
|
+
error: unknown;
|
|
4651
|
+
}) & {
|
|
4652
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4653
|
+
}) => R) | undefined;
|
|
4654
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
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>>;
|
|
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
|
+
};
|
|
4444
4820
|
|
|
4445
|
-
export { type CreateEnvironmentApiArg, type CreateEnvironmentApiResponse, type DeleteApiWorkspacesByIdApiArg, type DeleteApiWorkspacesByIdApiResponse, 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, 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
|
@@ -25,6 +25,8 @@ declare const injectedRtkApi: _reduxjs_toolkit_query.Api<(args: any, api: any, e
|
|
|
25
25
|
getApiAcademyRegistrationsByContentId: _reduxjs_toolkit_query.QueryDefinition<GetApiAcademyRegistrationsByContentIdApiArg, (args: any, api: any, extraOptions: any) => Promise<_reduxjs_toolkit_query.QueryReturnValue<unknown, unknown, {}>>, never, GetApiAcademyRegistrationsByContentIdApiResponse, "api", unknown>;
|
|
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
|
+
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>;
|
|
28
30
|
}, "api", never, typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_dist_query_react.reactHooksModuleName>;
|
|
29
31
|
|
|
30
32
|
type ImportDesignApiResponse = {
|
|
@@ -488,7 +490,7 @@ type RegisterToAcademyContentApiResponse = {
|
|
|
488
490
|
/** ID of the user (foreign key to User) */
|
|
489
491
|
user_id: string;
|
|
490
492
|
/** Status of the user's course registration */
|
|
491
|
-
status: "registered" | "
|
|
493
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
492
494
|
/** When the registration was updated */
|
|
493
495
|
updated_at: string;
|
|
494
496
|
/** When the registration was created */
|
|
@@ -518,7 +520,7 @@ type GetApiAcademyRegistrationsByContentIdApiResponse =
|
|
|
518
520
|
/** ID of the user (foreign key to User) */
|
|
519
521
|
user_id: string;
|
|
520
522
|
/** Status of the user's course registration */
|
|
521
|
-
status: "registered" | "
|
|
523
|
+
status: "registered" | "completed" | "failed" | "withdrawn";
|
|
522
524
|
/** When the registration was updated */
|
|
523
525
|
updated_at: string;
|
|
524
526
|
/** When the registration was created */
|
|
@@ -559,6 +561,8 @@ type UpdateCurrentItemInProgressTrackerApiResponse =
|
|
|
559
561
|
};
|
|
560
562
|
quiz: {
|
|
561
563
|
id: string;
|
|
564
|
+
/** Organization ID that owns this quiz */
|
|
565
|
+
orgId: string;
|
|
562
566
|
/** Indicates if the quiz is final . i.e this quiz will used to evaluate the completion of parent section eg course , module , learning path */
|
|
563
567
|
final: boolean;
|
|
564
568
|
title: string;
|
|
@@ -655,6 +659,8 @@ type SubmitQuizApiResponse = {
|
|
|
655
659
|
};
|
|
656
660
|
quiz: {
|
|
657
661
|
id: string;
|
|
662
|
+
/** Organization ID that owns this quiz */
|
|
663
|
+
orgId: string;
|
|
658
664
|
/** Indicates if the quiz is final . i.e this quiz will used to evaluate the completion of parent section eg course , module , learning path */
|
|
659
665
|
final: boolean;
|
|
660
666
|
title: string;
|
|
@@ -716,6 +722,50 @@ type SubmitQuizApiArg = {
|
|
|
716
722
|
}[];
|
|
717
723
|
};
|
|
718
724
|
};
|
|
725
|
+
type GetAcademyAdminSummaryApiResponse =
|
|
726
|
+
/** status 200 A list of content with total count and registration metrics */ object;
|
|
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
|
+
};
|
|
719
769
|
declare const useImportDesignMutation: <R extends Record<string, any> = ({
|
|
720
770
|
requestId?: undefined;
|
|
721
771
|
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
@@ -4441,5 +4491,331 @@ declare const useSubmitQuizMutation: <R extends Record<string, any> = ({
|
|
|
4441
4491
|
originalArgs?: SubmitQuizApiArg | undefined;
|
|
4442
4492
|
reset: () => void;
|
|
4443
4493
|
}];
|
|
4494
|
+
declare const useGetAcademyAdminSummaryQuery: <R extends Record<string, any> = ({
|
|
4495
|
+
data?: undefined;
|
|
4496
|
+
error?: undefined;
|
|
4497
|
+
fulfilledTimeStamp?: undefined;
|
|
4498
|
+
originalArgs?: undefined;
|
|
4499
|
+
requestId?: undefined;
|
|
4500
|
+
endpointName?: string | undefined;
|
|
4501
|
+
startedTimeStamp?: undefined;
|
|
4502
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4503
|
+
currentData?: object | undefined;
|
|
4504
|
+
isLoading: false;
|
|
4505
|
+
isFetching: false;
|
|
4506
|
+
isSuccess: false;
|
|
4507
|
+
isError: false;
|
|
4508
|
+
isUninitialized: true;
|
|
4509
|
+
} | {
|
|
4510
|
+
error?: unknown;
|
|
4511
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4512
|
+
originalArgs?: void | undefined;
|
|
4513
|
+
requestId?: string | undefined;
|
|
4514
|
+
endpointName?: string | undefined;
|
|
4515
|
+
startedTimeStamp?: number | undefined;
|
|
4516
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4517
|
+
currentData?: object | undefined;
|
|
4518
|
+
isUninitialized: false;
|
|
4519
|
+
isSuccess: false;
|
|
4520
|
+
isError: false;
|
|
4521
|
+
isLoading: true;
|
|
4522
|
+
isFetching: boolean;
|
|
4523
|
+
data: undefined;
|
|
4524
|
+
} | {
|
|
4525
|
+
originalArgs?: void | undefined;
|
|
4526
|
+
requestId?: string | undefined;
|
|
4527
|
+
endpointName?: string | undefined;
|
|
4528
|
+
startedTimeStamp?: number | undefined;
|
|
4529
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4530
|
+
currentData?: object | undefined;
|
|
4531
|
+
isUninitialized: false;
|
|
4532
|
+
isLoading: false;
|
|
4533
|
+
isError: false;
|
|
4534
|
+
isSuccess: true;
|
|
4535
|
+
isFetching: true;
|
|
4536
|
+
error: undefined;
|
|
4537
|
+
data: object;
|
|
4538
|
+
fulfilledTimeStamp: number;
|
|
4539
|
+
} | {
|
|
4540
|
+
originalArgs?: void | undefined;
|
|
4541
|
+
requestId?: string | undefined;
|
|
4542
|
+
endpointName?: string | undefined;
|
|
4543
|
+
startedTimeStamp?: number | undefined;
|
|
4544
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4545
|
+
isUninitialized: false;
|
|
4546
|
+
isLoading: false;
|
|
4547
|
+
isError: false;
|
|
4548
|
+
isSuccess: true;
|
|
4549
|
+
isFetching: false;
|
|
4550
|
+
error: undefined;
|
|
4551
|
+
data: object;
|
|
4552
|
+
fulfilledTimeStamp: number;
|
|
4553
|
+
currentData: object;
|
|
4554
|
+
} | {
|
|
4555
|
+
data?: object | undefined;
|
|
4556
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4557
|
+
originalArgs?: void | undefined;
|
|
4558
|
+
requestId?: string | undefined;
|
|
4559
|
+
endpointName?: string | undefined;
|
|
4560
|
+
startedTimeStamp?: number | undefined;
|
|
4561
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4562
|
+
currentData?: object | undefined;
|
|
4563
|
+
isUninitialized: false;
|
|
4564
|
+
isLoading: false;
|
|
4565
|
+
isFetching: false;
|
|
4566
|
+
isSuccess: false;
|
|
4567
|
+
isError: true;
|
|
4568
|
+
error: unknown;
|
|
4569
|
+
}) & {
|
|
4570
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4571
|
+
}>(arg: void | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
4572
|
+
skip?: boolean | undefined;
|
|
4573
|
+
refetchOnMountOrArgChange?: number | boolean | undefined;
|
|
4574
|
+
} & {
|
|
4575
|
+
skip?: boolean | undefined;
|
|
4576
|
+
selectFromResult?: ((state: ({
|
|
4577
|
+
data?: undefined;
|
|
4578
|
+
error?: undefined;
|
|
4579
|
+
fulfilledTimeStamp?: undefined;
|
|
4580
|
+
originalArgs?: undefined;
|
|
4581
|
+
requestId?: undefined;
|
|
4582
|
+
endpointName?: string | undefined;
|
|
4583
|
+
startedTimeStamp?: undefined;
|
|
4584
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
4585
|
+
currentData?: object | undefined;
|
|
4586
|
+
isLoading: false;
|
|
4587
|
+
isFetching: false;
|
|
4588
|
+
isSuccess: false;
|
|
4589
|
+
isError: false;
|
|
4590
|
+
isUninitialized: true;
|
|
4591
|
+
} | {
|
|
4592
|
+
error?: unknown;
|
|
4593
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4594
|
+
originalArgs?: void | undefined;
|
|
4595
|
+
requestId?: string | undefined;
|
|
4596
|
+
endpointName?: string | undefined;
|
|
4597
|
+
startedTimeStamp?: number | undefined;
|
|
4598
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4599
|
+
currentData?: object | undefined;
|
|
4600
|
+
isUninitialized: false;
|
|
4601
|
+
isSuccess: false;
|
|
4602
|
+
isError: false;
|
|
4603
|
+
isLoading: true;
|
|
4604
|
+
isFetching: boolean;
|
|
4605
|
+
data: undefined;
|
|
4606
|
+
} | {
|
|
4607
|
+
originalArgs?: void | undefined;
|
|
4608
|
+
requestId?: string | undefined;
|
|
4609
|
+
endpointName?: string | undefined;
|
|
4610
|
+
startedTimeStamp?: number | undefined;
|
|
4611
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4612
|
+
currentData?: object | undefined;
|
|
4613
|
+
isUninitialized: false;
|
|
4614
|
+
isLoading: false;
|
|
4615
|
+
isError: false;
|
|
4616
|
+
isSuccess: true;
|
|
4617
|
+
isFetching: true;
|
|
4618
|
+
error: undefined;
|
|
4619
|
+
data: object;
|
|
4620
|
+
fulfilledTimeStamp: number;
|
|
4621
|
+
} | {
|
|
4622
|
+
originalArgs?: void | undefined;
|
|
4623
|
+
requestId?: string | undefined;
|
|
4624
|
+
endpointName?: string | undefined;
|
|
4625
|
+
startedTimeStamp?: number | undefined;
|
|
4626
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4627
|
+
isUninitialized: false;
|
|
4628
|
+
isLoading: false;
|
|
4629
|
+
isError: false;
|
|
4630
|
+
isSuccess: true;
|
|
4631
|
+
isFetching: false;
|
|
4632
|
+
error: undefined;
|
|
4633
|
+
data: object;
|
|
4634
|
+
fulfilledTimeStamp: number;
|
|
4635
|
+
currentData: object;
|
|
4636
|
+
} | {
|
|
4637
|
+
data?: object | undefined;
|
|
4638
|
+
fulfilledTimeStamp?: number | undefined;
|
|
4639
|
+
originalArgs?: void | undefined;
|
|
4640
|
+
requestId?: string | undefined;
|
|
4641
|
+
endpointName?: string | undefined;
|
|
4642
|
+
startedTimeStamp?: number | undefined;
|
|
4643
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4644
|
+
currentData?: object | undefined;
|
|
4645
|
+
isUninitialized: false;
|
|
4646
|
+
isLoading: false;
|
|
4647
|
+
isFetching: false;
|
|
4648
|
+
isSuccess: false;
|
|
4649
|
+
isError: true;
|
|
4650
|
+
error: unknown;
|
|
4651
|
+
}) & {
|
|
4652
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
4653
|
+
}) => R) | undefined;
|
|
4654
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
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>>;
|
|
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
|
+
};
|
|
4444
4820
|
|
|
4445
|
-
export { type CreateEnvironmentApiArg, type CreateEnvironmentApiResponse, type DeleteApiWorkspacesByIdApiArg, type DeleteApiWorkspacesByIdApiResponse, 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, 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})})}),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})})}),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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshery/schemas",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.55",
|
|
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",
|