@adobe/react-native-aepmessaging 6.0.3 → 6.0.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.
Files changed (49) hide show
  1. package/RCTAEPMessaging.podspec +2 -22
  2. package/README.md +51 -46
  3. package/android/src/main/java/com/adobe/marketing/mobile/reactnative/messaging/RCTAEPMessagingModule.java +13 -7
  4. package/android/src/main/java/com/adobe/marketing/mobile/reactnative/messaging/RCTAEPMessagingUtil.java +207 -202
  5. package/dist/Messaging.js +1 -1
  6. package/dist/index.d.ts +7 -1
  7. package/dist/index.js +3 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/models/ContentCard.d.ts +46 -0
  10. package/dist/models/ContentCard.js +14 -0
  11. package/dist/models/ContentCard.js.map +1 -0
  12. package/dist/models/HTMLProposition.d.ts +8 -0
  13. package/dist/models/HTMLProposition.js +14 -0
  14. package/dist/models/HTMLProposition.js.map +1 -0
  15. package/dist/models/InAppMessage.d.ts +15 -0
  16. package/dist/models/InAppMessage.js +14 -0
  17. package/dist/models/InAppMessage.js.map +1 -0
  18. package/dist/models/JSONPropositionItem.d.ts +8 -0
  19. package/dist/models/JSONPropositionItem.js +14 -0
  20. package/dist/models/JSONPropositionItem.js.map +1 -0
  21. package/dist/models/Message.js.map +1 -1
  22. package/dist/models/MessagingEdgeEventType.js +0 -1
  23. package/dist/models/MessagingEdgeEventType.js.map +1 -1
  24. package/dist/models/MessagingProposition.d.ts +5 -5
  25. package/dist/models/MessagingProposition.js +2 -12
  26. package/dist/models/MessagingProposition.js.map +1 -1
  27. package/dist/models/MessagingPropositionItem.d.ts +5 -8
  28. package/dist/models/PersonalizationSchema.d.ts +9 -0
  29. package/dist/models/PersonalizationSchema.js +25 -0
  30. package/dist/models/PersonalizationSchema.js.map +1 -0
  31. package/dist/models/ScopeDetails.d.ts +13 -0
  32. package/dist/models/ScopeDetails.js +14 -0
  33. package/dist/models/ScopeDetails.js.map +1 -0
  34. package/ios/src/RCTAEPMessaging.swift +7 -3
  35. package/ios/src/RCTAEPMessagingDataBridge.swift +3 -20
  36. package/package.json +2 -2
  37. package/src/Messaging.ts +1 -1
  38. package/src/index.ts +14 -1
  39. package/src/models/ContentCard.ts +47 -0
  40. package/src/models/HTMLProposition.ts +21 -0
  41. package/src/models/InAppMessage.ts +28 -0
  42. package/src/models/JSONPropositionItem.ts +21 -0
  43. package/src/models/Message.ts +1 -1
  44. package/src/models/MessagingDelegate.ts +1 -1
  45. package/src/models/MessagingEdgeEventType.ts +8 -8
  46. package/src/models/MessagingProposition.ts +8 -19
  47. package/src/models/MessagingPropositionItem.ts +10 -8
  48. package/src/models/PersonalizationSchema.ts +21 -0
  49. package/src/models/ScopeDetails.ts +27 -0
@@ -10,205 +10,210 @@
10
10
  language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- package com.adobe.marketing.mobile.reactnative.messaging;
