Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
cad8257
Update package-lock.json and package.json for dependency changes; add…
alexpmule Jul 23, 2025
7684a5c
Update GitHub Actions workflow to use Ubuntu 22.04 and Node.js 18; up…
alexpmule Jul 23, 2025
fb73f27
Update GitHub Actions workflow to use actions/checkout@v4 and actions…
alexpmule Jul 23, 2025
8c65e7e
Update GitHub Actions workflow to use npm ci for dependency installat…
alexpmule Jul 23, 2025
1fe33f0
Update package.json and package-lock.json to upgrade @advanced-rest-c…
alexpmule Jul 23, 2025
8e7f729
Update package.json and package-lock.json to upgrade various dependen…
alexpmule Jul 23, 2025
5c5f37b
Update GitHub Actions workflow to install test dependencies, includin…
alexpmule Jul 23, 2025
76eaf11
Enhance web-test-runner configuration to support Playwright for multi…
alexpmule Jul 23, 2025
4f86cde
Add web-test-runner configuration file for Playwright testing and upd…
alexpmule Jul 23, 2025
f75ac7c
Update GitHub Actions workflow to specify versions for Playwright and…
alexpmule Jul 23, 2025
7e77891
Add Playwright as a devDependency in package.json and package-lock.js…
alexpmule Jul 23, 2025
8fcbffd
Refactor package.json and GitHub Actions workflow for improved testin…
alexpmule Jul 23, 2025
e36854a
Update package-lock.json to fix dependency versions, adjust resolved …
alexpmule Jul 24, 2025
bc5858f
Refactor GitHub Actions workflow to improve dependency installation p…
alexpmule Jul 24, 2025
dd67562
Add @api-components/api-model-generator as a dependency in package.json
alexpmule Jul 24, 2025
131b2ab
Refactor web-test-runner configuration to use ES module syntax, enhan…
alexpmule Jul 24, 2025
6c37ee5
Enhance testing setup in package.json by adding new test commands for…
alexpmule Jul 24, 2025
a95b3f9
Update package dependencies in package.json and package-lock.json, in…
alexpmule Jul 24, 2025
df23013
Update GitHub Actions workflow to replace default test command with a…
alexpmule Jul 24, 2025
9b3c747
Refactor GitHub Actions workflow to replace 'npm install' with 'npm c…
alexpmule Jul 24, 2025
5b7cf8d
Enhance GitHub Actions workflow by adding a step to install Playwrigh…
alexpmule Jul 24, 2025
cdb3b93
Refactor GitHub Actions workflow to simplify test execution by replac…
alexpmule Jul 24, 2025
3b3f98b
Refactor GitHub Actions workflow to streamline test execution by repl…
alexpmule Jul 24, 2025
2bdb978
Add global dependency installation for web-test-runner in GitHub Acti…
alexpmule Jul 24, 2025
c98b447
Update GitHub Actions workflow to replace 'npm ci' with 'npm install'…
alexpmule Jul 24, 2025
3eb315c
Refactor GitHub Actions workflow to remove the Playwright GitHub Acti…
alexpmule Jul 24, 2025
bb14861
Enhance web-test-runner configuration by adding support for multiple …
alexpmule Jul 24, 2025
2eea95b
Refactor GitHub Actions workflow to change global dependency installa…
alexpmule Jul 24, 2025
f00f099
Refactor test commands in package.json to simplify execution by remov…
alexpmule Jul 24, 2025
1b5e6af
Update package.json to include Playwright version override and enhanc…
alexpmule Jul 24, 2025
eec6a85
Remove Playwright version 1.40.1 from package.json and package-lock.j…
alexpmule Jul 24, 2025
f5f1260
Update GitHub Actions workflow to install Playwright version 1.25.2 g…
alexpmule Jul 24, 2025
575a089
Update web-test-runner configuration to enable Firefox browser suppor…
alexpmule Jul 24, 2025
10fb28a
Update web-test-runner version in GitHub Actions workflow to ensure c…
alexpmule Jul 24, 2025
e08e3a6
Update GitHub Actions workflow to install additional global dependenc…
alexpmule Jul 24, 2025
907af21
Refactor GitHub Actions workflow to install Playwright and web-test-r…
alexpmule Jul 24, 2025
a1dd193
Refactor GitHub Actions workflow to streamline Playwright browser ins…
alexpmule Jul 24, 2025
2c1c194
Update GitHub Actions workflow to modify the test execution command f…
alexpmule Jul 24, 2025
04f9577
Update GitHub Actions workflow to change the test execution command f…
alexpmule Jul 24, 2025
efa9971
Update package.json to add Playwright version 1.25.2 and refactor Git…
alexpmule Jul 24, 2025
a98276c
Update package-lock.json to include Playwright version 1.25.2 as a di…
alexpmule Jul 24, 2025
26ec7be
Refactor GitHub Actions workflow to remove the API model generation s…
alexpmule Jul 24, 2025
48d2e6f
Update GitHub Actions workflow to replace `npm ci` with `npm install`…
alexpmule Jul 24, 2025
9d9ff3b
Refactor GitHub Actions workflow to implement a matrix strategy for W…
alexpmule Jul 24, 2025
e61f132
Update dependencies in package.json and package-lock.json, upgrading …
alexpmule Jul 24, 2025
d64eda2
Enhance GitHub Actions workflow by adding Playwright browser installa…
alexpmule Jul 24, 2025
13fa720
Update dependencies in package.json and package-lock.json, downgradin…
alexpmule Jul 24, 2025
c6c206c
4.6.10
alexpmule Jul 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,54 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
# os: [ubuntu-18.04, ubuntu-20.04]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: microsoft/playwright-github-action@v1
- uses: actions/cache@v1
node-version: 18
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
rm -f package-lock.json
npm install
- name: Run tests
run: npm test
test_win:
name: "Windows"
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: microsoft/playwright-github-action@v1
- uses: actions/cache@v1
node-version: 18
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
run: |
if (Test-Path package-lock.json) { del package-lock.json }
npm install
shell: pwsh
- name: Run tests
run: npm test
tag:
name: "Publishing release"
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs:
needs:
- test_linux
- test_win
runs-on: ubuntu-latest
Expand All @@ -69,9 +75,9 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -98,4 +104,4 @@ jobs:
prerelease: false
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
140 changes: 140 additions & 0 deletions demo/agents-api/agents-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
openapi: 3.0.0
info:
version: 1.0.0
title: Hotel Reservations API
description: API to manage hotel room bookings, check availability, and apply loyalty benefits.
x-sfdc:
agent:
topic:
name: Hotel_Room_Reservation
classificationDescription: This API allows agents to book, modify, and cancel hotel reservations, as well as apply loyalty upgrades.
scope: Your job is to assist customers in booking hotel rooms based on their preferences, loyalty status, and availability. You should also be able to recommend upgrades if the customer qualifies.
instructions:
- Always check the customer's loyalty status before finalizing the booking.
- If the preferred room type is unavailable, suggest alternative options with similar amenities.
- Never confirm a reservation without validating payment information.
- If the customer qualifies for an upgrade, apply it automatically and notify them.
paths:
/reservations:
post:
summary: Create a new hotel reservation
description: Book a hotel room with specified preferences and apply loyalty upgrades if eligible.
operationId: reservationCreate
x-sfdc:
agent:
action:
publishAsAgentAction: true
requestBody:
required: true
description: customer-reservation
content:
application/json:
schema:
additionalProperties: false
type: object
x-sfdc:
agent:
action:
isUserInput: true
properties:
customerId:
type: string
description: Unique identifier of the customer.
checkInDate:
type: string
format: date
description: Date of check-in.
checkOutDate:
type: string
format: date
description: Date of check-out.
roomType:
type: string
enum: [Standard, Deluxe, Suite]
description: Preferred room type.
specialRequests:
type: string
description: Additional requests like pillow type or air freshener choice.
responses:
'201':
description: Reservation successfully created
content:
application/json:
schema:
additionalProperties: false
type: object
x-sfdc:
agent:
action:
isDisplayable: true
privacy:
isPii: true
properties:
reservationId:
type: string
description: Unique ID of the created reservation.
upgradeApplied:
type: boolean
description: Indicates if a loyalty-based upgrade was applied.
totalPrice:
type: number
format: float
description: Final price after applying any discounts or upgrades.
'400':
description: Invalid input provided
/reservations/reservationlookup:
get:
summary: Retrieve reservation details
description: Get details of a specific reservation by ID.
x-sfdc:
agent:
action:
publishAsAgentAction: true
operationId: reservationRetrieve
requestBody:
required: true
description: customer-reservation
content:
application/json:
schema:
additionalProperties: false
type: object
x-sfdc:
agent:
action:
isUserInput: true
properties:
reservationID:
type: string
description: Unique identifier of the reservation.
responses:
'200':
description: Reservation details retrieved successfully
content:
application/json:
schema:
additionalProperties: false
x-sfdc:
agent:
action:
isDisplayable: true
privacy:
isPii: true
type: object
properties:
reservationId:
type: string
customerId:
type: string
roomType:
type: string
checkInDate:
type: string
format: date
checkOutDate:
type: string
format: date
upgradeApplied:
type: boolean
'404':
description: Reservation not found
3 changes: 2 additions & 1 deletion demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"mime": "application/yaml"
},
"APIC-641/APIC-641.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"APIC-711/APIC-711.raml": "RAML 1.0"
"APIC-711/APIC-711.raml": "RAML 1.0",
"agents-api/agents-api.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
}
2 changes: 2 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
--http-method-label-delete-color: #fff;
--http-method-label-patch-background-color: #811f92;
--http-method-label-patch-color: #F2F1EF;

--arc-icon-method-icon-color: #fff;
}

body.styled.api.dark {
Expand Down
1 change: 1 addition & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ApiDemo extends ApiDemoPage {

_apiListTemplate() {
return [
["agents-api", "Agents API"],
["google-drive-api", "Google Drive"],
["exchange-experience-api", "Exchange xAPI"],
["demo-api", "Demo API"],
Expand Down
Loading