m2m-components 0.2.0 → 0.3.0

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.
Files changed (72) hide show
  1. package/LitMenuBaseElement.js +11 -91
  2. package/LitMenuBaseElement.js.map +1 -1
  3. package/cjs/LitMenuBaseElement.js +225 -0
  4. package/cjs/LitMenuBaseElement.js.map +1 -0
  5. package/cjs/domains.js +19 -0
  6. package/cjs/domains.js.map +1 -0
  7. package/cjs/endpoints/m2m-notifications.js +19 -0
  8. package/cjs/endpoints/m2m-notifications.js.map +1 -0
  9. package/cjs/endpoints/m2m-notifications.v1.js +169 -0
  10. package/cjs/endpoints/m2m-notifications.v1.js.map +1 -0
  11. package/cjs/endpoints/m2m-users.js +19 -0
  12. package/cjs/endpoints/m2m-users.js.map +1 -0
  13. package/cjs/endpoints/m2m-users.v1.js +672 -0
  14. package/cjs/endpoints/m2m-users.v1.js.map +1 -0
  15. package/cjs/index.js +14 -0
  16. package/cjs/index.js.map +1 -0
  17. package/cjs/m2m-apps-menu.js +105 -0
  18. package/cjs/m2m-apps-menu.js.map +1 -0
  19. package/cjs/m2m-user-menu.js +113 -0
  20. package/cjs/m2m-user-menu.js.map +1 -0
  21. package/cjs/notification/NotificationProvider.js +100 -0
  22. package/cjs/notification/NotificationProvider.js.map +1 -0
  23. package/cjs/notification/ServiceIdProvider.js +41 -0
  24. package/cjs/notification/ServiceIdProvider.js.map +1 -0
  25. package/cjs/notification/api.js +63 -0
  26. package/cjs/notification/api.js.map +1 -0
  27. package/cjs/notification/domain.js +6 -0
  28. package/cjs/notification/domain.js.map +1 -0
  29. package/cjs/notification/index.js +58 -0
  30. package/cjs/notification/index.js.map +1 -0
  31. package/cjs/storage/client.js +110 -0
  32. package/cjs/storage/client.js.map +1 -0
  33. package/cjs/storage/hub.js +21 -0
  34. package/cjs/storage/hub.js.map +1 -0
  35. package/cjs/storage/lib/client.js +203 -0
  36. package/cjs/storage/lib/client.js.map +1 -0
  37. package/cjs/storage/lib/hub.js +126 -0
  38. package/cjs/storage/lib/hub.js.map +1 -0
  39. package/cjs/storage/useM2mAuth.js +101 -0
  40. package/cjs/storage/useM2mAuth.js.map +1 -0
  41. package/domains.js +1 -1
  42. package/domains.js.map +1 -1
  43. package/endpoints/m2m-notifications.js +1 -1
  44. package/endpoints/m2m-notifications.js.map +1 -1
  45. package/endpoints/m2m-notifications.v1.js +71 -49
  46. package/endpoints/m2m-notifications.v1.js.map +1 -1
  47. package/endpoints/m2m-users.js +1 -1
  48. package/endpoints/m2m-users.js.map +1 -1
  49. package/endpoints/m2m-users.v1.js +335 -228
  50. package/endpoints/m2m-users.v1.js.map +1 -1
  51. package/m2m-apps-menu.js +11 -39
  52. package/m2m-apps-menu.js.map +1 -1
  53. package/m2m-user-menu.js +11 -33
  54. package/m2m-user-menu.js.map +1 -1
  55. package/notification/NotificationProvider.js +24 -21
  56. package/notification/NotificationProvider.js.map +1 -1
  57. package/notification/ServiceIdProvider.js +9 -8
  58. package/notification/ServiceIdProvider.js.map +1 -1
  59. package/notification/api.js +66 -38
  60. package/notification/api.js.map +1 -1
  61. package/package.json +32 -14
  62. package/storage/client.d.ts.map +1 -1
  63. package/storage/client.js +69 -31
  64. package/storage/client.js.map +1 -1
  65. package/storage/hub.js +2 -2
  66. package/storage/hub.js.map +1 -1
  67. package/storage/lib/client.js +21 -13
  68. package/storage/lib/client.js.map +1 -1
  69. package/storage/lib/hub.js +23 -23
  70. package/storage/lib/hub.js.map +1 -1
  71. package/storage/useM2mAuth.js +50 -32
  72. package/storage/useM2mAuth.js.map +1 -1
