@cinerino/sdk 18.1.0-alpha.0 → 18.1.0-alpha.2
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/categoryCode.d.ts +1 -5
- package/lib/abstract/chevre/seller/factory.d.ts +1 -1
- package/lib/abstract/chevre/seller/factory.js +0 -6
- package/lib/abstract/chevre/seller.d.ts +4 -6
- package/lib/abstract/chevre/seller.js +1 -1
- package/lib/abstract/chevreConsole/seller.d.ts +3 -5
- package/lib/abstract/cinerino/service/categoryCode.d.ts +13 -2
- package/lib/abstract/cinerino/service/seller.d.ts +5 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
3
|
export type IFindParams = Pick<factory.categoryCode.ISearchConditions, 'limit' | 'page'> & {
|
|
4
|
-
|
|
5
|
-
identifier?: {
|
|
6
|
-
$eq?: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
4
|
+
inCodeSetIdentifier?: string;
|
|
9
5
|
};
|
|
10
6
|
export type ICategoryCodeAsFindResult = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'image' | 'name' | 'typeOf'>;
|
|
11
7
|
/**
|
|
@@ -8,5 +8,5 @@ export type IPaymentServiceByProvider = Pick<factory.service.paymentService.ISer
|
|
|
8
8
|
/**
|
|
9
9
|
* 販売者の提供決済サービス検索条件
|
|
10
10
|
*/
|
|
11
|
-
export type ISearchPaymentServiceConditions = Pick<factory.service.paymentService.ISearchConditions, 'limit' | 'page'
|
|
11
|
+
export type ISearchPaymentServiceConditions = Pick<factory.service.paymentService.ISearchConditions, 'limit' | 'page'>;
|
|
12
12
|
export type IPaymentAccepted = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'additionalProperty' | 'color' | 'image' | 'name'>;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// export type IMakesProductOffer = Pick<
|
|
4
|
-
// factory.product.IOffer,
|
|
5
|
-
// 'availabilityEnds' | 'availabilityStarts' | 'seller' | 'validFrom' | 'validThrough'
|
|
6
|
-
// > & {
|
|
7
|
-
// itemOffered: Pick<factory.product.IProduct, 'id' | 'name' | 'typeOf'>;
|
|
8
|
-
// };
|
|
@@ -14,15 +14,13 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
14
14
|
/**
|
|
15
15
|
* 販売者検索
|
|
16
16
|
*/
|
|
17
|
-
findSellers(params: Pick<factory.seller.ISearchConditions, 'limit' | 'page'
|
|
18
|
-
branchCode?:
|
|
19
|
-
$eq?: string;
|
|
20
|
-
};
|
|
17
|
+
findSellers(params: Pick<factory.seller.ISearchConditions, 'limit' | 'page'> & {
|
|
18
|
+
branchCode?: string;
|
|
21
19
|
}): Promise<Pick<factory.seller.ISeller, 'additionalProperty' | 'branchCode' | 'id' | 'name' | 'project' | 'telephone' | 'typeOf' | 'url'>[]>;
|
|
22
20
|
/**
|
|
23
21
|
* 提供決済サービス検索(public)
|
|
24
22
|
*/
|
|
25
|
-
|
|
23
|
+
findPaymentServicesByProvider(params: {
|
|
26
24
|
provider: {
|
|
27
25
|
/**
|
|
28
26
|
* 販売者ID
|
|
@@ -32,7 +30,7 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
32
30
|
/**
|
|
33
31
|
* 検索条件
|
|
34
32
|
*/
|
|
35
|
-
qs: ISearchPaymentServiceConditions
|
|
33
|
+
qs: Pick<ISearchPaymentServiceConditions, 'limit' | 'page'>;
|
|
36
34
|
}): Promise<IPaymentServiceByProvider[]>;
|
|
37
35
|
/**
|
|
38
36
|
* 対応決済方法区分検索
|
|
@@ -33,7 +33,7 @@ class SellerService extends service_1.Service {
|
|
|
33
33
|
/**
|
|
34
34
|
* 提供決済サービス検索(public)
|
|
35
35
|
*/
|
|
36
|
-
async
|
|
36
|
+
async findPaymentServicesByProvider(params) {
|
|
37
37
|
const { provider, qs } = params;
|
|
38
38
|
return this.fetch({
|
|
39
39
|
uri: `/sellers/${provider.id}/paymentServices`,
|
|
@@ -54,11 +54,9 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
54
54
|
* 検索条件
|
|
55
55
|
*/
|
|
56
56
|
qs: {
|
|
57
|
-
limit
|
|
58
|
-
page
|
|
59
|
-
codeValue?:
|
|
60
|
-
$eq?: string;
|
|
61
|
-
};
|
|
57
|
+
limit: number;
|
|
58
|
+
page: number;
|
|
59
|
+
codeValue?: string;
|
|
62
60
|
};
|
|
63
61
|
}): Promise<Pick<IPaymentAccepted, 'codeValue'>[]>;
|
|
64
62
|
addSellerPaymentAccepted(params: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, Service } from '../../service';
|
|
2
|
-
import type { ICategoryCodeAsFindResult
|
|
2
|
+
import type { ICategoryCodeAsFindResult } from '../../chevre/categoryCode';
|
|
3
3
|
/**
|
|
4
4
|
* 区分サービス
|
|
5
5
|
*/
|
|
@@ -8,7 +8,18 @@ export declare class CategoryCodeService extends Service {
|
|
|
8
8
|
/**
|
|
9
9
|
* 区分検索(決済カード区分を除く)
|
|
10
10
|
*/
|
|
11
|
-
search(params:
|
|
11
|
+
search(params: {
|
|
12
|
+
limit?: number;
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* 区分分類
|
|
16
|
+
*/
|
|
17
|
+
inCodeSet?: {
|
|
18
|
+
identifier?: {
|
|
19
|
+
$eq?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}): Promise<{
|
|
12
23
|
data: ICategoryCodeAsFindResult[];
|
|
13
24
|
}>;
|
|
14
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPaymentAccepted, IPaymentServiceByProvider
|
|
1
|
+
import { IPaymentAccepted, IPaymentServiceByProvider } from '../../chevre/seller/factory';
|
|
2
2
|
import { factory } from '../../factory';
|
|
3
3
|
import { IFetchOptions, IOptions, ISearchResult, Service } from '../../service';
|
|
4
4
|
/**
|
|
@@ -35,7 +35,10 @@ export declare class SellerService extends Service<IOptions> {
|
|
|
35
35
|
/**
|
|
36
36
|
* 検索条件
|
|
37
37
|
*/
|
|
38
|
-
qs:
|
|
38
|
+
qs: {
|
|
39
|
+
limit?: number;
|
|
40
|
+
page?: number;
|
|
41
|
+
};
|
|
39
42
|
}): Promise<ISearchResult<IPaymentServiceByProvider[]>>;
|
|
40
43
|
/**
|
|
41
44
|
* 対応決済方法区分検索
|