14
-
15
- import android.app.Activity;
16
- import com.adobe.marketing.mobile.Message;
17
- import com.adobe.marketing.mobile.MessagingEdgeEventType;
18
- import com.adobe.marketing.mobile.messaging.Proposition;
19
- import com.adobe.marketing.mobile.messaging.PropositionItem;
20
- import com.adobe.marketing.mobile.messaging.Surface;
21
- import com.facebook.react.bridge.Arguments;
22
- import com.facebook.react.bridge.ReadableArray;
23
- import com.facebook.react.bridge.ReadableMap;
24
- import com.facebook.react.bridge.WritableArray;
25
- import com.facebook.react.bridge.WritableMap;
26
- import com.facebook.react.bridge.WritableNativeArray;
27
- import com.facebook.react.bridge.WritableNativeMap;
28
- import java.util.ArrayList;
29
- import java.util.Collection;
30
- import java.util.HashMap;
31
- import java.util.Iterator;
32
- import java.util.List;
33
- import java.util.ListIterator;
34
- import java.util.Map;
35
-
36
- /**
37
- * Utility class for converting data models to {@link
38
- * com.facebook.react.bridge.WritableMap}
39
- */
40
-
41
- class RCTAEPMessagingUtil {
42
-
43
- private static final String TAG = "RCTAEPMessaging";
44
-
45
- private RCTAEPMessagingUtil() {}
46
-
47
- // From React Native
48
- static MessagingEdgeEventType getEventType(final int eventType) {
49
- switch (eventType) {
50
- case 0:
51
- return MessagingEdgeEventType.DISMISS;
52
- case 1:
53
- return MessagingEdgeEventType.INTERACT;
54
- case 2:
55
- return MessagingEdgeEventType.TRIGGER;
56
- case 3:
57
- return MessagingEdgeEventType.DISPLAY;
58
- case 4:
59
- return MessagingEdgeEventType.PUSH_APPLICATION_OPENED;
60
- case 5:
61
- return MessagingEdgeEventType.PUSH_CUSTOM_ACTION;
62
- default:
63
- return null;
64
- }
65
- }
66
-
67
- static List<Surface> convertSurfaces(final ReadableArray rawSurfaces) {
68
- List<Surface> surfaces = new ArrayList<>();
69
-
70
- for (int i = 0; i < rawSurfaces.size(); i++) {
71
- surfaces.add(new Surface(rawSurfaces.getString(i)));
72
- }
73
-
74
- return surfaces;
75
- }
76
-
77
- // To React Native
78
- static WritableMap toWritableMap(Map<String, Object> map) {
79
- if (map == null) {
80
- return null;
81
- }
82
-
83
- WritableMap writableMap = Arguments.createMap();
84
- Iterator iterator = map.entrySet().iterator();
85
-
86
- while (iterator.hasNext()) {
87
- Map.Entry pair = (Map.Entry)iterator.next();
88
- Object value = pair.getValue();
89
-
90
- if (value == null) {
91
- writableMap.putNull((String)pair.getKey());
92
- } else if (value instanceof Boolean) {
93
- writableMap.putBoolean((String)pair.getKey(), (Boolean)value);
94
- } else if (value instanceof Double) {
95
- writableMap.putDouble((String)pair.getKey(), (Double)value);
96
- } else if (value instanceof Integer) {
97
- writableMap.putInt((String)pair.getKey(), (Integer)value);
98
- } else if (value instanceof String) {
99
- writableMap.putString((String)pair.getKey(), (String)value);
100
- } else if (value instanceof Map) {
101
- writableMap.putMap((String)pair.getKey(),
102
- toWritableMap((Map<String, Object>)value));
103
- } else if (value instanceof List) {
104
- writableMap.putArray((String)pair.getKey(),
105
- toWritableArray((List)value));
106
- } else if (value.getClass() != null && value.getClass().isArray()) {
107
- writableMap.putArray((String)pair.getKey(),
108
- toWritableArray((Object[])value));
109
- }
110
- }
111
-
112
- return writableMap;
113
- }
114
-
115
- static WritableArray toWritableArray(Object[] array) {
116
- if (array == null) {
117
- return null;
118
- }
119
- WritableArray writableArr = Arguments.createArray();
120
-
121
- for (int i = 0; i < array.length; i++) {
122
- Object value = array[i];
123
-
124
- if (value == null) {
125
- writableArr.pushNull();
126
- } else if (value instanceof Boolean) {
127
- writableArr.pushBoolean((Boolean)value);
128
- } else if (value instanceof Double) {
129
- writableArr.pushDouble((Double)value);
130
- } else if (value instanceof Integer) {
131
- writableArr.pushInt((Integer)value);
132
- } else if (value instanceof String) {
133
- writableArr.pushString((String)value);
134
- } else if (value instanceof Map) {
135
- writableArr.pushMap(toWritableMap((Map<String, Object>)value));
136
- } else if (value instanceof List) {
137
- writableArr.pushArray(toWritableArray((List)value));
138
- } else if (value.getClass().isArray()) {
139
- writableArr.pushArray(toWritableArray((Object[])value));
140
- }
141
- }
142
-
143
- return writableArr;
144
- }
145
-
146
- static WritableArray toWritableArray(List array) {
147
- if (array == null) {
148
- return null;
149
- }
150
- WritableArray writableArr = Arguments.createArray();
151
-
152
- for (Object value : array) {
153
- if (value == null) {
154
- writableArr.pushNull();
155
- } else if (value instanceof Boolean) {
156
- writableArr.pushBoolean((Boolean)value);
157
- } else if (value instanceof Double) {
158
- writableArr.pushDouble((Double)value);
159
- } else if (value instanceof Integer) {
160
- writableArr.pushInt((Integer)value);
161
- } else if (value instanceof String) {
162
- writableArr.pushString((String)value);
163
- } else if (value instanceof Map) {
164
- writableArr.pushMap(toWritableMap((Map<String, Object>)value));
165
- } else if (value instanceof List) {
166
- writableArr.pushArray(toWritableArray((List)value));
167
- } else if (value.getClass().isArray()) {
168
- writableArr.pushArray(toWritableArray((Object[])value));
169
- }
170
- }
171
-
172
- return writableArr;
173
- }
174
-
175
- static Map convertMessageToMap(final Message message) {
176
- Map data = new HashMap<>();
177
- data.put("id", message.getId());
178
- data.put("autoTrack", message.getAutoTrack());
179
- return data;
180
- }
181
-
182
- static ReadableArray convertMessagesToJS(final Collection<Message> messages) {
183
- WritableArray result = new WritableNativeArray();
184
-
185
- for (Iterator<Message> iterator = messages.iterator();
186
- iterator.hasNext();) {
187
- result.pushMap((ReadableMap)convertMessageToMap(iterator.next()));
188
- }
189
-
190
- return result;
191
- }
192
-
193
- static WritableMap convertSurfacePropositions(
194
- final Map<Surface, List<Proposition>> propositionMap,
195
- String packageName) {
196
- WritableMap data = new WritableNativeMap();
197
-
198
- for (Map.Entry<Surface, List<Proposition>> entry :
199
- propositionMap.entrySet()) {
200
- String key = entry.getKey().getUri().replace(
201
- "mobileapp://" + packageName + "/", "");
202
- WritableArray propositions = new WritableNativeArray();
203
-
204
- for (Iterator<Proposition> iterator = entry.getValue().iterator();
205
- iterator.hasNext();) {
206
- propositions.pushMap(toWritableMap(iterator.next().toEventData()));
207
- }
208
-
209
- data.putArray(key, propositions);
210
- }
211
-
212
- return data;
213
- }
214
- }
13
+ package com.adobe.marketing.mobile.reactnative.messaging;
14
+
15
+ import com.adobe.marketing.mobile.Message;
16
+ import com.adobe.marketing.mobile.MessagingEdgeEventType;
17
+ import com.adobe.marketing.mobile.messaging.Proposition;
18
+ import com.adobe.marketing.mobile.messaging.Surface;
19
+ import com.facebook.react.bridge.Arguments;
20
+ import com.facebook.react.bridge.ReadableArray;
21
+ import com.facebook.react.bridge.ReadableMap;
22
+ import com.facebook.react.bridge.WritableArray;
23
+ import com.facebook.react.bridge.WritableMap;
24
+ import com.facebook.react.bridge.WritableNativeArray;
25
+ import com.facebook.react.bridge.WritableNativeMap;
26
+ import java.util.ArrayList;
27
+ import java.util.Collection;
28
+ import java.util.HashMap;
29
+ import java.util.Iterator;
30
+ import java.util.List;
31
+ import java.util.Map;
32
+
33
+ /**
34
+ * Utility class for converting data models to {@link
35
+ * com.facebook.react.bridge.WritableMap}
36
+ */
37
+
38
+ class RCTAEPMessagingUtil {
39
+
40
+ private static final String TAG = "RCTAEPMessaging";
41
+
42
+ private RCTAEPMessagingUtil() {}
43
+
44
+ // From React Native
45
+ static MessagingEdgeEventType getEventType(final int eventType) {
46
+ switch (eventType) {
47
+ case 0:
48
+ return MessagingEdgeEventType.DISMISS;
49
+ case 1:
50
+ return MessagingEdgeEventType.INTERACT;
51
+ case 2:
52
+ return MessagingEdgeEventType.TRIGGER;
53
+ case 3:
54
+ return MessagingEdgeEventType.DISPLAY;
55
+ case 4:
56
+ return MessagingEdgeEventType.PUSH_APPLICATION_OPENED;
57
+ case 5:
58
+ return MessagingEdgeEventType.PUSH_CUSTOM_ACTION;
59
+ default:
60
+ return null;
61
+ }
62
+ }
63
+
64
+ static List<Surface> convertSurfaces(final ReadableArray rawSurfaces) {
65
+ List<Surface> surfaces = new ArrayList<>();
66
+
67
+ for (int i = 0; i < rawSurfaces.size(); i++) {
68
+ surfaces.add(new Surface(rawSurfaces.getString(i)));
69
+ }
70
+
71
+ return surfaces;
72
+ }
73
+
74
+ // To React Native
75
+ static WritableMap toWritableMap(Map<String, Object> map) {
76
+ if (map == null) {
77
+ return null;
78
+ }
79
+
80
+ WritableMap writableMap = Arguments.createMap();
81
+ Iterator iterator = map.entrySet().iterator();
82
+
83
+ while (iterator.hasNext()) {
84
+ Map.Entry pair = (Map.Entry)iterator.next();
85
+ Object value = pair.getValue();
86
+
87
+ if (value == null) {
88
+ writableMap.putNull((String)pair.getKey());
89
+ } else if (value instanceof Boolean) {
90
+ writableMap.putBoolean((String)pair.getKey(), (Boolean)value);
91
+ } else if (value instanceof Double) {
92
+ writableMap.putDouble((String)pair.getKey(), (Double)value);
93
+ } else if (value instanceof Integer) {
94
+ writableMap.putInt((String)pair.getKey(), (Integer)value);
95
+ } else if (value instanceof String) {
96
+ writableMap.putString((String)pair.getKey(), (String)value);
97
+ } else if (value instanceof Map) {
98
+ writableMap.putMap((String)pair.getKey(),
99
+ toWritableMap((Map<String, Object>)value));
100
+ } else if (value instanceof List) {
101
+ writableMap.putArray((String)pair.getKey(),
102
+ toWritableArray((List)value));
103
+ } else if (value.getClass() != null && value.getClass().isArray()) {
104
+ writableMap.putArray((String)pair.getKey(),
105
+ toWritableArray((Object[])value));
106
+ }
107
+ }
108
+
109
+ return writableMap;
110
+ }
111
+
112
+ static WritableArray toWritableArray(Object[] array) {
113
+ if (array == null) {
114
+ return null;
115
+ }
116
+ WritableArray writableArr = Arguments.createArray();
117
+
118
+ for (int i = 0; i < array.length; i++) {
119
+ Object value = array[i];
120
+
121
+ if (value == null) {
122
+ writableArr.pushNull();
123
+ } else if (value instanceof Boolean) {
124
+ writableArr.pushBoolean((Boolean)value);
125
+ } else if (value instanceof Double) {
126
+ writableArr.pushDouble((Double)value);
127
+ } else if (value instanceof Integer) {
128
+ writableArr.pushInt((Integer)value);
129
+ } else if (value instanceof String) {
130
+ writableArr.pushString((String)value);
131
+ } else if (value instanceof Map) {
132
+ writableArr.pushMap(toWritableMap((Map<String, Object>)value));
133
+ } else if (value instanceof List) {
134
+ writableArr.pushArray(toWritableArray((List)value));
135
+ } else if (value.getClass().isArray()) {
136
+ writableArr.pushArray(toWritableArray((Object[])value));
137
+ }
138
+ }
139
+
140
+ return writableArr;
141
+ }
142
+
143
+ static WritableArray toWritableArray(List array) {
144
+ if (array == null) {
145
+ return null;
146
+ }
147
+ WritableArray writableArr = Arguments.createArray();
148
+
149
+ for (Object value : array) {
150
+ if (value == null) {
151
+ writableArr.pushNull();
152
+ } else if (value instanceof Boolean) {
153
+ writableArr.pushBoolean((Boolean)value);
154
+ } else if (value instanceof Double) {
155
+ writableArr.pushDouble((Double)value);
156
+ } else if (value instanceof Integer) {
157
+ writableArr.pushInt((Integer)value);
158
+ } else if (value instanceof String) {
159
+ writableArr.pushString((String)value);
160
+ } else if (value instanceof Map) {
161
+ writableArr.pushMap(toWritableMap((Map<String, Object>)value));
162
+ } else if (value instanceof List) {
163
+ writableArr.pushArray(toWritableArray((List)value));
164
+ } else if (value.getClass().isArray()) {
165
+ writableArr.pushArray(toWritableArray((Object[])value));
166
+ }
167
+ }
168
+
169
+ return writableArr;
170
+ }
171
+
172
+ static Map<String, String> convertMessageToMap(final Message message) {
173
+ Map<String, String> data = new HashMap<>();
174
+ data.put("id", message.getId());
175
+ data.put("autoTrack", String.valueOf(message.getAutoTrack()));
176
+ return data;
177
+ }
178
+
179
+ static ReadableArray convertMessagesToJS(final Collection<Message> messages) {
180
+ WritableArray result = new WritableNativeArray();
181
+
182
+ for (Message message : messages) {
183
+ result.pushMap(convertToReadableMap(convertMessageToMap(message)));
184
+ }
185
+
186
+ return result;
187
+ }
188
+
189
+ static WritableMap convertSurfacePropositions(
190
+ final Map<Surface, List<Proposition>> propositionMap,
191
+ String packageName) {
192
+ WritableMap data = new WritableNativeMap();
193
+
194
+ for (Map.Entry<Surface, List<Proposition>> entry :
195
+ propositionMap.entrySet()) {
196
+ String key = entry.getKey().getUri().replace(
197
+ "mobileapp://" + packageName + "/", "");
198
+ WritableArray propositions = new WritableNativeArray();
199
+
200
+ for (Iterator<Proposition> iterator = entry.getValue().iterator();
201
+ iterator.hasNext();) {
202
+ propositions.pushMap(toWritableMap(iterator.next().toEventData()));
203
+ }
204
+
205
+ data.putArray(key, propositions);
206
+ }
207
+
208
+ return data;
209
+ }
210
+
211
+ static ReadableMap convertToReadableMap(Map<String, String> map) {
212
+ WritableMap writableMap = Arguments.createMap();
213
+
214
+ for (Map.Entry<String, String> entry : map.entrySet()) {
215
+ writableMap.putString(entry.getKey(), entry.getValue());
216
+ }
217
+ return writableMap;
218
+ }
219
+ }
package/dist/Messaging.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- Copyright 2023 Adobe. All rights reserved.
3
+ Copyright 2024 Adobe. All rights reserved.
4
4
  This file is licensed to you under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License. You may obtain a copy
