@flipdish/authorization 0.0.379-rc.1787833964 → 0.0.381-rc.1787836697
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/api.ts +111 -111
- package/configuration.ts +1 -1
- package/dist/api.d.ts +96 -96
- package/dist/api.js +66 -66
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1919,17 +1919,17 @@ export interface ListRolesSuccessResponse {
|
|
|
1919
1919
|
'roles': Array<RoleNames>;
|
|
1920
1920
|
}
|
|
1921
1921
|
/**
|
|
1922
|
-
* The caller\'s active
|
|
1922
|
+
* The caller\'s active staff access grants
|
|
1923
1923
|
* @export
|
|
1924
|
-
* @interface
|
|
1924
|
+
* @interface ListStaffAccessGrantsResponse
|
|
1925
1925
|
*/
|
|
1926
|
-
export interface
|
|
1926
|
+
export interface ListStaffAccessGrantsResponse {
|
|
1927
1927
|
/**
|
|
1928
1928
|
*
|
|
1929
|
-
* @type {Array<
|
|
1930
|
-
* @memberof
|
|
1929
|
+
* @type {Array<StaffAccessGrant>}
|
|
1930
|
+
* @memberof ListStaffAccessGrantsResponse
|
|
1931
1931
|
*/
|
|
1932
|
-
'grants': Array<
|
|
1932
|
+
'grants': Array<StaffAccessGrant>;
|
|
1933
1933
|
}
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Permissions
|
|
@@ -2666,244 +2666,244 @@ export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
|
2666
2666
|
|
|
2667
2667
|
|
|
2668
2668
|
/**
|
|
2669
|
-
* A temporary
|
|
2669
|
+
* A temporary staff access grant
|
|
2670
2670
|
* @export
|
|
2671
|
-
* @interface
|
|
2671
|
+
* @interface StaffAccessGrant
|
|
2672
2672
|
*/
|
|
2673
|
-
export interface
|
|
2673
|
+
export interface StaffAccessGrant {
|
|
2674
2674
|
/**
|
|
2675
2675
|
*
|
|
2676
2676
|
* @type {string}
|
|
2677
|
-
* @memberof
|
|
2677
|
+
* @memberof StaffAccessGrant
|
|
2678
2678
|
*/
|
|
2679
2679
|
'grantId': string;
|
|
2680
2680
|
/**
|
|
2681
2681
|
*
|
|
2682
2682
|
* @type {string}
|
|
2683
|
-
* @memberof
|
|
2683
|
+
* @memberof StaffAccessGrant
|
|
2684
2684
|
*/
|
|
2685
|
-
'principalType':
|
|
2685
|
+
'principalType': StaffAccessGrantPrincipalTypeEnum;
|
|
2686
2686
|
/**
|
|
2687
2687
|
*
|
|
2688
2688
|
* @type {string}
|
|
2689
|
-
* @memberof
|
|
2689
|
+
* @memberof StaffAccessGrant
|
|
2690
2690
|
*/
|
|
2691
2691
|
'principalId': string;
|
|
2692
2692
|
/**
|
|
2693
2693
|
*
|
|
2694
2694
|
* @type {string}
|
|
2695
|
-
* @memberof
|
|
2695
|
+
* @memberof StaffAccessGrant
|
|
2696
2696
|
*/
|
|
2697
2697
|
'email': string;
|
|
2698
2698
|
/**
|
|
2699
2699
|
*
|
|
2700
2700
|
* @type {string}
|
|
2701
|
-
* @memberof
|
|
2701
|
+
* @memberof StaffAccessGrant
|
|
2702
2702
|
*/
|
|
2703
2703
|
'orgId': string;
|
|
2704
2704
|
/**
|
|
2705
2705
|
*
|
|
2706
2706
|
* @type {string}
|
|
2707
|
-
* @memberof
|
|
2707
|
+
* @memberof StaffAccessGrant
|
|
2708
2708
|
*/
|
|
2709
2709
|
'roleName': string;
|
|
2710
2710
|
/**
|
|
2711
2711
|
*
|
|
2712
2712
|
* @type {Array<string>}
|
|
2713
|
-
* @memberof
|
|
2713
|
+
* @memberof StaffAccessGrant
|
|
2714
2714
|
*/
|
|
2715
2715
|
'propertyIds': Array<string>;
|
|
2716
2716
|
/**
|
|
2717
2717
|
*
|
|
2718
2718
|
* @type {Array<string>}
|
|
2719
|
-
* @memberof
|
|
2719
|
+
* @memberof StaffAccessGrant
|
|
2720
2720
|
*/
|
|
2721
2721
|
'brandIds': Array<string>;
|
|
2722
2722
|
/**
|
|
2723
2723
|
*
|
|
2724
2724
|
* @type {Array<string>}
|
|
2725
|
-
* @memberof
|
|
2725
|
+
* @memberof StaffAccessGrant
|
|
2726
2726
|
*/
|
|
2727
2727
|
'salesChannelIds': Array<string>;
|
|
2728
2728
|
/**
|
|
2729
2729
|
*
|
|
2730
2730
|
* @type {string}
|
|
2731
|
-
* @memberof
|
|
2731
|
+
* @memberof StaffAccessGrant
|
|
2732
2732
|
*/
|
|
2733
2733
|
'startsAt': string;
|
|
2734
2734
|
/**
|
|
2735
2735
|
*
|
|
2736
2736
|
* @type {string}
|
|
2737
|
-
* @memberof
|
|
2737
|
+
* @memberof StaffAccessGrant
|
|
2738
2738
|
*/
|
|
2739
2739
|
'expiresAt': string;
|
|
2740
2740
|
/**
|
|
2741
2741
|
*
|
|
2742
2742
|
* @type {string}
|
|
2743
|
-
* @memberof
|
|
2743
|
+
* @memberof StaffAccessGrant
|
|
2744
2744
|
*/
|
|
2745
|
-
'status':
|
|
2745
|
+
'status': StaffAccessGrantStatusEnum;
|
|
2746
2746
|
}
|
|
2747
2747
|
|
|
2748
|
-
export const
|
|
2748
|
+
export const StaffAccessGrantPrincipalTypeEnum = {
|
|
2749
2749
|
User: 'User',
|
|
2750
2750
|
Automation: 'Automation',
|
|
2751
2751
|
Kiosk: 'Kiosk',
|
|
2752
2752
|
Terminal: 'Terminal'
|
|
2753
2753
|
} as const;
|
|
2754
2754
|
|
|
2755
|
-
export type
|
|
2756
|
-
export const
|
|
2755
|
+
export type StaffAccessGrantPrincipalTypeEnum = typeof StaffAccessGrantPrincipalTypeEnum[keyof typeof StaffAccessGrantPrincipalTypeEnum];
|
|
2756
|
+
export const StaffAccessGrantStatusEnum = {
|
|
2757
2757
|
Active: 'active',
|
|
2758
2758
|
Expired: 'expired'
|
|
2759
2759
|
} as const;
|
|
2760
2760
|
|
|
2761
|
-
export type
|
|
2761
|
+
export type StaffAccessGrantStatusEnum = typeof StaffAccessGrantStatusEnum[keyof typeof StaffAccessGrantStatusEnum];
|
|
2762
2762
|
|
|
2763
2763
|
/**
|
|
2764
2764
|
*
|
|
2765
2765
|
* @export
|
|
2766
|
-
* @interface
|
|
2766
|
+
* @interface StaffAccessGrantRequestBody
|
|
2767
2767
|
*/
|
|
2768
|
-
export interface
|
|
2768
|
+
export interface StaffAccessGrantRequestBody {
|
|
2769
2769
|
/**
|
|
2770
2770
|
* Must match the authenticated caller
|
|
2771
2771
|
* @type {string}
|
|
2772
|
-
* @memberof
|
|
2772
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2773
2773
|
*/
|
|
2774
2774
|
'userId': string;
|
|
2775
2775
|
/**
|
|
2776
2776
|
* The org to grant temporary access to
|
|
2777
2777
|
* @type {string}
|
|
2778
|
-
* @memberof
|
|
2778
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2779
2779
|
*/
|
|
2780
2780
|
'orgId': string;
|
|
2781
2781
|
/**
|
|
2782
2782
|
* Role the pass grants
|
|
2783
2783
|
* @type {string}
|
|
2784
|
-
* @memberof
|
|
2784
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2785
2785
|
*/
|
|
2786
|
-
'roleName':
|
|
2786
|
+
'roleName': StaffAccessGrantRequestBodyRoleNameEnum;
|
|
2787
2787
|
/**
|
|
2788
2788
|
* Optional property scope
|
|
2789
2789
|
* @type {Array<string>}
|
|
2790
|
-
* @memberof
|
|
2790
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2791
2791
|
*/
|
|
2792
2792
|
'propertyIds'?: Array<string>;
|
|
2793
2793
|
/**
|
|
2794
2794
|
* Optional brand scope
|
|
2795
2795
|
* @type {Array<string>}
|
|
2796
|
-
* @memberof
|
|
2796
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2797
2797
|
*/
|
|
2798
2798
|
'brandIds'?: Array<string>;
|
|
2799
2799
|
/**
|
|
2800
2800
|
* Optional sales channel scope
|
|
2801
2801
|
* @type {Array<string>}
|
|
2802
|
-
* @memberof
|
|
2802
|
+
* @memberof StaffAccessGrantRequestBody
|
|
2803
2803
|
*/
|
|
2804
2804
|
'salesChannelIds'?: Array<string>;
|
|
2805
2805
|
}
|
|
2806
2806
|
|
|
2807
|
-
export const
|
|
2807
|
+
export const StaffAccessGrantRequestBodyRoleNameEnum = {
|
|
2808
2808
|
Owner: 'Owner'
|
|
2809
2809
|
} as const;
|
|
2810
2810
|
|
|
2811
|
-
export type
|
|
2811
|
+
export type StaffAccessGrantRequestBodyRoleNameEnum = typeof StaffAccessGrantRequestBodyRoleNameEnum[keyof typeof StaffAccessGrantRequestBodyRoleNameEnum];
|
|
2812
2812
|
|
|
2813
2813
|
/**
|
|
2814
|
-
* The
|
|
2814
|
+
* The staff access grant that was created or refreshed
|
|
2815
2815
|
* @export
|
|
2816
|
-
* @interface
|
|
2816
|
+
* @interface StaffAccessGrantResponse
|
|
2817
2817
|
*/
|
|
2818
|
-
export interface
|
|
2818
|
+
export interface StaffAccessGrantResponse {
|
|
2819
2819
|
/**
|
|
2820
2820
|
*
|
|
2821
2821
|
* @type {string}
|
|
2822
|
-
* @memberof
|
|
2822
|
+
* @memberof StaffAccessGrantResponse
|
|
2823
2823
|
*/
|
|
2824
2824
|
'grantId': string;
|
|
2825
2825
|
/**
|
|
2826
2826
|
*
|
|
2827
2827
|
* @type {string}
|
|
2828
|
-
* @memberof
|
|
2828
|
+
* @memberof StaffAccessGrantResponse
|
|
2829
2829
|
*/
|
|
2830
|
-
'principalType':
|
|
2830
|
+
'principalType': StaffAccessGrantResponsePrincipalTypeEnum;
|
|
2831
2831
|
/**
|
|
2832
2832
|
*
|
|
2833
2833
|
* @type {string}
|
|
2834
|
-
* @memberof
|
|
2834
|
+
* @memberof StaffAccessGrantResponse
|
|
2835
2835
|
*/
|
|
2836
2836
|
'principalId': string;
|
|
2837
2837
|
/**
|
|
2838
2838
|
*
|
|
2839
2839
|
* @type {string}
|
|
2840
|
-
* @memberof
|
|
2840
|
+
* @memberof StaffAccessGrantResponse
|
|
2841
2841
|
*/
|
|
2842
2842
|
'email': string;
|
|
2843
2843
|
/**
|
|
2844
2844
|
*
|
|
2845
2845
|
* @type {string}
|
|
2846
|
-
* @memberof
|
|
2846
|
+
* @memberof StaffAccessGrantResponse
|
|
2847
2847
|
*/
|
|
2848
2848
|
'orgId': string;
|
|
2849
2849
|
/**
|
|
2850
2850
|
*
|
|
2851
2851
|
* @type {string}
|
|
2852
|
-
* @memberof
|
|
2852
|
+
* @memberof StaffAccessGrantResponse
|
|
2853
2853
|
*/
|
|
2854
2854
|
'roleName': string;
|
|
2855
2855
|
/**
|
|
2856
2856
|
*
|
|
2857
2857
|
* @type {Array<string>}
|
|
2858
|
-
* @memberof
|
|
2858
|
+
* @memberof StaffAccessGrantResponse
|
|
2859
2859
|
*/
|
|
2860
2860
|
'propertyIds': Array<string>;
|
|
2861
2861
|
/**
|
|
2862
2862
|
*
|
|
2863
2863
|
* @type {Array<string>}
|
|
2864
|
-
* @memberof
|
|
2864
|
+
* @memberof StaffAccessGrantResponse
|
|
2865
2865
|
*/
|
|
2866
2866
|
'brandIds': Array<string>;
|
|
2867
2867
|
/**
|
|
2868
2868
|
*
|
|
2869
2869
|
* @type {Array<string>}
|
|
2870
|
-
* @memberof
|
|
2870
|
+
* @memberof StaffAccessGrantResponse
|
|
2871
2871
|
*/
|
|
2872
2872
|
'salesChannelIds': Array<string>;
|
|
2873
2873
|
/**
|
|
2874
2874
|
*
|
|
2875
2875
|
* @type {string}
|
|
2876
|
-
* @memberof
|
|
2876
|
+
* @memberof StaffAccessGrantResponse
|
|
2877
2877
|
*/
|
|
2878
2878
|
'startsAt': string;
|
|
2879
2879
|
/**
|
|
2880
2880
|
*
|
|
2881
2881
|
* @type {string}
|
|
2882
|
-
* @memberof
|
|
2882
|
+
* @memberof StaffAccessGrantResponse
|
|
2883
2883
|
*/
|
|
2884
2884
|
'expiresAt': string;
|
|
2885
2885
|
/**
|
|
2886
2886
|
*
|
|
2887
2887
|
* @type {string}
|
|
2888
|
-
* @memberof
|
|
2888
|
+
* @memberof StaffAccessGrantResponse
|
|
2889
2889
|
*/
|
|
2890
|
-
'status':
|
|
2890
|
+
'status': StaffAccessGrantResponseStatusEnum;
|
|
2891
2891
|
}
|
|
2892
2892
|
|
|
2893
|
-
export const
|
|
2893
|
+
export const StaffAccessGrantResponsePrincipalTypeEnum = {
|
|
2894
2894
|
User: 'User',
|
|
2895
2895
|
Automation: 'Automation',
|
|
2896
2896
|
Kiosk: 'Kiosk',
|
|
2897
2897
|
Terminal: 'Terminal'
|
|
2898
2898
|
} as const;
|
|
2899
2899
|
|
|
2900
|
-
export type
|
|
2901
|
-
export const
|
|
2900
|
+
export type StaffAccessGrantResponsePrincipalTypeEnum = typeof StaffAccessGrantResponsePrincipalTypeEnum[keyof typeof StaffAccessGrantResponsePrincipalTypeEnum];
|
|
2901
|
+
export const StaffAccessGrantResponseStatusEnum = {
|
|
2902
2902
|
Active: 'active',
|
|
2903
2903
|
Expired: 'expired'
|
|
2904
2904
|
} as const;
|
|
2905
2905
|
|
|
2906
|
-
export type
|
|
2906
|
+
export type StaffAccessGrantResponseStatusEnum = typeof StaffAccessGrantResponseStatusEnum[keyof typeof StaffAccessGrantResponseStatusEnum];
|
|
2907
2907
|
|
|
2908
2908
|
/**
|
|
2909
2909
|
*
|
|
@@ -5575,23 +5575,23 @@ export class RoleAssignmentApi extends BaseAPI {
|
|
|
5575
5575
|
|
|
5576
5576
|
|
|
5577
5577
|
/**
|
|
5578
|
-
*
|
|
5578
|
+
* StaffAccessApi - axios parameter creator
|
|
5579
5579
|
* @export
|
|
5580
5580
|
*/
|
|
5581
|
-
export const
|
|
5581
|
+
export const StaffAccessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5582
5582
|
return {
|
|
5583
5583
|
/**
|
|
5584
5584
|
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5585
|
-
* @summary Create a
|
|
5585
|
+
* @summary Create a staff access pass
|
|
5586
5586
|
* @param {string} orgId
|
|
5587
|
-
* @param {
|
|
5587
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5588
5588
|
* @param {*} [options] Override http request option.
|
|
5589
5589
|
* @throws {RequiredError}
|
|
5590
5590
|
*/
|
|
5591
|
-
|
|
5591
|
+
createStaffAccessGrant: async (orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5592
5592
|
// verify required parameter 'orgId' is not null or undefined
|
|
5593
|
-
assertParamExists('
|
|
5594
|
-
const localVarPath = `/
|
|
5593
|
+
assertParamExists('createStaffAccessGrant', 'orgId', orgId)
|
|
5594
|
+
const localVarPath = `/staffAccess/orgs/{orgId}/grants`
|
|
5595
5595
|
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5596
5596
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5597
5597
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5614,7 +5614,7 @@ export const TimedAccessApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5614
5614
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5615
5615
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5616
5616
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5617
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
5617
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffAccessGrantRequestBody, localVarRequestOptions, configuration)
|
|
5618
5618
|
|
|
5619
5619
|
return {
|
|
5620
5620
|
url: toPathString(localVarUrlObj),
|
|
@@ -5623,16 +5623,16 @@ export const TimedAccessApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5623
5623
|
},
|
|
5624
5624
|
/**
|
|
5625
5625
|
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5626
|
-
* @summary List the caller\'s active
|
|
5626
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5627
5627
|
* @param {string} orgId
|
|
5628
|
-
* @param {
|
|
5628
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5629
5629
|
* @param {*} [options] Override http request option.
|
|
5630
5630
|
* @throws {RequiredError}
|
|
5631
5631
|
*/
|
|
5632
|
-
|
|
5632
|
+
listMyStaffAccessGrants: async (orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5633
5633
|
// verify required parameter 'orgId' is not null or undefined
|
|
5634
|
-
assertParamExists('
|
|
5635
|
-
const localVarPath = `/
|
|
5634
|
+
assertParamExists('listMyStaffAccessGrants', 'orgId', orgId)
|
|
5635
|
+
const localVarPath = `/staffAccess/orgs/{orgId}/grants`
|
|
5636
5636
|
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
5637
5637
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5638
5638
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5667,116 +5667,116 @@ export const TimedAccessApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5667
5667
|
};
|
|
5668
5668
|
|
|
5669
5669
|
/**
|
|
5670
|
-
*
|
|
5670
|
+
* StaffAccessApi - functional programming interface
|
|
5671
5671
|
* @export
|
|
5672
5672
|
*/
|
|
5673
|
-
export const
|
|
5674
|
-
const localVarAxiosParamCreator =
|
|
5673
|
+
export const StaffAccessApiFp = function(configuration?: Configuration) {
|
|
5674
|
+
const localVarAxiosParamCreator = StaffAccessApiAxiosParamCreator(configuration)
|
|
5675
5675
|
return {
|
|
5676
5676
|
/**
|
|
5677
5677
|
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5678
|
-
* @summary Create a
|
|
5678
|
+
* @summary Create a staff access pass
|
|
5679
5679
|
* @param {string} orgId
|
|
5680
|
-
* @param {
|
|
5680
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5681
5681
|
* @param {*} [options] Override http request option.
|
|
5682
5682
|
* @throws {RequiredError}
|
|
5683
5683
|
*/
|
|
5684
|
-
async
|
|
5685
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5684
|
+
async createStaffAccessGrant(orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffAccessGrantResponse>> {
|
|
5685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createStaffAccessGrant(orgId, staffAccessGrantRequestBody, options);
|
|
5686
5686
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5687
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5687
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAccessApi.createStaffAccessGrant']?.[localVarOperationServerIndex]?.url;
|
|
5688
5688
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5689
5689
|
},
|
|
5690
5690
|
/**
|
|
5691
5691
|
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5692
|
-
* @summary List the caller\'s active
|
|
5692
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5693
5693
|
* @param {string} orgId
|
|
5694
|
-
* @param {
|
|
5694
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5695
5695
|
* @param {*} [options] Override http request option.
|
|
5696
5696
|
* @throws {RequiredError}
|
|
5697
5697
|
*/
|
|
5698
|
-
async
|
|
5699
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5698
|
+
async listMyStaffAccessGrants(orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStaffAccessGrantsResponse>> {
|
|
5699
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMyStaffAccessGrants(orgId, status, options);
|
|
5700
5700
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5701
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5701
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAccessApi.listMyStaffAccessGrants']?.[localVarOperationServerIndex]?.url;
|
|
5702
5702
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5703
5703
|
},
|
|
5704
5704
|
}
|
|
5705
5705
|
};
|
|
5706
5706
|
|
|
5707
5707
|
/**
|
|
5708
|
-
*
|
|
5708
|
+
* StaffAccessApi - factory interface
|
|
5709
5709
|
* @export
|
|
5710
5710
|
*/
|
|
5711
|
-
export const
|
|
5712
|
-
const localVarFp =
|
|
5711
|
+
export const StaffAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5712
|
+
const localVarFp = StaffAccessApiFp(configuration)
|
|
5713
5713
|
return {
|
|
5714
5714
|
/**
|
|
5715
5715
|
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5716
|
-
* @summary Create a
|
|
5716
|
+
* @summary Create a staff access pass
|
|
5717
5717
|
* @param {string} orgId
|
|
5718
|
-
* @param {
|
|
5718
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5719
5719
|
* @param {*} [options] Override http request option.
|
|
5720
5720
|
* @throws {RequiredError}
|
|
5721
5721
|
*/
|
|
5722
|
-
|
|
5723
|
-
return localVarFp.
|
|
5722
|
+
createStaffAccessGrant(orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<StaffAccessGrantResponse> {
|
|
5723
|
+
return localVarFp.createStaffAccessGrant(orgId, staffAccessGrantRequestBody, options).then((request) => request(axios, basePath));
|
|
5724
5724
|
},
|
|
5725
5725
|
/**
|
|
5726
5726
|
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5727
|
-
* @summary List the caller\'s active
|
|
5727
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5728
5728
|
* @param {string} orgId
|
|
5729
|
-
* @param {
|
|
5729
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5730
5730
|
* @param {*} [options] Override http request option.
|
|
5731
5731
|
* @throws {RequiredError}
|
|
5732
5732
|
*/
|
|
5733
|
-
|
|
5734
|
-
return localVarFp.
|
|
5733
|
+
listMyStaffAccessGrants(orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ListStaffAccessGrantsResponse> {
|
|
5734
|
+
return localVarFp.listMyStaffAccessGrants(orgId, status, options).then((request) => request(axios, basePath));
|
|
5735
5735
|
},
|
|
5736
5736
|
};
|
|
5737
5737
|
};
|
|
5738
5738
|
|
|
5739
5739
|
/**
|
|
5740
|
-
*
|
|
5740
|
+
* StaffAccessApi - object-oriented interface
|
|
5741
5741
|
* @export
|
|
5742
|
-
* @class
|
|
5742
|
+
* @class StaffAccessApi
|
|
5743
5743
|
* @extends {BaseAPI}
|
|
5744
5744
|
*/
|
|
5745
|
-
export class
|
|
5745
|
+
export class StaffAccessApi extends BaseAPI {
|
|
5746
5746
|
/**
|
|
5747
5747
|
* Grants the authenticated caller temporary Owner access to a single org. Requesting again while a pass is active extends it rather than creating a second one.
|
|
5748
|
-
* @summary Create a
|
|
5748
|
+
* @summary Create a staff access pass
|
|
5749
5749
|
* @param {string} orgId
|
|
5750
|
-
* @param {
|
|
5750
|
+
* @param {StaffAccessGrantRequestBody} [staffAccessGrantRequestBody]
|
|
5751
5751
|
* @param {*} [options] Override http request option.
|
|
5752
5752
|
* @throws {RequiredError}
|
|
5753
|
-
* @memberof
|
|
5753
|
+
* @memberof StaffAccessApi
|
|
5754
5754
|
*/
|
|
5755
|
-
public
|
|
5756
|
-
return
|
|
5755
|
+
public createStaffAccessGrant(orgId: string, staffAccessGrantRequestBody?: StaffAccessGrantRequestBody, options?: RawAxiosRequestConfig) {
|
|
5756
|
+
return StaffAccessApiFp(this.configuration).createStaffAccessGrant(orgId, staffAccessGrantRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
5757
5757
|
}
|
|
5758
5758
|
|
|
5759
5759
|
/**
|
|
5760
5760
|
* Returns the authenticated caller\'s active pass for the requested org.
|
|
5761
|
-
* @summary List the caller\'s active
|
|
5761
|
+
* @summary List the caller\'s active staff access pass for an org
|
|
5762
5762
|
* @param {string} orgId
|
|
5763
|
-
* @param {
|
|
5763
|
+
* @param {ListMyStaffAccessGrantsStatusEnum} [status] Only active grants are returned. The caller comes from the auth context
|
|
5764
5764
|
* @param {*} [options] Override http request option.
|
|
5765
5765
|
* @throws {RequiredError}
|
|
5766
|
-
* @memberof
|
|
5766
|
+
* @memberof StaffAccessApi
|
|
5767
5767
|
*/
|
|
5768
|
-
public
|
|
5769
|
-
return
|
|
5768
|
+
public listMyStaffAccessGrants(orgId: string, status?: ListMyStaffAccessGrantsStatusEnum, options?: RawAxiosRequestConfig) {
|
|
5769
|
+
return StaffAccessApiFp(this.configuration).listMyStaffAccessGrants(orgId, status, options).then((request) => request(this.axios, this.basePath));
|
|
5770
5770
|
}
|
|
5771
5771
|
}
|
|
5772
5772
|
|
|
5773
5773
|
/**
|
|
5774
5774
|
* @export
|
|
5775
5775
|
*/
|
|
5776
|
-
export const
|
|
5776
|
+
export const ListMyStaffAccessGrantsStatusEnum = {
|
|
5777
5777
|
Active: 'active'
|
|
5778
5778
|
} as const;
|
|
5779
|
-
export type
|
|
5779
|
+
export type ListMyStaffAccessGrantsStatusEnum = typeof ListMyStaffAccessGrantsStatusEnum[keyof typeof ListMyStaffAccessGrantsStatusEnum];
|
|
5780
5780
|
|
|
5781
5781
|
|
|
5782
5782
|
/**
|
package/configuration.ts
CHANGED
|
@@ -100,7 +100,7 @@ export class Configuration {
|
|
|
100
100
|
|
|
101
101
|
const extraHeaders = param.useDefaultUserAgent ? {} : {
|
|
102
102
|
headers: {
|
|
103
|
-
"user-agent": "Flipdish authorization typescript SDK / 0.0.
|
|
103
|
+
"user-agent": "Flipdish authorization typescript SDK / 0.0.381-rc.1787836697"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|