@cinerino/sdk 12.3.0-alpha.12 → 12.3.0-alpha.13

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.
@@ -2,6 +2,7 @@ import { IAdditionalOptions, IOptions } from '../service';
2
2
  import type { CreativeWorkService } from './search/creativeWork';
3
3
  import type { PaymentProductService } from './search/paymentService';
4
4
  import type { ProductService } from './search/product';
5
+ import type { ProductOfferService } from './search/productOffer';
5
6
  /**
6
7
  * publicリソース検索サービス群
7
8
  */
@@ -27,6 +28,13 @@ export declare namespace service {
27
28
  namespace Product {
28
29
  let svc: typeof ProductService | undefined;
29
30
  }
31
+ /**
32
+ * プロダクトオファーサービス
33
+ */
34
+ type ProductOffer = ProductOfferService;
35
+ namespace ProductOffer {
36
+ let svc: typeof ProductOfferService | undefined;
37
+ }
30
38
  }
31
39
  /**
32
40
  * publicリソース検索サービス
@@ -46,4 +54,8 @@ export declare class CloudSearch {
46
54
  * プロダクトサービスインスタンス生成
47
55
  */
48
56
  createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
57
+ /**
58
+ * プロダクトオファーサービスインスタンス生成
59
+ */
60
+ createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
49
61
  }
@@ -64,6 +64,9 @@ var service;
64
64
  var Product;
65
65
  (function (Product) {
66
66
  })(Product = service.Product || (service.Product = {}));
67
+ var ProductOffer;
68
+ (function (ProductOffer) {
69
+ })(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
67
70
  })(service = exports.service || (exports.service = {}));
68
71
  var defaultRetryableStatusCodes = [http_status_1.BAD_GATEWAY, http_status_1.FORBIDDEN, http_status_1.UNAUTHORIZED];
69
72
  /**
@@ -133,6 +136,26 @@ var CloudSearch = /** @class */ (function () {
133
136
  });
134
137
  });
135
138
  };
139
+ /**
140
+ * プロダクトオファーサービスインスタンス生成
141
+ */
142
+ CloudSearch.prototype.createProductOfferInstance = function (params) {
143
+ return __awaiter(this, void 0, void 0, function () {
144
+ var _a;
145
+ return __generator(this, function (_b) {
146
+ switch (_b.label) {
147
+ case 0:
148
+ if (!(service.ProductOffer.svc === undefined)) return [3 /*break*/, 2];
149
+ _a = service.ProductOffer;
150
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./search/productOffer'); })];
151
+ case 1:
152
+ _a.svc = (_b.sent()).ProductOfferService;
153
+ _b.label = 2;
154
+ case 2: return [2 /*return*/, new service.ProductOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: defaultRetryableStatusCodes }))];
155
+ }
156
+ });
157
+ });
158
+ };
136
159
  return CloudSearch;
137
160
  }());
138
161
  exports.CloudSearch = CloudSearch;