@cinerino/sdk 11.1.0 → 11.2.0-alpha.1

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/lib/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * API Node.js Client
3
3
  */
4
- import { chevre, chevreAdmin, chevreAsset, chevreConsole, chevrePay, chevreTxc, chevreTxn, cloudAdmin, cloudAsset, cloudPay, cloudTxc, cloudTxn, factory, loadChevre, loadChevreAdmin, loadChevreAsset, loadChevreConsole, loadChevrePay, loadChevreTxc, loadChevreTxn, loadCloudAdmin, loadCloudAsset, loadCloudPay, loadCloudTxc, loadCloudTxn, loadPecorino, loadService, loadWaiterAdmin, pecorino, service, transporters, waiterAdmin } from './abstract';
4
+ import { chevre, chevreAdmin, chevreAsset, chevreConsole, chevrePay, chevreTxc, chevreTxn, cloudAdmin, cloudAsset, cloudPay, cloudSearch, cloudTxc, cloudTxn, factory, loadChevre, loadChevreAdmin, loadChevreAsset, loadChevreConsole, loadChevrePay, loadChevreTxc, loadChevreTxn, loadCloudAdmin, loadCloudAsset, loadCloudPay, loadCloudSearch, loadCloudTxc, loadCloudTxn, loadPecorino, loadService, loadWaiterAdmin, pecorino, service, transporters, waiterAdmin } from './abstract';
5
5
  import type ClientCredentialsClient from './auth/clientCredentialsClient';
6
6
  import type { ImplicitGrantClient, IOptions as IImplicitGrantClientOptions } from './auth/implicitGrantClient';
7
7
  import type OAuth2client from './auth/oAuth2client';
8
- export { loadChevre, loadChevreAdmin, loadChevreAsset, loadChevreConsole, loadChevrePay, loadChevreTxc, loadChevreTxn, loadCloudAdmin, loadCloudAsset, loadCloudPay, loadCloudTxc, loadCloudTxn, loadPecorino, loadService, loadWaiterAdmin, chevre, chevreAdmin, chevreAsset, chevreConsole, chevrePay, chevreTxc, chevreTxn, cloudAdmin, cloudAsset, cloudPay, cloudTxc, cloudTxn, pecorino, service, factory, transporters, waiterAdmin };
8
+ export { loadChevre, loadChevreAdmin, loadChevreAsset, loadChevreConsole, loadChevrePay, loadChevreTxc, loadChevreTxn, loadCloudAdmin, loadCloudAsset, loadCloudPay, loadCloudSearch, loadCloudTxc, loadCloudTxn, loadPecorino, loadService, loadWaiterAdmin, chevre, chevreAdmin, chevreAsset, chevreConsole, chevrePay, chevreTxc, chevreTxn, cloudAdmin, cloudAsset, cloudPay, cloudSearch, cloudTxc, cloudTxn, pecorino, service, factory, transporters, waiterAdmin };
9
9
  /**
10
10
  * each OAuth2 clients
11
11
  */
package/lib/index.js CHANGED
@@ -41,7 +41,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
41
41
  return to;
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.createAuthInstance = exports.auth = exports.transporters = exports.factory = exports.loadWaiterAdmin = exports.loadService = exports.loadPecorino = exports.loadCloudTxn = exports.loadCloudTxc = exports.loadCloudPay = exports.loadCloudAsset = exports.loadCloudAdmin = exports.loadChevreTxn = exports.loadChevreTxc = exports.loadChevrePay = exports.loadChevreConsole = exports.loadChevreAsset = exports.loadChevreAdmin = exports.loadChevre = void 0;
44
+ exports.createAuthInstance = exports.auth = exports.transporters = exports.factory = exports.loadWaiterAdmin = exports.loadService = exports.loadPecorino = exports.loadCloudTxn = exports.loadCloudTxc = exports.loadCloudSearch = exports.loadCloudPay = exports.loadCloudAsset = exports.loadCloudAdmin = exports.loadChevreTxn = exports.loadChevreTxc = exports.loadChevrePay = exports.loadChevreConsole = exports.loadChevreAsset = exports.loadChevreAdmin = exports.loadChevre = void 0;
45
45
  /**
46
46
  * API Node.js Client
47
47
  */
@@ -57,6 +57,7 @@ Object.defineProperty(exports, "loadChevreTxn", { enumerable: true, get: functio
57
57
  Object.defineProperty(exports, "loadCloudAdmin", { enumerable: true, get: function () { return abstract_1.loadCloudAdmin; } });
58
58
  Object.defineProperty(exports, "loadCloudAsset", { enumerable: true, get: function () { return abstract_1.loadCloudAsset; } });
59
59
  Object.defineProperty(exports, "loadCloudPay", { enumerable: true, get: function () { return abstract_1.loadCloudPay; } });
60
+ Object.defineProperty(exports, "loadCloudSearch", { enumerable: true, get: function () { return abstract_1.loadCloudSearch; } });
60
61
  Object.defineProperty(exports, "loadCloudTxc", { enumerable: true, get: function () { return abstract_1.loadCloudTxc; } });
61
62
  Object.defineProperty(exports, "loadCloudTxn", { enumerable: true, get: function () { return abstract_1.loadCloudTxn; } });
62
63
  Object.defineProperty(exports, "loadPecorino", { enumerable: true, get: function () { return abstract_1.loadPecorino; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "11.1.0",
3
+ "version": "11.2.0-alpha.1",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -92,7 +92,7 @@
92
92
  "watchify": "^3.11.1"
93
93
  },
94
94
  "dependencies": {
95
- "@chevre/factory": "4.395.0",
95
+ "@chevre/factory": "4.396.0-alpha.7",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",
@@ -1,32 +0,0 @@
1
- // tslint:disable:no-implicit-dependencies no-console
2
- import * as client from '../../lib/index';
3
- import { auth } from './auth/clientCredentials';
4
-
5
- const PROJECT_ID = String(process.env.PROJECT_ID);
6
-
7
- async function main() {
8
- const productService = new (await client.loadService()).Product({
9
- endpoint: <string>process.env.API_ENDPOINT,
10
- auth: await auth(),
11
- project: { id: PROJECT_ID },
12
- seller: { id: '' }
13
- });
14
-
15
- const productModels = await productService.searchProductModels({
16
- page: 1,
17
- limit: 3,
18
- category: {
19
- codeValue: ['Meal', 'Premium', 'Standard'],
20
- inCodeSet: { identifier: client.factory.categoryCode.CategorySetIdentifier.SeatingType }
21
- }
22
- });
23
- // tslint:disable-next-line:no-null-keyword
24
- console.dir(productModels, { depth: null });
25
- console.log(productModels.length, 'productModels');
26
- }
27
-
28
- main()
29
- .then(() => {
30
- console.log('success!');
31
- })
32
- .catch(console.error);
@@ -1,28 +0,0 @@
1
- // tslint:disable:no-console
2
- import * as client from '../../lib/index';
3
- import { auth } from './auth/clientCredentials';
4
-
5
- const PROJECT_ID = String(process.env.PROJECT_ID);
6
-
7
- async function main() {
8
- const productService = new (await client.loadService()).Product({
9
- endpoint: <string>process.env.API_ENDPOINT,
10
- auth: await auth(),
11
- project: { id: PROJECT_ID },
12
- seller: { id: '' }
13
- });
14
-
15
- const { data } = await productService.search({
16
- limit: 10,
17
- page: 1,
18
- typeOf: { $eq: client.factory.product.ProductType.EventService }
19
- });
20
- console.log(data);
21
- console.log(data.length, 'data found');
22
- }
23
-
24
- main()
25
- .then(() => {
26
- console.log('success!');
27
- })
28
- .catch(console.error);