HoppRequestSaveContext.ts (hoppscotch-2.2.1) | : | HoppRequestSaveContext.ts (hoppscotch-3.0.0) | ||
---|---|---|---|---|
import { HoppRESTRequest } from "@hoppscotch/data" | ||||
/** | /** | |||
* We use the save context to figure out | * We use the save context to figure out | |||
* how a loaded request is to be saved. | * how a loaded request is to be saved. | |||
* These will be set when the request is loaded | * These will be set when the request is loaded | |||
* into the request session (RESTSession) | * into the request session (RESTSession) | |||
*/ | */ | |||
export type HoppRequestSaveContext = | export type HoppRequestSaveContext = | |||
| { | | { | |||
/** | /** | |||
* The origin source of the request | * The origin source of the request | |||
*/ | */ | |||
originLocation: "user-collection" | originLocation: "user-collection" | |||
/** | /** | |||
* Path to the request folder | * Path to the request folder | |||
*/ | */ | |||
folderPath: string | folderPath: string | |||
/** | /** | |||
* Index to the request | * Index to the request | |||
*/ | */ | |||
requestIndex: number | requestIndex: number | |||
/** | ||||
* Current request | ||||
*/ | ||||
req?: HoppRESTRequest | ||||
} | } | |||
| { | | { | |||
/** | /** | |||
* The origin source of the request | * The origin source of the request | |||
*/ | */ | |||
originLocation: "team-collection" | originLocation: "team-collection" | |||
/** | /** | |||
* ID of the request in the team | * ID of the request in the team | |||
*/ | */ | |||
requestID: string | requestID: string | |||
/** | /** | |||
* ID of the team | * ID of the team | |||
*/ | */ | |||
teamID?: string | teamID?: string | |||
/** | /** | |||
* ID of the collection loaded | * ID of the collection loaded | |||
*/ | */ | |||
collectionID?: string | collectionID?: string | |||
/** | ||||
* Current request | ||||
*/ | ||||
req?: HoppRESTRequest | ||||
} | } | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 10 lines changed or added |