Skip to content

Commit

Permalink
Atuck/js sdk tests2 (#23285)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR


### Issues associated with this PR


### Describe the problem that is addressed by this PR


### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: marche0133 <73860273+marche0133@users.noreply.github.com>
Co-authored-by: Marc Ma <marcma@microsoft.com>
Co-authored-by: Daniel Rodríguez <sadasant@users.noreply.github.com>
Co-authored-by: williamzhao87 <williamzhao87@gmail.com>
  • Loading branch information
5 people committed May 13, 2023
1 parent 6d27a62 commit 4ea717f
Show file tree
Hide file tree
Showing 115 changed files with 40,872 additions and 1,489 deletions.
14 changes: 7 additions & 7 deletions sdk/communication/communication-job-router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ const distributionPolicy = await routerAdministrationClient.createDistributionPo
mode: {
objectType: "longest-idle",
minConcurrentOffers: 1,
maxConcurrentOffers: 3
}
maxConcurrentOffers: 3,
},
});
```

Expand All @@ -106,8 +106,8 @@ const salesQueueResponse = await routerAdministrationClient.createQueue("Sales",
name: "Sales",
distributionPolicyId: distributionPolicy.Id,
labels: {
Department: "Xbox"
}
Department: "Xbox",
},
});
```

Expand Down Expand Up @@ -152,7 +152,7 @@ await routerClient.createJob("asdaccfb-476e-42f9-a202-b211b41a4ea4", {
channelReference: "66e4362e-aad5-4d71-bb51-448672ebf492",
channelId: "Voice",
priority: 2,
queueId: salesQueueResponse.Id
queueId: salesQueueResponse.Id,
});
```

Expand Down Expand Up @@ -189,8 +189,8 @@ await routerClient.createJob("fdw2rcfb-476e-42f9-a202-b211b41a4ea4", {
channelId: "Voice",
classificationPolicyId: classificationPolicy.Id,
labels: {
department: "xbox"
}
department: "xbox",
},
});
```

Expand Down
6 changes: 3 additions & 3 deletions sdk/communication/communication-job-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"scripts": {
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build:autorest": "autorest ./swagger/README.md && rushx format",
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true ",
"build:node": "tsc -p . && cross-env ONLY_NODE=true ",
"build:browser": "tsc -p . && dev-tool run bundle && cross-env ONLY_BROWSER=true ",
"build:node": "tsc -p . && dev-tool run bundle && cross-env ONLY_NODE=true ",
"build:samples": "dev-tool samples publish -f",
"build:test": "tsc -p . && dev-tool run bundle",
"build": "npm run clean && tsc -p . && api-extractor run --local --verbose",
"build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local --verbose",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"clean": "rimraf dist dgooist-* temp types *.tgz *.log",
"execute:samples": "dev-tool samples run samples-dev",
Expand Down

0 comments on commit 4ea717f

Please sign in to comment.