@@ -3,8 +3,8 @@
3
3
  /**
4
4
  * A function that returns the URL part common to the endpoints.
5
5
  */
6
- export const root = () => {
7
- let __root = "";
6
+ export var root = () => {
7
+ var __root = "";
8
8
 
9
9
  if (process.env.NODE_ENV === "local") {
10
10
  __root = "http://localhost:8080";
@@ -29,519 +29,626 @@ export const root = () => {
29
29
  *
30
30
  */
31
31
 
32
- export const healthCheck = () => {
33
- const __root = root();
32
+ export var healthCheck = () => {
33
+ var __root = root();
34
34
 
35
- const __queries = Object.entries({}).filter(([_, value]) => {
35
+ var __queries = Object.entries({}).filter(_ref => {
36
+ var [_, value] = _ref;
36
37
  return value !== undefined;
37
- }).map(([key, value]) => {
38
- return `${key}=${value}`;
38
+ }).map(_ref2 => {
39
+ var [key, value] = _ref2;
40
+ return "".concat(key, "=").concat(value);
39
41
  }).join("&");
40
42
 
41
- const __path = `${__root}/${`health_check`}`;
42
- return __queries ? `${__path}?${__queries}` : __path;
43
+ var __path = "".concat(__root, "/", "health_check");
44
+
45
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
43
46
  };
44
47
  /**
45
48
  * 会社を作成する
46
49
  *
47
50
  */
48
51
 
49
- export const createCompany = () => {
50
- const __root = root();
52
+ export var createCompany = () => {
53
+ var __root = root();
51
54
 
52
- const __queries = Object.entries({}).filter(([_, value]) => {
55
+ var __queries = Object.entries({}).filter(_ref3 => {
56
+ var [_, value] = _ref3;
53
57
  return value !== undefined;
54
- }).map(([key, value]) => {
55
- return `${key}=${value}`;
58
+ }).map(_ref4 => {
59
+ var [key, value] = _ref4;
60
+ return "".concat(key, "=").concat(value);
56
61
  }).join("&");
57
62
 
58
- const __path = `${__root}/${`companies/`}`;
59
- return __queries ? `${__path}?${__queries}` : __path;
63
+ var __path = "".concat(__root, "/", "companies/");
64
+
65
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
60
66
  };
61
67
  /**
62
68
  * 会社情報を取得する
63
69
  *
64
70
  */
65
71
 
66
- export const getCompany = ({
67
- id
68
- }) => {
69
- const __root = root();
72
+ export var getCompany = _ref5 => {
73
+ var {
74
+ id
75
+ } = _ref5;
76
+
77
+ var __root = root();
70
78
 
71
- const __queries = Object.entries({}).filter(([_, value]) => {
79
+ var __queries = Object.entries({}).filter(_ref6 => {
80
+ var [_, value] = _ref6;
72
81
  return value !== undefined;
73
- }).map(([key, value]) => {
74
- return `${key}=${value}`;
82
+ }).map(_ref7 => {
83
+ var [key, value] = _ref7;
84
+ return "".concat(key, "=").concat(value);
75
85
  }).join("&");
76
86
 
77
- const __path = `${__root}/${`companies/${id}`}`;
78
- return __queries ? `${__path}?${__queries}` : __path;
87
+ var __path = "".concat(__root, "/", "companies/".concat(id));
88
+
89
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
79
90
  };
80
91
  /**
81
92
  * 会社情報を更新する
82
93
  *
83
94
  */
84
95
 
85
- export const updateCompany = () => {
86
- const __root = root();
96
+ export var updateCompany = () => {
97
+ var __root = root();
87
98
 
88
- const __queries = Object.entries({}).filter(([_, value]) => {
99
+ var __queries = Object.entries({}).filter(_ref8 => {
100
+ var [_, value] = _ref8;
89
101
  return value !== undefined;
90
- }).map(([key, value]) => {
91
- return `${key}=${value}`;
102
+ }).map(_ref9 => {
103
+ var [key, value] = _ref9;
104
+ return "".concat(key, "=").concat(value);
92
105
  }).join("&");
93
106
 
94
- const __path = `${__root}/${`companies/`}`;
95
- return __queries ? `${__path}?${__queries}` : __path;
107
+ var __path = "".concat(__root, "/", "companies/");
108
+
109
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
96
110
  };
97
111
  /**
98
112
  * 会社情報を更新する
99
113
  *
100
114
  */
101
115
 
102
- export const updateCompanyPatch = () => {
103
- const __root = root();
116
+ export var updateCompanyPatch = () => {
117
+ var __root = root();
104
118
 
105
- const __queries = Object.entries({}).filter(([_, value]) => {
119
+ var __queries = Object.entries({}).filter(_ref10 => {
120
+ var [_, value] = _ref10;
106
121
  return value !== undefined;
107
- }).map(([key, value]) => {
108
- return `${key}=${value}`;
122
+ }).map(_ref11 => {
123
+ var [key, value] = _ref11;
124
+ return "".concat(key, "=").concat(value);
109
125
  }).join("&");
110
126
 
111
- const __path = `${__root}/${`companies/`}`;
112
- return __queries ? `${__path}?${__queries}` : __path;
127
+ var __path = "".concat(__root, "/", "companies/");
128
+
129
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
113
130
  };
114
131
  /**
115
132
  * idを指定して複数の会社情報を取得する
116
133
  * @param {string} company_ids a,b,c
117
134
  */
118
135
 
119
- export const findCompaniesByIds = ({
120
- company_ids
121
- }) => {
122
- const __root = root();
136
+ export var findCompaniesByIds = _ref12 => {
137
+ var {
138
+ company_ids
139
+ } = _ref12;
140
+
141
+ var __root = root();
123
142
 
124
- const __queries = Object.entries({
143
+ var __queries = Object.entries({
125
144
  company_ids
126
- }).filter(([_, value]) => {
145
+ }).filter(_ref13 => {
146
+ var [_, value] = _ref13;
127
147
  return value !== undefined;
128
- }).map(([key, value]) => {
129
- return `${key}=${value}`;
148
+ }).map(_ref14 => {
149
+ var [key, value] = _ref14;
150
+ return "".concat(key, "=").concat(value);
130
151
  }).join("&");
131
152
 
132
- const __path = `${__root}/${`companies/find_by_ids`}`;
133
- return __queries ? `${__path}?${__queries}` : __path;
153
+ var __path = "".concat(__root, "/", "companies/find_by_ids");
154
+
155
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
134
156
  };
135
157
  /**
136
158
  * ユーザーを作成する
137
159
  *
138
160
  */
139
161
 
140
- export const createUser = () => {
141
- const __root = root();
162
+ export var createUser = () => {
163
+ var __root = root();
142
164
 
143
- const __queries = Object.entries({}).filter(([_, value]) => {
165
+ var __queries = Object.entries({}).filter(_ref15 => {
166
+ var [_, value] = _ref15;
144
167
  return value !== undefined;
145
- }).map(([key, value]) => {
146
- return `${key}=${value}`;
168
+ }).map(_ref16 => {
169
+ var [key, value] = _ref16;
170
+ return "".concat(key, "=").concat(value);
147
171
  }).join("&");
148
172
 
149
- const __path = `${__root}/${`users/`}`;
150
- return __queries ? `${__path}?${__queries}` : __path;
173
+ var __path = "".concat(__root, "/", "users/");
174
+
175
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
151
176
  };
152
177
  /**
153
178
  * ユーザーを取得する
154
179
  *
155
180
  */
156
181
 
157
- export const findUserById = ({
158
- id
159
- }) => {
160
- const __root = root();
182
+ export var findUserById = _ref17 => {
183
+ var {
184
+ id
185
+ } = _ref17;
186
+
187
+ var __root = root();
161
188
 
162
- const __queries = Object.entries({}).filter(([_, value]) => {
189
+ var __queries = Object.entries({}).filter(_ref18 => {
190
+ var [_, value] = _ref18;
163
191
  return value !== undefined;
164
- }).map(([key, value]) => {
165
- return `${key}=${value}`;
192
+ }).map(_ref19 => {
193
+ var [key, value] = _ref19;
194
+ return "".concat(key, "=").concat(value);
166
195
  }).join("&");
167
196
 
168
- const __path = `${__root}/${`users/${id}`}`;
169
- return __queries ? `${__path}?${__queries}` : __path;
197
+ var __path = "".concat(__root, "/", "users/".concat(id));
198
+
199
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
170
200
  };
171
201
  /**
172
202
  * ユーザーを更新する
173
203
  *
174
204
  */
175
205
 
176
- export const updateUser = ({
177
- id
178
- }) => {
179
- const __root = root();
206
+ export var updateUser = _ref20 => {
207
+ var {
208
+ id
209
+ } = _ref20;
210
+
211
+ var __root = root();
180
212
 
181
- const __queries = Object.entries({}).filter(([_, value]) => {
213
+ var __queries = Object.entries({}).filter(_ref21 => {
214
+ var [_, value] = _ref21;
182
215
  return value !== undefined;
183
- }).map(([key, value]) => {
184
- return `${key}=${value}`;
216
+ }).map(_ref22 => {
217
+ var [key, value] = _ref22;
218
+ return "".concat(key, "=").concat(value);
185
219
  }).join("&");
186
220
 
187
- const __path = `${__root}/${`users/${id}`}`;
188
- return __queries ? `${__path}?${__queries}` : __path;
221
+ var __path = "".concat(__root, "/", "users/".concat(id));
222
+
223
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
189
224
  };
190
225
  /**
191
226
  * ユーザーを更新する
192
227
  *
193
228
  */
194
229
 
195
- export const updateUserPatch = ({
196
- id
197
- }) => {
198
- const __root = root();
230
+ export var updateUserPatch = _ref23 => {
231
+ var {
232
+ id
233
+ } = _ref23;
199
234
 
200
- const __queries = Object.entries({}).filter(([_, value]) => {
235
+ var __root = root();
236
+
237
+ var __queries = Object.entries({}).filter(_ref24 => {
238
+ var [_, value] = _ref24;
201
239
  return value !== undefined;
202
- }).map(([key, value]) => {
203
- return `${key}=${value}`;
240
+ }).map(_ref25 => {
241
+ var [key, value] = _ref25;
242
+ return "".concat(key, "=").concat(value);
204
243
  }).join("&");
205
244
 
206
- const __path = `${__root}/${`users/${id}`}`;
207
- return __queries ? `${__path}?${__queries}` : __path;
245
+ var __path = "".concat(__root, "/", "users/".concat(id));
246
+
247
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
208
248
  };
209
249
  /**
210
250
  * ユーザーを強制的に有効化する
211
251
  *
212
252
  */
213
253
 
214
- export const activateUserByAdmin = ({
215
- id
216
- }) => {
217
- const __root = root();
254
+ export var activateUserByAdmin = _ref26 => {
255
+ var {
256
+ id
257
+ } = _ref26;
218
258
 
219
- const __queries = Object.entries({}).filter(([_, value]) => {
259
+ var __root = root();
260
+
261
+ var __queries = Object.entries({}).filter(_ref27 => {
262
+ var [_, value] = _ref27;
220
263
  return value !== undefined;
221
- }).map(([key, value]) => {
222
- return `${key}=${value}`;
264
+ }).map(_ref28 => {
265
+ var [key, value] = _ref28;
266
+ return "".concat(key, "=").concat(value);
223
267
  }).join("&");
224
268
 
225
- const __path = `${__root}/${`users/${id}/admin_activate`}`;
226
- return __queries ? `${__path}?${__queries}` : __path;
269
+ var __path = "".concat(__root, "/", "users/".concat(id, "/admin_activate"));
270
+
271
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
227
272
  };
228
273
  /**
229
274
  * ユーザーを無効化する
230
275
  *
231
276
  */
232
277
 
233
- export const deactivateUser = ({
234
- id
235
- }) => {
236
- const __root = root();
278
+ export var deactivateUser = _ref29 => {
279
+ var {
280
+ id
281
+ } = _ref29;
282
+
283
+ var __root = root();
237
284
 
238
- const __queries = Object.entries({}).filter(([_, value]) => {
285
+ var __queries = Object.entries({}).filter(_ref30 => {
286
+ var [_, value] = _ref30;
239
287
  return value !== undefined;
240
- }).map(([key, value]) => {
241
- return `${key}=${value}`;
288
+ }).map(_ref31 => {
289
+ var [key, value] = _ref31;
290
+ return "".concat(key, "=").concat(value);
242
291
  }).join("&");
243
292
 
244
- const __path = `${__root}/${`users/${id}/deactivate`}`;
245
- return __queries ? `${__path}?${__queries}` : __path;
293
+ var __path = "".concat(__root, "/", "users/".concat(id, "/deactivate"));
294
+
295
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
246
296
  };
247
297
  /**
248
298
  * パスワードリセットのメールを送信する
249
299
  *
250
300
  */
251
301
 
252
- export const sendResetPasswordEmail = () => {
253
- const __root = root();
302
+ export var sendResetPasswordEmail = () => {
303
+ var __root = root();
254
304
 
255
- const __queries = Object.entries({}).filter(([_, value]) => {
305
+ var __queries = Object.entries({}).filter(_ref32 => {
306
+ var [_, value] = _ref32;
256
307
  return value !== undefined;
257
- }).map(([key, value]) => {
258
- return `${key}=${value}`;
308
+ }).map(_ref33 => {
309
+ var [key, value] = _ref33;
310
+ return "".concat(key, "=").concat(value);
259
311
  }).join("&");
260
312
 
261
- const __path = `${__root}/${`users/reset_password_email`}`;
262
- return __queries ? `${__path}?${__queries}` : __path;
313
+ var __path = "".concat(__root, "/", "users/reset_password_email");
314
+
315
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
263
316
  };
264
317
  /**
265
318
  * パスワードをリセットする
266
319
  *
267
320
  */
268
321
 
269
- export const resetPassword = () => {
270
- const __root = root();
322
+ export var resetPassword = () => {
323
+ var __root = root();
271
324
 
272
- const __queries = Object.entries({}).filter(([_, value]) => {
325
+ var __queries = Object.entries({}).filter(_ref34 => {
326
+ var [_, value] = _ref34;
273
327
  return value !== undefined;
274
- }).map(([key, value]) => {
275
- return `${key}=${value}`;
328
+ }).map(_ref35 => {
329
+ var [key, value] = _ref35;
330
+ return "".concat(key, "=").concat(value);
276
331
  }).join("&");
277
332
 
278
- const __path = `${__root}/${`users/reset_password`}`;
279
- return __queries ? `${__path}?${__queries}` : __path;
333
+ var __path = "".concat(__root, "/", "users/reset_password");
334
+
335
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
280
336
  };
281
337
  /**
282
338
  * アクティベーションメールを送信する
283
339
  *
284
340
  */
285
341
 
286
- export const sendActivationEmail = () => {
287
- const __root = root();
342
+ export var sendActivationEmail = () => {
343
+ var __root = root();
288
344
 
289
- const __queries = Object.entries({}).filter(([_, value]) => {
345
+ var __queries = Object.entries({}).filter(_ref36 => {
346
+ var [_, value] = _ref36;
290
347
  return value !== undefined;
291
- }).map(([key, value]) => {
292
- return `${key}=${value}`;
348
+ }).map(_ref37 => {
349
+ var [key, value] = _ref37;
350
+ return "".concat(key, "=").concat(value);
293
351
  }).join("&");
294
352
 
295
- const __path = `${__root}/${`users/activation_email`}`;
296
- return __queries ? `${__path}?${__queries}` : __path;
353
+ var __path = "".concat(__root, "/", "users/activation_email");
354
+
355
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
297
356
  };
298
357
  /**
299
358
  * ユーザーを有効化する
300
359
  *
301
360
  */
302
361
 
303
- export const activateUser = () => {
304
- const __root = root();
362
+ export var activateUser = () => {
363
+ var __root = root();
305
364
 
306
- const __queries = Object.entries({}).filter(([_, value]) => {
365
+ var __queries = Object.entries({}).filter(_ref38 => {
366
+ var [_, value] = _ref38;
307
367
  return value !== undefined;
308
- }).map(([key, value]) => {
309
- return `${key}=${value}`;
368
+ }).map(_ref39 => {
369
+ var [key, value] = _ref39;
370
+ return "".concat(key, "=").concat(value);
310
371
  }).join("&");
311
372
 
312
- const __path = `${__root}/${`users/activate`}`;
313
- return __queries ? `${__path}?${__queries}` : __path;
373
+ var __path = "".concat(__root, "/", "users/activate");
374
+
375
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
314
376
  };
315
377
  /**
316
378
  * 認可スコープを設定する
317
379
  *
318
380
  */
319
381
 
320
- export const setAuthorityScope = () => {
321
- const __root = root();
382
+ export var setAuthorityScope = () => {
383
+ var __root = root();
322
384
 
323
- const __queries = Object.entries({}).filter(([_, value]) => {
385
+ var __queries = Object.entries({}).filter(_ref40 => {
386
+ var [_, value] = _ref40;
324
387
  return value !== undefined;
325
- }).map(([key, value]) => {
326
- return `${key}=${value}`;
388
+ }).map(_ref41 => {
389
+ var [key, value] = _ref41;
390
+ return "".concat(key, "=").concat(value);
327
391
  }).join("&");
328
392
 
329
- const __path = `${__root}/${`users/scope`}`;
330
- return __queries ? `${__path}?${__queries}` : __path;
393
+ var __path = "".concat(__root, "/", "users/scope");
394
+
395
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
331
396
  };
332
397
  /**
333
398
  * メールを指定してユーザーを取得する
334
399
  *
335
400
  */
336
401
 
337
- export const findUserByEmail = () => {
338
- const __root = root();
402
+ export var findUserByEmail = () => {
403
+ var __root = root();
339
404
 
340
- const __queries = Object.entries({}).filter(([_, value]) => {
405
+ var __queries = Object.entries({}).filter(_ref42 => {
406
+ var [_, value] = _ref42;
341
407
  return value !== undefined;
342
- }).map(([key, value]) => {
343
- return `${key}=${value}`;
408
+ }).map(_ref43 => {
409
+ var [key, value] = _ref43;
410
+ return "".concat(key, "=").concat(value);
344
411
  }).join("&");
345
412
 
346
- const __path = `${__root}/${`users/find_by_email`}`;
347
- return __queries ? `${__path}?${__queries}` : __path;
413
+ var __path = "".concat(__root, "/", "users/find_by_email");
414
+
415
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
348
416
  };
349
417
  /**
350
418
  * ユーザーの権限を更新する
351
419
  *
352
420
  */
353
421
 
354
- export const updateAuthority = ({
355
- id
356
- }) => {
357
- const __root = root();
422
+ export var updateAuthority = _ref44 => {
423
+ var {
424
+ id
425
+ } = _ref44;
358
426
 
359
- const __queries = Object.entries({}).filter(([_, value]) => {
427
+ var __root = root();
428
+
429
+ var __queries = Object.entries({}).filter(_ref45 => {
430
+ var [_, value] = _ref45;
360
431
  return value !== undefined;
361
- }).map(([key, value]) => {
362
- return `${key}=${value}`;
432
+ }).map(_ref46 => {
433
+ var [key, value] = _ref46;
434
+ return "".concat(key, "=").concat(value);
363
435
  }).join("&");
364
436
 
365
- const __path = `${__root}/${`users/authority/${id}`}`;
366
- return __queries ? `${__path}?${__queries}` : __path;
437
+ var __path = "".concat(__root, "/", "users/authority/".concat(id));
438
+
439
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
367
440
  };
368
441
  /**
369
442
  * companyIdからユーザーを取得する
370
443
  * @param {string} statuses BeforeVerification,Active,Deactivated
371
444
  */
372
445
 
373
- export const findUsersByCompanyId = ({
374
- statuses
375
- }) => {
376
- const __root = root();
446
+ export var findUsersByCompanyId = _ref47 => {
447
+ var {
448
+ statuses
449
+ } = _ref47;
377
450
 
378
- const __queries = Object.entries({
451
+ var __root = root();
452
+
453
+ var __queries = Object.entries({
379
454
  statuses
380
- }).filter(([_, value]) => {
455
+ }).filter(_ref48 => {
456
+ var [_, value] = _ref48;
381
457
  return value !== undefined;
382
- }).map(([key, value]) => {
383
- return `${key}=${value}`;
458
+ }).map(_ref49 => {
459
+ var [key, value] = _ref49;
460
+ return "".concat(key, "=").concat(value);
384
461
  }).join("&");
385
462
 
386
- const __path = `${__root}/${`users/find_by_company_id`}`;
387
- return __queries ? `${__path}?${__queries}` : __path;
463
+ var __path = "".concat(__root, "/", "users/find_by_company_id");
464
+
465
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
388
466
  };
389
467
  /**
390
468
  * ユーザー情報をAdminが変更する
391
469
  *
392
470
  */
393
471
 
394
- export const updateUserByAdmin = ({
395
- id
396
- }) => {
397
- const __root = root();
472
+ export var updateUserByAdmin = _ref50 => {
473
+ var {
474
+ id
475
+ } = _ref50;
398
476
 
399
- const __queries = Object.entries({}).filter(([_, value]) => {
477
+ var __root = root();
478
+
479
+ var __queries = Object.entries({}).filter(_ref51 => {
480
+ var [_, value] = _ref51;
400
481
  return value !== undefined;
401
- }).map(([key, value]) => {
402
- return `${key}=${value}`;
482
+ }).map(_ref52 => {
483
+ var [key, value] = _ref52;
484
+ return "".concat(key, "=").concat(value);
403
485
  }).join("&");
404
486
 
405
- const __path = `${__root}/${`users/${id}/admin_update`}`;
406
- return __queries ? `${__path}?${__queries}` : __path;
487
+ var __path = "".concat(__root, "/", "users/".concat(id, "/admin_update"));
488
+
489
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
407
490
  };
408
491
  /**
409
492
  * ログインする
410
493
  *
411
494
  */
412
495
 
413
- export const login = () => {
414
- const __root = root();
496
+ export var login = () => {
497
+ var __root = root();
415
498
 
416
- const __queries = Object.entries({}).filter(([_, value]) => {
499
+ var __queries = Object.entries({}).filter(_ref53 => {
500
+ var [_, value] = _ref53;
417
501
  return value !== undefined;
418
- }).map(([key, value]) => {
419
- return `${key}=${value}`;
502
+ }).map(_ref54 => {
503
+ var [key, value] = _ref54;
504
+ return "".concat(key, "=").concat(value);
420
505
  }).join("&");
421
506
 
422
- const __path = `${__root}/${`login`}`;
423
- return __queries ? `${__path}?${__queries}` : __path;
507
+ var __path = "".concat(__root, "/", "login");
508
+
509
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
424
510
  };
425
511
  /**
426
512
  * ログインする
427
513
  *
428
514
  */
429
515
 
430
- export const loginWithSlash = () => {
431
- const __root = root();
516
+ export var loginWithSlash = () => {
517
+ var __root = root();
432
518
 
433
- const __queries = Object.entries({}).filter(([_, value]) => {
519
+ var __queries = Object.entries({}).filter(_ref55 => {
520
+ var [_, value] = _ref55;
434
521
  return value !== undefined;
435
- }).map(([key, value]) => {
436
- return `${key}=${value}`;
522
+ }).map(_ref56 => {
523
+ var [key, value] = _ref56;
524
+ return "".concat(key, "=").concat(value);
437
525
  }).join("&");
438
526
 
439
- const __path = `${__root}/${`login/`}`;
440
- return __queries ? `${__path}?${__queries}` : __path;
527
+ var __path = "".concat(__root, "/", "login/");
528
+
529
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
441
530
  };
442
531
  /**
443
532
  * JWKを取得する
444
533
  *
445
534
  */
446
535
 
447
- export const getJwks = () => {
448
- const __root = root();
536
+ export var getJwks = () => {
537
+ var __root = root();
449
538
 
450
- const __queries = Object.entries({}).filter(([_, value]) => {
539
+ var __queries = Object.entries({}).filter(_ref57 => {
540
+ var [_, value] = _ref57;
451
541
  return value !== undefined;
452
- }).map(([key, value]) => {
453
- return `${key}=${value}`;
542
+ }).map(_ref58 => {
543
+ var [key, value] = _ref58;
544
+ return "".concat(key, "=").concat(value);
454
545
  }).join("&");
455
546
 
456
- const __path = `${__root}/${`login/jwks`}`;
457
- return __queries ? `${__path}?${__queries}` : __path;
547
+ var __path = "".concat(__root, "/", "login/jwks");
548
+
549
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
458
550
  };
459
551
  /**
460
552
  * 公開鍵を取得する
461
553
  *
462
554
  */
463
555
 
464
- export const getPublicKeys = () => {
465
- const __root = root();
556
+ export var getPublicKeys = () => {
557
+ var __root = root();
466
558
 
467
- const __queries = Object.entries({}).filter(([_, value]) => {
559
+ var __queries = Object.entries({}).filter(_ref59 => {
560
+ var [_, value] = _ref59;
468
561
  return value !== undefined;
469
- }).map(([key, value]) => {
470
- return `${key}=${value}`;
562
+ }).map(_ref60 => {
563
+ var [key, value] = _ref60;
564
+ return "".concat(key, "=").concat(value);
471
565
  }).join("&");
472
566
 
473
- const __path = `${__root}/${`login/public_keys`}`;
474
- return __queries ? `${__path}?${__queries}` : __path;
567
+ var __path = "".concat(__root, "/", "login/public_keys");
568
+
569
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
475
570
  };
476
571
  /**
477
572
  * MFAのコードを発行する
478
573
  *
479
574
  */
480
575
 
481
- export const publishMFACode = () => {
482
- const __root = root();
576
+ export var publishMFACode = () => {
577
+ var __root = root();
483
578
 
484
- const __queries = Object.entries({}).filter(([_, value]) => {
579
+ var __queries = Object.entries({}).filter(_ref61 => {
580
+ var [_, value] = _ref61;
485
581
  return value !== undefined;
486
- }).map(([key, value]) => {
487
- return `${key}=${value}`;
582
+ }).map(_ref62 => {
583
+ var [key, value] = _ref62;
584
+ return "".concat(key, "=").concat(value);
488
585
  }).join("&");
489
586
 
490
- const __path = `${__root}/${`login/publish_mfa_code`}`;
491
- return __queries ? `${__path}?${__queries}` : __path;
587
+ var __path = "".concat(__root, "/", "login/publish_mfa_code");
588
+
589
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
492
590
  };
493
591
  /**
494
592
  * MFAを使ってログインする
495
593
  *
496
594
  */
497
595
 
498
- export const loginWithMFA = () => {
499
- const __root = root();
596
+ export var loginWithMFA = () => {
597
+ var __root = root();
500
598
 
501
- const __queries = Object.entries({}).filter(([_, value]) => {
599
+ var __queries = Object.entries({}).filter(_ref63 => {
600
+ var [_, value] = _ref63;
502
601
  return value !== undefined;
503
- }).map(([key, value]) => {
504
- return `${key}=${value}`;
602
+ }).map(_ref64 => {
603
+ var [key, value] = _ref64;
604
+ return "".concat(key, "=").concat(value);
505
605
  }).join("&");
506
606
 
507
- const __path = `${__root}/${`login/mfa_login`}`;
508
- return __queries ? `${__path}?${__queries}` : __path;
607
+ var __path = "".concat(__root, "/", "login/mfa_login");
608
+
609
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
509
610
  };
510
611
  /**
511
612
  * usersに存在しないアカウントのトークンを作成する(deprecated)
512
613
  *
513
614
  */
514
615
 
515
- export const generateToken = () => {
516
- const __root = root();
616
+ export var generateToken = () => {
617
+ var __root = root();
517
618
 
518
- const __queries = Object.entries({}).filter(([_, value]) => {
619
+ var __queries = Object.entries({}).filter(_ref65 => {
620
+ var [_, value] = _ref65;
519
621
  return value !== undefined;
520
- }).map(([key, value]) => {
521
- return `${key}=${value}`;
622
+ }).map(_ref66 => {
623
+ var [key, value] = _ref66;
624
+ return "".concat(key, "=").concat(value);
522
625
  }).join("&");
523
626
 
524
- const __path = `${__root}/${`guest/token`}`;
525
- return __queries ? `${__path}?${__queries}` : __path;
627
+ var __path = "".concat(__root, "/", "guest/token");
628
+
629
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
526
630
  };
527
631
  /**
528
632
  * usersに存在しないアカウントのトークンを作成する
529
633
  *
530
634
  */
531
635
 
532
- export const generateUserToken = () => {
533
- const __root = root();
636
+ export var generateUserToken = () => {
637
+ var __root = root();
534
638
 
535
- const __queries = Object.entries({}).filter(([_, value]) => {
639
+ var __queries = Object.entries({}).filter(_ref67 => {
640
+ var [_, value] = _ref67;
536
641
  return value !== undefined;
537
- }).map(([key, value]) => {
538
- return `${key}=${value}`;
642
+ }).map(_ref68 => {
643
+ var [key, value] = _ref68;
644
+ return "".concat(key, "=").concat(value);
539
645
  }).join("&");
540
646
 
541
- const __path = `${__root}/${`generate/token`}`;
542
- return __queries ? `${__path}?${__queries}` : __path;
647
+ var __path = "".concat(__root, "/", "generate/token");
648
+
649
+ return __queries ? "".concat(__path, "?").concat(__queries) : __path;
543
650
  };
544
- export const m2mUsers_v1 = {
651
+ export var m2mUsers_v1 = {
545
652
  healthCheck,
546
653
  createCompany,
547
654
  getCompany,