@cinerino/sdk 3.172.0-alpha.1 → 3.172.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/place/hasPOS.d.ts +46 -0
- package/lib/abstract/chevre/place/hasPOS.js +134 -0
- package/lib/abstract/chevre.d.ts +8 -0
- package/lib/abstract/chevre.js +15 -0
- package/lib/bundle.js +405 -254
- package/package.json +2 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as factory from '../../factory';
|
|
2
|
+
import { IOptions, Service } from '../../service';
|
|
3
|
+
/**
|
|
4
|
+
* 施設のPOSサービス
|
|
5
|
+
*/
|
|
6
|
+
export declare class HasPOSService extends Service<IOptions> {
|
|
7
|
+
search(params: {
|
|
8
|
+
operater: {
|
|
9
|
+
/**
|
|
10
|
+
* 施設ID
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 検索条件
|
|
16
|
+
*/
|
|
17
|
+
qs: {
|
|
18
|
+
limit?: number;
|
|
19
|
+
page?: number;
|
|
20
|
+
};
|
|
21
|
+
}): Promise<Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'>[]>;
|
|
22
|
+
createByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'> & {
|
|
23
|
+
operater: {
|
|
24
|
+
/**
|
|
25
|
+
* 施設ID
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
updateByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode' | 'name'> & {
|
|
31
|
+
operater: {
|
|
32
|
+
/**
|
|
33
|
+
* 施設ID
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
};
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
deleteByBranchCode(params: Pick<factory.place.movieTheater.IPOS, 'branchCode'> & {
|
|
39
|
+
operater: {
|
|
40
|
+
/**
|
|
41
|
+
* 施設ID
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
45
|
+
}): Promise<void>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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.HasPOSService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var factory = require("../../factory");
|
|
57
|
+
var service_1 = require("../../service");
|
|
58
|
+
/**
|
|
59
|
+
* 施設のPOSサービス
|
|
60
|
+
*/
|
|
61
|
+
var HasPOSService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(HasPOSService, _super);
|
|
63
|
+
function HasPOSService() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
HasPOSService.prototype.search = function (params) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var _this = this;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
return [2 /*return*/, this.fetch({
|
|
71
|
+
uri: "/places/" + factory.placeType.MovieTheater + "/" + encodeURIComponent(String(params.operater.id)) + "/hasPOS",
|
|
72
|
+
method: 'GET',
|
|
73
|
+
qs: params.qs,
|
|
74
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
75
|
+
})
|
|
76
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
77
|
+
return [2 /*return*/, response.json()];
|
|
78
|
+
}); }); })];
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
HasPOSService.prototype.createByBranchCode = function (params) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
87
|
+
uri: "/places/" + factory.placeType.MovieTheater + "/" + encodeURIComponent(String(params.operater.id)) + "/hasPOS",
|
|
88
|
+
method: 'POST',
|
|
89
|
+
body: params,
|
|
90
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
91
|
+
})];
|
|
92
|
+
case 1:
|
|
93
|
+
_a.sent();
|
|
94
|
+
return [2 /*return*/];
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
HasPOSService.prototype.updateByBranchCode = function (params) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
104
|
+
uri: "/places/" + factory.placeType.MovieTheater + "/" + encodeURIComponent(String(params.operater.id)) + "/hasPOS/" + params.branchCode,
|
|
105
|
+
method: 'PUT',
|
|
106
|
+
body: params,
|
|
107
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
108
|
+
})];
|
|
109
|
+
case 1:
|
|
110
|
+
_a.sent();
|
|
111
|
+
return [2 /*return*/];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
HasPOSService.prototype.deleteByBranchCode = function (params) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
switch (_a.label) {
|
|
120
|
+
case 0: return [4 /*yield*/, this.fetch({
|
|
121
|
+
uri: "/places/" + factory.placeType.MovieTheater + "/" + encodeURIComponent(String(params.operater.id)) + "/hasPOS/" + params.branchCode,
|
|
122
|
+
method: 'DELETE',
|
|
123
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
124
|
+
})];
|
|
125
|
+
case 1:
|
|
126
|
+
_a.sent();
|
|
127
|
+
return [2 /*return*/];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
return HasPOSService;
|
|
133
|
+
}(service_1.Service));
|
|
134
|
+
exports.HasPOSService = HasPOSService;
|
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ import { PermitService } from './chevre/permit';
|
|
|
42
42
|
import { PersonService } from './chevre/person';
|
|
43
43
|
import { PersonOwnershipInfoService } from './chevre/person/ownershipInfo';
|
|
44
44
|
import { PlaceService } from './chevre/place';
|
|
45
|
+
import { HasPOSService } from './chevre/place/hasPOS';
|
|
45
46
|
import { PriceSpecificationService } from './chevre/priceSpecification';
|
|
46
47
|
import { ProductService } from './chevre/product';
|
|
47
48
|
import { ProjectService } from './chevre/project';
|
|
@@ -200,6 +201,13 @@ export declare namespace service {
|
|
|
200
201
|
*/
|
|
201
202
|
class Place extends PlaceService {
|
|
202
203
|
}
|
|
204
|
+
namespace place {
|
|
205
|
+
/**
|
|
206
|
+
* 施設のPoints-of-Salesサービス
|
|
207
|
+
*/
|
|
208
|
+
class HasPOS extends HasPOSService {
|
|
209
|
+
}
|
|
210
|
+
}
|
|
203
211
|
/**
|
|
204
212
|
* 価格仕様サービス
|
|
205
213
|
*/
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -60,6 +60,7 @@ var permit_1 = require("./chevre/permit");
|
|
|
60
60
|
var person_1 = require("./chevre/person");
|
|
61
61
|
var ownershipInfo_2 = require("./chevre/person/ownershipInfo");
|
|
62
62
|
var place_1 = require("./chevre/place");
|
|
63
|
+
var hasPOS_1 = require("./chevre/place/hasPOS");
|
|
63
64
|
var priceSpecification_1 = require("./chevre/priceSpecification");
|
|
64
65
|
var product_1 = require("./chevre/product");
|
|
65
66
|
var project_1 = require("./chevre/project");
|
|
@@ -388,6 +389,20 @@ var service;
|
|
|
388
389
|
return Place;
|
|
389
390
|
}(place_1.PlaceService));
|
|
390
391
|
service.Place = Place;
|
|
392
|
+
var place;
|
|
393
|
+
(function (place) {
|
|
394
|
+
/**
|
|
395
|
+
* 施設のPoints-of-Salesサービス
|
|
396
|
+
*/
|
|
397
|
+
var HasPOS = /** @class */ (function (_super) {
|
|
398
|
+
__extends(HasPOS, _super);
|
|
399
|
+
function HasPOS() {
|
|
400
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
401
|
+
}
|
|
402
|
+
return HasPOS;
|
|
403
|
+
}(hasPOS_1.HasPOSService));
|
|
404
|
+
place.HasPOS = HasPOS;
|
|
405
|
+
})(place = service.place || (service.place = {}));
|
|
391
406
|
/**
|
|
392
407
|
* 価格仕様サービス
|
|
393
408
|
*/
|