@rollershop/capacitor-emarsys-sdk 1.2.2-beta.1 → 1.3.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/README.md
CHANGED
|
@@ -69,7 +69,7 @@ This Plugin is used as a wrapper for the [Emarsys SDK](https://help.emarsys.com/
|
|
|
69
69
|
|
|
70
70
|
## SDK Versions
|
|
71
71
|
|
|
72
|
-
- iOS: [`3.
|
|
72
|
+
- iOS: [`3.8.0`](https://github.com/emartech/ios-emarsys-sdk/releases/tag/3.8.0)
|
|
73
73
|
- Android: Not implemented
|
|
74
74
|
|
|
75
75
|
## Install
|
|
@@ -250,8 +250,8 @@ In order to track email link clicks that open the application directly with the
|
|
|
250
250
|
* [`getHardwareId()`](#gethardwareid)
|
|
251
251
|
* [`getLanguageCode()`](#getlanguagecode)
|
|
252
252
|
* [`getSdkVersion()`](#getsdkversion)
|
|
253
|
-
* [`addListener('pushMessageEvent', ...)`](#addlistenerpushmessageevent)
|
|
254
|
-
* [`addListener('silentPushMessageInformation', ...)`](#addlistenersilentpushmessageinformation)
|
|
253
|
+
* [`addListener('pushMessageEvent', ...)`](#addlistenerpushmessageevent-)
|
|
254
|
+
* [`addListener('silentPushMessageInformation', ...)`](#addlistenersilentpushmessageinformation-)
|
|
255
255
|
* [`removeAllListeners()`](#removealllisteners)
|
|
256
256
|
* [Interfaces](#interfaces)
|
|
257
257
|
* [Type Aliases](#type-aliases)
|
package/dist/docs.json
CHANGED
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
"PushMessageEvent",
|
|
624
624
|
"PluginListenerHandle"
|
|
625
625
|
],
|
|
626
|
-
"slug": "addlistenerpushmessageevent"
|
|
626
|
+
"slug": "addlistenerpushmessageevent-"
|
|
627
627
|
},
|
|
628
628
|
{
|
|
629
629
|
"name": "addListener",
|
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
"SilentPushMessageInformation",
|
|
653
653
|
"PluginListenerHandle"
|
|
654
654
|
],
|
|
655
|
-
"slug": "addlistenersilentpushmessageinformation"
|
|
655
|
+
"slug": "addlistenersilentpushmessageinformation-"
|
|
656
656
|
},
|
|
657
657
|
{
|
|
658
658
|
"name": "removeAllListeners",
|
|
@@ -4,7 +4,7 @@ import type { ApplicationCode, MerchantId } from './interfaces/config';
|
|
|
4
4
|
import type { InboxTag } from './interfaces/inbox';
|
|
5
5
|
import type { CardItems, CustomEvent, Product, Purchase, RecommendedProductOptions, RecommendedProducts } from './interfaces/predict';
|
|
6
6
|
import type { PushMessageEvent, SilentPushMessageInformation, TokenResult } from './interfaces/push';
|
|
7
|
-
|
|
7
|
+
type ConsoleLogLevels = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'basic';
|
|
8
8
|
declare module '@capacitor/cli' {
|
|
9
9
|
interface PluginsConfig {
|
|
10
10
|
/**
|
|
@@ -42,7 +42,7 @@ export interface InboxMessageExternalUrlAction extends InboxMessageBaseAction {
|
|
|
42
42
|
*/
|
|
43
43
|
url: string;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type InboxMessageAction = InboxMessageAppAction | InboxMessageCustomAction | InboxMessageExternalUrlAction;
|
|
46
46
|
export interface InboxMessage {
|
|
47
47
|
/**
|
|
48
48
|
* @since 1.0.0
|
|
@@ -145,9 +145,9 @@ interface RecommendedProductHomeLogic {
|
|
|
145
145
|
*/
|
|
146
146
|
value?: string[];
|
|
147
147
|
}
|
|
148
|
-
export
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
export type RecommendedProductLogic = RecommendedProductSearchLogic | RecommendedProductCartLogic | RecommendedProductRelatedLogic | RecommendedProductCategoryLogic | RecommendedProductAlsoBoughtLogic | RecommendedProductPopularLogic | RecommendedProductPersonalLogic | RecommendedProductHomeLogic;
|
|
149
|
+
type RecommendedProductFilterType = 'include' | 'exclude';
|
|
150
|
+
type RecommendedProductValueFilterComparatorType = 'isValue' | 'hasValue';
|
|
151
151
|
interface RecommendedProductValueFilter {
|
|
152
152
|
/**
|
|
153
153
|
* @since 1.0.0
|
|
@@ -170,7 +170,7 @@ interface RecommendedProductValueFilter {
|
|
|
170
170
|
*/
|
|
171
171
|
value: string;
|
|
172
172
|
}
|
|
173
|
-
|
|
173
|
+
type RecommendedProductArrayFilterComparatorType = 'inValues' | 'overlapsValues';
|
|
174
174
|
interface RecommendedProductArrayFilter {
|
|
175
175
|
/**
|
|
176
176
|
* @since 1.0.0
|
|
@@ -193,7 +193,7 @@ interface RecommendedProductArrayFilter {
|
|
|
193
193
|
*/
|
|
194
194
|
value: string[];
|
|
195
195
|
}
|
|
196
|
-
export
|
|
196
|
+
export type RecommendedProductFilter = RecommendedProductValueFilter | RecommendedProductArrayFilter;
|
|
197
197
|
export interface RecommendedProductOptions {
|
|
198
198
|
/**
|
|
199
199
|
* The logic that should be used.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollershop/capacitor-emarsys-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Capacitor Plugin that wraps the Emarsys SDK",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"lint": "pnpm eslint && pnpm prettier -- --check && pnpm swiftlint -- lint",
|
|
41
41
|
"fmt": "pnpm eslint -- --fix && pnpm prettier -- --write && pnpm swiftlint -- autocorrect --format",
|
|
42
42
|
"eslint": "eslint . --ext ts",
|
|
43
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
43
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
44
44
|
"swiftlint": "node-swiftlint",
|
|
45
45
|
"docgen": "docgen --api EmarsysPlugin --output-readme README.md --output-json dist/docs.json && doctoc README.md --github --title '**Table of Content**' --maxlevel 3",
|
|
46
46
|
"build": "pnpm clean && pnpm docgen && tsc && rollup -c rollup.config.mjs",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"prepublishOnly": "pnpm build"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@capacitor/android": "^
|
|
54
|
-
"@capacitor/cli": "^
|
|
55
|
-
"@capacitor/core": "^
|
|
56
|
-
"@capacitor/docgen": "0.
|
|
57
|
-
"@capacitor/ios": "^
|
|
53
|
+
"@capacitor/android": "^7.0.0",
|
|
54
|
+
"@capacitor/cli": "^7.0.0",
|
|
55
|
+
"@capacitor/core": "^7.0.0",
|
|
56
|
+
"@capacitor/docgen": "^0.3.0",
|
|
57
|
+
"@capacitor/ios": "^7.0.0",
|
|
58
58
|
"@commitlint/config-conventional": "17.7.0",
|
|
59
59
|
"@ionic/eslint-config": "^0.4.0",
|
|
60
60
|
"@ionic/prettier-config": "4.0.0",
|
|
61
|
-
"@ionic/swiftlint-config": "
|
|
61
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
62
62
|
"@saithodev/semantic-release-backmerge": "3.2.0",
|
|
63
63
|
"@semantic-release/changelog": "6.0.3",
|
|
64
64
|
"@semantic-release/exec": "6.0.3",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
"doctoc": "2.2.1",
|
|
70
70
|
"eslint": "^8.57.0",
|
|
71
71
|
"npm-check": "6.0.1",
|
|
72
|
-
"prettier": "3.
|
|
73
|
-
"prettier-plugin-java": "2.
|
|
74
|
-
"rimraf": "
|
|
75
|
-
"rollup": "
|
|
72
|
+
"prettier": "3.4.2",
|
|
73
|
+
"prettier-plugin-java": "2.6.7",
|
|
74
|
+
"rimraf": "6.0.1",
|
|
75
|
+
"rollup": "4.34.6",
|
|
76
76
|
"semantic-release": "21.0.7",
|
|
77
|
-
"swiftlint": "
|
|
78
|
-
"typescript": "
|
|
77
|
+
"swiftlint": "^2.0.0",
|
|
78
|
+
"typescript": "5.7.3"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@capacitor/core": "
|
|
81
|
+
"@capacitor/core": ">=7.0.0"
|
|
82
82
|
},
|
|
83
83
|
"prettier": "@ionic/prettier-config",
|
|
84
84
|
"swiftlint": "@ionic/swiftlint-config",
|