m2m-components 6.2.1-alpha-1745296498131-3bc00c5.0 → 6.2.1-alpha-1745306890332-ebabd11.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.
- package/{chunk-NQAHYFHI.mjs → chunk-4KB6V4QR.mjs} +4 -4
- package/{chunk-AJUMESCA.mjs → chunk-5MWKIL3R.mjs} +4 -4
- package/feedback/index.mjs +2 -2
- package/index.js +0 -18
- package/index.js.map +1 -1
- package/index.mjs +2 -7
- package/package.json +1 -1
- package/storage/refreshAuth.mjs +2 -2
- package/storage/useM2mAuth.mjs +2 -2
- package/chunk-BTRXDURR.mjs +0 -82
- package/chunk-BTRXDURR.mjs.map +0 -1
- package/chunk-HU2F6K3T.mjs +0 -26
- package/chunk-HU2F6K3T.mjs.map +0 -1
- package/chunk-JJLKJEBX.mjs +0 -53
- package/chunk-JJLKJEBX.mjs.map +0 -1
- package/chunk-LOFCW66C.mjs +0 -1
- package/chunk-LOFCW66C.mjs.map +0 -1
- package/chunk-Z3W2Q5MZ.mjs +0 -113
- package/chunk-Z3W2Q5MZ.mjs.map +0 -1
- package/endpoints/m2m-notifications.d.mts +0 -7
- package/endpoints/m2m-notifications.d.ts +0 -7
- package/endpoints/m2m-notifications.js +0 -130
- package/endpoints/m2m-notifications.js.map +0 -1
- package/endpoints/m2m-notifications.mjs +0 -11
- package/endpoints/m2m-notifications.mjs.map +0 -1
- package/endpoints/m2m-notifications.v1.d.mts +0 -1
- package/endpoints/m2m-notifications.v1.d.ts +0 -1
- package/endpoints/m2m-notifications.v1.js +0 -128
- package/endpoints/m2m-notifications.v1.js.map +0 -1
- package/endpoints/m2m-notifications.v1.mjs +0 -22
- package/endpoints/m2m-notifications.v1.mjs.map +0 -1
- package/m2m-notifications.v1-DiG2GtnZ.d.mts +0 -64
- package/m2m-notifications.v1-DiG2GtnZ.d.ts +0 -64
- package/notification/NotificationProvider.d.mts +0 -18
- package/notification/NotificationProvider.d.ts +0 -18
- package/notification/NotificationProvider.js +0 -211
- package/notification/NotificationProvider.js.map +0 -1
- package/notification/NotificationProvider.mjs +0 -14
- package/notification/NotificationProvider.mjs.map +0 -1
- package/notification/ServiceIdProvider.d.mts +0 -10
- package/notification/ServiceIdProvider.d.ts +0 -10
- package/notification/ServiceIdProvider.js +0 -61
- package/notification/ServiceIdProvider.js.map +0 -1
- package/notification/ServiceIdProvider.mjs +0 -10
- package/notification/ServiceIdProvider.mjs.map +0 -1
- package/notification/api.d.mts +0 -7
- package/notification/api.d.ts +0 -7
- package/notification/api.js +0 -163
- package/notification/api.js.map +0 -1
- package/notification/api.mjs +0 -13
- package/notification/api.mjs.map +0 -1
- package/notification/domain.d.mts +0 -24
- package/notification/domain.d.ts +0 -24
- package/notification/domain.js +0 -19
- package/notification/domain.js.map +0 -1
- package/notification/domain.mjs +0 -1
- package/notification/domain.mjs.map +0 -1
- package/notification/index.d.mts +0 -6
- package/notification/index.d.ts +0 -6
- package/notification/index.js +0 -271
- package/notification/index.js.map +0 -1
- package/notification/index.mjs +0 -28
- package/notification/index.mjs.map +0 -1
- /package/{chunk-NQAHYFHI.mjs.map → chunk-4KB6V4QR.mjs.map} +0 -0
- /package/{chunk-AJUMESCA.mjs.map → chunk-5MWKIL3R.mjs.map} +0 -0
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/endpoints/m2m-notifications.ts
|
|
21
|
-
var m2m_notifications_exports = {};
|
|
22
|
-
__export(m2m_notifications_exports, {
|
|
23
|
-
m2mNotifications: () => m2mNotifications
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(m2m_notifications_exports);
|
|
26
|
-
|
|
27
|
-
// src/endpoints/m2m-notifications.v1.ts
|
|
28
|
-
var m2m_notifications_v1_exports = {};
|
|
29
|
-
__export(m2m_notifications_v1_exports, {
|
|
30
|
-
findMySubscriptions: () => findMySubscriptions,
|
|
31
|
-
findNotificationsByServiceId: () => findNotificationsByServiceId,
|
|
32
|
-
healthCheck: () => healthCheck,
|
|
33
|
-
m2mNotifications_v1: () => m2mNotifications_v1,
|
|
34
|
-
registerNotification: () => registerNotification,
|
|
35
|
-
root: () => root,
|
|
36
|
-
saveSubscription: () => saveSubscription,
|
|
37
|
-
updateNotificationStatus: () => updateNotificationStatus
|
|
38
|
-
});
|
|
39
|
-
var root = () => {
|
|
40
|
-
let __root = "";
|
|
41
|
-
if (globalThis.M2M_COMPONENTS_ENV === "local") {
|
|
42
|
-
__root = "";
|
|
43
|
-
}
|
|
44
|
-
if (globalThis.M2M_COMPONENTS_ENV === "localDev") {
|
|
45
|
-
__root = "";
|
|
46
|
-
}
|
|
47
|
-
if (globalThis.M2M_COMPONENTS_ENV === "development") {
|
|
48
|
-
__root = "https://api-notifications.dev.m2msystems.cloud";
|
|
49
|
-
}
|
|
50
|
-
if (globalThis.M2M_COMPONENTS_ENV === "production") {
|
|
51
|
-
__root = "https://api-notifications.m2msystems.cloud";
|
|
52
|
-
}
|
|
53
|
-
return __root;
|
|
54
|
-
};
|
|
55
|
-
var healthCheck = () => {
|
|
56
|
-
const __root = root();
|
|
57
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
58
|
-
return value !== void 0;
|
|
59
|
-
}).map(([key, value]) => {
|
|
60
|
-
return `${key}=${value}`;
|
|
61
|
-
}).join("&");
|
|
62
|
-
const __path = `${__root}/${`health_check`}`;
|
|
63
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
64
|
-
};
|
|
65
|
-
var registerNotification = () => {
|
|
66
|
-
const __root = root();
|
|
67
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
68
|
-
return value !== void 0;
|
|
69
|
-
}).map(([key, value]) => {
|
|
70
|
-
return `${key}=${value}`;
|
|
71
|
-
}).join("&");
|
|
72
|
-
const __path = `${__root}/${`notifications`}`;
|
|
73
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
74
|
-
};
|
|
75
|
-
var findNotificationsByServiceId = ({ id }) => {
|
|
76
|
-
const __root = root();
|
|
77
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
78
|
-
return value !== void 0;
|
|
79
|
-
}).map(([key, value]) => {
|
|
80
|
-
return `${key}=${value}`;
|
|
81
|
-
}).join("&");
|
|
82
|
-
const __path = `${__root}/${`notifications/by_service_id/${id}`}`;
|
|
83
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
84
|
-
};
|
|
85
|
-
var updateNotificationStatus = ({ id }) => {
|
|
86
|
-
const __root = root();
|
|
87
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
88
|
-
return value !== void 0;
|
|
89
|
-
}).map(([key, value]) => {
|
|
90
|
-
return `${key}=${value}`;
|
|
91
|
-
}).join("&");
|
|
92
|
-
const __path = `${__root}/${`notifications/${id}`}`;
|
|
93
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
94
|
-
};
|
|
95
|
-
var saveSubscription = () => {
|
|
96
|
-
const __root = root();
|
|
97
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
98
|
-
return value !== void 0;
|
|
99
|
-
}).map(([key, value]) => {
|
|
100
|
-
return `${key}=${value}`;
|
|
101
|
-
}).join("&");
|
|
102
|
-
const __path = `${__root}/${`subscriptions`}`;
|
|
103
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
104
|
-
};
|
|
105
|
-
var findMySubscriptions = () => {
|
|
106
|
-
const __root = root();
|
|
107
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
108
|
-
return value !== void 0;
|
|
109
|
-
}).map(([key, value]) => {
|
|
110
|
-
return `${key}=${value}`;
|
|
111
|
-
}).join("&");
|
|
112
|
-
const __path = `${__root}/${`subscriptions`}`;
|
|
113
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
114
|
-
};
|
|
115
|
-
var m2mNotifications_v1 = {
|
|
116
|
-
healthCheck,
|
|
117
|
-
registerNotification,
|
|
118
|
-
findNotificationsByServiceId,
|
|
119
|
-
updateNotificationStatus,
|
|
120
|
-
saveSubscription,
|
|
121
|
-
findMySubscriptions
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// src/endpoints/m2m-notifications.ts
|
|
125
|
-
var m2mNotifications = { v1: m2m_notifications_v1_exports };
|
|
126
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
127
|
-
0 && (module.exports = {
|
|
128
|
-
m2mNotifications
|
|
129
|
-
});
|
|
130
|
-
//# sourceMappingURL=m2m-notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;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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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;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;;;ADzIO,IAAM,mBAAmB,EAAE,iCAAG;","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
m2m_notifications_v1_exports
|
|
3
|
-
} from "../chunk-Z3W2Q5MZ.mjs";
|
|
4
|
-
import "../chunk-ZOXT4E27.mjs";
|
|
5
|
-
|
|
6
|
-
// src/endpoints/m2m-notifications.ts
|
|
7
|
-
var m2mNotifications = { v1: m2m_notifications_v1_exports };
|
|
8
|
-
export {
|
|
9
|
-
m2mNotifications
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=m2m-notifications.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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-DiG2GtnZ.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
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-DiG2GtnZ.js';
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/endpoints/m2m-notifications.v1.ts
|
|
21
|
-
var m2m_notifications_v1_exports = {};
|
|
22
|
-
__export(m2m_notifications_v1_exports, {
|
|
23
|
-
findMySubscriptions: () => findMySubscriptions,
|
|
24
|
-
findNotificationsByServiceId: () => findNotificationsByServiceId,
|
|
25
|
-
healthCheck: () => healthCheck,
|
|
26
|
-
m2mNotifications_v1: () => m2mNotifications_v1,
|
|
27
|
-
registerNotification: () => registerNotification,
|
|
28
|
-
root: () => root,
|
|
29
|
-
saveSubscription: () => saveSubscription,
|
|
30
|
-
updateNotificationStatus: () => updateNotificationStatus
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(m2m_notifications_v1_exports);
|
|
33
|
-
var root = () => {
|
|
34
|
-
let __root = "";
|
|
35
|
-
if (globalThis.M2M_COMPONENTS_ENV === "local") {
|
|
36
|
-
__root = "";
|
|
37
|
-
}
|
|
38
|
-
if (globalThis.M2M_COMPONENTS_ENV === "localDev") {
|
|
39
|
-
__root = "";
|
|
40
|
-
}
|
|
41
|
-
if (globalThis.M2M_COMPONENTS_ENV === "development") {
|
|
42
|
-
__root = "https://api-notifications.dev.m2msystems.cloud";
|
|
43
|
-
}
|
|
44
|
-
if (globalThis.M2M_COMPONENTS_ENV === "production") {
|
|
45
|
-
__root = "https://api-notifications.m2msystems.cloud";
|
|
46
|
-
}
|
|
47
|
-
return __root;
|
|
48
|
-
};
|
|
49
|
-
var healthCheck = () => {
|
|
50
|
-
const __root = root();
|
|
51
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
52
|
-
return value !== void 0;
|
|
53
|
-
}).map(([key, value]) => {
|
|
54
|
-
return `${key}=${value}`;
|
|
55
|
-
}).join("&");
|
|
56
|
-
const __path = `${__root}/${`health_check`}`;
|
|
57
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
58
|
-
};
|
|
59
|
-
var registerNotification = () => {
|
|
60
|
-
const __root = root();
|
|
61
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
62
|
-
return value !== void 0;
|
|
63
|
-
}).map(([key, value]) => {
|
|
64
|
-
return `${key}=${value}`;
|
|
65
|
-
}).join("&");
|
|
66
|
-
const __path = `${__root}/${`notifications`}`;
|
|
67
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
68
|
-
};
|
|
69
|
-
var findNotificationsByServiceId = ({ id }) => {
|
|
70
|
-
const __root = root();
|
|
71
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
72
|
-
return value !== void 0;
|
|
73
|
-
}).map(([key, value]) => {
|
|
74
|
-
return `${key}=${value}`;
|
|
75
|
-
}).join("&");
|
|
76
|
-
const __path = `${__root}/${`notifications/by_service_id/${id}`}`;
|
|
77
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
78
|
-
};
|
|
79
|
-
var updateNotificationStatus = ({ id }) => {
|
|
80
|
-
const __root = root();
|
|
81
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
82
|
-
return value !== void 0;
|
|
83
|
-
}).map(([key, value]) => {
|
|
84
|
-
return `${key}=${value}`;
|
|
85
|
-
}).join("&");
|
|
86
|
-
const __path = `${__root}/${`notifications/${id}`}`;
|
|
87
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
88
|
-
};
|
|
89
|
-
var saveSubscription = () => {
|
|
90
|
-
const __root = root();
|
|
91
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
92
|
-
return value !== void 0;
|
|
93
|
-
}).map(([key, value]) => {
|
|
94
|
-
return `${key}=${value}`;
|
|
95
|
-
}).join("&");
|
|
96
|
-
const __path = `${__root}/${`subscriptions`}`;
|
|
97
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
98
|
-
};
|
|
99
|
-
var findMySubscriptions = () => {
|
|
100
|
-
const __root = root();
|
|
101
|
-
const __queries = Object.entries({}).filter(([_, value]) => {
|
|
102
|
-
return value !== void 0;
|
|
103
|
-
}).map(([key, value]) => {
|
|
104
|
-
return `${key}=${value}`;
|
|
105
|
-
}).join("&");
|
|
106
|
-
const __path = `${__root}/${`subscriptions`}`;
|
|
107
|
-
return __queries ? `${__path}?${__queries}` : __path;
|
|
108
|
-
};
|
|
109
|
-
var m2mNotifications_v1 = {
|
|
110
|
-
healthCheck,
|
|
111
|
-
registerNotification,
|
|
112
|
-
findNotificationsByServiceId,
|
|
113
|
-
updateNotificationStatus,
|
|
114
|
-
saveSubscription,
|
|
115
|
-
findMySubscriptions
|
|
116
|
-
};
|
|
117
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
-
0 && (module.exports = {
|
|
119
|
-
findMySubscriptions,
|
|
120
|
-
findNotificationsByServiceId,
|
|
121
|
-
healthCheck,
|
|
122
|
-
m2mNotifications_v1,
|
|
123
|
-
registerNotification,
|
|
124
|
-
root,
|
|
125
|
-
saveSubscription,
|
|
126
|
-
updateNotificationStatus
|
|
127
|
-
});
|
|
128
|
-
//# sourceMappingURL=m2m-notifications.v1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAA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AAC,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":[]}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
findMySubscriptions,
|
|
3
|
-
findNotificationsByServiceId,
|
|
4
|
-
healthCheck,
|
|
5
|
-
m2mNotifications_v1,
|
|
6
|
-
registerNotification,
|
|
7
|
-
root,
|
|
8
|
-
saveSubscription,
|
|
9
|
-
updateNotificationStatus
|
|
10
|
-
} from "../chunk-Z3W2Q5MZ.mjs";
|
|
11
|
-
import "../chunk-ZOXT4E27.mjs";
|
|
12
|
-
export {
|
|
13
|
-
findMySubscriptions,
|
|
14
|
-
findNotificationsByServiceId,
|
|
15
|
-
healthCheck,
|
|
16
|
-
m2mNotifications_v1,
|
|
17
|
-
registerNotification,
|
|
18
|
-
root,
|
|
19
|
-
saveSubscription,
|
|
20
|
-
updateNotificationStatus
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=m2m-notifications.v1.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A function that returns the URL part common to the endpoints.
|
|
3
|
-
*/
|
|
4
|
-
declare const root: () => string;
|
|
5
|
-
/**
|
|
6
|
-
* health check
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
declare const healthCheck: () => string;
|
|
10
|
-
/**
|
|
11
|
-
* 通知を登録する
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
declare const registerNotification: () => string;
|
|
15
|
-
/**
|
|
16
|
-
* 自分宛の通知をserviceIdを使って取得する
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
declare const findNotificationsByServiceId: ({ id }: {
|
|
20
|
-
id: string;
|
|
21
|
-
}) => string;
|
|
22
|
-
/**
|
|
23
|
-
* 通知のステータスを更新する
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
declare const updateNotificationStatus: ({ id }: {
|
|
27
|
-
id: string;
|
|
28
|
-
}) => string;
|
|
29
|
-
/**
|
|
30
|
-
* 通知の購読を更新する
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
declare const saveSubscription: () => string;
|
|
34
|
-
/**
|
|
35
|
-
* 自分の購読している通知を取得する
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
declare const findMySubscriptions: () => string;
|
|
39
|
-
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
|
-
|
|
52
|
-
declare const v1_findMySubscriptions: typeof findMySubscriptions;
|
|
53
|
-
declare const v1_findNotificationsByServiceId: typeof findNotificationsByServiceId;
|
|
54
|
-
declare const v1_healthCheck: typeof healthCheck;
|
|
55
|
-
declare const v1_m2mNotifications_v1: typeof m2mNotifications_v1;
|
|
56
|
-
declare const v1_registerNotification: typeof registerNotification;
|
|
57
|
-
declare const v1_root: typeof root;
|
|
58
|
-
declare const v1_saveSubscription: typeof saveSubscription;
|
|
59
|
-
declare const v1_updateNotificationStatus: typeof updateNotificationStatus;
|
|
60
|
-
declare namespace v1 {
|
|
61
|
-
export { v1_findMySubscriptions as findMySubscriptions, v1_findNotificationsByServiceId as findNotificationsByServiceId, v1_healthCheck as healthCheck, v1_m2mNotifications_v1 as m2mNotifications_v1, v1_registerNotification as registerNotification, v1_root as root, v1_saveSubscription as saveSubscription, v1_updateNotificationStatus as updateNotificationStatus };
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { registerNotification as a, findMySubscriptions as b, findNotificationsByServiceId as f, healthCheck as h, m2mNotifications_v1 as m, root as r, saveSubscription as s, updateNotificationStatus as u, v1 as v };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A function that returns the URL part common to the endpoints.
|
|
3
|
-
*/
|
|
4
|
-
declare const root: () => string;
|
|
5
|
-
/**
|
|
6
|
-
* health check
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
declare const healthCheck: () => string;
|
|
10
|
-
/**
|
|
11
|
-
* 通知を登録する
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
declare const registerNotification: () => string;
|
|
15
|
-
/**
|
|
16
|
-
* 自分宛の通知をserviceIdを使って取得する
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
declare const findNotificationsByServiceId: ({ id }: {
|
|
20
|
-
id: string;
|
|
21
|
-
}) => string;
|
|
22
|
-
/**
|
|
23
|
-
* 通知のステータスを更新する
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
declare const updateNotificationStatus: ({ id }: {
|
|
27
|
-
id: string;
|
|
28
|
-
}) => string;
|
|
29
|
-
/**
|
|
30
|
-
* 通知の購読を更新する
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
declare const saveSubscription: () => string;
|
|
34
|
-
/**
|
|
35
|
-
* 自分の購読している通知を取得する
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
declare const findMySubscriptions: () => string;
|
|
39
|
-
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
|
-
|
|
52
|
-
declare const v1_findMySubscriptions: typeof findMySubscriptions;
|
|
53
|
-
declare const v1_findNotificationsByServiceId: typeof findNotificationsByServiceId;
|
|
54
|
-
declare const v1_healthCheck: typeof healthCheck;
|
|
55
|
-
declare const v1_m2mNotifications_v1: typeof m2mNotifications_v1;
|
|
56
|
-
declare const v1_registerNotification: typeof registerNotification;
|
|
57
|
-
declare const v1_root: typeof root;
|
|
58
|
-
declare const v1_saveSubscription: typeof saveSubscription;
|
|
59
|
-
declare const v1_updateNotificationStatus: typeof updateNotificationStatus;
|
|
60
|
-
declare namespace v1 {
|
|
61
|
-
export { v1_findMySubscriptions as findMySubscriptions, v1_findNotificationsByServiceId as findNotificationsByServiceId, v1_healthCheck as healthCheck, v1_m2mNotifications_v1 as m2mNotifications_v1, v1_registerNotification as registerNotification, v1_root as root, v1_saveSubscription as saveSubscription, v1_updateNotificationStatus as updateNotificationStatus };
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { registerNotification as a, findMySubscriptions as b, findNotificationsByServiceId as f, healthCheck as h, m2mNotifications_v1 as m, root as r, saveSubscription as s, updateNotificationStatus as u, v1 as v };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
-
import { Notification, SubscriptionStatus } from './domain.mjs';
|
|
3
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
-
|
|
5
|
-
declare const NotificationsProvider: ({ token, children, }: PropsWithChildren<{
|
|
6
|
-
token: string;
|
|
7
|
-
}>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare const useNotifications: () => {
|
|
9
|
-
notifications: Notification[];
|
|
10
|
-
isAllRead: boolean;
|
|
11
|
-
refetch: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const useNotificationPermission: () => {
|
|
14
|
-
checkPermission: (notificationType: string) => SubscriptionStatus | undefined;
|
|
15
|
-
refetch: () => void;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { NotificationsProvider, useNotificationPermission, useNotifications };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
|
-
import { Notification, SubscriptionStatus } from './domain.js';
|
|
3
|
-
import { PropsWithChildren } from 'react';
|
|
4
|
-
|
|
5
|
-
declare const NotificationsProvider: ({ token, children, }: PropsWithChildren<{
|
|
6
|
-
token: string;
|
|
7
|
-
}>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare const useNotifications: () => {
|
|
9
|
-
notifications: Notification[];
|
|
10
|
-
isAllRead: boolean;
|
|
11
|
-
refetch: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const useNotificationPermission: () => {
|
|
14
|
-
checkPermission: (notificationType: string) => SubscriptionStatus | undefined;
|
|
15
|
-
refetch: () => void;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { NotificationsProvider, useNotificationPermission, useNotifications };
|