@cinerino/sdk 12.5.0-alpha.15 → 12.5.0-alpha.16

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,5 +1,12 @@
1
1
  import * as factory from '../factory';
2
2
  import { Service } from '../service';
3
+ declare type CategorySetIdentifierExceptMovieTicketType = Exclude<factory.categoryCode.CategorySetIdentifier, factory.categoryCode.CategorySetIdentifier.MovieTicketType>;
4
+ declare type ICategoryCodeExceptMovieTicketType = Pick<factory.categoryCode.ICategoryCode, 'additionalProperty' | 'codeValue' | 'color' | 'id' | 'image' | 'name' | 'project' | 'typeOf'> & {
5
+ inCodeSet: {
6
+ typeOf: 'CategoryCodeSet';
7
+ identifier: CategorySetIdentifierExceptMovieTicketType;
8
+ };
9
+ };
3
10
  /**
4
11
  * 区分サービス
5
12
  */
@@ -21,6 +28,12 @@ export declare class CategoryCodeService extends Service {
21
28
  search(params: Omit<factory.categoryCode.ISearchConditions, 'project'>): Promise<{
22
29
  data: factory.categoryCode.ICategoryCode[];
23
30
  }>;
31
+ /**
32
+ * 決済カード区分を除外して区分を検索する
33
+ */
34
+ findCategoryCodesExceptMovieTicketTypes(params: Omit<factory.categoryCode.ISearchConditions, 'project'> & {
35
+ excludeMovieTicketType?: boolean;
36
+ }): Promise<ICategoryCodeExceptMovieTicketType[]>;
24
37
  findById(params: {
25
38
  id: string;
26
39
  }): Promise<factory.categoryCode.ICategoryCode>;
@@ -31,3 +44,4 @@ export declare class CategoryCodeService extends Service {
31
44
  id: string;
32
45
  }): Promise<void>;
33
46
  }
47
+ export {};
@@ -14,6 +14,17 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
17
28
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
29
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
30
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -109,6 +120,25 @@ var CategoryCodeService = /** @class */ (function (_super) {
109
120
  });
110
121
  });
111
122
  };
123
+ /**
124
+ * 決済カード区分を除外して区分を検索する
125
+ */
126
+ CategoryCodeService.prototype.findCategoryCodesExceptMovieTicketTypes = 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: '/categoryCodes',
132
+ method: 'GET',
133
+ qs: __assign(__assign({}, params), { excludeMovieTicketType: true }),
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
+ };
112
142
  CategoryCodeService.prototype.findById = function (params) {
113
143
  return __awaiter(this, void 0, void 0, function () {
114
144
  var _this = this;
package/lib/bundle.js CHANGED
@@ -9377,6 +9377,17 @@ var __extends = (this && this.__extends) || (function () {
9377
9377
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9378
9378
  };
9379
9379
  })();
9380
+ var __assign = (this && this.__assign) || function () {
9381
+ __assign = Object.assign || function(t) {
9382
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9383
+ s = arguments[i];
9384
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
9385
+ t[p] = s[p];
9386
+ }
9387
+ return t;
9388
+ };
9389
+ return __assign.apply(this, arguments);
9390
+ };
9380
9391
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
9381
9392
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9382
9393
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -9472,6 +9483,25 @@ var CategoryCodeService = /** @class */ (function (_super) {
9472
9483
  });
9473
9484
  });
9474
9485
  };
9486
+ /**
9487
+ * 決済カード区分を除外して区分を検索する
9488
+ */
9489
+ CategoryCodeService.prototype.findCategoryCodesExceptMovieTicketTypes = function (params) {
9490
+ return __awaiter(this, void 0, void 0, function () {
9491
+ var _this = this;
9492
+ return __generator(this, function (_a) {
9493
+ return [2 /*return*/, this.fetch({
9494
+ uri: '/categoryCodes',
9495
+ method: 'GET',
9496
+ qs: __assign(__assign({}, params), { excludeMovieTicketType: true }),
9497
+ expectedStatusCodes: [http_status_1.OK]
9498
+ })
9499
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
9500
+ return [2 /*return*/, response.json()];
9501
+ }); }); })];
9502
+ });
9503
+ });
9504
+ };
9475
9505
  CategoryCodeService.prototype.findById = function (params) {
9476
9506
  return __awaiter(this, void 0, void 0, function () {
9477
9507
  var _this = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.5.0-alpha.15",
3
+ "version": "12.5.0-alpha.16",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {