Skip to content

Commit 21e3e37

Browse files
Anush-ShandpwilknissdanielsogldarshanclevertapSuryaClevertap
authored
feat(clevertap): support clevertap-cordova 3.3.0 (#4883)
* feat(clevertap): add CleverTap plugin * style(clevertap): cleanup stray lint error * refactor * feat(clevertap): update for latest CleverTap Cordova plugin * chore: Update Repo from Ionic Native Repo * fix: Code Changes for parity SDK-155 * fix: Indentation fixes for SDK-155 * fix: Code Repo fix while updating fork branch * fix: Remove unnecessary adder .scripts Folder * fix: Remove unwanted added folder .circleci * fix: Remove unwanted added File .npmrc * fix: Revert .Github Folder Changes to as per Ionic-Native master * fix: Update changes as per ionic-native master * fix: Code Repo fix while updating fork branch fix: Remove unnecessary adder .scripts Folder fix: Remove unwanted added folder .circleci fix: Remove unwanted added File .npmrc fix: Revert .Github Folder Changes to as per Ionic-Native master fix: Update changes as per ionic-native master * fix(CleverTap): Fix for missing methods issue #3491 * refactor(profile): remove setProfile methods for fb and google * refactor(dynamic variables): remove Product A/B Testing (Dynamic Variables) code * fix(product config): add key param to product config getters * feat(identity): add a new public method getCleverTapID and deprecate existing CleverTapID methods * feat(profile): add public methods to increment/decrement values set via User properties * feat(profile): add public methods to increment/decrement values set via User properties * feat(inapp): add public methods for suspending/discarding & resuming InApp Notifications * feat(inbox): add new api for iOS to delete bulk inbox messages for given message ids * refactor(xiaomi-push): add region as an extra mandatory parameter to setPushXiaomiToken * Update index.ts to support cordova 2.7.0 * Update index.ts * feat(clevertap): support clevertap-cordova 2.7.2 * feat(clevertap): support clevertap-cordova 2.7.2 * feat(clevertap): support clevertap-cordova 2.7.2 * task(SDK-3757) - Add support for cordova v3.0.0 - Adds 2 new APIs = clearInAppResources() and fetchInApps() * task(SDK-3757) - Add support for cordova v3.2.0 - Removes xiaomi related APIs * task(SDK-4148) - Add support for cordova v3.3.0 - Custom Templates - File Variables --------- Co-authored-by: Peter Wilkniss <[email protected]> Co-authored-by: Daniel Sogl <[email protected]> Co-authored-by: Darshan Pania <[email protected]> Co-authored-by: Surya <[email protected]> Co-authored-by: SuryaClevertap <[email protected]> Co-authored-by: Piyush Kukadiya <[email protected]> Co-authored-by: piyush-kukadiya <[email protected]> Co-authored-by: AishwaryaNanna <[email protected]>
1 parent eca218a commit 21e3e37

File tree

1 file changed

+192
-0
lines changed
  • src/@awesome-cordova-plugins/plugins/clevertap

1 file changed

+192
-0
lines changed

src/@awesome-cordova-plugins/plugins/clevertap/index.ts

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,17 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
662662
return;
663663
}
664664

