endpoints-sdk-cli 2.2.0 → 2.3.2

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.
@@ -1,4 +0,0 @@
1
- import * as v1 from "./m2m-notifications.v1";
2
- export declare const m2mNotifications: {
3
- v1: typeof v1;
4
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.m2mNotifications = void 0;
4
- const tslib_1 = require("tslib");
5
- /* eslint-disable */
6
- const v1 = tslib_1.__importStar(require("./m2m-notifications.v1"));
7
- exports.m2mNotifications = { v1 };
@@ -1,50 +0,0 @@
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
- };
@@ -1,133 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.m2mNotifications_v1 = exports.findMySubscriptions = exports.saveSubscription = exports.updateNotificationStatus = exports.findNotificationsByServiceId = exports.registerNotification = exports.healthCheck = exports.root = void 0;
4
- /* eslint-disable */
5
- /**
6
- * A function that returns the URL part common to the endpoints.
7
- */
8
- exports.root = () => {
9
- let __root = "";
10
- if (process.env.NODE_ENV === "local") {
11
- __root = "";
12
- }
13
- if (process.env.NODE_ENV === "localDev") {
14
- __root = "";
15
- }
16
- if (process.env.NODE_ENV === "development") {
17
- __root = "https://api-notifications.dev.m2msystems.cloud";
18
- }
19
- if (process.env.NODE_ENV === "production") {
20
- __root = "https://api-notifications.m2msystems.cloud";
21
- }
22
- return __root;
23
- };
24
- /**
25
- * health check
26
- *
27
- */
28
- exports.healthCheck = () => {
29
- const __root = exports.root();
30
- const __queries = Object.entries({})
31
- .filter(([_, value]) => {
32
- return value !== undefined;
33
- })
34
- .map(([key, value]) => {
35
- return `${key}=${value}`;
36
- })
37
- .join("&");
38
- const __path = `${__root}/${`health_check`}`;
39
- return __queries ? `${__path}?${__queries}` : __path;
40
- };
41
- /**
42
- * 通知を登録する
43
- *
44
- */
45
- exports.registerNotification = () => {
46
- const __root = exports.root();
47
- const __queries = Object.entries({})
48
- .filter(([_, value]) => {
49
- return value !== undefined;
50
- })
51
- .map(([key, value]) => {
52
- return `${key}=${value}`;
53
- })
54
- .join("&");
55
- const __path = `${__root}/${`notifications`}`;
56
- return __queries ? `${__path}?${__queries}` : __path;
57
- };
58
- /**
59
- * 自分宛の通知をserviceIdを使って取得する
60
- *
61
- */
62
- exports.findNotificationsByServiceId = ({ id }) => {
63
- const __root = exports.root();
64
- const __queries = Object.entries({})
65
- .filter(([_, value]) => {
66
- return value !== undefined;
67
- })
68
- .map(([key, value]) => {
69
- return `${key}=${value}`;
70
- })
71
- .join("&");
72
- const __path = `${__root}/${`notifications/by_service_id/${id}`}`;
73
- return __queries ? `${__path}?${__queries}` : __path;
74
- };
75
- /**
76
- * 通知のステータスを更新する
77
- *
78
- */
79
- exports.updateNotificationStatus = ({ id }) => {
80
- const __root = exports.root();
81
- const __queries = Object.entries({})
82
- .filter(([_, value]) => {
83
- return value !== undefined;
84
- })
85
- .map(([key, value]) => {
86
- return `${key}=${value}`;
87
- })
88
- .join("&");
89
- const __path = `${__root}/${`notifications/${id}`}`;
90
- return __queries ? `${__path}?${__queries}` : __path;
91
- };
92
- /**
93
- * 通知の購読を更新する
94
- *
95
- */
96
- exports.saveSubscription = () => {
97
- const __root = exports.root();
98
- const __queries = Object.entries({})
99
- .filter(([_, value]) => {
100
- return value !== undefined;
101
- })
102
- .map(([key, value]) => {
103
- return `${key}=${value}`;
104
- })
105
- .join("&");
106
- const __path = `${__root}/${`subscriptions`}`;
107
- return __queries ? `${__path}?${__queries}` : __path;
108
- };
109
- /**
110
- * 自分の購読している通知を取得する
111
- *
112
- */
113
- exports.findMySubscriptions = () => {
114
- const __root = exports.root();
115
- const __queries = Object.entries({})
116
- .filter(([_, value]) => {
117
- return value !== undefined;
118
- })
119
- .map(([key, value]) => {
120
- return `${key}=${value}`;
121
- })
122
- .join("&");
123
- const __path = `${__root}/${`subscriptions`}`;
124
- return __queries ? `${__path}?${__queries}` : __path;
125
- };
126
- exports.m2mNotifications_v1 = {
127
- healthCheck: exports.healthCheck,
128
- registerNotification: exports.registerNotification,
129
- findNotificationsByServiceId: exports.findNotificationsByServiceId,
130
- updateNotificationStatus: exports.updateNotificationStatus,
131
- saveSubscription: exports.saveSubscription,
132
- findMySubscriptions: exports.findMySubscriptions,
133
- };
@@ -1,4 +0,0 @@
1
- import * as v1 from "./m2m-users.v1";
2
- export declare const m2mUsers: {
3
- v1: typeof v1;
4
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.m2mUsers = void 0;
4
- const tslib_1 = require("tslib");
5
- /* eslint-disable */
6
- const v1 = tslib_1.__importStar(require("./m2m-users.v1"));
7
- exports.m2mUsers = { v1 };
@@ -1,210 +0,0 @@
1
- /**
2
- * A function that returns the URL part common to the endpoints.
3
- */
4
- export declare const root: () => string;
5
- /**
6
- * ヘルスチェック
7
- *
8
- */
9
- export declare const healthCheck: () => string;
10
- /**
11
- * 会社を作成する
12
- *
13
- */
14
- export declare const createCompany: () => string;
15
- /**
16
- * 会社情報を取得する
17
- *
18
- */
19
- export declare const getCompany: ({ id }: {
20
- id: string;
21
- }) => string;
22
- /**
23
- * 会社情報を更新する
24
- *
25
- */
26
- export declare const updateCompany: () => string;
27
- /**
28
- * 会社情報を更新する
29
- *
30
- */
31
- export declare const updateCompanyPatch: () => string;
32
- /**
33
- * idを指定して複数の会社情報を取得する
34
- * @param {string} company_ids a,b,c
35
- */
36
- export declare const findCompaniesByIds: ({ company_ids, }: {
37
- company_ids?: string | undefined;
38
- }) => string;
39
- /**
40
- * ユーザーを作成する
41
- *
42
- */
43
- export declare const createUser: () => string;
44
- /**
45
- * ユーザーを取得する
46
- *
47
- */
48
- export declare const findUserById: ({ id }: {
49
- id: string;
50
- }) => string;
51
- /**
52
- * ユーザーを更新する
53
- *
54
- */
55
- export declare const updateUser: ({ id }: {
56
- id: string;
57
- }) => string;
58
- /**
59
- * ユーザーを更新する
60
- *
61
- */
62
- export declare const updateUserPatch: ({ id }: {
63
- id: string;
64
- }) => string;
65
- /**
66
- * ユーザーを強制的に有効化する
67
- *
68
- */
69
- export declare const activateUserByAdmin: ({ id }: {
70
- id: string;
71
- }) => string;
72
- /**
73
- * ユーザーを無効化する
74
- *
75
- */
76
- export declare const deactivateUser: ({ id }: {
77
- id: string;
78
- }) => string;
79
- /**
80
- * パスワードリセットのメールを送信する
81
- *
82
- */
83
- export declare const sendResetPasswordEmail: () => string;
84
- /**
85
- * パスワードをリセットする
86
- *
87
- */
88
- export declare const resetPassword: () => string;
89
- /**
90
- * アクティベーションメールを送信する
91
- *
92
- */
93
- export declare const sendActivationEmail: () => string;
94
- /**
95
- * ユーザーを有効化する
96
- *
97
- */
98
- export declare const activateUser: () => string;
99
- /**
100
- * 認可スコープを設定する
101
- *
102
- */
103
- export declare const setAuthorityScope: () => string;
104
- /**
105
- * メールを指定してユーザーを取得する
106
- *
107
- */
108
- export declare const findUserByEmail: () => string;
109
- /**
110
- * ユーザーの権限を更新する
111
- *
112
- */
113
- export declare const updateAuthority: ({ id }: {
114
- id: string;
115
- }) => string;
116
- /**
117
- * companyIdからユーザーを取得する
118
- * @param {string} statuses BeforeVerification,Active,Deactivated
119
- */
120
- export declare const findUsersByCompanyId: ({ statuses }: {
121
- statuses?: string | undefined;
122
- }) => string;
123
- /**
124
- * ログインする
125
- *
126
- */
127
- export declare const login: () => string;
128
- /**
129
- * ログインする
130
- *
131
- */
132
- export declare const loginWithSlash: () => string;
133
- /**
134
- * JWKを取得する
135
- *
136
- */
137
- export declare const getJwks: () => string;
138
- /**
139
- * 公開鍵を取得する
140
- *
141
- */
142
- export declare const getPublicKeys: () => string;
143
- /**
144
- * MFAのコードを発行する
145
- *
146
- */
147
- export declare const publishMFACode: () => string;
148
- /**
149
- * MFAを使ってログインする
150
- *
151
- */
152
- export declare const loginWithMFA: () => string;
153
- /**
154
- * usersに存在しないアカウントのトークンを作成する(deprecated)
155
- *
156
- */
157
- export declare const generateToken: () => string;
158
- /**
159
- * usersに存在しないアカウントのトークンを作成する
160
- *
161
- */
162
- export declare const generateUserToken: () => string;
163
- export declare const m2mUsers_v1: {
164
- healthCheck: () => string;
165
- createCompany: () => string;
166
- getCompany: ({ id }: {
167
- id: string;
168
- }) => string;
169
- updateCompany: () => string;
170
- updateCompanyPatch: () => string;
171
- findCompaniesByIds: ({ company_ids, }: {
172
- company_ids?: string | undefined;
173
- }) => string;
174
- createUser: () => string;
175
- findUserById: ({ id }: {
176
- id: string;
177
- }) => string;
178
- updateUser: ({ id }: {
179
- id: string;
180
- }) => string;
181
- updateUserPatch: ({ id }: {
182
- id: string;
183
- }) => string;
184
- activateUserByAdmin: ({ id }: {
185
- id: string;
186
- }) => string;
187
- deactivateUser: ({ id }: {
188
- id: string;
189
- }) => string;
190
- sendResetPasswordEmail: () => string;
191
- resetPassword: () => string;
192
- sendActivationEmail: () => string;
193
- activateUser: () => string;
194
- setAuthorityScope: () => string;
195
- findUserByEmail: () => string;
196
- updateAuthority: ({ id }: {
197
- id: string;
198
- }) => string;
199
- findUsersByCompanyId: ({ statuses }: {
200
- statuses?: string | undefined;
201
- }) => string;
202
- login: () => string;
203
- loginWithSlash: () => string;
204
- getJwks: () => string;
205
- getPublicKeys: () => string;
206
- publishMFACode: () => string;
207
- loginWithMFA: () => string;
208
- generateToken: () => string;
209
- generateUserToken: () => string;
210
- };