@cinerino/sdk 10.21.0-alpha.6 → 10.21.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.
@@ -1,33 +1,5 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- export interface ISearchConditions {
4
- limit?: number;
5
- page?: number;
6
- sort?: {
7
- identifier?: factory.sortType;
8
- };
9
- project?: {
10
- id?: {
11
- $eq?: string;
12
- };
13
- };
14
- id?: {
15
- $eq?: string;
16
- $in?: string[];
17
- };
18
- identifier?: {
19
- $eq?: string;
20
- $regex?: string;
21
- };
22
- verified?: boolean;
23
- }
24
- interface IIdentityProvider {
25
- id: string;
26
- identifier: string;
27
- project: Pick<factory.project.IProject, 'id' | 'typeOf'>;
28
- typeOf: factory.organizationType.Organization;
29
- verified: boolean;
30
- }
31
3
  interface ISavingIdentityProvider {
32
4
  clientId: string;
33
5
  clientSecret: string;
@@ -40,7 +12,7 @@ export declare class IdentityProviderService extends Service {
40
12
  create(params: ISavingIdentityProvider): Promise<{
41
13
  id: string;
42
14
  }>;
43
- projectFields(params: Omit<ISearchConditions, 'project'>): Promise<IIdentityProvider[]>;
15
+ projectFields(params: Omit<factory.identityProvider.ISearchConditions, 'project'>): Promise<factory.identityProvider.IIdentityProvider[]>;
44
16
  vefiry(params: ISavingIdentityProvider & {
45
17
  id: string;
46
18
  }): Promise<void>;
@@ -1,11 +1,11 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
- export declare type IPaymentServiceWithoutCredentials = Omit<factory.service.paymentService.IService, 'availableChannel'> & {
3
+ export declare type IPaymentServiceWithoutCredentials = Omit<factory.service.paymentService.IService, 'availableChannel' | 'potentialAction'> & {
4
4
  id: string;
5
5
  };
6
- declare type IKeyOfProjection = keyof factory.service.paymentService.IService;
6
+ declare type IKeyOfProjection = Exclude<keyof factory.service.paymentService.IService, 'id' | 'availableChannel' | 'potentialAction'>;
7
7
  declare type IProjection = {
8
- [key in IKeyOfProjection]?: 0 | 1;
8
+ [key in IKeyOfProjection]?: 1;
9
9
  };
10
10
  /**
11
11
  * 決済商品サービス
@@ -25,9 +25,9 @@ export declare class PaymentProductService extends Service {
25
25
  }): Promise<IPaymentServiceWithoutCredentials[]>;
26
26
  findPaymentServiceById(params: {
27
27
  id: string;
28
- } & {
29
- $projection?: IProjection;
30
- }): Promise<factory.service.paymentService.IService>;
28
+ }): Promise<factory.service.paymentService.IService & {
29
+ id: string;
30
+ }>;
31
31
  updatePaymentService(params: factory.service.paymentService.IService & {
32
32
  id: string;
33
33
  }): Promise<void>;
@@ -46,5 +46,12 @@ export declare class PaymentProductService extends Service {
46
46
  $regex?: string;
47
47
  };
48
48
  }): Promise<Pick<factory.serviceChannel.IServiceChannel, 'serviceUrl'>[]>;
49
+ searchPotentialActions(params: {
50
+ limit?: number;
51
+ page?: number;
52
+ id?: {
53
+ $eq?: string;
54
+ };
55
+ }): Promise<Pick<factory.potentialAction.IPotentialAction, 'id' | 'identifier' | 'target' | 'typeOf'>[]>;
49
56
  }
50
57
  export {};
@@ -178,6 +178,22 @@ var PaymentProductService = /** @class */ (function (_super) {
178
178
  });
179
179
  });
180
180
  };
181
+ PaymentProductService.prototype.searchPotentialActions = function (params) {
182
+ return __awaiter(this, void 0, void 0, function () {
183
+ var _this = this;
184
+ return __generator(this, function (_a) {
185
+ return [2 /*return*/, this.fetch({
186
+ uri: '/paymentServices/potentialActions',
187
+ method: 'GET',
188
+ qs: params,
189
+ expectedStatusCodes: [http_status_1.OK]
190
+ })
191
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
192
+ return [2 /*return*/, response.json()];
193
+ }); }); })];
194
+ });
195
+ });
196
+ };
181
197
  return PaymentProductService;
182
198
  }(service_1.Service));
183
199
  exports.PaymentProductService = PaymentProductService;