665+
/**
666+
* Deletes all types of files which are preloaded for SDK features like custom in-app templates, app functions and variables etc.
667+
*
668+
* @param expiredOnly {boolean} - to clear only assets which will not be needed further for inapps
669+
* @returns {Promise<any>}
670+
*/
671+
@Cordova()
672+
clearFileResources(expiredOnly: boolean): Promise<any> {
673+
return;
674+
}
675+
665676
/**
666677
* Fetches In Apps from server.
667678
*
@@ -1132,6 +1143,16 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
11321143
return;
11331144
}
11341145

1146+
/**
1147+
* Create File Variable
1148+
* @returns {Promise<any>}
1149+
* @param {string} variable The String specifying the name of file varible to be created.
1150+
*/
1151+
@Cordova()
1152+
defineFileVariable(variable: string): Promise<any> {
1153+
return;
1154+
}
1155+
11351156
/**
11361157
* Get a variable or a group for the specified name.
11371158
* @param {string} name - name.
@@ -1170,6 +1191,177 @@ export class CleverTap extends AwesomeCordovaNativePlugin {
11701191
return;
11711192
}
11721193

1194+
1195+
/**
1196+
* Called when the value of the file variable is downloaded and ready
1197+
* @param {name} string the name of the variable
1198+
* @returns {Promise<any>}
1199+
*/
1200+
@Cordova()
1201+
onFileValueChanged(name: string): Promise<any> {
1202+
return;
1203+
}
1204+
1205+
/**
1206+
* Adds a callback to be invoked when variables are initialised with server values. Will be called only once on app start, or when added if server values are already received
1207+
* @returns {Promise<any>}
1208+
*/
1209+
@Cordova()
1210+
onOneTimeVariablesChanged(): Promise<any> {
1211+
return;
1212+
}
1213+
1214+
/**
1215+
* Adds a callback to be invoked when no files need to be downloaded or all downloads have been completed. It is called each time new values are fetched and downloads are completed.
1216+
* @returns {Promise<any>}
1217+
*/
1218+
@Cordova()
1219+
onVariablesChangedAndNoDownloadsPending(): Promise<any> {
1220+
return;
1221+
}
1222+
1223+
/**
1224+
* Adds a callback to be invoked only once for when new values are fetched and downloaded
1225+
* @returns {Promise<any>}
1226+
*/
1227+
@Cordova()
1228+
onceVariablesChangedAndNoDownloadsPending(): Promise<any> {
1229+
return;
1230+
}
1231+
1232+
1233+
/****************************
1234+
* Custom Templates methods
1235+
****************************/
1236+
1237+
/**
1238+
*
1239+
* Uploads Custom in-app templates and app functions to the server. Requires Development/Debug build/configuration.
1240+
* @returns {Promise<any>}
1241+
*/
1242+
@Cordova()
1243+
syncCustomTemplates(): Promise<any> {
1244+
return;
1245+
}
1246+
1247+
/**
1248+
* Uploads Custom in-app templates and app functions to the server.
1249+
* @param {boolean} isProduction Provide `true` if templates must be sync in Productuon build/configuration.
1250+
* @returns {Promise<any>}
1251+
*
1252+
*
1253+
* Note: This is NO-OP in Android
1254+
*/
1255+
@Cordova()
1256+
syncCustomTemplatesInProd(isProduction: boolean): Promise<any> {
1257+
return;
1258+
}
1259+
1260+
/**
1261+
* Notify the SDK that an active custom template is dismissed. The active custom template is considered to be
1262+
* visible to the user until this method is called. Since the SDK can show only one InApp message at a time, all
1263+
* other messages will be queued until the current one is dismissed.
1264+
* @param {string} templateName The name of the active template
1265+
* @returns {Promise<any>}
1266+
*/
1267+
@Cordova()
1268+
customTemplateSetDismissed(templateName: string): Promise<any> {
1269+
return;
1270+
}
1271+
1272+
1273+
/**
1274+
* Notify the SDK that an active custom template is presented to the user.
1275+
* @param {string} templateName The name of the active template
1276+
* @returns {Promise<any>}
1277+
*/
1278+
@Cordova()
1279+
customTemplateSetPresented(templateName: string): Promise<any> {
1280+
return;
1281+
}
1282+
1283+
/**
1284+
* Trigger a custom template action argument by name.
1285+
*
1286+
* @param {string} templateName The name of an active template for which the action is defined
1287+
* @param {string} argName The action argument na
1288+
* @returns {Promise<any>}
1289+
*/
1290+
@Cordova()
1291+
customTemplateRunAction(templateName: string, argName: string): Promise<any> {
1292+
return;
1293+
}
1294+
1295+
/**
1296+
* Retrieve a string argument by name.
1297+
*
1298+
* @param {string} templateName The name of an active template for which the argument is defined
1299+
* @param {string} argName The action argument name
1300+
* @returns {Promise<any>}
1301+
*/
1302+
@Cordova()
1303+
customTemplateGetStringArg(templateName: string, argName: string): Promise<any> {
1304+
return;
1305+
}
1306+
1307+
/**
1308+
* Retrieve a number argument by name.
1309+
*
1310+
* @param {string} templateName The name of an active template for which the argument is defined
1311+
* @param {string} argName The action argument name
1312+
* @returns {Promise<any>}
1313+
*/
1314+
@Cordova()
1315+
customTemplateGetNumberArg(templateName: string, argName: string): Promise<any> {
1316+
return;
1317+
}
1318+
1319+
/**
1320+
* Retrieve a boolean argument by name.
1321+
*
1322+
* @param {string} templateName The name of an active template for which the argument is defined
1323+
* @param {string} argName The action argument name
1324+
* @returns {Promise<any>}
1325+
*/
1326+
@Cordova()
1327+
customTemplateGetBooleanArg(templateName: string, argName: string): Promise<any> {
1328+
return;
1329+
}
1330+
1331+
/**
1332+
* Retrieve a file argument by name.
1333+
*
1334+
* @param {string} templateName The name of an active template for which the argument is defined
1335+
* @param {string} argName The action argument name
1336+
* @returns {Promise<any>}
1337+
*/
1338+
@Cordova()
1339+
customTemplateGetFileArg(templateName: string, argName: string): Promise<any> {
1340+
return;
1341+
}
1342+
1343+
/**
1344+
* Retrieve an object argument by name.
1345+
*
1346+
* @param {string} templateName The name of an active template for which the argument is defined
1347+
* @param {string} argName The action argument name
1348+
* @returns {Promise<any>}
1349+
*/
1350+
@Cordova()
1351+
customTemplateGetObjectArg(templateName: string, argName: string): Promise<any> {
1352+
return;
1353+
}
1354+
1355+
/**
1356+
* Get a string representation of an active's template context with information about all arguments.
1357+
* @param {string} templateName The name of an active template
1358+
* @returns {Promise<any>}
1359+
*/
1360+
@Cordova()
1361+
customTemplateContextToString(templateName: string): Promise<any> {
1362+
return;
1363+
}
1364+
11731365
/****************************
11741366
* Android 13 Push Primer
11751367
****************************/

0 commit comments

Comments
 (0)