@cinerino/sdk 12.13.0-alpha.6 → 12.13.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/lib/abstract/chevreAdmin/movie.d.ts +47 -0
- package/lib/abstract/chevreAdmin/movie.js +107 -0
- package/lib/abstract/chevreAdmin/seat.d.ts +32 -0
- package/lib/abstract/chevreAdmin/{creativeWork.js → seat.js} +20 -20
- package/lib/abstract/chevreAdmin.d.ts +18 -9
- package/lib/abstract/chevreAdmin.js +40 -20
- package/lib/abstract/chevreConsole/creativeWork.d.ts +5 -2
- package/lib/abstract/chevreConsole/creativeWork.js +4 -2
- package/lib/abstract/cloud/admin/creativeWork.js +4 -4
- package/lib/bundle.js +896 -765
- package/package.json +1 -1
- package/lib/abstract/chevreAdmin/creativeWork.d.ts +0 -11
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
export interface IFindParams {
|
|
4
|
+
/**
|
|
5
|
+
* max: 20
|
|
6
|
+
*/
|
|
7
|
+
limit: number;
|
|
8
|
+
page: number;
|
|
9
|
+
sortByIdentifier?: factory.sortType;
|
|
10
|
+
additionalPropertyName?: string;
|
|
11
|
+
contentRatingType?: string;
|
|
12
|
+
distributorType?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* コード完全一意
|
|
16
|
+
*/
|
|
17
|
+
identifier?: string;
|
|
18
|
+
/**
|
|
19
|
+
* コード部分一致
|
|
20
|
+
*/
|
|
21
|
+
identifierContains?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 名称部分一致
|
|
24
|
+
*/
|
|
25
|
+
nameContains?: string;
|
|
26
|
+
offersAvailabilityEndsGte?: Date;
|
|
27
|
+
offersAvailabilityStartsLte?: Date;
|
|
28
|
+
datePublishedGte?: Date;
|
|
29
|
+
datePublishedLte?: Date;
|
|
30
|
+
}
|
|
31
|
+
export declare type IMovieAsFindResult = Pick<factory.creativeWork.movie.ICreativeWork, 'identifier' | 'name' | 'alternativeHeadline' | 'datePublished' | 'distributor' | 'headline' | 'thumbnailUrl' | 'duration' | 'contentRating' | 'offers' | 'additionalProperty'> & {
|
|
32
|
+
project?: never;
|
|
33
|
+
typeOf?: never;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* コンテンツサービス
|
|
37
|
+
*/
|
|
38
|
+
export declare class MovieService extends Service {
|
|
39
|
+
/**
|
|
40
|
+
* コンテンツ冪等置換
|
|
41
|
+
*/
|
|
42
|
+
upsertMoviesByIdentifier(params: factory.creativeWork.movie.ICreateParams[]): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* コンテンツ検索
|
|
45
|
+
*/
|
|
46
|
+
findMovies(params: IFindParams): Promise<IMovieAsFindResult[]>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.MovieService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
var BASE_URI = '/movies';
|
|
58
|
+
/**
|
|
59
|
+
* コンテンツサービス
|
|
60
|
+
*/
|
|
61
|
+
var MovieService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(MovieService, _super);
|
|
63
|
+
function MovieService() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* コンテンツ冪等置換
|
|
68
|
+
*/
|
|
69
|
+
MovieService.prototype.upsertMoviesByIdentifier = function (params) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
return __generator(this, function (_a) {
|
|
72
|
+
switch (_a.label) {
|
|
73
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
74
|
+
uri: BASE_URI,
|
|
75
|
+
method: 'PUT',
|
|
76
|
+
body: params,
|
|
77
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
78
|
+
})];
|
|
79
|
+
case 1:
|
|
80
|
+
_a.sent();
|
|
81
|
+
return [2 /*return*/];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* コンテンツ検索
|
|
88
|
+
*/
|
|
89
|
+
MovieService.prototype.findMovies = function (params) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
91
|
+
var _this = this;
|
|
92
|
+
return __generator(this, function (_a) {
|
|
93
|
+
return [2 /*return*/, this.fetch({
|
|
94
|
+
uri: BASE_URI,
|
|
95
|
+
method: 'GET',
|
|
96
|
+
qs: params,
|
|
97
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
98
|
+
})
|
|
99
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
100
|
+
return [2 /*return*/, response.json()];
|
|
101
|
+
}); }); })];
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
return MovieService;
|
|
106
|
+
}(service_1.Service));
|
|
107
|
+
exports.MovieService = MovieService;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as factory from '../factory';
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
export interface IFindParams {
|
|
4
|
+
movieTheaterCode: string;
|
|
5
|
+
roomCode: string;
|
|
6
|
+
sectionCode: string;
|
|
7
|
+
/**
|
|
8
|
+
* max: 20
|
|
9
|
+
*/
|
|
10
|
+
limit: number;
|
|
11
|
+
page: number;
|
|
12
|
+
branchCode?: string;
|
|
13
|
+
branchCodeContains?: string;
|
|
14
|
+
nameContains?: string;
|
|
15
|
+
seatingType?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 追加特性名称
|
|
18
|
+
*/
|
|
19
|
+
additionalPropertyName?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type ISeatAsFindResult = Pick<factory.place.seat.IPlace, 'additionalProperty' | 'branchCode' | 'name' | 'seatingType' | 'maximumAttendeeCapacity'> & {
|
|
22
|
+
typeOf?: never;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 座席サービス
|
|
26
|
+
*/
|
|
27
|
+
export declare class SeatService extends Service {
|
|
28
|
+
/**
|
|
29
|
+
* 座席検索
|
|
30
|
+
*/
|
|
31
|
+
findSeats(params: IFindParams): Promise<ISeatAsFindResult[]>;
|
|
32
|
+
}
|
|
@@ -51,37 +51,37 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.
|
|
54
|
+
exports.SeatService = void 0;
|
|
55
55
|
var http_status_1 = require("http-status");
|
|
56
56
|
var service_1 = require("../service");
|
|
57
|
+
var BASE_URI = '/seats';
|
|
57
58
|
/**
|
|
58
|
-
*
|
|
59
|
+
* 座席サービス
|
|
59
60
|
*/
|
|
60
|
-
var
|
|
61
|
-
__extends(
|
|
62
|
-
function
|
|
61
|
+
var SeatService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(SeatService, _super);
|
|
63
|
+
function SeatService() {
|
|
63
64
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
65
|
}
|
|
65
66
|
/**
|
|
66
|
-
*
|
|
67
|
+
* 座席検索
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
SeatService.prototype.findSeats = function (params) {
|
|
69
70
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
var _this = this;
|
|
70
72
|
return __generator(this, function (_a) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return [2 /*return*/];
|
|
81
|
-
}
|
|
73
|
+
return [2 /*return*/, this.fetch({
|
|
74
|
+
uri: BASE_URI,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
qs: params,
|
|
77
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
78
|
+
})
|
|
79
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
80
|
+
return [2 /*return*/, response.json()];
|
|
81
|
+
}); }); })];
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
|
-
return
|
|
85
|
+
return SeatService;
|
|
86
86
|
}(service_1.Service));
|
|
87
|
-
exports.
|
|
87
|
+
exports.SeatService = SeatService;
|
|
@@ -2,13 +2,13 @@ import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './servi
|
|
|
2
2
|
import type { AcceptedPaymentMethodService } from './chevreAdmin/acceptedPaymentMethod';
|
|
3
3
|
import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
|
|
4
4
|
import type { AuthorizationService } from './chevreAdmin/authorization';
|
|
5
|
-
import type { CreativeWorkService } from './chevreAdmin/creativeWork';
|
|
6
5
|
import type { CustomerService } from './chevreAdmin/customer';
|
|
7
6
|
import type { EventService } from './chevreAdmin/event';
|
|
8
7
|
import type { EventOfferService } from './chevreAdmin/eventOffer';
|
|
9
8
|
import type { EventSeriesService } from './chevreAdmin/eventSeries';
|
|
10
9
|
import type { MeService } from './chevreAdmin/me';
|
|
11
10
|
import type { MemberService } from './chevreAdmin/member';
|
|
11
|
+
import type { MovieService } from './chevreAdmin/movie';
|
|
12
12
|
import type { NoteService } from './chevreAdmin/note';
|
|
13
13
|
import type { NoteAboutOrderService } from './chevreAdmin/noteAboutOrder';
|
|
14
14
|
import type { OfferService } from './chevreAdmin/offer';
|
|
@@ -19,6 +19,7 @@ import type { PaymentMethodService } from './chevreAdmin/paymentMethod';
|
|
|
19
19
|
import type { ProductService } from './chevreAdmin/product';
|
|
20
20
|
import type { ProductOfferService } from './chevreAdmin/productOffer';
|
|
21
21
|
import type { ReservationService } from './chevreAdmin/reservation';
|
|
22
|
+
import type { SeatService } from './chevreAdmin/seat';
|
|
22
23
|
import type { SellerService } from './chevreAdmin/seller';
|
|
23
24
|
export declare namespace service {
|
|
24
25
|
type IUnset = IUnsetOnService;
|
|
@@ -36,13 +37,6 @@ export declare namespace service {
|
|
|
36
37
|
namespace Authorization {
|
|
37
38
|
let svc: typeof AuthorizationService | undefined;
|
|
38
39
|
}
|
|
39
|
-
/**
|
|
40
|
-
* コンテンツサービス
|
|
41
|
-
*/
|
|
42
|
-
type CreativeWork = CreativeWorkService;
|
|
43
|
-
namespace CreativeWork {
|
|
44
|
-
let svc: typeof CreativeWorkService | undefined;
|
|
45
|
-
}
|
|
46
40
|
/**
|
|
47
41
|
* 顧客サービス
|
|
48
42
|
*/
|
|
@@ -85,6 +79,13 @@ export declare namespace service {
|
|
|
85
79
|
namespace Member {
|
|
86
80
|
let svc: typeof MemberService | undefined;
|
|
87
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* コンテンツサービス
|
|
84
|
+
*/
|
|
85
|
+
type Movie = MovieService;
|
|
86
|
+
namespace Movie {
|
|
87
|
+
let svc: typeof MovieService | undefined;
|
|
88
|
+
}
|
|
88
89
|
/**
|
|
89
90
|
* メモサービス
|
|
90
91
|
*/
|
|
@@ -134,6 +135,13 @@ export declare namespace service {
|
|
|
134
135
|
namespace Reservation {
|
|
135
136
|
let svc: typeof ReservationService | undefined;
|
|
136
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* 座席サービス
|
|
140
|
+
*/
|
|
141
|
+
type Seat = SeatService;
|
|
142
|
+
namespace Seat {
|
|
143
|
+
let svc: typeof SeatService | undefined;
|
|
144
|
+
}
|
|
137
145
|
/**
|
|
138
146
|
* 販売者サービス
|
|
139
147
|
*/
|
|
@@ -180,13 +188,13 @@ export declare class ChevreAdmin {
|
|
|
180
188
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
|
|
181
189
|
createAcceptedPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AcceptedPaymentMethodService>;
|
|
182
190
|
createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
|
|
183
|
-
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
184
191
|
createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
|
|
185
192
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
186
193
|
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
187
194
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
|
188
195
|
createMeInstance(): Promise<MeService>;
|
|
189
196
|
createMemberInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MemberService>;
|
|
197
|
+
createMovieInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MovieService>;
|
|
190
198
|
createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
|
|
191
199
|
createNoteAboutOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteAboutOrderService>;
|
|
192
200
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
@@ -194,6 +202,7 @@ export declare class ChevreAdmin {
|
|
|
194
202
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
195
203
|
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
196
204
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
205
|
+
createSeatInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatService>;
|
|
197
206
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
198
207
|
createOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferService>;
|
|
199
208
|
createOfferCatalogInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OfferCatalogService>;
|
|
@@ -56,9 +56,6 @@ var service;
|
|
|
56
56
|
var Authorization;
|
|
57
57
|
(function (Authorization) {
|
|
58
58
|
})(Authorization = service.Authorization || (service.Authorization = {}));
|
|
59
|
-
var CreativeWork;
|
|
60
|
-
(function (CreativeWork) {
|
|
61
|
-
})(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
|
|
62
59
|
var Customer;
|
|
63
60
|
(function (Customer) {
|
|
64
61
|
})(Customer = service.Customer || (service.Customer = {}));
|
|
@@ -77,6 +74,9 @@ var service;
|
|
|
77
74
|
var Member;
|
|
78
75
|
(function (Member) {
|
|
79
76
|
})(Member = service.Member || (service.Member = {}));
|
|
77
|
+
var Movie;
|
|
78
|
+
(function (Movie) {
|
|
79
|
+
})(Movie = service.Movie || (service.Movie = {}));
|
|
80
80
|
var Note;
|
|
81
81
|
(function (Note) {
|
|
82
82
|
})(Note = service.Note || (service.Note = {}));
|
|
@@ -98,6 +98,9 @@ var service;
|
|
|
98
98
|
var Reservation;
|
|
99
99
|
(function (Reservation) {
|
|
100
100
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
101
|
+
var Seat;
|
|
102
|
+
(function (Seat) {
|
|
103
|
+
})(Seat = service.Seat || (service.Seat = {}));
|
|
101
104
|
var Seller;
|
|
102
105
|
(function (Seller) {
|
|
103
106
|
})(Seller = service.Seller || (service.Seller = {}));
|
|
@@ -158,23 +161,6 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
158
161
|
});
|
|
159
162
|
});
|
|
160
163
|
};
|
|
161
|
-
ChevreAdmin.prototype.createCreativeWorkInstance = function (params) {
|
|
162
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
163
|
-
var _a;
|
|
164
|
-
return __generator(this, function (_b) {
|
|
165
|
-
switch (_b.label) {
|
|
166
|
-
case 0:
|
|
167
|
-
if (!(service.CreativeWork.svc === undefined)) return [3 /*break*/, 2];
|
|
168
|
-
_a = service.CreativeWork;
|
|
169
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/creativeWork'); })];
|
|
170
|
-
case 1:
|
|
171
|
-
_a.svc = (_b.sent()).CreativeWorkService;
|
|
172
|
-
_b.label = 2;
|
|
173
|
-
case 2: return [2 /*return*/, new service.CreativeWork.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
};
|
|
178
164
|
ChevreAdmin.prototype.createCustomerInstance = function (params) {
|
|
179
165
|
return __awaiter(this, void 0, void 0, function () {
|
|
180
166
|
var _a;
|
|
@@ -277,6 +263,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
277
263
|
});
|
|
278
264
|
});
|
|
279
265
|
};
|
|
266
|
+
ChevreAdmin.prototype.createMovieInstance = function (params) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
268
|
+
var _a;
|
|
269
|
+
return __generator(this, function (_b) {
|
|
270
|
+
switch (_b.label) {
|
|
271
|
+
case 0:
|
|
272
|
+
if (!(service.Movie.svc === undefined)) return [3 /*break*/, 2];
|
|
273
|
+
_a = service.Movie;
|
|
274
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/movie'); })];
|
|
275
|
+
case 1:
|
|
276
|
+
_a.svc = (_b.sent()).MovieService;
|
|
277
|
+
_b.label = 2;
|
|
278
|
+
case 2: return [2 /*return*/, new service.Movie.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
};
|
|
280
283
|
ChevreAdmin.prototype.createNoteInstance = function (params) {
|
|
281
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
282
285
|
var _a;
|
|
@@ -396,6 +399,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
396
399
|
});
|
|
397
400
|
});
|
|
398
401
|
};
|
|
402
|
+
ChevreAdmin.prototype.createSeatInstance = function (params) {
|
|
403
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
404
|
+
var _a;
|
|
405
|
+
return __generator(this, function (_b) {
|
|
406
|
+
switch (_b.label) {
|
|
407
|
+
case 0:
|
|
408
|
+
if (!(service.Seat.svc === undefined)) return [3 /*break*/, 2];
|
|
409
|
+
_a = service.Seat;
|
|
410
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/seat'); })];
|
|
411
|
+
case 1:
|
|
412
|
+
_a.svc = (_b.sent()).SeatService;
|
|
413
|
+
_b.label = 2;
|
|
414
|
+
case 2: return [2 /*return*/, new service.Seat.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
};
|
|
399
419
|
ChevreAdmin.prototype.createSellerInstance = function (params) {
|
|
400
420
|
return __awaiter(this, void 0, void 0, function () {
|
|
401
421
|
var _a;
|
|
@@ -7,10 +7,13 @@ export declare class CreativeWorkService extends Service {
|
|
|
7
7
|
createMovie(params: factory.creativeWork.movie.ICreateParams): Promise<{
|
|
8
8
|
id: string;
|
|
9
9
|
}>;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use chevreAdmin
|
|
12
|
+
*/
|
|
13
|
+
findMoviesDeprecated(params: Pick<factory.creativeWork.movie.ISearchConditions, 'additionalProperty' | 'contentRating' | 'datePublishedFrom' | 'datePublishedThrough' | 'distributor' | 'id' | 'identifier' | 'name' | 'offers' | 'sort'> & {
|
|
11
14
|
limit: number;
|
|
12
15
|
page: number;
|
|
13
|
-
}): Promise<Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl'
|
|
16
|
+
}): Promise<Pick<factory.creativeWork.movie.ICreativeWork, 'additionalProperty' | 'alternativeHeadline' | 'contentRating' | 'datePublished' | 'distributor' | 'duration' | 'headline' | 'id' | 'identifier' | 'name' | 'offers' | 'thumbnailUrl'>[]>;
|
|
14
17
|
updateMovie(params: factory.creativeWork.movie.ICreateParams & {
|
|
15
18
|
id: string;
|
|
16
19
|
} & IUnset): Promise<void>;
|
|
@@ -78,8 +78,10 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated use chevreAdmin
|
|
83
|
+
*/
|
|
84
|
+
CreativeWorkService.prototype.findMoviesDeprecated = function (params) {
|
|
83
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
86
|
var _this = this;
|
|
85
87
|
return __generator(this, function (_a) {
|
|
@@ -71,7 +71,7 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
71
71
|
*/
|
|
72
72
|
params) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function () {
|
|
74
|
-
var _a, auth, endpoint, project, seller, chevreAdmin,
|
|
74
|
+
var _a, auth, endpoint, project, seller, chevreAdmin, movieService;
|
|
75
75
|
return __generator(this, function (_b) {
|
|
76
76
|
switch (_b.label) {
|
|
77
77
|
case 0:
|
|
@@ -79,13 +79,13 @@ var CreativeWorkService = /** @class */ (function (_super) {
|
|
|
79
79
|
return [4 /*yield*/, index_1.loadChevreAdmin({ auth: auth, endpoint: endpoint })];
|
|
80
80
|
case 1:
|
|
81
81
|
chevreAdmin = _b.sent();
|
|
82
|
-
return [4 /*yield*/, chevreAdmin.
|
|
82
|
+
return [4 /*yield*/, chevreAdmin.createMovieInstance({
|
|
83
83
|
project: project,
|
|
84
84
|
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' }
|
|
85
85
|
})];
|
|
86
86
|
case 2:
|
|
87
|
-
|
|
88
|
-
return [4 /*yield*/,
|
|
87
|
+
movieService = _b.sent();
|
|
88
|
+
return [4 /*yield*/, movieService.upsertMoviesByIdentifier(params)];
|
|
89
89
|
case 3:
|
|
90
90
|
_b.sent();
|
|
91
91
|
return [2 /*return*/];
|