@cinerino/sdk 11.0.0-alpha.0 → 11.0.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.
@@ -0,0 +1,33 @@
1
+ // tslint:disable:no-console
2
+ // tslint:disable-next-line:no-implicit-dependencies
3
+ import { loadChevreConsole } from '../../../lib/index';
4
+ import * as auth from '../auth/authAsAdmin';
5
+
6
+ const project = { id: String(process.env.PROJECT_ID) };
7
+
8
+ async function main() {
9
+ const authClient = await auth.login();
10
+ await authClient.refreshAccessToken();
11
+ const loginTicket = authClient.verifyIdToken({});
12
+ console.log('username is', loginTicket.getUsername());
13
+
14
+ const orderService = await (await loadChevreConsole({
15
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
16
+ auth: authClient
17
+ })).createOrderInstance({
18
+ project,
19
+ seller: { id: 'xxx' }
20
+ });
21
+
22
+ const result = await orderService.searchActionsByOrderNumber({
23
+ orderNumber: 'CIN5-8920020-2153078',
24
+ sort: { startDate: 1 }
25
+ });
26
+ console.log(result);
27
+ }
28
+
29
+ main()
30
+ .then(() => {
31
+ console.log('success!');
32
+ })
33
+ .catch(console.error);
@@ -24,7 +24,8 @@ async function main() {
24
24
  id: 'bm2bfj55o',
25
25
  typeOf: client.factory.eventType.ScreeningEvent
26
26
  });
27
- console.dir(event, { depth: null });
27
+ console.log('found', event.id);
28
+ // console.dir(event, { depth: null });
28
29
  // tslint:disable-next-line:non-literal-fs-path
29
30
  // fs.writeFileSync(`${__dirname}/event2.json`, JSON.stringify(event, null, ' '));
30
31
  }
@@ -252,5 +252,5 @@ main()
252
252
  })
253
253
  .catch((err) => {
254
254
  console.error(err);
255
- console.error(err.errors[0].errors);
255
+ console.error(err.errors?.[0]?.errors);
256
256
  });
