Skip to content

Commit

Permalink
updated flex-plugins-api-client to integrate the latest flex plugins …
Browse files Browse the repository at this point in the history
…api spec
  • Loading branch information
aishwarya-tw committed May 9, 2024
1 parent 653fe7d commit a3172b0
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr_e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
with:
BRANCH: ${{ needs.get-version.outputs.branch }}
NPM_IGNORE_PREFIX: ${{ vars.NPM_IGNORE_PREFIX }}
PACKAGE_VERSION: 6.3.4-alpha.202405081240
PACKAGE_VERSION: ${{ github.event.label.name == vars.E2E_LABEL && 'latest' || needs.get-version.outputs.version }}
FLEX_UI_VERSION: latest
secrets:
CONSOLE_EMAIL: ${{ secrets.CONSOLE_EMAIL }}
Expand Down
9 changes: 8 additions & 1 deletion changelog/v6.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 6.3.4 (May 9th, 2024)

### Upgrades

- Refactored `flex-plugins-api-client` package to be compatible with the browser JavaScript environment.
- Updated `flex-plugins-api-client` to incorporate the latest Flex Plugins API spec.

## 6.3.3 (Apr 4th, 2024)

### Fixed
Expand Down Expand Up @@ -27,7 +34,7 @@

### Upgrades

- added support for serverless node18 runtime
- Added support for Twilio Serverless Node 18 runtime

## 6.2.2 (Oct 17th, 2023)

Expand Down
1 change: 1 addition & 0 deletions packages/flex-plugins-api-client/src/clients/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export {
PluginVersionResource,
PluginVersionResourcePage,
CreatePluginVersionResource,
ValidateStatus,
} from './pluginVersions';
export {
default as ConfigurationsClient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ export interface PluginVersionResource {
changelog: string;
archived: boolean;
date_created: string;
validated?: boolean;
}

const RESPONSE_KEY = 'plugin_versions';

export enum ValidateStatus {
Success = 'sucesss',
Failure = 'failure',
}

export interface PluginVersionResourcePage extends PaginationMeta {
plugin_versions: PluginVersionResource[];
}
Expand All @@ -26,6 +32,8 @@ export interface CreatePluginVersionResource {
PluginUrl: string;
Private?: boolean;
Changelog?: string;
CliVersion?: string;
ValidateStatus?: ValidateStatus;
}

/**
Expand Down
1 change: 1 addition & 0 deletions packages/flex-plugins-api-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export {
PaginationMeta,
Meta,
Pagination,
ValidateStatus,
} from './clients';

export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default function archivePluginVersion(pluginVersionsClient: PluginVersion
isPrivate: pluginVersion.private,
isArchived: pluginVersion.archived,
dateCreated: pluginVersion.date_created,
isValidated: pluginVersion.validated,
};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default function describePlugin(
isActive: false,
isArchived: version.archived,
dateCreated: version.date_created,
isValidated: version.validated,
}));

if (release) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface PluginVersion {
isPrivate: boolean;
isArchived: boolean;
dateCreated: string;
isValidated?: boolean;
}

export interface DescribePluginVersion extends PluginVersion {
Expand Down

0 comments on commit a3172b0

Please sign in to comment.