@cinerino/sdk 12.12.0-alpha.1 → 12.12.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.12.0-alpha.1",
3
+ "version": "12.12.0-alpha.3",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -1,40 +0,0 @@
1
- // tslint:disable:no-console
2
- // tslint:disable-next-line:no-implicit-dependencies
3
- import * as client from '../../lib/index';
4
-
5
- const project = { id: String(process.env.PROJECT_ID) };
6
-
7
- async function main() {
8
- const authClient = await client.auth.ClientCredentials.createInstance({
9
- domain: <string>process.env.TEST_AUTHORIZE_SERVER_DOMAIN,
10
- clientId: <string>process.env.TEST_CLIENT_ID,
11
- clientSecret: <string>process.env.TEST_CLIENT_SECRET,
12
- scopes: [],
13
- state: ''
14
- });
15
-
16
- const placeService = new (await client.loadService()).Place({
17
- endpoint: <string>process.env.API_ENDPOINT,
18
- auth: authClient,
19
- project: { id: project.id },
20
- seller: { id: '' }
21
- });
22
-
23
- const { data } = await placeService.searchSeats({
24
- limit: 100,
25
- page: 1,
26
- branchCode: { $in: ['A-1', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx'] },
27
- containedInPlace: {
28
- branchCode: { $in: ['Default', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx', 'xx'] }
29
- }
30
- });
31
- // tslint:disable-next-line:no-null-keyword
32
- console.dir(data, { depth: null });
33
- console.log(data.length);
34
- }
35
-
36
- main()
37
- .then(() => {
38
- console.log('success!');
39
- })
40
- .catch(console.error);