@cinerino/sdk 10.21.0-alpha.40 → 10.21.0-alpha.41

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.
@@ -20,5 +20,13 @@ export declare class EventOfferService extends Service {
20
20
  deleteById(params: {
21
21
  id: string;
22
22
  }): Promise<void>;
23
+ /**
24
+ * 有効なメンバーティアトークンを発行する(開発使用目的)
25
+ */
26
+ publichMemberTierToken(params: {
27
+ id: string;
28
+ }): Promise<{
29
+ token: string;
30
+ }>;
23
31
  }
24
32
  export {};
@@ -144,6 +144,26 @@ var EventOfferService = /** @class */ (function (_super) {
144
144
  });
145
145
  });
146
146
  };
147
+ /**
148
+ * 有効なメンバーティアトークンを発行する(開発使用目的)
149
+ */
150
+ EventOfferService.prototype.publichMemberTierToken = function (params) {
151
+ return __awaiter(this, void 0, void 0, function () {
152
+ var id;
153
+ var _this = this;
154
+ return __generator(this, function (_a) {
155
+ id = params.id;
156
+ return [2 /*return*/, this.fetch({
157
+ uri: "/eventOffers/" + encodeURIComponent(String(id)) + "/tokens",
158
+ method: 'POST',
159
+ expectedStatusCodes: [http_status_1.CREATED]
160
+ })
161
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
162
+ return [2 /*return*/, response.json()];
163
+ }); }); })];
164
+ });
165
+ });
166
+ };
147
167
  return EventOfferService;
148
168
  }(service_1.Service));
149
169
  exports.EventOfferService = EventOfferService;
package/lib/bundle.js CHANGED
@@ -6710,6 +6710,26 @@ var EventOfferService = /** @class */ (function (_super) {
6710
6710
  });
6711
6711
  });
6712
6712
  };
6713
+ /**
6714
+ * 有効なメンバーティアトークンを発行する(開発使用目的)
6715
+ */
6716
+ EventOfferService.prototype.publichMemberTierToken = function (params) {
6717
+ return __awaiter(this, void 0, void 0, function () {
6718
+ var id;
6719
+ var _this = this;
6720
+ return __generator(this, function (_a) {
6721
+ id = params.id;
6722
+ return [2 /*return*/, this.fetch({
6723
+ uri: "/eventOffers/" + encodeURIComponent(String(id)) + "/tokens",
6724
+ method: 'POST',
6725
+ expectedStatusCodes: [http_status_1.CREATED]
6726
+ })
6727
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
6728
+ return [2 /*return*/, response.json()];
6729
+ }); }); })];
6730
+ });
6731
+ });
6732
+ };
6713
6733
  return EventOfferService;
6714
6734
  }(service_1.Service));
6715
6735
  exports.EventOfferService = EventOfferService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "10.21.0-alpha.40",
3
+ "version": "10.21.0-alpha.41",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -92,7 +92,7 @@
92
92
  "watchify": "^3.11.1"
93
93
  },
94
94
  "dependencies": {
95
- "@chevre/factory": "4.394.0-alpha.3",
95
+ "@chevre/factory": "4.394.0-alpha.4",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",