@cinerino/sdk 18.3.0-alpha.11 → 18.3.0-alpha.12
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/abstract/chevre/event/factory.d.ts +1 -1
- package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +1 -1
- package/lib/abstract/chevreConsole/offerCatalog.d.ts +2 -2
- package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +1 -1
- package/lib/abstract/cloud/search/offer.d.ts +11 -0
- package/lib/abstract/cloud/search/offer.js +24 -0
- package/lib/abstract/cloud/search.d.ts +12 -0
- package/lib/abstract/cloud/search.js +15 -0
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
|
@@ -77,7 +77,7 @@ export interface IFindSubEventsParams {
|
|
|
77
77
|
/**
|
|
78
78
|
* イベントのサブカタログ検索結果
|
|
79
79
|
*/
|
|
80
|
-
export type ISearchOfferCatalogItemResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | '
|
|
80
|
+
export type ISearchOfferCatalogItemResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'relatedOffer'> & {
|
|
81
81
|
/**
|
|
82
82
|
* カタログ内インデックス
|
|
83
83
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | '
|
|
3
|
+
type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'relatedOffer'> & {
|
|
4
4
|
/**
|
|
5
5
|
* アイテム数
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered'
|
|
3
|
+
type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered'> & {
|
|
4
4
|
/**
|
|
5
5
|
* アイテム数
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id'
|
|
|
13
13
|
type IItemAsOffer = Pick<factory.unitPriceOffer.IUnitPriceOffer, 'id' | 'identifier' | 'name' | 'alternateName' | 'priceSpecification' | 'typeOf'> & {
|
|
14
14
|
sortIndex?: number;
|
|
15
15
|
};
|
|
16
|
-
type IItemAsOfferCatalog = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'typeOf' | 'identifier' | 'itemOffered' | '
|
|
16
|
+
type IItemAsOfferCatalog = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'typeOf' | 'identifier' | 'itemOffered' | 'relatedOffer'> & {
|
|
17
17
|
sortIndex?: number;
|
|
18
18
|
};
|
|
19
19
|
type IItemListElement = IItemAsOffer | IItemAsOfferCatalog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | '
|
|
3
|
+
type IOfferCatalogAsSearchResult = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'relatedOffer'> & {
|
|
4
4
|
/**
|
|
5
5
|
* アイテム数
|
|
6
6
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IFindParams, IUnitPriceOfferAsFindResult } from '../../chevre/offer/factory';
|
|
2
|
+
import { Service } from '../../service';
|
|
3
|
+
/**
|
|
4
|
+
* 単価オファーサービス
|
|
5
|
+
*/
|
|
6
|
+
export declare class OfferService extends Service {
|
|
7
|
+
/**
|
|
8
|
+
* 単価オファー検索
|
|
9
|
+
*/
|
|
10
|
+
findUnitPriceOffers(params: Pick<IFindParams, 'limit' | 'page' | 'ids'>): Promise<IUnitPriceOfferAsFindResult[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../../service");
|
|
6
|
+
/**
|
|
7
|
+
* 単価オファーサービス
|
|
8
|
+
*/
|
|
9
|
+
class OfferService extends service_1.Service {
|
|
10
|
+
/**
|
|
11
|
+
* 単価オファー検索
|
|
12
|
+
*/
|
|
13
|
+
async findUnitPriceOffers(params) {
|
|
14
|
+
const { limit, page, ids } = params;
|
|
15
|
+
return this.fetch({
|
|
16
|
+
uri: '/offers',
|
|
17
|
+
method: 'GET',
|
|
18
|
+
qs: { limit, page, ids },
|
|
19
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
20
|
+
})
|
|
21
|
+
.then(async (response) => response.json());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.OfferService = OfferService;
|
|
@@ -3,6 +3,7 @@ import type { CreativeWorkService } from './search/creativeWork';
|
|
|
3
3
|
import type { EventService } from './search/event';
|
|
4
4
|
import type { EventOfferService } from './search/eventOffer';
|
|
5
5
|
import type { EventSeriesService } from './search/eventSeries';
|
|
6
|
+
import type { OfferService } from './search/offer';
|
|
6
7
|
import type { PlaceService } from './search/place';
|
|
7
8
|
import type { ProductService } from './search/product';
|
|
8
9
|
import type { SeatOfferService } from './search/seatOffer';
|
|
@@ -38,6 +39,13 @@ export declare namespace service {
|
|
|
38
39
|
namespace EventOffer {
|
|
39
40
|
let svc: typeof EventOfferService | undefined;
|
|
40
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* 単価オファーサービス
|
|
44
|
+
*/
|
|
45
|
+
type Offer = OfferService;
|
|
46
|
+
namespace Offer {
|
|
47
|
+
let svc: typeof OfferService | undefined;
|
|
48
|
+
}
|
|
41
49
|
/**
|
|
42
50
|
* 施設サービス
|
|
43
51
|
*/
|
|
@@ -70,6 +78,10 @@ export declare class CloudSearch {
|
|
|
70
78
|
* コンテンツサービスインスタンス生成
|
|
71
79
|
*/
|
|
72
80
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
81
|
+
/**
|
|
82
|
+
* 単価オファーサービスインスタンス生成
|
|
83
|
+
*/
|
|
84
|
+
createOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferService>;
|
|
73
85
|
/**
|
|
74
86
|
* プロダクトサービスインスタンス生成
|
|
75
87
|
*/
|
|
@@ -52,6 +52,9 @@ var service;
|
|
|
52
52
|
let EventOffer;
|
|
53
53
|
(function (EventOffer) {
|
|
54
54
|
})(EventOffer = service.EventOffer || (service.EventOffer = {}));
|
|
55
|
+
let Offer;
|
|
56
|
+
(function (Offer) {
|
|
57
|
+
})(Offer = service.Offer || (service.Offer = {}));
|
|
55
58
|
let Place;
|
|
56
59
|
(function (Place) {
|
|
57
60
|
})(Place = service.Place || (service.Place = {}));
|
|
@@ -83,6 +86,18 @@ class CloudSearch {
|
|
|
83
86
|
retryableStatusCodes: defaultRetryableStatusCodes
|
|
84
87
|
});
|
|
85
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* 単価オファーサービスインスタンス生成
|
|
91
|
+
*/
|
|
92
|
+
async createOfferInstance(params) {
|
|
93
|
+
if (service.Offer.svc === undefined) {
|
|
94
|
+
service.Offer.svc = (await Promise.resolve().then(() => __importStar(require('./search/offer.js')))).OfferService;
|
|
95
|
+
}
|
|
96
|
+
return new service.Offer.svc({
|
|
97
|
+
...this.options, ...params,
|
|
98
|
+
retryableStatusCodes: defaultRetryableStatusCodes
|
|
99
|
+
});
|
|
100
|
+
}
|
|
86
101
|
/**
|
|
87
102
|
* プロダクトサービスインスタンス生成
|
|
88
103
|
*/
|