@@ -0,0 +1,54 @@
1
+ // tslint:disable:no-console no-implicit-dependencies no-magic-numbers
2
+ import * as httpStatus from 'http-status';
3
+ import * as moment from 'moment';
4
+
5
+ import * as client from '../../../../lib/index';
6
+
7
+ // tslint:disable-next-line:max-func-body-length
8
+ async function main() {
9
+ const auth = await client.auth.ClientCredentials.createInstance({
10
+ domain: <string>process.env.ST_AUTHORIZE_SERVER_DOMAIN,
11
+ clientId: <string>process.env.ST_CLIENT_ID,
12
+ clientSecret: <string>process.env.ST_CLIENT_SECRET,
13
+ scopes: [],
14
+ state: 'teststate'
15
+ });
16
+ auth.setCredentials({
17
+ access_token: process.env.SAMPLE_ACCESS_TOKEN
18
+ });
19
+
20
+ const sellerService = new (await client.loadService()).Seller({
21
+ endpoint: <string>process.env.ST_API_V2_ENDPOINT,
22
+ auth: auth,
23
+ project: { id: '' }
24
+ });
25
+
26
+ console.log('イベントを検索しています...');
27
+ const searchResult = await sellerService.fetch({
28
+ uri: '/event/screeningEvent/search',
29
+ method: 'GET',
30
+ qs: {
31
+ limit: 10,
32
+ ids: 'bm2bfj55o',
33
+ startFrom: new Date(),
34
+ startThrough: moment()
35
+ .add(1, 'days')
36
+ .toDate(),
37
+ sellerId: '59d20831e53ebc2b4e774466'
38
+ // clientId: 'xx'
39
+ },
40
+ expectedStatusCodes: [httpStatus.OK]
41
+ })
42
+ .then(async (response) => response.json());
43
+ // tslint:disable-next-line:no-null-keyword
44
+ console.dir(searchResult, { depth: null });
45
+ console.log(searchResult.length);
46
+ }
47
+
48
+ main()
49
+ .then(() => {
50
+ console.log('main processed.');
51
+ })
52
+ .catch((err) => {
53
+ console.error(err);
54
+ });
@@ -0,0 +1,25 @@
1
+ import * as factory from '../factory';
2
+ import { IOptions, Service } from '../service';
3
+ declare type IIdentity = Pick<factory.creativeWork.certification.webApplication.ICertification, 'about' | 'id' | 'issuedBy'>;
4
+ interface ISavingIdentity {
5
+ clientId: string;
6
+ clientSecret: string;
7
+ iss: string[];
8
+ }
9
+ /**
10
+ * アイデンティティサービス
11
+ */
12
+ export declare class IdentityService extends Service<IOptions> {
13
+ constructor(options: Pick<IOptions, 'endpoint' | 'transporter'>);
14
+ createIdentity(params: ISavingIdentity): Promise<{
15
+ id: string;
16
+ }>;
17
+ projectIdentityFields(params: Omit<factory.creativeWork.certification.webApplication.ISearchConditions, 'project'>): Promise<IIdentity[]>;
18
+ updateIdentityById(params: ISavingIdentity & {
19
+ id: string;
20
+ }): Promise<void>;
21
+ deleteIdentityById(params: {
22
+ id: string;
23
+ }): Promise<void>;
24
+ }
25
+ export {};
@@ -0,0 +1,152 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ };
64
+ Object.defineProperty(exports, "__esModule", { value: true });
65
+ exports.IdentityService = void 0;
66
+ var http_status_1 = require("http-status");
67
+ var service_1 = require("../service");
68
+ /**
69
+ * アイデンティティサービス
70
+ */
71
+ var IdentityService = /** @class */ (function (_super) {
72
+ __extends(IdentityService, _super);
73
+ function IdentityService(options) {
74
+ var _this = this;
75
+ var endpoint = options.endpoint, transporter = options.transporter;
76
+ _this = _super.call(this, { endpoint: endpoint, transporter: transporter, project: { id: '' }, retryableStatusCodes: [] }) || this;
77
+ return _this;
78
+ }
79
+ IdentityService.prototype.createIdentity = function (params) {
80
+ return __awaiter(this, void 0, void 0, function () {
81
+ var _this = this;
82
+ return __generator(this, function (_a) {
83
+ return [2 /*return*/, this.fetch({
84
+ uri: '/identities',
85
+ method: 'POST',
86
+ body: params,
87
+ expectedStatusCodes: [http_status_1.CREATED]
88
+ })
89
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
90
+ return [2 /*return*/, response.json()];
91
+ }); }); })];
92
+ });
93
+ });
94
+ };
95
+ IdentityService.prototype.projectIdentityFields = function (params) {
96
+ return __awaiter(this, void 0, void 0, function () {
97
+ var _this = this;
98
+ return __generator(this, function (_a) {
99
+ return [2 /*return*/, this.fetch({
100
+ uri: '/identities',
101
+ method: 'GET',
102
+ qs: params,
103
+ expectedStatusCodes: [http_status_1.OK]
104
+ })
105
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
106
+ return [2 /*return*/, response.json()];
107
+ }); }); })];
108
+ });
109
+ });
110
+ };
111
+ IdentityService.prototype.updateIdentityById = function (params) {
112
+ return __awaiter(this, void 0, void 0, function () {
113
+ var id, body;
114
+ return __generator(this, function (_a) {
115
+ switch (_a.label) {
116
+ case 0:
117
+ id = params.id, body = __rest(params, ["id"]);
118
+ return [4 /*yield*/, this.fetch({
119
+ uri: "/identities/" + encodeURIComponent(String(id)),
120
+ method: 'PUT',
121
+ body: body,
122
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
123
+ })];
124
+ case 1:
125
+ _a.sent();
126
+ return [2 /*return*/];
127
+ }
128
+ });
129
+ });
130
+ };
131
+ IdentityService.prototype.deleteIdentityById = function (params) {
132
+ return __awaiter(this, void 0, void 0, function () {
133
+ var id;
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0:
137
+ id = params.id;
138
+ return [4 /*yield*/, this.fetch({
139
+ uri: "/identities/" + encodeURIComponent(String(id)),
140
+ method: 'DELETE',
141
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
142
+ })];
143
+ case 1:
144
+ _a.sent();
145
+ return [2 /*return*/];
146
+ }
147
+ });
148
+ });
149
+ };
150
+ return IdentityService;
151
+ }(service_1.Service));
152
+ exports.IdentityService = IdentityService;
@@ -0,0 +1,16 @@
1
+ import { IOptions, Service } from '../service';
2
+ /**
3
+ * チケットサービス
4
+ */
5
+ export declare class TicketService extends Service<IOptions> {
6
+ constructor(options: Pick<IOptions, 'endpoint' | 'transporter'>);
7
+ publish(params: {
8
+ audience: {
9
+ id: string;
10
+ };
11
+ expiresInSeconds: number;
12
+ }): Promise<{
13
+ token: string;
14
+ expiresIn: number;
15
+ }>;
16
+ }
@@ -0,0 +1,86 @@
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.TicketService = void 0;
55
+ var http_status_1 = require("http-status");
56
+ var service_1 = require("../service");
57
+ /**
58
+ * チケットサービス
59
+ */
60
+ var TicketService = /** @class */ (function (_super) {
61
+ __extends(TicketService, _super);
62
+ function TicketService(options) {
63
+ var _this = this;
64
+ var endpoint = options.endpoint, transporter = options.transporter;
65
+ _this = _super.call(this, { endpoint: endpoint, transporter: transporter, project: { id: '' }, retryableStatusCodes: [] }) || this;
66
+ return _this;
67
+ }
68
+ TicketService.prototype.publish = function (params) {
69
+ return __awaiter(this, void 0, void 0, function () {
70
+ var _this = this;
71
+ return __generator(this, function (_a) {
72
+ return [2 /*return*/, this.fetch({
73
+ uri: '/tickets',
74
+ method: 'POST',
75
+ body: params,
76
+ expectedStatusCodes: [http_status_1.CREATED]
77
+ })
78
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
79
+ return [2 /*return*/, response.json()];
80
+ }); }); })];
81
+ });
82
+ });
83
+ };
84
+ return TicketService;
85
+ }(service_1.Service));
86
+ exports.TicketService = TicketService;
@@ -1,4 +1,6 @@
1
1
  import { IOptions, IUnset as IUnsetOnService } from './service';