6
6
  of the License at http://www.apache.org/licenses/LICENSE-2.0
package/dist/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  import Messaging from './Messaging';
2
+ import { ContentCard } from './models/ContentCard';
3
+ import { HTMLProposition } from './models/HTMLProposition';
4
+ import { InAppMessage } from './models/InAppMessage';
5
+ import { JSONPropositionItem } from './models/JSONPropositionItem';
2
6
  import Message from './models/Message';
3
7
  import { MessagingDelegate } from './models/MessagingDelegate';
4
8
  import MessagingEdgeEventType from './models/MessagingEdgeEventType';
5
9
  import { MessagingProposition } from './models/MessagingProposition';
6
10
  import { MessagingPropositionItem } from './models/MessagingPropositionItem';
7
- export { Messaging, Message, MessagingDelegate, MessagingEdgeEventType, MessagingProposition, MessagingPropositionItem };
11
+ import { PersonalizationSchema } from './models/PersonalizationSchema';
12
+ import { Activity, Characteristics } from './models/ScopeDetails';
13
+ export { Activity, Characteristics, ContentCard, HTMLProposition, InAppMessage, JSONPropositionItem, Messaging, Message, MessagingDelegate, MessagingEdgeEventType, MessagingProposition, MessagingPropositionItem, PersonalizationSchema, };
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
11
11
  governing permissions and limitations under the License.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.MessagingProposition = exports.MessagingEdgeEventType = exports.Message = exports.Messaging = void 0;
