Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/9.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Jan 14, 2021
2 parents 1b2da50 + ee9e902 commit 1e1a215
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 18 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Security

## v9.2.0 - 2021-01-14

### Added

- 売上レポート検索を追加

## v9.1.0 - 2021-01-12

### Changed
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@motionpicture/ttts-api-abstract-client",
"version": "9.1.0",
"version": "9.2.0",
"description": "TTTS API abstract client library for Javascript.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -76,7 +76,7 @@
"typescript": "^3.5.3"
},
"dependencies": {
"@tokyotower/factory": "32.0.1",
"@tokyotower/factory": "32.1.0",
"debug": "^3.1.0",
"http-status": "^1.0.1",
"isomorphic-fetch": "^2.2.1",
Expand Down
22 changes: 21 additions & 1 deletion src/service/salesReport.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
import * as factory from '@tokyotower/factory';
import { OK } from 'http-status';

import { Service } from '../service';
import { ISearchResult, Service } from '../service';

/**
* 売上レポートサービス
*/
export class SalesReportService extends Service {
/**
* 検索
*/
public async search(params: {
$and: any[];
}): Promise<ISearchResult<factory.report.order.IReport[]>> {
return this.fetch({
uri: '/aggregateSales',
method: 'GET',
qs: params,
expectedStatusCodes: [OK]
})
.then(async (response) => {
return {
data: await response.json()
};
});
}

/**
* ストリーミング検索
*/
Expand Down

0 comments on commit 1e1a215

Please sign in to comment.