Skip to content

Commit d9614f2

Browse files
Merge pull request #752 from aakashreddy-p/aakash/fix/tab-property-issue-auth-profile
fix: added a property to support select auth profile id for tab SPRW-608.
2 parents a139988 + 84385df commit d9614f2

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

src/modules/common/models/collection.model.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ export class RequestMetaData {
240240
@IsNotEmpty()
241241
selectedRequestAuthType?: AuthModeEnum;
242242

243+
@IsString()
244+
@IsNotEmpty()
245+
@IsOptional()
246+
selectedRequestAuthProfileId?: string;
247+
243248
@ApiProperty({
244249
example: {
245250
name: "search",

src/modules/common/models/collection.rxdb.model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class TransformedRequest {
3232
export interface SparrowRequest {
3333
selectedRequestBodyType?: BodyModeEnum | PostmanBodyModeEnum;
3434
selectedRequestAuthType?: AuthModeEnum;
35+
selectedRequestAuthProfileId?: string;
3536
method: string;
3637
url: string;
3738
body: SparrowRequestBody;
@@ -79,7 +80,7 @@ export class Auth {
7980
}
8081

8182
export class AuthProfiles extends Auth {
82-
authId?:string
83+
authId?: string;
8384
name?: string;
8485
description?: string;
8586
authType?: CollectionAuthModeEnum;

src/modules/common/services/helper/oapi2.transformer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ function transformPath(
161161
},
162162
selectedRequestBodyType: BodyModeEnum["none"],
163163
selectedRequestAuthType: AuthModeEnum["No Auth"],
164+
selectedRequestAuthProfileId: ""
164165
},
165166
createdBy: username,
166167
updatedBy: username,

src/modules/common/services/helper/oapi3.transformer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ function transformPathV3(
151151
},
152152
selectedRequestBodyType: BodyModeEnum["none"],
153153
selectedRequestAuthType: AuthModeEnum["No Auth"],
154+
selectedRequestAuthProfileId: "",
154155
},
155156
createdBy: username,
156157
updatedBy: username,

0 commit comments

Comments
 (0)