Skip to content

Commit

Permalink
fix: add necessary attributes to api key model and fix issue with enum (
Browse files Browse the repository at this point in the history
#869)

J:ORG-666
  • Loading branch information
schaoukicoveo authored Oct 1, 2024
1 parent a099a95 commit 6bf06f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/resources/ApiKeys/ApiKeysInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,15 @@ export interface ApiKeyModel extends GranularResource {
/**
* The ID of the template to which the API key is bound.
*/
apiKeyTemplateId?: string
apiKeyTemplateId?: string;
/**
* The date of activation of the API key.
*/
activationDate?: number;
/**
* The date the API key has been disabled.
*/
disabledDate?: number
}

export interface CreateApiKeyOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ export enum FeedbackConsumerType {
}

export enum ApiKeyStatus {
ENABLED='EXPIRED',
ENABLED='ENABLED',
DISABLED='DISABLED',
DISABLED_FOR_INACTIVITY='DISABLED_FOR_INACTIVITY',
EXPIRED='EXPIRED',
Expand Down

0 comments on commit 6bf06f6

Please sign in to comment.