@cinerino/sdk 12.5.0-alpha.6 → 12.5.0-alpha.8
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/example/src/chevre/default/findPublicNotes.ts +39 -0
- package/example/src/cloud/admin/adminProductOffersByIdentifier.ts +4 -3
- package/lib/abstract/chevre/note.d.ts +32 -0
- package/lib/abstract/chevre/note.js +87 -0
- package/lib/abstract/chevre/seller/factory.d.ts +0 -3
- package/lib/abstract/chevre/seller/factory.js +6 -0
- package/lib/abstract/chevre.d.ts +9 -0
- package/lib/abstract/chevre.js +20 -0
- package/lib/abstract/chevreAdmin/note.d.ts +4 -4
- package/lib/abstract/chevreAdmin/note.js +0 -17
- package/lib/abstract/chevreConsole/product.d.ts +22 -11
- package/lib/abstract/chevreConsole/product.js +12 -19
- package/lib/abstract/chevreConsole/seller/factory.d.ts +0 -3
- package/lib/abstract/chevreConsole/seller/factory.js +6 -0
- package/lib/abstract/chevreConsole/seller.d.ts +1 -39
- package/lib/abstract/chevreConsole/seller.js +64 -79
- package/lib/bundle.js +821 -747
- package/package.json +2 -2
|
@@ -315,85 +315,70 @@ var SellerService = /** @class */ (function (_super) {
|
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
};
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
383
|
-
return __generator(this, function (_b) {
|
|
384
|
-
switch (_b.label) {
|
|
385
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
386
|
-
uri: "/sellers/" + ((_a = params.seller) === null || _a === void 0 ? void 0 : _a.id) + "/makesProductOffer/" + params.itemOffered.id,
|
|
387
|
-
method: 'DELETE',
|
|
388
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
389
|
-
})];
|
|
390
|
-
case 1:
|
|
391
|
-
_b.sent();
|
|
392
|
-
return [2 /*return*/];
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
};
|
|
318
|
+
// public async searchMakesProductOffer(params: {
|
|
319
|
+
// seller: {
|
|
320
|
+
// /**
|
|
321
|
+
// * 販売者ID
|
|
322
|
+
// */
|
|
323
|
+
// id: string;
|
|
324
|
+
// };
|
|
325
|
+
// /**
|
|
326
|
+
// * 検索条件
|
|
327
|
+
// */
|
|
328
|
+
// qs: {
|
|
329
|
+
// limit?: number;
|
|
330
|
+
// page?: number;
|
|
331
|
+
// itemOffered?: { id?: { $eq?: string } };
|
|
332
|
+
// };
|
|
333
|
+
// }): Promise<ISearchResult<IMakesProductOffer[]>> {
|
|
334
|
+
// return this.fetch({
|
|
335
|
+
// uri: `/sellers/${params.seller?.id}/makesProductOffer`,
|
|
336
|
+
// method: 'GET',
|
|
337
|
+
// qs: params.qs,
|
|
338
|
+
// expectedStatusCodes: [OK]
|
|
339
|
+
// })
|
|
340
|
+
// .then(async (response) => {
|
|
341
|
+
// return {
|
|
342
|
+
// data: await response.json()
|
|
343
|
+
// };
|
|
344
|
+
// });
|
|
345
|
+
// }
|
|
346
|
+
// public async createMakesProductOffer(params: Pick<
|
|
347
|
+
// factory.product.IOffer,
|
|
348
|
+
// 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'
|
|
349
|
+
// > & {
|
|
350
|
+
// itemOffered: { id: string };
|
|
351
|
+
// }): Promise<void> {
|
|
352
|
+
// await this.fetch({
|
|
353
|
+
// uri: `/sellers/${String(params.seller?.id)}/makesProductOffer`,
|
|
354
|
+
// method: 'POST',
|
|
355
|
+
// body: params,
|
|
356
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
357
|
+
// });
|
|
358
|
+
// }
|
|
359
|
+
// public async updateMakesProductOffer(params: Pick<
|
|
360
|
+
// factory.product.IOffer,
|
|
361
|
+
// 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'
|
|
362
|
+
// > & {
|
|
363
|
+
// itemOffered: { id: string };
|
|
364
|
+
// }): Promise<void> {
|
|
365
|
+
// await this.fetch({
|
|
366
|
+
// uri: `/sellers/${String(params.seller?.id)}/makesProductOffer/${params.itemOffered.id}`,
|
|
367
|
+
// method: 'PUT',
|
|
368
|
+
// body: params,
|
|
369
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
370
|
+
// });
|
|
371
|
+
// }
|
|
372
|
+
// public async deleteMakesProductOffer(params: {
|
|
373
|
+
// itemOffered: { id: string };
|
|
374
|
+
// seller: { id: string };
|
|
375
|
+
// }): Promise<void> {
|
|
376
|
+
// await this.fetch({
|
|
377
|
+
// uri: `/sellers/${params.seller?.id}/makesProductOffer/${params.itemOffered.id}`,
|
|
378
|
+
// method: 'DELETE',
|
|
379
|
+
// expectedStatusCodes: [NO_CONTENT]
|
|
380
|
+
// });
|
|
381
|
+
// }
|
|
397
382
|
/**
|
|
398
383
|
* IAMメンバー作成
|
|
399
384
|
*/
|