glitch-javascript-sdk 2.7.4 → 2.7.6
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 +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/AccessKeys.d.ts +7 -0
- package/dist/esm/api/Campaigns.d.ts +3 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/AccessKeys.ts +10 -0
- package/src/api/Campaigns.ts +4 -0
- package/src/routes/AccessKeysRoute.ts +1 -0
- package/src/routes/CampaignsRoute.ts +1 -1
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 {
|
|
@@ -5000,6 +5007,9 @@ declare class Campaigns {
|
|
|
5000
5007
|
query?: string;
|
|
5001
5008
|
pages?: number;
|
|
5002
5009
|
}): AxiosPromise<Response<T>>;
|
|
5010
|
+
static sendOnboarding<T>(campaign_id: string, user_id: string, data?: {
|
|
5011
|
+
template_id?: string;
|
|
5012
|
+
}): AxiosPromise<Response<T>>;
|
|
5003
5013
|
}
|
|
5004
5014
|
|
|
5005
5015
|
declare class Subscriptions {
|
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;
|
package/src/api/Campaigns.ts
CHANGED
|
@@ -1060,6 +1060,10 @@ class Campaigns {
|
|
|
1060
1060
|
return Requests.processRoute(CampaignsRoute.routes.sourcingFindAndSaveFanslyCreators, data, { campaign_id });
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
+
public static sendOnboarding<T>(campaign_id: string, user_id: string, data?: { template_id?: string }): AxiosPromise<Response<T>> {
|
|
1064
|
+
return Requests.processRoute(CampaignsRoute.routes.sendOnboarding, data, { campaign_id, user_id });
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1063
1067
|
}
|
|
1064
1068
|
|
|
1065
1069
|
export default Campaigns;
|
|
@@ -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
|
}
|
|
@@ -102,7 +102,7 @@ class CampaignsRoute {
|
|
|
102
102
|
url: '/campaigns/{campaign_id}/sourcing/find-save-fansly-creators',
|
|
103
103
|
method: HTTP_METHODS.POST
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
sendOnboarding: { url: '/campaigns/{campaign_id}/influencers/{user_id}/onboarding', method: HTTP_METHODS.POST },
|
|
106
106
|
|
|
107
107
|
};
|
|
108
108
|
|