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,6 +1,131 @@
1
- /* eslint-disable */
2
- import * as v1 from "./m2m-notifications.v1";
3
- export var m2mNotifications = {
4
- v1
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 });
5
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-notifications.ts
22
+ var m2m_notifications_exports = {};
23
+ __export(m2m_notifications_exports, {
24
+ m2mNotifications: () => m2mNotifications
25
+ });
26
+ module.exports = __toCommonJS(m2m_notifications_exports);
27
+
28
+ // src/endpoints/m2m-notifications.v1.ts
29
+ var m2m_notifications_v1_exports = {};
30
+ __export(m2m_notifications_v1_exports, {
31
+ findMySubscriptions: () => findMySubscriptions,
32
+ findNotificationsByServiceId: () => findNotificationsByServiceId,
33
+ healthCheck: () => healthCheck,
34
+ m2mNotifications_v1: () => m2mNotifications_v1,
35
+ registerNotification: () => registerNotification,
36
+ root: () => root,
37
+ saveSubscription: () => saveSubscription,
38
+ updateNotificationStatus: () => updateNotificationStatus
39
+ });
40
+ var root = () => {
41
+ let __root = "";
42
+ if (globalThis.M2M_COMPONENTS_ENV === "local") {
43
+ __root = "";
44
+ }
45
+ if (globalThis.M2M_COMPONENTS_ENV === "localDev") {
46
+ __root = "";
47
+ }
48
+ if (globalThis.M2M_COMPONENTS_ENV === "development") {
49
+ __root = "https://api-notifications.dev.m2msystems.cloud";
50
+ }
51
+ if (globalThis.M2M_COMPONENTS_ENV === "production") {
52
+ __root = "https://api-notifications.m2msystems.cloud";
53
+ }
54
+ return __root;
55
+ };
56
+ var healthCheck = () => {
57
+ const __root = root();
58
+ const __queries = Object.entries({}).filter(([_, value]) => {
59
+ return value !== void 0;
60
+ }).map(([key, value]) => {
61
+ return `${key}=${value}`;
62
+ }).join("&");
63
+ const __path = `${__root}/${`health_check`}`;
64
+ return __queries ? `${__path}?${__queries}` : __path;
65
+ };
66
+ var registerNotification = () => {
67
+ const __root = root();
68
+ const __queries = Object.entries({}).filter(([_, value]) => {
69
+ return value !== void 0;
70
+ }).map(([key, value]) => {
71
+ return `${key}=${value}`;
72
+ }).join("&");
73
+ const __path = `${__root}/${`notifications`}`;
74
+ return __queries ? `${__path}?${__queries}` : __path;
75
+ };
76
+ var findNotificationsByServiceId = ({ id }) => {
77
+ const __root = root();
78
+ const __queries = Object.entries({}).filter(([_, value]) => {
79
+ return value !== void 0;
80
+ }).map(([key, value]) => {
81
+ return `${key}=${value}`;
82
+ }).join("&");
83
+ const __path = `${__root}/${`notifications/by_service_id/${id}`}`;
84
+ return __queries ? `${__path}?${__queries}` : __path;
85
+ };
86
+ var updateNotificationStatus = ({ id }) => {
87
+ const __root = root();
88
+ const __queries = Object.entries({}).filter(([_, value]) => {
89
+ return value !== void 0;
90
+ }).map(([key, value]) => {
91
+ return `${key}=${value}`;
92
+ }).join("&");
93
+ const __path = `${__root}/${`notifications/${id}`}`;
94
+ return __queries ? `${__path}?${__queries}` : __path;
95
+ };
96
+ var saveSubscription = () => {
97
+ const __root = root();
98
+ const __queries = Object.entries({}).filter(([_, value]) => {
99
+ return value !== void 0;
100
+ }).map(([key, value]) => {
101
+ return `${key}=${value}`;
102
+ }).join("&");
103
+ const __path = `${__root}/${`subscriptions`}`;
104
+ return __queries ? `${__path}?${__queries}` : __path;
105
+ };
106
+ var findMySubscriptions = () => {
107
+ const __root = root();
108
+ const __queries = Object.entries({}).filter(([_, value]) => {
109
+ return value !== void 0;
110
+ }).map(([key, value]) => {
111
+ return `${key}=${value}`;
112
+ }).join("&");
113
+ const __path = `${__root}/${`subscriptions`}`;
114
+ return __queries ? `${__path}?${__queries}` : __path;
115
+ };
116
+ var m2mNotifications_v1 = {
117
+ healthCheck,
118
+ registerNotification,
119
+ findNotificationsByServiceId,
120
+ updateNotificationStatus,
121
+ saveSubscription,
122
+ findMySubscriptions
123
+ };
124
+
125
+ // src/endpoints/m2m-notifications.ts
126
+ var m2mNotifications = { v1: m2m_notifications_v1_exports };
127
+ // Annotate the CommonJS export names for ESM import in node:
128
+ 0 && (module.exports = {
129
+ m2mNotifications
130
+ });
6
131
  //# sourceMappingURL=m2m-notifications.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"m2m-notifications.js","names":["v1","m2mNotifications"],"sources":["../src/endpoints/m2m-notifications.ts"],"sourcesContent":["/* eslint-disable */\nimport * as v1 from \"./m2m-notifications.v1\";\nexport const m2mNotifications = { v1 };\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,EAAE,MAAM,wBAAwB;AAC5C,OAAO,IAAMC,gBAAgB,GAAG;EAAED;AAAG,CAAC"}
