glitch-javascript-sdk 2.7.4 → 2.7.5
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/dist/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/AccessKeys.d.ts +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/api/AccessKeys.ts +10 -0
- package/src/routes/AccessKeysRoute.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -164,6 +164,13 @@ declare class AccessKeys {
|
|
|
164
164
|
* @returns promise
|
|
165
165
|
*/
|
|
166
166
|
static delete<T>(key_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
167
|
+
/**
|
|
168
|
+
* Emails the assigned key to the influencer.
|
|
169
|
+
*
|
|
170
|
+
* @param key_id The UUID of the access key.
|
|
171
|
+
* @returns promise
|
|
172
|
+
*/
|
|
173
|
+
static sendEmail<T>(key_id: string): AxiosPromise<Response<T>>;
|
|
167
174
|
}
|
|
168
175
|
|
|
169
176
|
declare class Competitions {
|
package/package.json
CHANGED
package/src/api/AccessKeys.ts
CHANGED
|
@@ -44,6 +44,16 @@ class AccessKeys {
|
|
|
44
44
|
public static delete<T>(key_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
45
45
|
return Requests.processRoute(AccessKeysRoute.routes.delete, {}, { key_id }, params);
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Emails the assigned key to the influencer.
|
|
50
|
+
*
|
|
51
|
+
* @param key_id The UUID of the access key.
|
|
52
|
+
* @returns promise
|
|
53
|
+
*/
|
|
54
|
+
public static sendEmail<T>(key_id: string): AxiosPromise<Response<T>> {
|
|
55
|
+
return Requests.processRoute(AccessKeysRoute.routes.sendEmail, {}, { key_id });
|
|
56
|
+
}
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
export default AccessKeys;
|
|
@@ -7,6 +7,7 @@ class AccessKeysRoute {
|
|
|
7
7
|
list: { url: '/titles/{title_id}/keys', method: HTTP_METHODS.GET },
|
|
8
8
|
store: { url: '/titles/{title_id}/keys', method: HTTP_METHODS.POST },
|
|
9
9
|
delete: { url: '/keys/{key_id}', method: HTTP_METHODS.DELETE },
|
|
10
|
+
sendEmail: { url: '/keys/{key_id}/send-email', method: HTTP_METHODS.POST },
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
}
|