14
+ exports.PersonalizationSchema = exports.MessagingEdgeEventType = exports.Message = exports.Messaging = void 0;
15
15
  const tslib_1 = require("tslib");
16
16
  const Messaging_1 = tslib_1.__importDefault(require("./Messaging"));
17
17
  exports.Messaging = Messaging_1.default;
@@ -19,6 +19,6 @@ const Message_1 = tslib_1.__importDefault(require("./models/Message"));
19
19
  exports.Message = Message_1.default;
20
20
  const MessagingEdgeEventType_1 = tslib_1.__importDefault(require("./models/MessagingEdgeEventType"));
21
21
  exports.MessagingEdgeEventType = MessagingEdgeEventType_1.default;
22
- const MessagingProposition_1 = require("./models/MessagingProposition");
23
- Object.defineProperty(exports, "MessagingProposition", { enumerable: true, get: function () { return MessagingProposition_1.MessagingProposition; } });
22
+ const PersonalizationSchema_1 = require("./models/PersonalizationSchema");
23
+ Object.defineProperty(exports, "PersonalizationSchema", { enumerable: true, get: function () { return PersonalizationSchema_1.PersonalizationSchema; } });
24
24
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE;;;;AAEF,oEAAoC;AAQlC,oBARK,mBAAS,CAQL;AAPX,uEAAuC;AAQrC,kBARK,iBAAO,CAQL;AANT,qGAAqE;AAQnE,iCARK,gCAAsB,CAQL;AAPxB,wEAAqE;AAQnE,qGARO,2CAAoB,OAQP"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE;;;;AAEF,oEAAoC;AAoBlC,oBApBK,mBAAS,CAoBL;AAfX,uEAAuC;AAgBrC,kBAhBK,iBAAO,CAgBL;AAdT,qGAAqE;AAgBnE,iCAhBK,gCAAsB,CAgBL;AAbxB,0EAAuE;AAgBrE,sGAhBO,6CAAqB,OAgBP"}
@@ -0,0 +1,46 @@
1
+ import { PersonalizationSchema } from './PersonalizationSchema';
2
+ type ContentCardTemplate = 'SmallImage';
3
+ type DismissButtonStyle = 'circle' | 'none' | 'simple';
4
+ export interface ContentCard {
5
+ id: string;
6
+ data: {
7
+ contentType: 'application/json';
8
+ expiryDate: number;
9
+ publishedDate: number;
10
+ content: {
11
+ actionUrl: string;
12
+ body: {
13
+ content: string;
14
+ };
15
+ title: {
16
+ content: string;
17
+ };
18
+ buttons: Array<{
19
+ actionUrl: string;
20
+ id: string;
21
+ text: {
22
+ content: string;
23
+ };
24
+ interactId: string;
25
+ }>;
26
+ image: {
27
+ alt: string;
28
+ url: string;
29
+ };
30
+ dismissBtn: {
31
+ style: DismissButtonStyle;
32
+ };
33
+ };
34
+ meta: {
35
+ [key: string]: any;
36
+ adobe: {
37
+ template: ContentCardTemplate;
38
+ };
39
+ dismissState: boolean;
40
+ readState: boolean;
41
+ surface: string;
42
+ };
43
+ };
44
+ schema: PersonalizationSchema.CONTENT_CARD;
45
+ }
46
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2024 Adobe. All rights reserved.
4
+ This file is licensed to you under the Apache License, Version 2.0 (the
5
+ "License"); you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
8
+ or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF
10
+ ANY KIND, either express or implied. See the License for the specific
11
+ language governing permissions and limitations under the License.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ //# sourceMappingURL=ContentCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentCard.js","sourceRoot":"","sources":["../../src/models/ContentCard.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE"}
@@ -0,0 +1,8 @@
1
+ import { PersonalizationSchema } from './PersonalizationSchema';
2
+ export interface HTMLProposition {
3
+ id: string;
4
+ data: {
5
+ content: string;
6
+ };
7
+ schema: PersonalizationSchema.HTML_CONTENT;
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2024 Adobe. All rights reserved.
4
+ This file is licensed to you under the Apache License, Version 2.0 (the
5
+ "License"); you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
8
+ or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF
10
+ ANY KIND, either express or implied. See the License for the specific
11
+ language governing permissions and limitations under the License.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ //# sourceMappingURL=HTMLProposition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTMLProposition.js","sourceRoot":"","sources":["../../src/models/HTMLProposition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE"}
@@ -0,0 +1,15 @@
1
+ import { PersonalizationSchema } from './PersonalizationSchema';
2
+ export interface InAppMessage {
3
+ id: string;
4
+ schema: PersonalizationSchema.IN_APP;
5
+ data: {
6
+ content: string;
7
+ contentType: 'text/html';
8
+ expiryDate: number;
9
+ publishedDate: number;
10
+ meta?: Record<string, any>;
11
+ mobileParameters?: Record<string, any>;
12
+ webParameters?: Record<string, any>;
13
+ remoteAssets?: string[];
14
+ };
15
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2024 Adobe. All rights reserved.
4
+ This file is licensed to you under the Apache License, Version 2.0 (the
5
+ "License"); you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
8
+ or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF
10
+ ANY KIND, either express or implied. See the License for the specific
11
+ language governing permissions and limitations under the License.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ //# sourceMappingURL=InAppMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InAppMessage.js","sourceRoot":"","sources":["../../src/models/InAppMessage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE"}
@@ -0,0 +1,8 @@
1
+ import { PersonalizationSchema } from './PersonalizationSchema';
2
+ export interface JSONPropositionItem {
3
+ id: string;
4
+ data: {
5
+ content: string;
6
+ };
7
+ schema: PersonalizationSchema.JSON_CONTENT;
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2024 Adobe. All rights reserved.
4
+ This file is licensed to you under the Apache License, Version 2.0 (the
5
+ "License"); you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
8
+ or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF
10
+ ANY KIND, either express or implied. See the License for the specific
11
+ language governing permissions and limitations under the License.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ //# sourceMappingURL=JSONPropositionItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JSONPropositionItem.js","sourceRoot":"","sources":["../../src/models/JSONPropositionItem.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/models/Message.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE;;AAEF,+CAA6C;AAC7C,MAAM,eAAe,GAAG,4BAAa,CAAC,YAAY,CAAC;AAEnD,MAAM,OAAO;IAIX,YAAY,EAAC,EAAE,EAAE,SAAS,GAAG,KAAK,EAAmC;QACnE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,SAAkB;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACH,IAAI;QACF,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,iBAA2B;QACjC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAmB,EAAE,SAAiB;QAC1C,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;CACF;AAED,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/models/Message.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;EAUE;;AAEF,+CAA6C;AAC7C,MAAM,eAAe,GAAG,4BAAa,CAAC,YAAY,CAAC;AAEnD,MAAM,OAAO;IAIX,YAAY,EAAE,EAAE,EAAE,SAAS,GAAG,KAAK,EAAsC;QACvE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,SAAkB;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACH,IAAI;QACF,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,iBAA2B;QACjC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAmB,EAAE,SAAiB;QAC1C,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IACzD,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;CACF;AAED,kBAAe,OAAO,CAAC"}