@cinerino/sdk 14.0.0-alpha.7 → 14.0.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,8 +1,6 @@
1
1
  import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
2
2
  import type { OrderService } from './chevreAsset/order';
3
3
  import type { PermitService } from './chevreAsset/permit';
4
- import type { PersonService } from './chevreAsset/person';
5
- import type { PersonOwnershipInfoService } from './chevreAsset/person/ownershipInfo';
6
4
  import type { ReservationService } from './chevreAsset/reservation';
7
5
  import type { TokenService } from './chevreAsset/token';
8
6
  export declare namespace service {
@@ -21,22 +19,6 @@ export declare namespace service {
21
19
  namespace Permit {
22
20
  let svc: typeof PermitService | undefined;
23
21
  }
24
- /**
25
- * 会員サービス
26
- */
27
- type Person = PersonService;
28
- namespace Person {
29
- let svc: typeof PersonService | undefined;
30
- }
31
- namespace person {
32
- /**
33
- * 会員所有権サービス
34
- */
35
- type OwnershipInfo = PersonOwnershipInfoService;
36
- namespace OwnershipInfo {
37
- let svc: typeof PersonOwnershipInfoService | undefined;
38
- }
39
- }
40
22
  /**
41
23
  * 予約サービス
42
24
  */
@@ -59,9 +41,7 @@ export declare class ChevreAsset {
59
41
  options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
60
42
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
61
43
  createOrderInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
62
- createPersonInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'>): Promise<PersonService>;
63
44
  createPermitInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
64
- createPersonOwnershipInfoInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'>): Promise<PersonOwnershipInfoService>;
65
45
  createReservationInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
66
46
  createTokenInstance(params: Pick<IOptions, 'project' | 'retryableStatusCodes'> & Pick<IAdditionalOptions, 'seller'>): Promise<TokenService>;
67
47
  }
@@ -88,15 +88,6 @@ var service;
88
88
  var Permit;
89
89
  (function (Permit) {
90
90
  })(Permit = service.Permit || (service.Permit = {}));
91
- var Person;
92
- (function (Person) {
93
- })(Person = service.Person || (service.Person = {}));
94
- var person;
95
- (function (person) {
96
- var OwnershipInfo;
97
- (function (OwnershipInfo) {
98
- })(OwnershipInfo = person.OwnershipInfo || (person.OwnershipInfo = {}));
99
- })(person = service.person || (service.person = {}));
100
91
  var Reservation;
101
92
  (function (Reservation) {
102
93
  })(Reservation = service.Reservation || (service.Reservation = {}));
@@ -128,23 +119,6 @@ var ChevreAsset = /** @class */ (function () {
128
119
  });
129
120
  });
130
121
  };
131
- ChevreAsset.prototype.createPersonInstance = function (params) {
132
- return __awaiter(this, void 0, void 0, function () {
133
- var _a;
134
- return __generator(this, function (_b) {
135
- switch (_b.label) {
136
- case 0:
137
- if (!(service.Person.svc === undefined)) return [3 /*break*/, 2];
138
- _a = service.Person;
139
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('./chevreAsset/person')); })];
140
- case 1:
141
- _a.svc = (_b.sent()).PersonService;
142
- _b.label = 2;
143
- case 2: return [2 /*return*/, new service.Person.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: __spreadArray([], (Array.isArray(params.retryableStatusCodes)) ? params.retryableStatusCodes : [], true) }))];
144
- }
145
- });
146
- });
147
- };
148
122
  ChevreAsset.prototype.createPermitInstance = function (params) {
149
123
  return __awaiter(this, void 0, void 0, function () {
150
124
  var _a;
@@ -162,23 +136,6 @@ var ChevreAsset = /** @class */ (function () {
162
136
  });
163
137
  });
164
138
  };
