mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-02 06:06:44 +00:00
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
import * as Constants from "../Common/Constants";
|
|
import * as DataModels from "../Contracts/DataModels";
|
|
|
|
export class OfferUtils {
|
|
public static isOfferV1(offer: DataModels.Offer): boolean {
|
|
return !offer || offer.offerVersion !== Constants.OfferVersions.V2;
|
|
}
|
|
|
|
public static isNotOfferV1(offer: DataModels.Offer): boolean {
|
|
return !OfferUtils.isOfferV1(offer);
|
|
}
|
|
}
|