2
+ import type { IdentityService } from './chevreAuth/identity';
3
+ import type { TicketService } from './chevreAuth/ticket';
2
4
  import type { TokenService } from './chevreAuth/token';
3
5
  export declare namespace service {
4
6
  type IUnset = IUnsetOnService;
@@ -9,6 +11,20 @@ export declare namespace service {
9
11
  namespace Token {
10
12
  let svc: typeof TokenService | undefined;
11
13
  }
14
+ /**
15
+ * アイデンティティサービス
16
+ */
17
+ type Identity = IdentityService;
18
+ namespace Identity {
19
+ let svc: typeof IdentityService | undefined;
20
+ }
21
+ /**
22
+ * チケットサービス
23
+ */
24
+ type Ticket = TicketService;
25
+ namespace Ticket {
26
+ let svc: typeof TicketService | undefined;
27
+ }
12
28
  }
13
29
  /**
14
30
  * 認可サービス
@@ -17,4 +33,6 @@ export declare class ChevreAuth {
17
33
  options: Pick<IOptions, 'endpoint'>;
18
34
  constructor(options: Pick<IOptions, 'endpoint'>);
19
35
  createTokenInstance(): Promise<TokenService>;
36
+ createIdentityInstance(): Promise<IdentityService>;
37
+ createTicketInstance(): Promise<TicketService>;
20
38
  }
@@ -53,6 +53,12 @@ var service;
53
53
  var Token;
54
54
  (function (Token) {
55
55
  })(Token = service.Token || (service.Token = {}));
56
+ var Identity;
57
+ (function (Identity) {
58
+ })(Identity = service.Identity || (service.Identity = {}));
59
+ var Ticket;
60
+ (function (Ticket) {
61
+ })(Ticket = service.Ticket || (service.Ticket = {}));
56
62
  })(service = exports.service || (exports.service = {}));
57
63
  /**
58
64
  * 認可サービス
@@ -78,6 +84,40 @@ var ChevreAuth = /** @class */ (function () {
78
84
  });
79
85
  });
80
86
  };
