endpoints-sdk-cli 2.3.0 → 2.3.1

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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g endpoints-sdk-cli
17
17
  $ mes COMMAND
18
18
  running command...
19
19
  $ mes (-v|--version|version)
20
- endpoints-sdk-cli/2.3.0 darwin-arm64 node-v18.3.0
20
+ endpoints-sdk-cli/2.3.1 darwin-x64 node-v16.15.1
21
21
  $ mes --help [COMMAND]
22
22
  USAGE
23
23
  $ mes COMMAND
@@ -74,7 +74,7 @@ EXAMPLES
74
74
  $ mes add https://github.com/[username/repository].git
75
75
  ```
76
76
 
77
- _See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.0/src/commands/add.ts)_
77
+ _See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.1/src/commands/add.ts)_
78
78
 
79
79
  ## `mes help [COMMAND]`
80
80
 
@@ -102,7 +102,7 @@ USAGE
102
102
  $ mes install
103
103
  ```
104
104
 
105
- _See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.0/src/commands/install.ts)_
105
+ _See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.1/src/commands/install.ts)_
106
106
 
107
107
  ## `mes update [SERVICE]`
108
108
 
@@ -113,7 +113,7 @@ USAGE
113
113
  $ mes update [SERVICE]
114
114
  ```
115
115
 
116
- _See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.0/src/commands/update.ts)_
116
+ _See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.3.1/src/commands/update.ts)_
117
117
  <!-- commandsstop -->
118
118
 
119
119
 
@@ -0,0 +1,4 @@
1
+ import * as v1 from "./lab.hoge.v1";
2
+ export declare const lab: {
3
+ v1: typeof v1;
4
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.lab = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const v1 = tslib_1.__importStar(require("./lab.hoge.v1"));
7
+ exports.lab = { v1 };
@@ -0,0 +1,123 @@
1
+ /**
2
+ * A function that returns the URL part common to the endpoints.
3
+ */
4
+ export declare const root: () => string;
5
+ /**
6
+ * ヘルスチェック
7
+ * @version v1
8
+ *
9
+ */
10
+ export declare const healthCheck: () => string;
11
+ /**
12
+ * ログインする
13
+ * @version v1
14
+ *
15
+ */
16
+ export declare const login: () => string;
17
+ /**
18
+ * 認証が必要なゲストの情報を取得する
19
+ * @version v1
20
+ *
21
+ */
22
+ export declare const guestFindForAuth: () => string;
23
+ /**
24
+ * パスポート情報を手動でアップロードする
25
+ * @version v1
26
+ *
27
+ */
28
+ export declare const guestPrepareUploadPassportManually: ({ id }: {
29
+ id: string;
30
+ }) => string;
31
+ /**
32
+ * 指定したIDのゲストのパスポート情報を取得する
33
+ * @version v1
34
+ *
35
+ */
36
+ export declare const guestGetPassport: ({ id }: {
37
+ id: string;
38
+ }) => string;
39
+ /**
40
+ * 指定したIDのゲストのパスポート情報を取得する(認証オペレータ用)
41
+ * @version v1
42
+ *
43
+ */
44
+ export declare const guestGetPassportForAuth: ({ id }: {
45
+ id: string;
46
+ }) => string;
47
+ /**
48
+ * ゲスト情報が認証オペレータ用画面に最後に表示された時刻を更新する
49
+ * @version v1
50
+ *
51
+ */
52
+ export declare const guestUpdateGuestsDisplayedTimeInOperatorPage: () => string;
53
+ /**
54
+ * 指定したIDのリスティングのKeycafe連携状況を取得する
55
+ * @version v1
56
+ *
57
+ */
58
+ export declare const listingGetKeycafeProfile: ({ id }: {
59
+ id: string;
60
+ }) => string;
61
+ /**
62
+ * 指定したIDのリスティングをKeycafe連携する
63
+ * @version v1
64
+ *
65
+ */
66
+ export declare const listingAssociateToKeycafe: ({ id }: {
67
+ id: string;
68
+ }) => string;
69
+ /**
70
+ * 指定したIDのリスティングのKeycafe連携を解除する
71
+ * @version v1
72
+ *
73
+ */
74
+ export declare const listingDetachFromKeycafe: ({ id }: {
75
+ id: string;
76
+ }) => string;
77
+ /**
78
+ * チェックイン端末からゲスト用のKeycafe解錠コードを取得する
79
+ * @version v1
80
+ * @param {string} code M2M17955DZ875ZY
81
+ */
82
+ export declare const keycafeGetAccessForGuest: ({ code }: {
83
+ code?: string | undefined;
84
+ }) => string;
85
+ /**
86
+ * Keycafeの鍵情報をキーワード検索する
87
+ * @version v1
88
+ * @param {string} keyword elm501
89
+ */
90
+ export declare const keycafeSearchKeys: ({ keyword }: {
91
+ keyword?: string | undefined;
92
+ }) => string;
93
+ export declare const lab_v1: {
94
+ root: () => string;
95
+ healthCheck: () => string;
96
+ login: () => string;
97
+ guestFindForAuth: () => string;
98
+ guestPrepareUploadPassportManually: ({ id }: {
99
+ id: string;
100
+ }) => string;
101
+ guestGetPassport: ({ id }: {
102
+ id: string;
103
+ }) => string;
104
+ guestGetPassportForAuth: ({ id }: {
105
+ id: string;
106
+ }) => string;
107
+ guestUpdateGuestsDisplayedTimeInOperatorPage: () => string;
108
+ listingGetKeycafeProfile: ({ id }: {
109
+ id: string;
110
+ }) => string;
111
+ listingAssociateToKeycafe: ({ id }: {
112
+ id: string;
113
+ }) => string;
114
+ listingDetachFromKeycafe: ({ id }: {
115
+ id: string;
116
+ }) => string;
117
+ keycafeGetAccessForGuest: ({ code }: {
118
+ code?: string | undefined;
119
+ }) => string;
120
+ keycafeSearchKeys: ({ keyword }: {
121
+ keyword?: string | undefined;
122
+ }) => string;
123
+ };
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lab_v1 = exports.keycafeSearchKeys = exports.keycafeGetAccessForGuest = exports.listingDetachFromKeycafe = exports.listingAssociateToKeycafe = exports.listingGetKeycafeProfile = exports.guestUpdateGuestsDisplayedTimeInOperatorPage = exports.guestGetPassportForAuth = exports.guestGetPassport = exports.guestPrepareUploadPassportManually = exports.guestFindForAuth = exports.login = exports.healthCheck = exports.root = void 0;
4
+ /* eslint-disable */
5
+ /**
6
+ * A function that returns the URL part common to the endpoints.
7
+ */
8
+ const root = () => {
9
+ let __root = "";
10
+ if (process.env.NODE_ENV === "local") {
11
+ __root = "http://localhost:8080";
12
+ }
13
+ if (process.env.NODE_ENV === "localDev") {
14
+ __root = "https://api-checkin.dev.m2msystems.cloud";
15
+ }
16
+ if (process.env.NODE_ENV === "development") {
17
+ __root = "https://api-checkin.dev.m2msystems.cloud";
18
+ }
19
+ if (process.env.NODE_ENV === "production") {
20
+ __root = "https://api-checkin.m2msystems.cloud";
21
+ }
22
+ return __root;
23
+ };
24
+ exports.root = root;
25
+ /**
26
+ * ヘルスチェック
27
+ * @version v1
28
+ *
29
+ */
30
+ const healthCheck = () => {
31
+ const __root = (0, exports.root)();
32
+ const __queries = Object.entries({})
33
+ .filter(([_, value]) => value !== undefined)
34
+ .map(([key, value]) => `${key}=${value}`)
35
+ .join("&");
36
+ const __path = `${__root}/${`/health_check`}`;
37
+ return __queries ? `${__path}?${__queries}` : __path;
38
+ };
39
+ exports.healthCheck = healthCheck;
40
+ /**
41
+ * ログインする
42
+ * @version v1
43
+ *
44
+ */
45
+ const login = () => {
46
+ const __root = (0, exports.root)();
47
+ const __queries = Object.entries({})
48
+ .filter(([_, value]) => value !== undefined)
49
+ .map(([key, value]) => `${key}=${value}`)
50
+ .join("&");
51
+ const __path = `${__root}/${`/login/user/`}`;
52
+ return __queries ? `${__path}?${__queries}` : __path;
53
+ };
54
+ exports.login = login;
55
+ /**
56
+ * 認証が必要なゲストの情報を取得する
57
+ * @version v1
58
+ *
59
+ */
60
+ const guestFindForAuth = () => {
61
+ const __root = (0, exports.root)();
62
+ const __queries = Object.entries({})
63
+ .filter(([_, value]) => value !== undefined)
64
+ .map(([key, value]) => `${key}=${value}`)
65
+ .join("&");
66
+ const __path = `${__root}/${`/api/guests/search/findForAuth`}`;
67
+ return __queries ? `${__path}?${__queries}` : __path;
68
+ };
69
+ exports.guestFindForAuth = guestFindForAuth;
70
+ /**
71
+ * パスポート情報を手動でアップロードする
72
+ * @version v1
73
+ *
74
+ */
75
+ const guestPrepareUploadPassportManually = ({ id }) => {
76
+ const __root = (0, exports.root)();
77
+ const __queries = Object.entries({})
78
+ .filter(([_, value]) => value !== undefined)
79
+ .map(([key, value]) => `${key}=${value}`)
80
+ .join("&");
81
+ const __path = `${__root}/${`/guests/${id}/passport/prepare`}`;
82
+ return __queries ? `${__path}?${__queries}` : __path;
83
+ };
84
+ exports.guestPrepareUploadPassportManually = guestPrepareUploadPassportManually;
85
+ /**
86
+ * 指定したIDのゲストのパスポート情報を取得する
87
+ * @version v1
88
+ *
89
+ */
90
+ const guestGetPassport = ({ id }) => {
91
+ const __root = (0, exports.root)();
92
+ const __queries = Object.entries({})
93
+ .filter(([_, value]) => value !== undefined)
94
+ .map(([key, value]) => `${key}=${value}`)
95
+ .join("&");
96
+ const __path = `${__root}/${`/guests/${id}/passport_image`}`;
97
+ return __queries ? `${__path}?${__queries}` : __path;
98
+ };
99
+ exports.guestGetPassport = guestGetPassport;
100
+ /**
101
+ * 指定したIDのゲストのパスポート情報を取得する(認証オペレータ用)
102
+ * @version v1
103
+ *
104
+ */
105
+ const guestGetPassportForAuth = ({ id }) => {
106
+ const __root = (0, exports.root)();
107
+ const __queries = Object.entries({})
108
+ .filter(([_, value]) => value !== undefined)
109
+ .map(([key, value]) => `${key}=${value}`)
110
+ .join("&");
111
+ const __path = `${__root}/${`/guests/${id}/passport_image_auth`}`;
112
+ return __queries ? `${__path}?${__queries}` : __path;
113
+ };
114
+ exports.guestGetPassportForAuth = guestGetPassportForAuth;
115
+ /**
116
+ * ゲスト情報が認証オペレータ用画面に最後に表示された時刻を更新する
117
+ * @version v1
118
+ *
119
+ */
120
+ const guestUpdateGuestsDisplayedTimeInOperatorPage = () => {
121
+ const __root = (0, exports.root)();
122
+ const __queries = Object.entries({})
123
+ .filter(([_, value]) => value !== undefined)
124
+ .map(([key, value]) => `${key}=${value}`)
125
+ .join("&");
126
+ const __path = `${__root}/${`/guests/displayed_in_operator_page`}`;
127
+ return __queries ? `${__path}?${__queries}` : __path;
128
+ };
129
+ exports.guestUpdateGuestsDisplayedTimeInOperatorPage = guestUpdateGuestsDisplayedTimeInOperatorPage;
130
+ /**
131
+ * 指定したIDのリスティングのKeycafe連携状況を取得する
132
+ * @version v1
133
+ *
134
+ */
135
+ const listingGetKeycafeProfile = ({ id }) => {
136
+ const __root = (0, exports.root)();
137
+ const __queries = Object.entries({})
138
+ .filter(([_, value]) => value !== undefined)
139
+ .map(([key, value]) => `${key}=${value}`)
140
+ .join("&");
141
+ const __path = `${__root}/${`/listings/${id}/keycafe`}`;
142
+ return __queries ? `${__path}?${__queries}` : __path;
143
+ };
144
+ exports.listingGetKeycafeProfile = listingGetKeycafeProfile;
145
+ /**
146
+ * 指定したIDのリスティングをKeycafe連携する
147
+ * @version v1
148
+ *
149
+ */
150
+ const listingAssociateToKeycafe = ({ id }) => {
151
+ const __root = (0, exports.root)();
152
+ const __queries = Object.entries({})
153
+ .filter(([_, value]) => value !== undefined)
154
+ .map(([key, value]) => `${key}=${value}`)
155
+ .join("&");
156
+ const __path = `${__root}/${`/listings/${id}/keycafe`}`;
157
+ return __queries ? `${__path}?${__queries}` : __path;
158
+ };
159
+ exports.listingAssociateToKeycafe = listingAssociateToKeycafe;
160
+ /**
161
+ * 指定したIDのリスティングのKeycafe連携を解除する
162
+ * @version v1
163
+ *
164
+ */
165
+ const listingDetachFromKeycafe = ({ id }) => {
166
+ const __root = (0, exports.root)();
167
+ const __queries = Object.entries({})
168
+ .filter(([_, value]) => value !== undefined)
169
+ .map(([key, value]) => `${key}=${value}`)
170
+ .join("&");
171
+ const __path = `${__root}/${`/listings/${id}/keycafe`}`;
172
+ return __queries ? `${__path}?${__queries}` : __path;
173
+ };
174
+ exports.listingDetachFromKeycafe = listingDetachFromKeycafe;
175
+ /**
176
+ * チェックイン端末からゲスト用のKeycafe解錠コードを取得する
177
+ * @version v1
178
+ * @param {string} code M2M17955DZ875ZY
179
+ */
180
+ const keycafeGetAccessForGuest = ({ code }) => {
181
+ const __root = (0, exports.root)();
182
+ const __queries = Object.entries({ code })
183
+ .filter(([_, value]) => value !== undefined)
184
+ .map(([key, value]) => `${key}=${value}`)
185
+ .join("&");
186
+ const __path = `${__root}/${`/stay/keycafe/accesses`}`;
187
+ return __queries ? `${__path}?${__queries}` : __path;
188
+ };
189
+ exports.keycafeGetAccessForGuest = keycafeGetAccessForGuest;
190
+ /**
191
+ * Keycafeの鍵情報をキーワード検索する
192
+ * @version v1
193
+ * @param {string} keyword elm501
194
+ */
195
+ const keycafeSearchKeys = ({ keyword }) => {
196
+ const __root = (0, exports.root)();
197
+ const __queries = Object.entries({ keyword })
198
+ .filter(([_, value]) => value !== undefined)
199
+ .map(([key, value]) => `${key}=${value}`)
200
+ .join("&");
201
+ const __path = `${__root}/${`/keycafe/keys`}`;
202
+ return __queries ? `${__path}?${__queries}` : __path;
203
+ };
204
+ exports.keycafeSearchKeys = keycafeSearchKeys;
205
+ exports.lab_v1 = {
206
+ root: exports.root,
207
+ healthCheck: exports.healthCheck,
208
+ login: exports.login,
209
+ guestFindForAuth: exports.guestFindForAuth,
210
+ guestPrepareUploadPassportManually: exports.guestPrepareUploadPassportManually,
211
+ guestGetPassport: exports.guestGetPassport,
212
+ guestGetPassportForAuth: exports.guestGetPassportForAuth,
213
+ guestUpdateGuestsDisplayedTimeInOperatorPage: exports.guestUpdateGuestsDisplayedTimeInOperatorPage,
214
+ listingGetKeycafeProfile: exports.listingGetKeycafeProfile,
215
+ listingAssociateToKeycafe: exports.listingAssociateToKeycafe,
216
+ listingDetachFromKeycafe: exports.listingDetachFromKeycafe,
217
+ keycafeGetAccessForGuest: exports.keycafeGetAccessForGuest,
218
+ keycafeSearchKeys: exports.keycafeSearchKeys
219
+ };
@@ -0,0 +1,4 @@
1
+ import * as v1 from "./lab.poyo.v1";
2
+ export declare const lab: {
3
+ v1: typeof v1;
4
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.lab = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const v1 = tslib_1.__importStar(require("./lab.poyo.v1"));
7
+ exports.lab = { v1 };
@@ -0,0 +1,123 @@
1
+ /**
2
+ * A function that returns the URL part common to the endpoints.
3
+ */
4
+ export declare const root: () => string;
5
+ /**
6
+ * ヘルスチェック
7
+ * @version v1
8
+ *
9
+ */
10
+ export declare const healthCheck: () => string;
11
+ /**
12
+ * ログインする
13
+ * @version v1
14
+ *
15
+ */
16
+ export declare const login: () => string;
17
+ /**
18
+ * 認証が必要なゲストの情報を取得する
19
+ * @version v1
20
+ *
21
+ */
22
+ export declare const guestFindForAuth: () => string;
23
+ /**
24
+ * パスポート情報を手動でアップロードする
25
+ * @version v1
26
+ *
27
+ */
28
+ export declare const guestPrepareUploadPassportManually: ({ id }: {
29
+ id: string;
30
+ }) => string;
31
+ /**
32
+ * 指定したIDのゲストのパスポート情報を取得する
33
+ * @version v1
34
+ *
35
+ */
36
+ export declare const guestGetPassport: ({ id }: {
37
+ id: string;
38
+ }) => string;
39
+ /**
40
+ * 指定したIDのゲストのパスポート情報を取得する(認証オペレータ用)
41
+ * @version v1
42
+ *
43
+ */
44
+ export declare const guestGetPassportForAuth: ({ id }: {
45
+ id: string;
46
+ }) => string;
47
+ /**
48
+ * ゲスト情報が認証オペレータ用画面に最後に表示された時刻を更新する
49
+ * @version v1
50
+ *
51
+ */
52
+ export declare const guestUpdateGuestsDisplayedTimeInOperatorPage: () => string;
53
+ /**
54
+ * 指定したIDのリスティングのKeycafe連携状況を取得する
55
+ * @version v1
56
+ *
57
+ */
58
+ export declare const listingGetKeycafeProfile: ({ id }: {
59
+ id: string;
60
+ }) => string;
61
+ /**
62
+ * 指定したIDのリスティングをKeycafe連携する
63
+ * @version v1
64
+ *
65
+ */
66
+ export declare const listingAssociateToKeycafe: ({ id }: {
67
+ id: string;
68
+ }) => string;
69
+ /**
70
+ * 指定したIDのリスティングのKeycafe連携を解除する
71
+ * @version v1
72
+ *
73
+ */
74
+ export declare const listingDetachFromKeycafe: ({ id }: {
75
+ id: string;
76
+ }) => string;
77
+ /**
78
+ * チェックイン端末からゲスト用のKeycafe解錠コードを取得する
79
+ * @version v1
80
+ * @param {string} code M2M17955DZ875ZY
81
+ */
82
+ export declare const keycafeGetAccessForGuest: ({ code }: {
83
+ code?: string | undefined;
84
+ }) => string;
85
+ /**
86
+ * Keycafeの鍵情報をキーワード検索する
87
+ * @version v1
88
+ * @param {string} keyword elm501
89
+ */
90
+ export declare const keycafeSearchKeys: ({ keyword }: {
91
+ keyword?: string | undefined;
92
+ }) => string;
93
+ export declare const lab_v1: {
94
+ root: () => string;
95
+ healthCheck: () => string;
96
+ login: () => string;
97
+ guestFindForAuth: () => string;
98
+ guestPrepareUploadPassportManually: ({ id }: {
99
+ id: string;
100
+ }) => string;
101
+ guestGetPassport: ({ id }: {
102
+ id: string;
103
+ }) => string;
104
+ guestGetPassportForAuth: ({ id }: {
105
+ id: string;
106
+ }) => string;
107
+ guestUpdateGuestsDisplayedTimeInOperatorPage: () => string;
108
+ listingGetKeycafeProfile: ({ id }: {
109
+ id: string;
110
+ }) => string;
111
+ listingAssociateToKeycafe: ({ id }: {
112
+ id: string;
113
+ }) => string;
114
+ listingDetachFromKeycafe: ({ id }: {
115
+ id: string;
116
+ }) => string;
117
+ keycafeGetAccessForGuest: ({ code }: {
118
+ code?: string | undefined;
119
+ }) => string;
120
+ keycafeSearchKeys: ({ keyword }: {
121
+ keyword?: string | undefined;
122
+ }) => string;
123
+ };