@cinerino/sdk 10.18.0-alpha.1 → 10.18.0
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/playground/public/lib/bundle.js +21 -13
- package/example/src/cloud/transaction/processPlaceOrderByCreditCard3DS.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByCreditCard.ts +1 -1
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByMovieTicket.ts +1 -1
- package/example/src/searchEvents.ts +1 -1
- package/example/src/searchProductModels.ts +32 -0
- package/lib/abstract/chevre/event/factory.d.ts +2 -1
- package/lib/abstract/chevre/product.d.ts +27 -17
- package/lib/abstract/cinerino/service/event.d.ts +27 -4
- package/lib/abstract/cinerino/service/event.js +2 -13
- package/lib/abstract/cinerino/service/product.d.ts +5 -1
- package/lib/abstract/cinerino/service/product.js +19 -0
- package/lib/bundle.js +21 -13
- package/package.json +1 -1
|
@@ -16303,17 +16303,6 @@ var EventService = /** @class */ (function (_super) {
|
|
|
16303
16303
|
// separate ScreeningEventSeries(2024-10-21~)
|
|
16304
16304
|
if ((params === null || params === void 0 ? void 0 : params.typeOf) === factory.eventType.ScreeningEventSeries) {
|
|
16305
16305
|
throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.Event + " or " + factory.eventType.ScreeningEvent);
|
|
16306
|
-
// return this.fetch({
|
|
16307
|
-
// uri: '/eventSeries',
|
|
16308
|
-
// method: 'GET',
|
|
16309
|
-
// qs: params,
|
|
16310
|
-
// expectedStatusCodes: [OK]
|
|
16311
|
-
// })
|
|
16312
|
-
// .then(async (response) => {
|
|
16313
|
-
// return {
|
|
16314
|
-
// data: await response.json()
|
|
16315
|
-
// };
|
|
16316
|
-
// });
|
|
16317
16306
|
}
|
|
16318
16307
|
else {
|
|
16319
16308
|
return [2 /*return*/, this.fetch({
|
|
@@ -16429,8 +16418,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
16429
16418
|
id = params.id, typeOf = params.typeOf;
|
|
16430
16419
|
if (![
|
|
16431
16420
|
factory.eventType.Event,
|
|
16432
|
-
factory.eventType.ScreeningEvent
|
|
16433
|
-
factory.eventType.ScreeningEventSeries
|
|
16421
|
+
factory.eventType.ScreeningEvent
|
|
16422
|
+
// factory.eventType.ScreeningEventSeries
|
|
16434
16423
|
].includes(typeOf)) {
|
|
16435
16424
|
throw new factory.errors.Argument('typeOf', 'invalid event type');
|
|
16436
16425
|
}
|
|
@@ -17027,6 +17016,25 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
17027
17016
|
});
|
|
17028
17017
|
});
|
|
17029
17018
|
};
|
|
17019
|
+
/**
|
|
17020
|
+
* 座席モデル検索
|
|
17021
|
+
*/
|
|
17022
|
+
ProductService.prototype.searchProductModels = function (params) {
|
|
17023
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17024
|
+
var _this = this;
|
|
17025
|
+
return __generator(this, function (_a) {
|
|
17026
|
+
return [2 /*return*/, this.fetch({
|
|
17027
|
+
uri: '/productModels',
|
|
17028
|
+
method: 'GET',
|
|
17029
|
+
qs: params,
|
|
17030
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
17031
|
+
})
|
|
17032
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
17033
|
+
return [2 /*return*/, response.json()];
|
|
17034
|
+
}); }); })];
|
|
17035
|
+
});
|
|
17036
|
+
});
|
|
17037
|
+
};
|
|
17030
17038
|
return ProductService;
|
|
17031
17039
|
}(service_1.Service));
|
|
17032
17040
|
exports.ProductService = ProductService;
|
|
@@ -211,7 +211,7 @@ type IAuthorizeReservationAction = Pick<
|
|
|
211
211
|
|
|
212
212
|
// tslint:disable-next-line:max-func-body-length
|
|
213
213
|
async function authorizeSeatReservationByEvent(params: {
|
|
214
|
-
event: client.factory.event.screeningEvent.IEvent
|
|
214
|
+
event: Omit<client.factory.event.screeningEvent.IEvent, 'offers'>;
|
|
215
215
|
transaction: Pick<client.factory.transaction.placeOrder.ITransaction, 'id'>;
|
|
216
216
|
}): Promise<{
|
|
217
217
|
price: number;
|
|
@@ -215,7 +215,7 @@ async function main() {
|
|
|
215
215
|
|
|
216
216
|
// tslint:disable-next-line:max-func-body-length
|
|
217
217
|
async function authorizeSeatReservationByEvent(params: {
|
|
218
|
-
event: client.factory.event.screeningEvent.IEvent
|
|
218
|
+
event: Omit<client.factory.event.screeningEvent.IEvent, 'offers'>;
|
|
219
219
|
transaction: Pick<client.factory.transaction.placeOrder.ITransaction, 'id'>;
|
|
220
220
|
}): Promise<{ price?: number }> {
|
|
221
221
|
const placeOrderService = await (await client.loadCloudTxc({
|
|
@@ -218,7 +218,7 @@ async function main() {
|
|
|
218
218
|
|
|
219
219
|
// tslint:disable-next-line:max-func-body-length
|
|
220
220
|
async function authorizeSeatReservationByEvent(params: {
|
|
221
|
-
event: client.factory.event.screeningEvent.IEvent
|
|
221
|
+
event: Omit<client.factory.event.screeningEvent.IEvent, 'offers'>;
|
|
222
222
|
transaction: Pick<client.factory.transaction.placeOrder.ITransaction, 'id'>;
|
|
223
223
|
}): Promise<{ price?: number }> {
|
|
224
224
|
const placeOrderService = await (await client.loadCloudTxc({
|
|
@@ -29,7 +29,7 @@ async function main() {
|
|
|
29
29
|
// tslint:disable-next-line:no-null-keyword
|
|
30
30
|
console.dir(data.at(0), { depth: null });
|
|
31
31
|
// tslint:disable-next-line:no-null-keyword
|
|
32
|
-
console.dir(data.at(0)?.offers
|
|
32
|
+
console.dir(data.at(0)?.offers?.seller.makesOffer, { depth: null });
|
|
33
33
|
console.log(data.length, 'events');
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// tslint:disable:no-implicit-dependencies no-console
|
|
2
|
+
import * as client from '../../lib/index';
|
|
3
|
+
import { auth } from './auth/clientCredentials';
|
|
4
|
+
|
|
5
|
+
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
6
|
+
|
|
7
|
+
async function main() {
|
|
8
|
+
const productService = new (await client.loadService()).Product({
|
|
9
|
+
endpoint: <string>process.env.API_ENDPOINT,
|
|
10
|
+
auth: await auth(),
|
|
11
|
+
project: { id: PROJECT_ID },
|
|
12
|
+
seller: { id: '' }
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const productModels = await productService.searchProductModels({
|
|
16
|
+
page: 1,
|
|
17
|
+
limit: 3,
|
|
18
|
+
category: {
|
|
19
|
+
codeValue: ['Meal', 'Premium', 'Standard'],
|
|
20
|
+
inCodeSet: { identifier: client.factory.categoryCode.CategorySetIdentifier.SeatingType }
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
// tslint:disable-next-line:no-null-keyword
|
|
24
|
+
console.dir(productModels, { depth: null });
|
|
25
|
+
console.log(productModels.length, 'productModels');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
main()
|
|
29
|
+
.then(() => {
|
|
30
|
+
console.log('success!');
|
|
31
|
+
})
|
|
32
|
+
.catch(console.error);
|
|
@@ -21,7 +21,8 @@ export interface ISearchOfferCatalogItemAvailabilityResult {
|
|
|
21
21
|
*/
|
|
22
22
|
isAvailable: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare type ISeatAsEventOffer = Pick<factory.place.seat.IPlaceWithOffer, 'branchCode' | 'name' | '
|
|
24
|
+
export declare type ISeatAsEventOffer = Pick<factory.place.seat.IPlaceWithOffer, 'branchCode' | 'name' | 'seatingType'> & {
|
|
25
|
+
offers?: Pick<factory.place.seat.IOffer, 'availability'>[];
|
|
25
26
|
containedInPlace?: {
|
|
26
27
|
/**
|
|
27
28
|
* セクションコード
|
|
@@ -8,15 +8,41 @@ export declare type IPaymentServiceWithoutCredentials = Omit<factory.service.pay
|
|
|
8
8
|
};
|
|
9
9
|
declare type IPriceComponent = Pick<factory.place.seat.IPriceComponent, 'name' | 'price'>;
|
|
10
10
|
interface IPriceSpecification {
|
|
11
|
+
/**
|
|
12
|
+
* 区分加算料金
|
|
13
|
+
*/
|
|
11
14
|
priceComponent?: IPriceComponent[];
|
|
12
15
|
}
|
|
13
16
|
export interface IProductModel {
|
|
14
17
|
typeOf: 'ProductModel';
|
|
18
|
+
/**
|
|
19
|
+
* 区分
|
|
20
|
+
*/
|
|
15
21
|
category: Pick<factory.categoryCode.ICategoryCode, 'codeValue'>;
|
|
16
22
|
offers?: {
|
|
23
|
+
/**
|
|
24
|
+
* 価格仕様
|
|
25
|
+
*/
|
|
17
26
|
priceSpecification?: IPriceSpecification;
|
|
18
27
|
};
|
|
19
28
|
}
|
|
29
|
+
export interface ISearchProductModelConditions {
|
|
30
|
+
/**
|
|
31
|
+
* max: 10
|
|
32
|
+
*/
|
|
33
|
+
limit: number;
|
|
34
|
+
page: number;
|
|
35
|
+
category: {
|
|
36
|
+
/**
|
|
37
|
+
* 区分コード複数指定
|
|
38
|
+
* max: 10
|
|
39
|
+
*/
|
|
40
|
+
codeValue: string[];
|
|
41
|
+
inCodeSet: {
|
|
42
|
+
identifier: factory.categoryCode.CategorySetIdentifier.SeatingType;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
20
46
|
/**
|
|
21
47
|
* プロダクトサービス
|
|
22
48
|
*/
|
|
@@ -52,22 +78,6 @@ export declare class ProductService extends Service {
|
|
|
52
78
|
id?: string;
|
|
53
79
|
};
|
|
54
80
|
}): Promise<factory.product.ITicketOffer[]>;
|
|
55
|
-
searchProductModels(params:
|
|
56
|
-
/**
|
|
57
|
-
* max: 10
|
|
58
|
-
*/
|
|
59
|
-
limit: number;
|
|
60
|
-
page: number;
|
|
61
|
-
category: {
|
|
62
|
-
/**
|
|
63
|
-
* 区分コード複数指定
|
|
64
|
-
* max: 10
|
|
65
|
-
*/
|
|
66
|
-
codeValue: string[];
|
|
67
|
-
inCodeSet: {
|
|
68
|
-
identifier: factory.categoryCode.CategorySetIdentifier.SeatingType;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}): Promise<IProductModel[]>;
|
|
81
|
+
searchProductModels(params: ISearchProductModelConditions): Promise<IProductModel[]>;
|
|
72
82
|
}
|
|
73
83
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer } from '../../chevre/event/factory';
|
|
1
|
+
import { ISearchOfferCatalogItemAvailabilityResult, ISearchOfferCatalogItemResult, ISeatAsEventOffer, ISellerMakesOffer as ISearchSellerMakesOfferResult } from '../../chevre/event/factory';
|
|
2
2
|
import type { ISearchWithReservationForIdResult } from '../../chevreAdmin/aggregateReservation';
|
|
3
3
|
import * as factory from '../../factory';
|
|
4
4
|
import { IAdditionalOptions, IOptions, ISearchResult, Service } from '../../service';
|
|
@@ -6,6 +6,29 @@ declare type IKeyOfProjection<T extends factory.eventType> = keyof factory.event
|
|
|
6
6
|
declare type IProjection<T extends factory.eventType> = {
|
|
7
7
|
[key in IKeyOfProjection<T>]?: 0;
|
|
8
8
|
};
|
|
9
|
+
declare type ISellerMakesOffer = Omit<factory.event.screeningEvent.ISellerMakesOffer, 'availableAtOrFrom'> & {
|
|
10
|
+
availableAtOrFrom?: factory.event.event.IOfferAvailableAtOrFrom | factory.event.event.IOfferAvailableAtOrFrom[];
|
|
11
|
+
};
|
|
12
|
+
declare type ISeller = Omit<factory.event.screeningEvent.ISeller, 'makesOffer'> & {
|
|
13
|
+
makesOffer: ISellerMakesOffer[];
|
|
14
|
+
};
|
|
15
|
+
declare type ISeller4COA = Omit<factory.event.screeningEvent.ISeller4COA, 'makesOffer'> & {
|
|
16
|
+
makesOffer: ISellerMakesOffer[];
|
|
17
|
+
};
|
|
18
|
+
declare type IEventOffer = Omit<factory.event.event.IOffer, 'seller'> & {
|
|
19
|
+
seller: ISeller;
|
|
20
|
+
};
|
|
21
|
+
declare type IScreeningEventOffer = Omit<factory.event.screeningEvent.IOffer, 'seller'> & {
|
|
22
|
+
seller: ISeller;
|
|
23
|
+
};
|
|
24
|
+
declare type IScreeningEventOffer4COA = Omit<factory.event.screeningEvent.IOffer4COA, 'seller'> & {
|
|
25
|
+
seller: ISeller4COA;
|
|
26
|
+
};
|
|
27
|
+
export declare type IEvent<T extends factory.eventType> = T extends factory.eventType.Event ? Omit<factory.event.IEvent<T>, 'offers'> & {
|
|
28
|
+
offers?: IEventOffer;
|
|
29
|
+
} : T extends factory.eventType.ScreeningEvent ? Omit<factory.event.IEvent<T>, 'offers'> & {
|
|
30
|
+
offers?: IScreeningEventOffer | IScreeningEventOffer4COA;
|
|
31
|
+
} : never;
|
|
9
32
|
export declare type IMinimizedEvent<T extends factory.eventType> = T extends factory.eventType.Event ? Pick<factory.event.IEvent<factory.eventType.Event>, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'id' | 'location' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'startDate'> : T extends factory.eventType.ScreeningEvent ? Pick<factory.event.IEvent<factory.eventType.ScreeningEvent>, 'additionalProperty' | 'doorTime' | 'endDate' | 'eventStatus' | 'id' | 'location' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'startDate' | 'superEvent'> : never;
|
|
10
33
|
/**
|
|
11
34
|
* COA券種オファーインターフェース
|
|
@@ -107,7 +130,7 @@ export declare class EventService extends Service {
|
|
|
107
130
|
* offer.seller.makesOfferをアプリケーションIDでfilterする(max:2)
|
|
108
131
|
*/
|
|
109
132
|
sellerMakesOfferAvailableAtIn?: string[];
|
|
110
|
-
}): Promise<ISearchResult<
|
|
133
|
+
}): Promise<ISearchResult<IEvent<T>[]>>;
|
|
111
134
|
/**
|
|
112
135
|
* 施設コンテンツ検索
|
|
113
136
|
*/
|
|
@@ -157,7 +180,7 @@ export declare class EventService extends Service {
|
|
|
157
180
|
* max:50
|
|
158
181
|
*/
|
|
159
182
|
eventIds: string[];
|
|
160
|
-
}): Promise<
|
|
183
|
+
}): Promise<ISearchSellerMakesOfferResult[]>;
|
|
161
184
|
/**
|
|
162
185
|
* イベント取得
|
|
163
186
|
*/
|
|
@@ -168,7 +191,7 @@ export declare class EventService extends Service {
|
|
|
168
191
|
* 興行イベント
|
|
169
192
|
*/
|
|
170
193
|
typeOf: T;
|
|
171
|
-
}): Promise<
|
|
194
|
+
}): Promise<IEvent<T>>;
|
|
172
195
|
/**
|
|
173
196
|
* イベントに対する座席検索
|
|
174
197
|
*/
|
|
@@ -95,17 +95,6 @@ var EventService = /** @class */ (function (_super) {
|
|
|
95
95
|
// separate ScreeningEventSeries(2024-10-21~)
|
|
96
96
|
if ((params === null || params === void 0 ? void 0 : params.typeOf) === factory.eventType.ScreeningEventSeries) {
|
|
97
97
|
throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.Event + " or " + factory.eventType.ScreeningEvent);
|
|
98
|
-
// return this.fetch({
|
|
99
|
-
// uri: '/eventSeries',
|
|
100
|
-
// method: 'GET',
|
|
101
|
-
// qs: params,
|
|
102
|
-
// expectedStatusCodes: [OK]
|
|
103
|
-
// })
|
|
104
|
-
// .then(async (response) => {
|
|
105
|
-
// return {
|
|
106
|
-
// data: await response.json()
|
|
107
|
-
// };
|
|
108
|
-
// });
|
|
109
98
|
}
|
|
110
99
|
else {
|
|
111
100
|
return [2 /*return*/, this.fetch({
|
|
@@ -221,8 +210,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
221
210
|
id = params.id, typeOf = params.typeOf;
|
|
222
211
|
if (![
|
|
223
212
|
factory.eventType.Event,
|
|
224
|
-
factory.eventType.ScreeningEvent
|
|
225
|
-
factory.eventType.ScreeningEventSeries
|
|
213
|
+
factory.eventType.ScreeningEvent
|
|
214
|
+
// factory.eventType.ScreeningEventSeries
|
|
226
215
|
].includes(typeOf)) {
|
|
227
216
|
throw new factory.errors.Argument('typeOf', 'invalid event type');
|
|
228
217
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPaymentServiceWithoutCredentials, IProductWithoutCredentials } from '../../chevre/product';
|
|
1
|
+
import { IPaymentServiceWithoutCredentials, IProductModel, IProductWithoutCredentials, ISearchProductModelConditions } from '../../chevre/product';
|
|
2
2
|
import * as factory from '../../factory';
|
|
3
3
|
import { IAdditionalOptions, IOptions, Service } from '../../service';
|
|
4
4
|
declare type ISearchProductsResult = IProductWithoutCredentials | IPaymentServiceWithoutCredentials;
|
|
@@ -33,5 +33,9 @@ export declare class ProductService extends Service {
|
|
|
33
33
|
id: string;
|
|
34
34
|
};
|
|
35
35
|
}): Promise<Omit<factory.product.ITicketOffer, 'availableAtOrFrom'>[]>;
|
|
36
|
+
/**
|
|
37
|
+
* 座席モデル検索
|
|
38
|
+
*/
|
|
39
|
+
searchProductModels(params: ISearchProductModelConditions): Promise<IProductModel[]>;
|
|
36
40
|
}
|
|
37
41
|
export {};
|
|
@@ -120,6 +120,25 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* 座席モデル検索
|
|
125
|
+
*/
|
|
126
|
+
ProductService.prototype.searchProductModels = function (params) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var _this = this;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
return [2 /*return*/, this.fetch({
|
|
131
|
+
uri: '/productModels',
|
|
132
|
+
method: 'GET',
|
|
133
|
+
qs: params,
|
|
134
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
135
|
+
})
|
|
136
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
137
|
+
return [2 /*return*/, response.json()];
|
|
138
|
+
}); }); })];
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
123
142
|
return ProductService;
|
|
124
143
|
}(service_1.Service));
|
|
125
144
|
exports.ProductService = ProductService;
|
package/lib/bundle.js
CHANGED
|
@@ -16303,17 +16303,6 @@ var EventService = /** @class */ (function (_super) {
|
|
|
16303
16303
|
// separate ScreeningEventSeries(2024-10-21~)
|
|
16304
16304
|
if ((params === null || params === void 0 ? void 0 : params.typeOf) === factory.eventType.ScreeningEventSeries) {
|
|
16305
16305
|
throw new factory.errors.Argument('typeOf', "typeOf must be " + factory.eventType.Event + " or " + factory.eventType.ScreeningEvent);
|
|
16306
|
-
// return this.fetch({
|
|
16307
|
-
// uri: '/eventSeries',
|
|
16308
|
-
// method: 'GET',
|
|
16309
|
-
// qs: params,
|
|
16310
|
-
// expectedStatusCodes: [OK]
|
|
16311
|
-
// })
|
|
16312
|
-
// .then(async (response) => {
|
|
16313
|
-
// return {
|
|
16314
|
-
// data: await response.json()
|
|
16315
|
-
// };
|
|
16316
|
-
// });
|
|
16317
16306
|
}
|
|
16318
16307
|
else {
|
|
16319
16308
|
return [2 /*return*/, this.fetch({
|
|
@@ -16429,8 +16418,8 @@ var EventService = /** @class */ (function (_super) {
|
|
|
16429
16418
|
id = params.id, typeOf = params.typeOf;
|
|
16430
16419
|
if (![
|
|
16431
16420
|
factory.eventType.Event,
|
|
16432
|
-
factory.eventType.ScreeningEvent
|
|
16433
|
-
factory.eventType.ScreeningEventSeries
|
|
16421
|
+
factory.eventType.ScreeningEvent
|
|
16422
|
+
// factory.eventType.ScreeningEventSeries
|
|
16434
16423
|
].includes(typeOf)) {
|
|
16435
16424
|
throw new factory.errors.Argument('typeOf', 'invalid event type');
|
|
16436
16425
|
}
|
|
@@ -17027,6 +17016,25 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
17027
17016
|
});
|
|
17028
17017
|
});
|
|
17029
17018
|
};
|
|
17019
|
+
/**
|
|
17020
|
+
* 座席モデル検索
|
|
17021
|
+
*/
|
|
17022
|
+
ProductService.prototype.searchProductModels = function (params) {
|
|
17023
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17024
|
+
var _this = this;
|
|
17025
|
+
return __generator(this, function (_a) {
|
|
17026
|
+
return [2 /*return*/, this.fetch({
|
|
17027
|
+
uri: '/productModels',
|
|
17028
|
+
method: 'GET',
|
|
17029
|
+
qs: params,
|
|
17030
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
17031
|
+
})
|
|
17032
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
17033
|
+
return [2 /*return*/, response.json()];
|
|
17034
|
+
}); }); })];
|
|
17035
|
+
});
|
|
17036
|
+
});
|
|
17037
|
+
};
|
|
17030
17038
|
return ProductService;
|
|
17031
17039
|
}(service_1.Service));
|
|
17032
17040
|
exports.ProductService = ProductService;
|