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