1
+ {"version":3,"sources":["../../src/endpoints/m2m-notifications.ts","../../src/endpoints/m2m-notifications.v1.ts"],"sourcesContent":["/* eslint-disable */\nimport * as v1 from \"./m2m-notifications.v1\";\nexport const m2mNotifications = { v1 };\n","/* eslint-disable */\n/**\n * A function that returns the URL part common to the endpoints.\n */\nexport const root = () => {\n let __root = \"\";\n\n if (globalThis.M2M_COMPONENTS_ENV === \"local\") {\n __root = \"\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"localDev\") {\n __root = \"\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"development\") {\n __root = \"https://api-notifications.dev.m2msystems.cloud\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"production\") {\n __root = \"https://api-notifications.m2msystems.cloud\";\n }\n\n return __root;\n};\n/**\n * health check\n *\n */\nexport const healthCheck = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`health_check`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知を登録する\n *\n */\nexport const registerNotification = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 自分宛の通知をserviceIdを使って取得する\n *\n */\nexport const findNotificationsByServiceId = ({ id }: { id: string }) => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications/by_service_id/${id}`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知のステータスを更新する\n *\n */\nexport const updateNotificationStatus = ({ id }: { id: string }) => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications/${id}`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知の購読を更新する\n *\n */\nexport const saveSubscription = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`subscriptions`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 自分の購読している通知を取得する\n *\n */\nexport const findMySubscriptions = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`subscriptions`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\nexport const m2mNotifications_v1 = {\n healthCheck,\n registerNotification,\n findNotificationsByServiceId,\n updateNotificationStatus,\n saveSubscription,\n findMySubscriptions,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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K,KAAK,MAAM;AACrB,WAAO,GAAG,GAAG,IAAI,KAAK;AAAA,EACxB,CAAC,EACA,KAAK,GAAG;AACX,QAAM,SAAS,GAAG,MAAM,IAAI,eAAe;AAC3C,SAAO,YAAY,GAAG,MAAM,IAAI,SAAS,KAAK;AAChD;AACO,IAAM,sBAAsB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;ADzIO,IAAM,mBAAmB,EAAE,iCAAG;","names":[]}
@@ -0,0 +1,12 @@
1
+ 'use client'
2
+ import {
3
+ m2m_notifications_v1_exports
4
+ } from "../chunk-ISOF65DB.mjs";
5
+ import "../chunk-JUBOAWNR.mjs";
6
+
7
+ // src/endpoints/m2m-notifications.ts
8
+ var m2mNotifications = { v1: m2m_notifications_v1_exports };
9
+ export {
10
+ m2mNotifications
11
+ };
12
+ //# sourceMappingURL=m2m-notifications.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/endpoints/m2m-notifications.ts"],"sourcesContent":["/* eslint-disable */\nimport * as v1 from \"./m2m-notifications.v1\";\nexport const m2mNotifications = { v1 };\n"],"mappings":";;;;;;;AAEO,IAAM,mBAAmB,EAAE,iCAAG;","names":[]}
@@ -0,0 +1 @@
1
+ export { b as findMySubscriptions, f as findNotificationsByServiceId, h as healthCheck, m as m2mNotifications_v1, a as registerNotification, r as root, s as saveSubscription, u as updateNotificationStatus } from '../m2m-notifications.v1-0186835d.js';
@@ -1,51 +1 @@
1
- /**
2
- * A function that returns the URL part common to the endpoints.
3
- */
4
- export declare const root: () => string;
5
- /**
6
- * health check
7
- *
8
- */
9
- export declare const healthCheck: () => string;
10
- /**
11
- * 通知を登録する
12
- *
13
- */
14
- export declare const registerNotification: () => string;
15
- /**
16
- * 自分宛の通知をserviceIdを使って取得する
17
- *
18
- */
19
- export declare const findNotificationsByServiceId: ({ id }: {
20
- id: string;
21
- }) => string;
22
- /**
23
- * 通知のステータスを更新する
24
- *
25
- */
26
- export declare const updateNotificationStatus: ({ id }: {
27
- id: string;
28
- }) => string;
29
- /**
30
- * 通知の購読を更新する
31
- *
32
- */
33
- export declare const saveSubscription: () => string;
34
- /**
35
- * 自分の購読している通知を取得する
36
- *
37
- */
38
- export declare const findMySubscriptions: () => string;
39
- export declare const m2mNotifications_v1: {
40
- healthCheck: () => string;
41
- registerNotification: () => string;
42
- findNotificationsByServiceId: ({ id }: {
43
- id: string;
44
- }) => string;
45
- updateNotificationStatus: ({ id }: {
46
- id: string;
47
- }) => string;
48
- saveSubscription: () => string;
49
- findMySubscriptions: () => string;
50
- };
51
- //# sourceMappingURL=m2m-notifications.v1.d.ts.map
1
+ export { b as findMySubscriptions, f as findNotificationsByServiceId, h as healthCheck, m as m2mNotifications_v1, a as registerNotification, r as root, s as saveSubscription, u as updateNotificationStatus } from '../m2m-notifications.v1-0186835d.js';
@@ -1,9 +1,38 @@
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-notifications.v1.ts
22
+ var m2m_notifications_v1_exports = {};
23
+ __export(m2m_notifications_v1_exports, {
24
+ findMySubscriptions: () => findMySubscriptions,
25
+ findNotificationsByServiceId: () => findNotificationsByServiceId,
26
+ healthCheck: () => healthCheck,
27
+ m2mNotifications_v1: () => m2mNotifications_v1,
28
+ registerNotification: () => registerNotification,
29
+ root: () => root,
30
+ saveSubscription: () => saveSubscription,
31
+ updateNotificationStatus: () => updateNotificationStatus
32
+ });
33
+ module.exports = __toCommonJS(m2m_notifications_v1_exports);
34
+ var root = () => {
35
+ let __root = "";
7
36
  if (globalThis.M2M_COMPONENTS_ENV === "local") {
8
37
  __root = "";
9
38
  }
@@ -18,114 +47,67 @@ export var root = () => {
18
47
  }
19
48
  return __root;
20
49
  };
21
- /**
22
- * health check
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);
50
+ var healthCheck = () => {
51
+ const __root = root();
52
+ const __queries = Object.entries({}).filter(([_, value]) => {
53
+ return value !== void 0;
54
+ }).map(([key, value]) => {
55
+ return `${key}=${value}`;
33
56
  }).join("&");
34
- var __path = "".concat(__root, "/", "health_check");
35
- return __queries ? "".concat(__path, "?").concat(__queries) : __path;
57
+ const __path = `${__root}/${`health_check`}`;
58
+ return __queries ? `${__path}?${__queries}` : __path;
36
59
  };
37
-
38
- /**
39
- * 通知を登録する
40
- *
41
- */
42
- export var registerNotification = () => {
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);
60
+ var registerNotification = () => {
61
+ const __root = root();
62
+ const __queries = Object.entries({}).filter(([_, value]) => {
63
+ return value !== void 0;
64
+ }).map(([key, value]) => {
65
+ return `${key}=${value}`;
50
66
  }).join("&");
51
- var __path = "".concat(__root, "/", "notifications");
52
- return __queries ? "".concat(__path, "?").concat(__queries) : __path;
67
+ const __path = `${__root}/${`notifications`}`;
68
+ return __queries ? `${__path}?${__queries}` : __path;
53
69
  };
54
-
55
- /**
56
- * 自分宛の通知をserviceIdを使って取得する
57
- *
58
- */
59
- export var findNotificationsByServiceId = _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);
70
+ var findNotificationsByServiceId = ({ id }) => {
71
+ const __root = root();
72
+ const __queries = Object.entries({}).filter(([_, value]) => {
73
+ return value !== void 0;
74
+ }).map(([key, value]) => {
75
+ return `${key}=${value}`;
70
76
  }).join("&");
71
- var __path = "".concat(__root, "/", "notifications/by_service_id/".concat(id));
72
- return __queries ? "".concat(__path, "?").concat(__queries) : __path;
77
+ const __path = `${__root}/${`notifications/by_service_id/${id}`}`;
78
+ return __queries ? `${__path}?${__queries}` : __path;
73
79
  };
