@rollershop/capacitor-emarsys-sdk 1.2.1 → 1.3.0-beta.1

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.7.0`](https://github.com/emartech/ios-emarsys-sdk/releases/tag/3.7.0)
72
+ - iOS: [`3.7.3`](https://github.com/emartech/ios-emarsys-sdk/releases/tag/3.7.3)
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)
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '14.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'EmarsysSDK', '3.7.0'
16
+ s.dependency 'EmarsysSDK', '3.7.3'
17
17
  s.swift_version = '5.1'
18
18
  end
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
- declare type ConsoleLogLevels = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'basic';
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 declare type InboxMessageAction = InboxMessageAppAction | InboxMessageCustomAction | InboxMessageExternalUrlAction;
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 declare type RecommendedProductLogic = RecommendedProductSearchLogic | RecommendedProductCartLogic | RecommendedProductRelatedLogic | RecommendedProductCategoryLogic | RecommendedProductAlsoBoughtLogic | RecommendedProductPopularLogic | RecommendedProductPersonalLogic | RecommendedProductHomeLogic;
149
- declare type RecommendedProductFilterType = 'include' | 'exclude';
150
- declare type RecommendedProductValueFilterComparatorType = 'isValue' | 'hasValue';
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
- declare type RecommendedProductArrayFilterComparatorType = 'inValues' | 'overlapsValues';
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 declare type RecommendedProductFilter = RecommendedProductValueFilter | RecommendedProductArrayFilter;
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,8 +1,7 @@
1
1
  {
2
2
  "name": "@rollershop/capacitor-emarsys-sdk",
3
- "version": "1.2.1",
3
+ "version": "1.3.0-beta.1",
4
4
  "description": "Capacitor Plugin that wraps the Emarsys SDK",
5
- "type": "module",
6
5
  "main": "dist/plugin.cjs.js",
7
6
  "module": "dist/esm/index.js",
8
7
  "types": "dist/esm/index.d.ts",
@@ -41,25 +40,25 @@
41
40
  "lint": "pnpm eslint && pnpm prettier -- --check && pnpm swiftlint -- lint",
42
41
  "fmt": "pnpm eslint -- --fix && pnpm prettier -- --write && pnpm swiftlint -- autocorrect --format",
43
42
  "eslint": "eslint . --ext ts",
44
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
43
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
45
44
  "swiftlint": "node-swiftlint",
46
45
  "docgen": "docgen --api EmarsysPlugin --output-readme README.md --output-json dist/docs.json && doctoc README.md --github --title '**Table of Content**' --maxlevel 3",
47
- "build": "pnpm clean && pnpm docgen && tsc && rollup -c rollup.config.js",
48
- "build:without:docgen": "pnpm clean && tsc && rollup -c rollup.config.js",
46
+ "build": "pnpm clean && pnpm docgen && tsc && rollup -c rollup.config.mjs",
47
+ "build:without:docgen": "pnpm clean && tsc && rollup -c rollup.config.mjs",
49
48
  "clean": "rimraf ./dist",
50
49
  "watch": "tsc --watch",
51
50
  "prepublishOnly": "pnpm build"
52
51
  },
53
52
  "devDependencies": {
54
- "@capacitor/android": "^6.0.0",
55
- "@capacitor/cli": "^6.0.0",
56
- "@capacitor/core": "^6.0.0",
57
- "@capacitor/docgen": "0.2.1",
58
- "@capacitor/ios": "^6.0.0",
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",
59
58
  "@commitlint/config-conventional": "17.7.0",
60
59
  "@ionic/eslint-config": "^0.4.0",
61
60
  "@ionic/prettier-config": "4.0.0",
62
- "@ionic/swiftlint-config": "1.1.2",
61
+ "@ionic/swiftlint-config": "^2.0.0",
63
62
  "@saithodev/semantic-release-backmerge": "3.2.0",
64
63
  "@semantic-release/changelog": "6.0.3",
65
64
  "@semantic-release/exec": "6.0.3",
@@ -70,16 +69,16 @@
70
69
  "doctoc": "2.2.1",
71
70
  "eslint": "^8.57.0",
72
71
  "npm-check": "6.0.1",
73
- "prettier": "3.0.2",
74
- "prettier-plugin-java": "2.2.0",
75
- "rimraf": "5.0.1",
76
- "rollup": "3.28.0",
72
+ "prettier": "3.4.2",
73
+ "prettier-plugin-java": "2.6.7",
74
+ "rimraf": "6.0.1",
75
+ "rollup": "4.34.6",
77
76
  "semantic-release": "21.0.7",
78
- "swiftlint": "1.0.1",
79
- "typescript": "4.4.4"
77
+ "swiftlint": "^2.0.0",
78
+ "typescript": "5.7.3"
80
79
  },
81
80
  "peerDependencies": {
82
- "@capacitor/core": "^6.0.0"
81
+ "@capacitor/core": ">=7.0.0"
83
82
  },
84
83
  "prettier": "@ionic/prettier-config",
85
84
  "swiftlint": "@ionic/swiftlint-config",