@flipdish/authorization 0.0.248-rc.1786014537 → 0.0.249-rc.1786025850
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 -312
- package/configuration.ts +1 -1
- package/dist/api.d.ts +94 -213
- package/dist/api.js +63 -252
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -559,6 +559,19 @@ export interface AuthorizationResponse {
|
|
|
559
559
|
*/
|
|
560
560
|
'policyIds': Array<string>;
|
|
561
561
|
}
|
|
562
|
+
/**
|
|
563
|
+
*
|
|
564
|
+
* @export
|
|
565
|
+
* @interface CreateInviteTokenRequest
|
|
566
|
+
*/
|
|
567
|
+
export interface CreateInviteTokenRequest {
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @type {string}
|
|
571
|
+
* @memberof CreateInviteTokenRequest
|
|
572
|
+
*/
|
|
573
|
+
'storefrontId': string;
|
|
574
|
+
}
|
|
562
575
|
/**
|
|
563
576
|
*
|
|
564
577
|
* @export
|
|
@@ -578,19 +591,6 @@ export interface CreateJoinRequest {
|
|
|
578
591
|
*/
|
|
579
592
|
'propertyId': string;
|
|
580
593
|
}
|
|
581
|
-
/**
|
|
582
|
-
*
|
|
583
|
-
* @export
|
|
584
|
-
* @interface CreateQrSessionRequest
|
|
585
|
-
*/
|
|
586
|
-
export interface CreateQrSessionRequest {
|
|
587
|
-
/**
|
|
588
|
-
*
|
|
589
|
-
* @type {string}
|
|
590
|
-
* @memberof CreateQrSessionRequest
|
|
591
|
-
*/
|
|
592
|
-
'storefrontId': string;
|
|
593
|
-
}
|
|
594
594
|
/**
|
|
595
595
|
*
|
|
596
596
|
* @export
|
|
@@ -927,6 +927,43 @@ export type GetUserPermissionsSuccessResponseResourcesValueResourceTypeEnum = ty
|
|
|
927
927
|
*/
|
|
928
928
|
export interface GetUserPermissionsSuccessResponseResourcesValueResourceId {
|
|
929
929
|
}
|
|
930
|
+
/**
|
|
931
|
+
*
|
|
932
|
+
* @export
|
|
933
|
+
* @interface InviteTokenResponse
|
|
934
|
+
*/
|
|
935
|
+
export interface InviteTokenResponse {
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @type {string}
|
|
939
|
+
* @memberof InviteTokenResponse
|
|
940
|
+
*/
|
|
941
|
+
'tokenId': string;
|
|
942
|
+
/**
|
|
943
|
+
*
|
|
944
|
+
* @type {string}
|
|
945
|
+
* @memberof InviteTokenResponse
|
|
946
|
+
*/
|
|
947
|
+
'joinUrl': string;
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @type {string}
|
|
951
|
+
* @memberof InviteTokenResponse
|
|
952
|
+
*/
|
|
953
|
+
'expiresAt': string;
|
|
954
|
+
/**
|
|
955
|
+
*
|
|
956
|
+
* @type {string}
|
|
957
|
+
* @memberof InviteTokenResponse
|
|
958
|
+
*/
|
|
959
|
+
'orgId': string;
|
|
960
|
+
/**
|
|
961
|
+
*
|
|
962
|
+
* @type {string}
|
|
963
|
+
* @memberof InviteTokenResponse
|
|
964
|
+
*/
|
|
965
|
+
'brandId': string;
|
|
966
|
+
}
|
|
930
967
|
/**
|
|
931
968
|
*
|
|
932
969
|
* @export
|
|
@@ -1440,49 +1477,6 @@ export interface PrincipalsInOrgResponse {
|
|
|
1440
1477
|
*/
|
|
1441
1478
|
'principals': Array<PrincipalInOrg>;
|
|
1442
1479
|
}
|
|
1443
|
-
/**
|
|
1444
|
-
*
|
|
1445
|
-
* @export
|
|
1446
|
-
* @interface QrSessionResponse
|
|
1447
|
-
*/
|
|
1448
|
-
export interface QrSessionResponse {
|
|
1449
|
-
/**
|
|
1450
|
-
*
|
|
1451
|
-
* @type {string}
|
|
1452
|
-
* @memberof QrSessionResponse
|
|
1453
|
-
*/
|
|
1454
|
-
'sessionId': string;
|
|
1455
|
-
/**
|
|
1456
|
-
*
|
|
1457
|
-
* @type {string}
|
|
1458
|
-
* @memberof QrSessionResponse
|
|
1459
|
-
*/
|
|
1460
|
-
'joinUrl': string;
|
|
1461
|
-
/**
|
|
1462
|
-
*
|
|
1463
|
-
* @type {string}
|
|
1464
|
-
* @memberof QrSessionResponse
|
|
1465
|
-
*/
|
|
1466
|
-
'expiresAt': string;
|
|
1467
|
-
/**
|
|
1468
|
-
*
|
|
1469
|
-
* @type {string}
|
|
1470
|
-
* @memberof QrSessionResponse
|
|
1471
|
-
*/
|
|
1472
|
-
'rotateAfter': string;
|
|
1473
|
-
/**
|
|
1474
|
-
*
|
|
1475
|
-
* @type {string}
|
|
1476
|
-
* @memberof QrSessionResponse
|
|
1477
|
-
*/
|
|
1478
|
-
'brandId': string;
|
|
1479
|
-
/**
|
|
1480
|
-
*
|
|
1481
|
-
* @type {boolean}
|
|
1482
|
-
* @memberof QrSessionResponse
|
|
1483
|
-
*/
|
|
1484
|
-
'rotated'?: boolean;
|
|
1485
|
-
}
|
|
1486
1480
|
/**
|
|
1487
1481
|
* Role assignment key to rematerialize
|
|
1488
1482
|
* @export
|
|
@@ -1895,49 +1889,6 @@ export const RoleNames = {
|
|
|
1895
1889
|
export type RoleNames = typeof RoleNames[keyof typeof RoleNames];
|
|
1896
1890
|
|
|
1897
1891
|
|
|
1898
|
-
/**
|
|
1899
|
-
*
|
|
1900
|
-
* @export
|
|
1901
|
-
* @interface RotatePosQrSession200Response
|
|
1902
|
-
*/
|
|
1903
|
-
export interface RotatePosQrSession200Response {
|
|
1904
|
-
/**
|
|
1905
|
-
*
|
|
1906
|
-
* @type {string}
|
|
1907
|
-
* @memberof RotatePosQrSession200Response
|
|
1908
|
-
*/
|
|
1909
|
-
'sessionId': string;
|
|
1910
|
-
/**
|
|
1911
|
-
*
|
|
1912
|
-
* @type {string}
|
|
1913
|
-
* @memberof RotatePosQrSession200Response
|
|
1914
|
-
*/
|
|
1915
|
-
'joinUrl': string;
|
|
1916
|
-
/**
|
|
1917
|
-
*
|
|
1918
|
-
* @type {string}
|
|
1919
|
-
* @memberof RotatePosQrSession200Response
|
|
1920
|
-
*/
|
|
1921
|
-
'expiresAt': string;
|
|
1922
|
-
/**
|
|
1923
|
-
*
|
|
1924
|
-
* @type {string}
|
|
1925
|
-
* @memberof RotatePosQrSession200Response
|
|
1926
|
-
*/
|
|
1927
|
-
'rotateAfter': string;
|
|
1928
|
-
/**
|
|
1929
|
-
*
|
|
1930
|
-
* @type {string}
|
|
1931
|
-
* @memberof RotatePosQrSession200Response
|
|
1932
|
-
*/
|
|
1933
|
-
'brandId': string;
|
|
1934
|
-
/**
|
|
1935
|
-
*
|
|
1936
|
-
* @type {boolean}
|
|
1937
|
-
* @memberof RotatePosQrSession200Response
|
|
1938
|
-
*/
|
|
1939
|
-
'rotated'?: boolean;
|
|
1940
|
-
}
|
|
1941
1892
|
/**
|
|
1942
1893
|
*
|
|
1943
1894
|
* @export
|
|
@@ -2965,21 +2916,18 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2965
2916
|
};
|
|
2966
2917
|
},
|
|
2967
2918
|
/**
|
|
2968
|
-
*
|
|
2969
|
-
* @summary
|
|
2919
|
+
* Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
|
|
2920
|
+
* @summary Create an invite token
|
|
2970
2921
|
* @param {string} orgId
|
|
2971
|
-
* @param {
|
|
2922
|
+
* @param {CreateInviteTokenRequest} [createInviteTokenRequest]
|
|
2972
2923
|
* @param {*} [options] Override http request option.
|
|
2973
2924
|
* @throws {RequiredError}
|
|
2974
2925
|
*/
|
|
2975
|
-
|
|
2926
|
+
createInviteToken: async (orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2976
2927
|
// verify required parameter 'orgId' is not null or undefined
|
|
2977
|
-
assertParamExists('
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
const localVarPath = `/orgs/{orgId}/pos/qrSessions/{sessionId}/close`
|
|
2981
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
2982
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
2928
|
+
assertParamExists('createInviteToken', 'orgId', orgId)
|
|
2929
|
+
const localVarPath = `/orgs/{orgId}/inviteTokens`
|
|
2930
|
+
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
2983
2931
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2984
2932
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2985
2933
|
let baseOptions;
|
|
@@ -2996,9 +2944,12 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2996
2944
|
|
|
2997
2945
|
|
|
2998
2946
|
|
|
2947
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2948
|
+
|
|
2999
2949
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3000
2950
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3001
2951
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2952
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createInviteTokenRequest, localVarRequestOptions, configuration)
|
|
3002
2953
|
|
|
3003
2954
|
return {
|
|
3004
2955
|
url: toPathString(localVarUrlObj),
|
|
@@ -3006,8 +2957,8 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3006
2957
|
};
|
|
3007
2958
|
},
|
|
3008
2959
|
/**
|
|
3009
|
-
* Validates the opaque
|
|
3010
|
-
* @summary Submit a join access request from
|
|
2960
|
+
* Validates the opaque invite token and creates (or returns) a pending AccessRequest.
|
|
2961
|
+
* @summary Submit a join access request from an invite token
|
|
3011
2962
|
* @param {string} orgId
|
|
3012
2963
|
* @param {CreateJoinRequest} [createJoinRequest]
|
|
3013
2964
|
* @param {*} [options] Override http request option.
|
|
@@ -3046,47 +2997,6 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3046
2997
|
options: localVarRequestOptions,
|
|
3047
2998
|
};
|
|
3048
2999
|
},
|
|
3049
|
-
/**
|
|
3050
|
-
* Creates a rotating QR join session for a storefront after validating the RMS terminal passport.
|
|
3051
|
-
* @summary Start a POS QR join session
|
|
3052
|
-
* @param {string} orgId
|
|
3053
|
-
* @param {CreateQrSessionRequest} [createQrSessionRequest]
|
|
3054
|
-
* @param {*} [options] Override http request option.
|
|
3055
|
-
* @throws {RequiredError}
|
|
3056
|
-
*/
|
|
3057
|
-
createPosQrSession: async (orgId: string, createQrSessionRequest?: CreateQrSessionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3058
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3059
|
-
assertParamExists('createPosQrSession', 'orgId', orgId)
|
|
3060
|
-
const localVarPath = `/orgs/{orgId}/pos/qrSessions`
|
|
3061
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
3062
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3063
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3064
|
-
let baseOptions;
|
|
3065
|
-
if (configuration) {
|
|
3066
|
-
baseOptions = configuration.baseOptions;
|
|
3067
|
-
}
|
|
3068
|
-
|
|
3069
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3070
|
-
const localVarHeaderParameter = {} as any;
|
|
3071
|
-
const localVarQueryParameter = {} as any;
|
|
3072
|
-
|
|
3073
|
-
// authentication ApiKeyAuth required
|
|
3074
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3079
|
-
|
|
3080
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3081
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3082
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3083
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createQrSessionRequest, localVarRequestOptions, configuration)
|
|
3084
|
-
|
|
3085
|
-
return {
|
|
3086
|
-
url: toPathString(localVarUrlObj),
|
|
3087
|
-
options: localVarRequestOptions,
|
|
3088
|
-
};
|
|
3089
|
-
},
|
|
3090
3000
|
/**
|
|
3091
3001
|
* Returns request status for the requester or an authorized owner.
|
|
3092
3002
|
* @summary Get a join access request by id
|
|
@@ -3129,18 +3039,17 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3129
3039
|
};
|
|
3130
3040
|
},
|
|
3131
3041
|
/**
|
|
3132
|
-
* Returns pending AccessRequests for
|
|
3133
|
-
* @summary List pending join requests for
|
|
3042
|
+
* Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId.
|
|
3043
|
+
* @summary List pending join requests for an organization
|
|
3134
3044
|
* @param {string} orgId
|
|
3135
|
-
* @param {string}
|
|
3045
|
+
* @param {string} [propertyId]
|
|
3046
|
+
* @param {string} [brandId]
|
|
3136
3047
|
* @param {*} [options] Override http request option.
|
|
3137
3048
|
* @throws {RequiredError}
|
|
3138
3049
|
*/
|
|
3139
|
-
listJoinAccessRequests: async (orgId: string, brandId
|
|
3050
|
+
listJoinAccessRequests: async (orgId: string, propertyId?: string, brandId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3140
3051
|
// verify required parameter 'orgId' is not null or undefined
|
|
3141
3052
|
assertParamExists('listJoinAccessRequests', 'orgId', orgId)
|
|
3142
|
-
// verify required parameter 'brandId' is not null or undefined
|
|
3143
|
-
assertParamExists('listJoinAccessRequests', 'brandId', brandId)
|
|
3144
3053
|
const localVarPath = `/orgs/{orgId}/joinRequests`
|
|
3145
3054
|
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
|
|
3146
3055
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3157,6 +3066,10 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3157
3066
|
// authentication ApiKeyAuth required
|
|
3158
3067
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3159
3068
|
|
|
3069
|
+
if (propertyId !== undefined) {
|
|
3070
|
+
localVarQueryParameter['propertyId'] = propertyId;
|
|
3071
|
+
}
|
|
3072
|
+
|
|
3160
3073
|
if (brandId !== undefined) {
|
|
3161
3074
|
localVarQueryParameter['brandId'] = brandId;
|
|
3162
3075
|
}
|
|
@@ -3204,47 +3117,6 @@ export const JoinAccessApiAxiosParamCreator = function (configuration?: Configur
|
|
|
3204
3117
|
|
|
3205
3118
|
|
|
3206
3119
|
|
|
3207
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3208
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3209
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3210
|
-
|
|
3211
|
-
return {
|
|
3212
|
-
url: toPathString(localVarUrlObj),
|
|
3213
|
-
options: localVarRequestOptions,
|
|
3214
|
-
};
|
|
3215
|
-
},
|
|
3216
|
-
/**
|
|
3217
|
-
* Mints a new opaque join token when rotation is due.
|
|
3218
|
-
* @summary Rotate a POS QR join session token
|
|
3219
|
-
* @param {string} orgId
|
|
3220
|
-
* @param {string} sessionId
|
|
3221
|
-
* @param {*} [options] Override http request option.
|
|
3222
|
-
* @throws {RequiredError}
|
|
3223
|
-
*/
|
|
3224
|
-
rotatePosQrSession: async (orgId: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3225
|
-
// verify required parameter 'orgId' is not null or undefined
|
|
3226
|
-
assertParamExists('rotatePosQrSession', 'orgId', orgId)
|
|
3227
|
-
// verify required parameter 'sessionId' is not null or undefined
|
|
3228
|
-
assertParamExists('rotatePosQrSession', 'sessionId', sessionId)
|
|
3229
|
-
const localVarPath = `/orgs/{orgId}/pos/qrSessions/{sessionId}/rotate`
|
|
3230
|
-
.replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
|
|
3231
|
-
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
3232
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3233
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3234
|
-
let baseOptions;
|
|
3235
|
-
if (configuration) {
|
|
3236
|
-
baseOptions = configuration.baseOptions;
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3240
|
-
const localVarHeaderParameter = {} as any;
|
|
3241
|
-
const localVarQueryParameter = {} as any;
|
|
3242
|
-
|
|
3243
|
-
// authentication ApiKeyAuth required
|
|
3244
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
3120
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3249
3121
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3250
3122
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3279,22 +3151,22 @@ export const JoinAccessApiFp = function(configuration?: Configuration) {
|
|
|
3279
3151
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3280
3152
|
},
|
|
3281
3153
|
/**
|
|
3282
|
-
*
|
|
3283
|
-
* @summary
|
|
3154
|
+
* Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
|
|
3155
|
+
* @summary Create an invite token
|
|
3284
3156
|
* @param {string} orgId
|
|
3285
|
-
* @param {
|
|
3157
|
+
* @param {CreateInviteTokenRequest} [createInviteTokenRequest]
|
|
3286
3158
|
* @param {*} [options] Override http request option.
|
|
3287
3159
|
* @throws {RequiredError}
|
|
3288
3160
|
*/
|
|
3289
|
-
async
|
|
3290
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3161
|
+
async createInviteToken(orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteTokenResponse>> {
|
|
3162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteToken(orgId, createInviteTokenRequest, options);
|
|
3291
3163
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3292
|
-
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.
|
|
3164
|
+
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.createInviteToken']?.[localVarOperationServerIndex]?.url;
|
|
3293
3165
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3294
3166
|
},
|
|
3295
3167
|
/**
|
|
3296
|
-
* Validates the opaque
|
|
3297
|
-
* @summary Submit a join access request from
|
|
3168
|
+
* Validates the opaque invite token and creates (or returns) a pending AccessRequest.
|
|
3169
|
+
* @summary Submit a join access request from an invite token
|
|
3298
3170
|
* @param {string} orgId
|
|
3299
3171
|
* @param {CreateJoinRequest} [createJoinRequest]
|
|
3300
3172
|
* @param {*} [options] Override http request option.
|
|
@@ -3306,20 +3178,6 @@ export const JoinAccessApiFp = function(configuration?: Configuration) {
|
|
|
3306
3178
|
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.createJoinAccessRequest']?.[localVarOperationServerIndex]?.url;
|
|
3307
3179
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3308
3180
|
},
|
|
3309
|
-
/**
|
|
3310
|
-
* Creates a rotating QR join session for a storefront after validating the RMS terminal passport.
|
|
3311
|
-
* @summary Start a POS QR join session
|
|
3312
|
-
* @param {string} orgId
|
|
3313
|
-
* @param {CreateQrSessionRequest} [createQrSessionRequest]
|
|
3314
|
-
* @param {*} [options] Override http request option.
|
|
3315
|
-
* @throws {RequiredError}
|
|
3316
|
-
*/
|
|
3317
|
-
async createPosQrSession(orgId: string, createQrSessionRequest?: CreateQrSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QrSessionResponse>> {
|
|
3318
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPosQrSession(orgId, createQrSessionRequest, options);
|
|
3319
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3320
|
-
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.createPosQrSession']?.[localVarOperationServerIndex]?.url;
|
|
3321
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3322
|
-
},
|
|
3323
3181
|
/**
|
|
3324
3182
|
* Returns request status for the requester or an authorized owner.
|
|
3325
3183
|
* @summary Get a join access request by id
|
|
@@ -3335,15 +3193,16 @@ export const JoinAccessApiFp = function(configuration?: Configuration) {
|
|
|
3335
3193
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3336
3194
|
},
|
|
3337
3195
|
/**
|
|
3338
|
-
* Returns pending AccessRequests for
|
|
3339
|
-
* @summary List pending join requests for
|
|
3196
|
+
* Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId.
|
|
3197
|
+
* @summary List pending join requests for an organization
|
|
3340
3198
|
* @param {string} orgId
|
|
3341
|
-
* @param {string}
|
|
3199
|
+
* @param {string} [propertyId]
|
|
3200
|
+
* @param {string} [brandId]
|
|
3342
3201
|
* @param {*} [options] Override http request option.
|
|
3343
3202
|
* @throws {RequiredError}
|
|
3344
3203
|
*/
|
|
3345
|
-
async listJoinAccessRequests(orgId: string, brandId
|
|
3346
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listJoinAccessRequests(orgId, brandId, options);
|
|
3204
|
+
async listJoinAccessRequests(orgId: string, propertyId?: string, brandId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJoinRequestsResponse>> {
|
|
3205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listJoinAccessRequests(orgId, propertyId, brandId, options);
|
|
3347
3206
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3348
3207
|
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.listJoinAccessRequests']?.[localVarOperationServerIndex]?.url;
|
|
3349
3208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3362,20 +3221,6 @@ export const JoinAccessApiFp = function(configuration?: Configuration) {
|
|
|
3362
3221
|
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.rejectJoinAccessRequest']?.[localVarOperationServerIndex]?.url;
|
|
3363
3222
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3364
3223
|
},
|
|
3365
|
-
/**
|
|
3366
|
-
* Mints a new opaque join token when rotation is due.
|
|
3367
|
-
* @summary Rotate a POS QR join session token
|
|
3368
|
-
* @param {string} orgId
|
|
3369
|
-
* @param {string} sessionId
|
|
3370
|
-
* @param {*} [options] Override http request option.
|
|
3371
|
-
* @throws {RequiredError}
|
|
3372
|
-
*/
|
|
3373
|
-
async rotatePosQrSession(orgId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RotatePosQrSession200Response>> {
|
|
3374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.rotatePosQrSession(orgId, sessionId, options);
|
|
3375
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3376
|
-
const localVarOperationServerBasePath = operationServerMap['JoinAccessApi.rotatePosQrSession']?.[localVarOperationServerIndex]?.url;
|
|
3377
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3378
|
-
},
|
|
3379
3224
|
}
|
|
3380
3225
|
};
|
|
3381
3226
|
|
|
@@ -3398,19 +3243,19 @@ export const JoinAccessApiFactory = function (configuration?: Configuration, bas
|
|
|
3398
3243
|
return localVarFp.acceptJoinAccessRequest(orgId, requestId, options).then((request) => request(axios, basePath));
|
|
3399
3244
|
},
|
|
3400
3245
|
/**
|
|
3401
|
-
*
|
|
3402
|
-
* @summary
|
|
3246
|
+
* Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
|
|
3247
|
+
* @summary Create an invite token
|
|
3403
3248
|
* @param {string} orgId
|
|
3404
|
-
* @param {
|
|
3249
|
+
* @param {CreateInviteTokenRequest} [createInviteTokenRequest]
|
|
3405
3250
|
* @param {*} [options] Override http request option.
|
|
3406
3251
|
* @throws {RequiredError}
|
|
3407
3252
|
*/
|
|
3408
|
-
|
|
3409
|
-
return localVarFp.
|
|
3253
|
+
createInviteToken(orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise<InviteTokenResponse> {
|
|
3254
|
+
return localVarFp.createInviteToken(orgId, createInviteTokenRequest, options).then((request) => request(axios, basePath));
|
|
3410
3255
|
},
|
|
3411
3256
|
/**
|
|
3412
|
-
* Validates the opaque
|
|
3413
|
-
* @summary Submit a join access request from
|
|
3257
|
+
* Validates the opaque invite token and creates (or returns) a pending AccessRequest.
|
|
3258
|
+
* @summary Submit a join access request from an invite token
|
|
3414
3259
|
* @param {string} orgId
|
|
3415
3260
|
* @param {CreateJoinRequest} [createJoinRequest]
|
|
3416
3261
|
* @param {*} [options] Override http request option.
|
|
@@ -3419,17 +3264,6 @@ export const JoinAccessApiFactory = function (configuration?: Configuration, bas
|
|
|
3419
3264
|
createJoinAccessRequest(orgId: string, createJoinRequest?: CreateJoinRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccessRequestResponse> {
|
|
3420
3265
|
return localVarFp.createJoinAccessRequest(orgId, createJoinRequest, options).then((request) => request(axios, basePath));
|
|
3421
3266
|
},
|
|
3422
|
-
/**
|
|
3423
|
-
* Creates a rotating QR join session for a storefront after validating the RMS terminal passport.
|
|
3424
|
-
* @summary Start a POS QR join session
|
|
3425
|
-
* @param {string} orgId
|
|
3426
|
-
* @param {CreateQrSessionRequest} [createQrSessionRequest]
|
|
3427
|
-
* @param {*} [options] Override http request option.
|
|
3428
|
-
* @throws {RequiredError}
|
|
3429
|
-
*/
|
|
3430
|
-
createPosQrSession(orgId: string, createQrSessionRequest?: CreateQrSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<QrSessionResponse> {
|
|
3431
|
-
return localVarFp.createPosQrSession(orgId, createQrSessionRequest, options).then((request) => request(axios, basePath));
|
|
3432
|
-
},
|
|
3433
3267
|
/**
|
|
3434
3268
|
* Returns request status for the requester or an authorized owner.
|
|
3435
3269
|
* @summary Get a join access request by id
|
|
@@ -3442,15 +3276,16 @@ export const JoinAccessApiFactory = function (configuration?: Configuration, bas
|
|
|
3442
3276
|
return localVarFp.getJoinAccessRequest(orgId, requestId, options).then((request) => request(axios, basePath));
|
|
3443
3277
|
},
|
|
3444
3278
|
/**
|
|
3445
|
-
* Returns pending AccessRequests for
|
|
3446
|
-
* @summary List pending join requests for
|
|
3279
|
+
* Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId.
|
|
3280
|
+
* @summary List pending join requests for an organization
|
|
3447
3281
|
* @param {string} orgId
|
|
3448
|
-
* @param {string}
|
|
3282
|
+
* @param {string} [propertyId]
|
|
3283
|
+
* @param {string} [brandId]
|
|
3449
3284
|
* @param {*} [options] Override http request option.
|
|
3450
3285
|
* @throws {RequiredError}
|
|
3451
3286
|
*/
|
|
3452
|
-
listJoinAccessRequests(orgId: string, brandId
|
|
3453
|
-
return localVarFp.listJoinAccessRequests(orgId, brandId, options).then((request) => request(axios, basePath));
|
|
3287
|
+
listJoinAccessRequests(orgId: string, propertyId?: string, brandId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListJoinRequestsResponse> {
|
|
3288
|
+
return localVarFp.listJoinAccessRequests(orgId, propertyId, brandId, options).then((request) => request(axios, basePath));
|
|
3454
3289
|
},
|
|
3455
3290
|
/**
|
|
3456
3291
|
* Rejects a pending AccessRequest without granting access.
|
|
@@ -3463,17 +3298,6 @@ export const JoinAccessApiFactory = function (configuration?: Configuration, bas
|
|
|
3463
3298
|
rejectJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetJoinAccessRequest200Response> {
|
|
3464
3299
|
return localVarFp.rejectJoinAccessRequest(orgId, requestId, options).then((request) => request(axios, basePath));
|
|
3465
3300
|
},
|
|
3466
|
-
/**
|
|
3467
|
-
* Mints a new opaque join token when rotation is due.
|
|
3468
|
-
* @summary Rotate a POS QR join session token
|
|
3469
|
-
* @param {string} orgId
|
|
3470
|
-
* @param {string} sessionId
|
|
3471
|
-
* @param {*} [options] Override http request option.
|
|
3472
|
-
* @throws {RequiredError}
|
|
3473
|
-
*/
|
|
3474
|
-
rotatePosQrSession(orgId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<RotatePosQrSession200Response> {
|
|
3475
|
-
return localVarFp.rotatePosQrSession(orgId, sessionId, options).then((request) => request(axios, basePath));
|
|
3476
|
-
},
|
|
3477
3301
|
};
|
|
3478
3302
|
};
|
|
3479
3303
|
|
|
@@ -3498,21 +3322,21 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
3498
3322
|
}
|
|
3499
3323
|
|
|
3500
3324
|
/**
|
|
3501
|
-
*
|
|
3502
|
-
* @summary
|
|
3325
|
+
* Mints an opaque invite token after validating the RMS terminal passport. Call again when a previous token expires to get a new one.
|
|
3326
|
+
* @summary Create an invite token
|
|
3503
3327
|
* @param {string} orgId
|
|
3504
|
-
* @param {
|
|
3328
|
+
* @param {CreateInviteTokenRequest} [createInviteTokenRequest]
|
|
3505
3329
|
* @param {*} [options] Override http request option.
|
|
3506
3330
|
* @throws {RequiredError}
|
|
3507
3331
|
* @memberof JoinAccessApi
|
|
3508
3332
|
*/
|
|
3509
|
-
public
|
|
3510
|
-
return JoinAccessApiFp(this.configuration).
|
|
3333
|
+
public createInviteToken(orgId: string, createInviteTokenRequest?: CreateInviteTokenRequest, options?: RawAxiosRequestConfig) {
|
|
3334
|
+
return JoinAccessApiFp(this.configuration).createInviteToken(orgId, createInviteTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3511
3335
|
}
|
|
3512
3336
|
|
|
3513
3337
|
/**
|
|
3514
|
-
* Validates the opaque
|
|
3515
|
-
* @summary Submit a join access request from
|
|
3338
|
+
* Validates the opaque invite token and creates (or returns) a pending AccessRequest.
|
|
3339
|
+
* @summary Submit a join access request from an invite token
|
|
3516
3340
|
* @param {string} orgId
|
|
3517
3341
|
* @param {CreateJoinRequest} [createJoinRequest]
|
|
3518
3342
|
* @param {*} [options] Override http request option.
|
|
@@ -3523,19 +3347,6 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
3523
3347
|
return JoinAccessApiFp(this.configuration).createJoinAccessRequest(orgId, createJoinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3524
3348
|
}
|
|
3525
3349
|
|
|
3526
|
-
/**
|
|
3527
|
-
* Creates a rotating QR join session for a storefront after validating the RMS terminal passport.
|
|
3528
|
-
* @summary Start a POS QR join session
|
|
3529
|
-
* @param {string} orgId
|
|
3530
|
-
* @param {CreateQrSessionRequest} [createQrSessionRequest]
|
|
3531
|
-
* @param {*} [options] Override http request option.
|
|
3532
|
-
* @throws {RequiredError}
|
|
3533
|
-
* @memberof JoinAccessApi
|
|
3534
|
-
*/
|
|
3535
|
-
public createPosQrSession(orgId: string, createQrSessionRequest?: CreateQrSessionRequest, options?: RawAxiosRequestConfig) {
|
|
3536
|
-
return JoinAccessApiFp(this.configuration).createPosQrSession(orgId, createQrSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
3350
|
/**
|
|
3540
3351
|
* Returns request status for the requester or an authorized owner.
|
|
3541
3352
|
* @summary Get a join access request by id
|
|
@@ -3550,16 +3361,17 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
3550
3361
|
}
|
|
3551
3362
|
|
|
3552
3363
|
/**
|
|
3553
|
-
* Returns pending AccessRequests for
|
|
3554
|
-
* @summary List pending join requests for
|
|
3364
|
+
* Returns pending AccessRequests for an org. Optional propertyId/brandId filters. Requires ViewTeammates on orgId.
|
|
3365
|
+
* @summary List pending join requests for an organization
|
|
3555
3366
|
* @param {string} orgId
|
|
3556
|
-
* @param {string}
|
|
3367
|
+
* @param {string} [propertyId]
|
|
3368
|
+
* @param {string} [brandId]
|
|
3557
3369
|
* @param {*} [options] Override http request option.
|
|
3558
3370
|
* @throws {RequiredError}
|
|
3559
3371
|
* @memberof JoinAccessApi
|
|
3560
3372
|
*/
|
|
3561
|
-
public listJoinAccessRequests(orgId: string, brandId
|
|
3562
|
-
return JoinAccessApiFp(this.configuration).listJoinAccessRequests(orgId, brandId, options).then((request) => request(this.axios, this.basePath));
|
|
3373
|
+
public listJoinAccessRequests(orgId: string, propertyId?: string, brandId?: string, options?: RawAxiosRequestConfig) {
|
|
3374
|
+
return JoinAccessApiFp(this.configuration).listJoinAccessRequests(orgId, propertyId, brandId, options).then((request) => request(this.axios, this.basePath));
|
|
3563
3375
|
}
|
|
3564
3376
|
|
|
3565
3377
|
/**
|
|
@@ -3574,19 +3386,6 @@ export class JoinAccessApi extends BaseAPI {
|
|
|
3574
3386
|
public rejectJoinAccessRequest(orgId: string, requestId: string, options?: RawAxiosRequestConfig) {
|
|
3575
3387
|
return JoinAccessApiFp(this.configuration).rejectJoinAccessRequest(orgId, requestId, options).then((request) => request(this.axios, this.basePath));
|
|
3576
3388
|
}
|
|
3577
|
-
|
|
3578
|
-
/**
|
|
3579
|
-
* Mints a new opaque join token when rotation is due.
|
|
3580
|
-
* @summary Rotate a POS QR join session token
|
|
3581
|
-
* @param {string} orgId
|
|
3582
|
-
* @param {string} sessionId
|
|
3583
|
-
* @param {*} [options] Override http request option.
|
|
3584
|
-
* @throws {RequiredError}
|
|
3585
|
-
* @memberof JoinAccessApi
|
|
3586
|
-
*/
|
|
3587
|
-
public rotatePosQrSession(orgId: string, sessionId: string, options?: RawAxiosRequestConfig) {
|
|
3588
|
-
return JoinAccessApiFp(this.configuration).rotatePosQrSession(orgId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3589
|
-
}
|
|
3590
3389
|
}
|
|
3591
3390
|
|
|
3592
3391
|
|
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.249-rc.1786025850"
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
|