74
-
75
- /**
76
- * 通知のステータスを更新する
77
- *
78
- */
79
- export var updateNotificationStatus = _ref8 => {
80
- var {
81
- id
82
- } = _ref8;
83
- var __root = root();
84
- var __queries = Object.entries({}).filter(_ref9 => {
85
- var [_, value] = _ref9;
86
- return value !== undefined;
87
- }).map(_ref10 => {
88
- var [key, value] = _ref10;
89
- return "".concat(key, "=").concat(value);
80
+ var updateNotificationStatus = ({ id }) => {
81
+ const __root = root();
82
+ const __queries = Object.entries({}).filter(([_, value]) => {
83
+ return value !== void 0;
84
+ }).map(([key, value]) => {
85
+ return `${key}=${value}`;
90
86
  }).join("&");
91
- var __path = "".concat(__root, "/", "notifications/".concat(id));
92
- return __queries ? "".concat(__path, "?").concat(__queries) : __path;
87
+ const __path = `${__root}/${`notifications/${id}`}`;
88
+ return __queries ? `${__path}?${__queries}` : __path;
93
89
  };
94
-
95
- /**
96
- * 通知の購読を更新する
97
- *
98
- */
99
- export var saveSubscription = () => {
100
- var __root = root();
101
- var __queries = Object.entries({}).filter(_ref11 => {
102
- var [_, value] = _ref11;
103
- return value !== undefined;
104
- }).map(_ref12 => {
105
- var [key, value] = _ref12;
106
- return "".concat(key, "=").concat(value);
90
+ var saveSubscription = () => {
91
+ const __root = root();
92
+ const __queries = Object.entries({}).filter(([_, value]) => {
93
+ return value !== void 0;
94
+ }).map(([key, value]) => {
95
+ return `${key}=${value}`;
107
96
  }).join("&");
108
- var __path = "".concat(__root, "/", "subscriptions");
109
- return __queries ? "".concat(__path, "?").concat(__queries) : __path;
97
+ const __path = `${__root}/${`subscriptions`}`;
98
+ return __queries ? `${__path}?${__queries}` : __path;
110
99
  };
111
-
112
- /**
113
- * 自分の購読している通知を取得する
114
- *
115
- */
116
- export var findMySubscriptions = () => {
117
- var __root = root();
118
- var __queries = Object.entries({}).filter(_ref13 => {
119
- var [_, value] = _ref13;
120
- return value !== undefined;
121
- }).map(_ref14 => {
122
- var [key, value] = _ref14;
123
- return "".concat(key, "=").concat(value);
100
+ var findMySubscriptions = () => {
101
+ const __root = root();
102
+ const __queries = Object.entries({}).filter(([_, value]) => {
103
+ return value !== void 0;
104
+ }).map(([key, value]) => {
105
+ return `${key}=${value}`;
124
106
  }).join("&");
125
- var __path = "".concat(__root, "/", "subscriptions");
126
- return __queries ? "".concat(__path, "?").concat(__queries) : __path;
107
+ const __path = `${__root}/${`subscriptions`}`;
108
+ return __queries ? `${__path}?${__queries}` : __path;
127
109
  };
128
- export var m2mNotifications_v1 = {
110
+ var m2mNotifications_v1 = {
129
111
  healthCheck,
130
112
  registerNotification,
131
113
  findNotificationsByServiceId,
@@ -133,4 +115,15 @@ export var m2mNotifications_v1 = {
133
115
  saveSubscription,
134
116
  findMySubscriptions
135
117
  };
118
+ // Annotate the CommonJS export names for ESM import in node:
119
+ 0 && (module.exports = {
120
+ findMySubscriptions,
121
+ findNotificationsByServiceId,
122
+ healthCheck,
123
+ m2mNotifications_v1,
124
+ registerNotification,
125
+ root,
126
+ saveSubscription,
127
+ updateNotificationStatus
128
+ });
136
129
  //# sourceMappingURL=m2m-notifications.v1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"m2m-notifications.v1.js","names":["root","__root","globalThis","M2M_COMPONENTS_ENV","healthCheck","__queries","Object","entries","filter","_ref","_","value","undefined","map","_ref2","key","concat","join","__path","registerNotification","_ref3","_ref4","findNotificationsByServiceId","_ref5","id","_ref6","_ref7","updateNotificationStatus","_ref8","_ref9","_ref10","saveSubscription","_ref11","_ref12","findMySubscriptions","_ref13","_ref14","m2mNotifications_v1"],"sources":["../src/endpoints/m2m-notifications.v1.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * A function that returns the URL part common to the endpoints.\n */\nexport const root = () => {\n let __root = \"\";\n\n if (globalThis.M2M_COMPONENTS_ENV === \"local\") {\n __root = \"\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"localDev\") {\n __root = \"\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"development\") {\n __root = \"https://api-notifications.dev.m2msystems.cloud\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"production\") {\n __root = \"https://api-notifications.m2msystems.cloud\";\n }\n\n return __root;\n};\n/**\n * health check\n *\n */\nexport const healthCheck = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`health_check`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知を登録する\n *\n */\nexport const registerNotification = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 自分宛の通知をserviceIdを使って取得する\n *\n */\nexport const findNotificationsByServiceId = ({ id }: { id: string }) => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications/by_service_id/${id}`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知のステータスを更新する\n *\n */\nexport const updateNotificationStatus = ({ id }: { id: string }) => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications/${id}`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知の購読を更新する\n *\n */\nexport const saveSubscription = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`subscriptions`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 自分の購読している通知を取得する\n *\n */\nexport const findMySubscriptions = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`subscriptions`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\nexport const m2mNotifications_v1 = {\n healthCheck,\n registerNotification,\n findNotificationsByServiceId,\n updateNotificationStatus,\n saveSubscription,\n findMySubscriptions,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,OAAO,IAAMA,IAAI,GAAGA,CAAA,KAAM;EACxB,IAAIC,MAAM,GAAG,EAAE;EAEf,IAAIC,UAAU,CAACC,kBAAkB,KAAK,OAAO,EAAE;IAC7CF,MAAM,GAAG,EAAE;EACb;EAEA,IAAIC,UAAU,CAACC,kBAAkB,KAAK,UAAU,EAAE;IAChDF,MAAM,GAAG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CAAIX,SAAS,IAAKa,MAAM;AACtD,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,IAAMgB,mBAAmB,GAAGA,CAAA,KAAM;EACvC,IAAMjC,MAAM,GAAGD,IAAI,CAAC,CAAC;EACrB,IAAMK,SAAS,GAAGC,MAAM,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC,CACjCC,MAAM,CAAC2B,MAAA,IAAgB;IAAA,IAAf,CAACzB,CAAC,EAAEC,KAAK,CAAC,GAAAwB,MAAA;IACjB,OAAOxB,KAAK,KAAKC,SAAS;EAC5B,CAAC,CAAC,CACDC,GAAG,CAACuB,MAAA,IAAkB;IAAA,IAAjB,CAACrB,GAAG,EAAEJ,KAAK,CAAC,GAAAyB,MAAA;IAChB,UAAApB,MAAA,CAAUD,GAAG,OAAAC,MAAA,CAAIL,KAAK;EACxB,CAAC,CAAC,CACDM,IAAI,CAAC,GAAG,CAAC;EACZ,IAAMC,MAAM,MAAAF,MAAA,CAAMf,MAAM,uBAAqB;EAC7C,OAAOI,SAAS,MAAAW,MAAA,CAAME,MAAM,OAAAF,MAAA,CAAIX,SAAS,IAAKa,MAAM;AACtD,CAAC;AACD,OAAO,IAAMmB,mBAAmB,GAAG;EACjCjC,WAAW;EACXe,oBAAoB;EACpBG,4BAA4B;EAC5BK,wBAAwB;EACxBI,gBAAgB;EAChBG;AACF,CAAC"}
1
+ {"version":3,"sources":["../../src/endpoints/m2m-notifications.v1.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * A function that returns the URL part common to the endpoints.\n */\nexport const root = () => {\n let __root = \"\";\n\n if (globalThis.M2M_COMPONENTS_ENV === \"local\") {\n __root = \"\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"localDev\") {\n __root = \"\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"development\") {\n __root = \"https://api-notifications.dev.m2msystems.cloud\";\n }\n\n if (globalThis.M2M_COMPONENTS_ENV === \"production\") {\n __root = \"https://api-notifications.m2msystems.cloud\";\n }\n\n return __root;\n};\n/**\n * health check\n *\n */\nexport const healthCheck = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`health_check`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知を登録する\n *\n */\nexport const registerNotification = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 自分宛の通知をserviceIdを使って取得する\n *\n */\nexport const findNotificationsByServiceId = ({ id }: { id: string }) => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications/by_service_id/${id}`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知のステータスを更新する\n *\n */\nexport const updateNotificationStatus = ({ id }: { id: string }) => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`notifications/${id}`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 通知の購読を更新する\n *\n */\nexport const saveSubscription = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`subscriptions`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\n\n/**\n * 自分の購読している通知を取得する\n *\n */\nexport const findMySubscriptions = () => {\n const __root = root();\n const __queries = Object.entries({})\n .filter(([_, value]) => {\n return value !== undefined;\n })\n .map(([key, value]) => {\n return `${key}=${value}`;\n })\n .join(\"&\");\n const __path = `${__root}/${`subscriptions`}`;\n return __queries ? `${__path}?${__queries}` : __path;\n};\nexport const m2mNotifications_v1 = {\n healthCheck,\n registerNotification,\n findNotificationsByServiceId,\n updateNotificationStatus,\n saveSubscription,\n findMySubscriptions,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,OAAO,MAAM;AACxB,MAAI,SAAS;AAEb,MAAI,WAAW,uBAAuB,SAAS;AAC7C,aAAS;AAAA,EACX;AAEA,MAAI,WAAW,uBAAuB,YAAY;AAChD,aAAS;AAAA,EACX;AAEA,MAAI,WAAW,uBAAuB,eAAe;AACnD,aAAS;AAAA,EACX;AAEA,MAAI,WAAW,uBAAuB,cAAc;AAClD,aAAS;AAAA,EACX;AAEA,SAAO;AACT;AAKO,IAAM,cAAc,MAAM;AAC/B,QAAM,SAAS,KAAK;AACpB,QAAM,YAAY,OAAO,QAAQ,CAAC,CAAC,EAChC,OAAO,CAAC,CAAC,GAAG,KAAK,MAAM;AACtB,WAAO,UAAU;AAAA,EACnB,CAAC,EACA,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AACrB,WAAO,GAAG,GAAG,IAAI,KAAK;AAAA,EACxB,CAAC,EACA,KAAK,GAAG;AACX,QAAM,SAAS,GAAG,MAAM,IAAI,cAAc;AAC1C,SAAO,YAAY,GAAG,MAAM,IAAI,SAAS,KAAK;AAChD;AAMO,IAAM,uBAAuB,MAAM;AACxC,QAAM,SAAS,KAAK;AACpB,QAAM,YAAY,OAAO,QAAQ,CAAC,CAAC,EAChC,OAAO,CAAC,CAAC,GAAG,KAAK,MAAM;AACtB,WAAO,UAAU;AAAA,EACnB,CAAC,EACA,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AACrB,WAAO,GAAG,GAAG,IAAI,KA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,KAAK,GAAG;AACX,QAAM,SAAS,GAAG,MAAM,IAAI,eAAe;AAC3C,SAAO,YAAY,GAAG,MAAM,IAAI,SAAS,KAAK;AAChD;AAMO,IAAM,sBAAsB,MAAM;AACvC,QAAM,SAAS,KAAK;AACpB,QAAM,YAAY,OAAO,QAAQ,CAAC,CAAC,EAChC,OAAO,CAAC,CAAC,GAAG,KAAK,MAAM;AACtB,WAAO,UAAU;AAAA,EACnB,CAAC,EACA,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AACrB,WAAO,GAAG,GAAG,IAAI,KAAK;AAAA,EACxB,CAAC,EACA,KAAK,GAAG;AACX,QAAM,SAAS,GAAG,MAAM,IAAI,eAAe;AAC3C,SAAO,YAAY,GAAG,MAAM,IAAI,SAAS,KAAK;AAChD;AACO,IAAM,sBAAsB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
@@ -0,0 +1,23 @@
1
+ 'use client'
2
+ import {
3
+ findMySubscriptions,
4
+ findNotificationsByServiceId,
5
+ healthCheck,
6
+ m2mNotifications_v1,
7
+ registerNotification,
8
+ root,
9
+ saveSubscription,
10
+ updateNotificationStatus
11
+ } from "../chunk-ISOF65DB.mjs";
12
+ import "../chunk-JUBOAWNR.mjs";
13
+ export {
14
+ findMySubscriptions,
15
+ findNotificationsByServiceId,
16
+ healthCheck,
17
+ m2mNotifications_v1,
18
+ registerNotification,
19
+ root,
20
+ saveSubscription,
21
+ updateNotificationStatus
22
+ };
23
+ //# sourceMappingURL=m2m-notifications.v1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ import { v as v1 } from '../m2m-users.v1-c78c72cf.js';
2
+
3
+ declare const m2mUsers: {
4
+ v1: typeof v1;
5
+ };
6
+
7
+ export { m2mUsers };
@@ -1,5 +1,7 @@
1
- import * as v1 from "./m2m-users.v1";
2
- export declare const m2mUsers: {
1
+ import { v as v1 } from '../m2m-users.v1-c78c72cf.js';
2
+
3
+ declare const m2mUsers: {
3
4
  v1: typeof v1;
4
5
  };
5
- //# sourceMappingURL=m2m-users.d.ts.map
6
+
7
+ export { m2mUsers };