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