87
+ ChevreAuth.prototype.createIdentityInstance = function () {
88
+ return __awaiter(this, void 0, void 0, function () {
89
+ var _a;
90
+ return __generator(this, function (_b) {
91
+ switch (_b.label) {
92
+ case 0:
93
+ if (!(service.Identity.svc === undefined)) return [3 /*break*/, 2];
94
+ _a = service.Identity;
95
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAuth/identity'); })];
96
+ case 1:
97
+ _a.svc = (_b.sent()).IdentityService;
98
+ _b.label = 2;
99
+ case 2: return [2 /*return*/, new service.Identity.svc(__assign({}, this.options))];
100
+ }
101
+ });
102
+ });
103
+ };
104
+ ChevreAuth.prototype.createTicketInstance = function () {
105
+ return __awaiter(this, void 0, void 0, function () {
106
+ var _a;
107
+ return __generator(this, function (_b) {
108
+ switch (_b.label) {
109
+ case 0:
110
+ if (!(service.Ticket.svc === undefined)) return [3 /*break*/, 2];
111
+ _a = service.Ticket;
112
+ return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAuth/ticket'); })];
113
+ case 1:
114
+ _a.svc = (_b.sent()).TicketService;
115
+ _b.label = 2;
116
+ case 2: return [2 /*return*/, new service.Ticket.svc(__assign({}, this.options))];
117
+ }
118
+ });
119
+ });
120
+ };
81
121
  return ChevreAuth;
82
122
  }());
83
123
  exports.ChevreAuth = ChevreAuth;
@@ -18,5 +18,13 @@ export declare class MemberService extends Service {
18
18
  id: string;
19
19
  };
20
20
  }): Promise<void>;
21
+ createSoftwareApplication(params: IBody): Promise<void>;
22
+ searchSoftwareApplications(params: factory.iam.ISearchConditions): Promise<factory.iam.IMember[]>;
23
+ updateSoftwareApplication(params: IBody): Promise<void>;
24
+ deleteSoftwareApplication(params: {
25
+ member: {
26
+ id: string;
27
+ };
28
+ }): Promise<void>;
21
29
  }
22
30
  export {};
@@ -129,6 +129,72 @@ var MemberService = /** @class */ (function (_super) {
129
129
  });
130
130
  });
131
131
  };
132
+ MemberService.prototype.createSoftwareApplication = function (params) {
133
+ return __awaiter(this, void 0, void 0, function () {
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0: return [4 /*yield*/, this.fetch({
137
+ uri: "/members/" + factory.creativeWorkType.SoftwareApplication,
138
+ method: 'POST',
139
+ body: params,
140
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
141
+ })];
142
+ case 1:
143
+ _a.sent();
144
+ return [2 /*return*/];
145
+ }
146
+ });
147
+ });
148
+ };
149
+ MemberService.prototype.searchSoftwareApplications = function (params) {
150
+ return __awaiter(this, void 0, void 0, function () {
151
+ var _this = this;
152
+ return __generator(this, function (_a) {
153
+ return [2 /*return*/, this.fetch({
154
+ uri: "/members/" + factory.creativeWorkType.SoftwareApplication,
155
+ method: 'GET',
156
+ qs: params,
157
+ expectedStatusCodes: [http_status_1.OK]
158
+ })
159
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
160
+ return [2 /*return*/, response.json()];
161
+ }); }); })];
162
+ });
163
+ });
164
+ };
165
+ MemberService.prototype.updateSoftwareApplication = function (params) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
169
+ case 0: return [4 /*yield*/, this.fetch({
170
+ uri: "/members/" + factory.creativeWorkType.SoftwareApplication + "/" + params.member.id,
171
+ method: 'PUT',
172
+ body: params,
173
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
174
+ })];
175
+ case 1:
176
+ _a.sent();
177
+ return [2 /*return*/];
178
+ }
179
+ });
180
+ });
181
+ };
182
+ MemberService.prototype.deleteSoftwareApplication = function (params) {
183
+ return __awaiter(this, void 0, void 0, function () {
184
+ return __generator(this, function (_a) {
185
+ switch (_a.label) {
186
+ case 0: return [4 /*yield*/, this.fetch({
187
+ uri: "/members/" + factory.creativeWorkType.SoftwareApplication + "/" + params.member.id,
188
+ method: 'DELETE',
189
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
190
+ })];
191
+ case 1:
192
+ _a.sent();
193
+ return [2 /*return*/];
194
+ }
195
+ });
196
+ });
197
+ };
132
198
  return MemberService;
133
199
  }(service_1.Service));
134
200
  exports.MemberService = MemberService;