165
- ChevreAsset.prototype.createPersonOwnershipInfoInstance = function (params) {
166
- return __awaiter(this, void 0, void 0, function () {
167
- var _a;
168
- return __generator(this, function (_b) {
169
- switch (_b.label) {
170
- case 0:
171
- if (!(service.person.OwnershipInfo.svc === undefined)) return [3 /*break*/, 2];
172
- _a = service.person.OwnershipInfo;
173
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('./chevreAsset/person/ownershipInfo')); })];
174
- case 1:
175
- _a.svc = (_b.sent()).PersonOwnershipInfoService;
176
- _b.label = 2;
177
- case 2: return [2 /*return*/, new service.person.OwnershipInfo.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
178
- }
179
- });
180
- });
181
- };
182
139
  ChevreAsset.prototype.createReservationInstance = function (params) {
183
140
  return __awaiter(this, void 0, void 0, function () {
184
141
  var _a;
@@ -6,18 +6,6 @@ export type IPerson = factory.person.IPerson;
6
6
  * 会員サービス
7
7
  */
8
8
  export declare class PersonService extends Service<IOptions> {
9
- /**
10
- * 会員作成
11
- */
12
- createIfNotExist(params: {
13
- /**
14
- * 外部IDPユーザーID
15
- */
16
- userId: string;
17
- email: string;
18
- }): Promise<{
19
- id: string;
20
- }>;
21
9
  /**
22
10
  * プロフィール検索
23
11
  */
@@ -62,25 +62,6 @@ var PersonService = /** @class */ (function (_super) {
62
62
  function PersonService() {
63
63
  return _super !== null && _super.apply(this, arguments) || this;
64
64
  }
65
- /**
66
- * 会員作成
67
- */
68
- PersonService.prototype.createIfNotExist = function (params) {
69
- return __awaiter(this, void 0, void 0, function () {
70
- var _this = this;
71
- return __generator(this, function (_a) {
72
- return [2 /*return*/, this.fetch({
73
- uri: "/people/createIfNotExist",
74
- method: 'PUT',
75
- body: params,
76
- expectedStatusCodes: [http_status_1.OK]
77
- })
78
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
79
- return [2 /*return*/, response.json()];
80
- }); }); })];
81
- });
82
- });
83
- };
84
65
  /**
85
66
  * プロフィール検索
86
67
  */
@@ -46,7 +46,6 @@ import type { PendingReservationService } from './chevreConsole/pendingReservati
46
46
  import type { PermissionService } from './chevreConsole/permission';
47
47
  import type { PermitService } from './chevreConsole/permit';
48
48
  import type { PersonService } from './chevreConsole/person';
49
- import type { PersonOwnershipInfoService } from './chevreConsole/person/ownershipInfo';
50
49
  import type { PlaceService } from './chevreConsole/place';
51
50
  import type { HasPOSService } from './chevreConsole/place/hasPOS';
52
51
  import type { PriceSpecificationService } from './chevreConsole/priceSpecification';
@@ -335,15 +334,6 @@ export declare namespace service {
335
334
  namespace Person {
336
335
  let svc: typeof PersonService | undefined;
337
336
  }
338
- namespace person {
339
- /**
340
- * 会員所有権サービス
341
- */
342
- type OwnershipInfo = PersonOwnershipInfoService;
343
- namespace OwnershipInfo {
344
- let svc: typeof PersonOwnershipInfoService | undefined;
345
- }
346
- }
347
337
  /**
348
338
  * 施設サービス
349
339
  */
@@ -601,7 +591,6 @@ export declare class ChevreConsole {
601
591
  createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
602
592
  createPermitInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
603
593
  createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
604
- createPersonOwnershipInfoInstance(params: Pick<IOptions, 'project'>): Promise<PersonOwnershipInfoService>;
605
594
  createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
606
595
  createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
607
596
  createPriceSpecificationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PriceSpecificationService>;
@@ -187,12 +187,6 @@ var service;
187
187
  var Person;
188
188
  (function (Person) {
189
189
  })(Person = service.Person || (service.Person = {}));
190
- var person;
191
- (function (person) {
192
- var OwnershipInfo;
193
- (function (OwnershipInfo) {
194
- })(OwnershipInfo = person.OwnershipInfo || (person.OwnershipInfo = {}));
195
- })(person = service.person || (service.person = {}));
196
190
  var Place;
197
191
  (function (Place) {
198
192
  })(Place = service.Place || (service.Place = {}));
@@ -947,23 +941,6 @@ var ChevreConsole = /** @class */ (function () {
947
941
  });
948
942
  });
949
943
  };
950
- ChevreConsole.prototype.createPersonOwnershipInfoInstance = function (params) {
951
- return __awaiter(this, void 0, void 0, function () {
952
- var _a;
953
- return __generator(this, function (_b) {
954
- switch (_b.label) {
955
- case 0:
956
- if (!(service.person.OwnershipInfo.svc === undefined)) return [3 /*break*/, 2];
957
- _a = service.person.OwnershipInfo;
958
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('./chevreConsole/person/ownershipInfo')); })];
959
- case 1:
960
- _a.svc = (_b.sent()).PersonOwnershipInfoService;
961
- _b.label = 2;
962
- case 2: return [2 /*return*/, new service.person.OwnershipInfo.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
963
- }
964
- });
965
- });
966
- };
967
944
  ChevreConsole.prototype.createPlaceInstance = function (params) {
968
945
  return __awaiter(this, void 0, void 0, function () {
969
946
  var _a;