@@ -12,8 +12,8 @@ enum Endpoint {
12
12
static let links = linksHostName + " / "
13
13
}
14
14
15
- public enum Const {
16
- public static let apiPath = " /api/ "
15
+ enum Const {
16
+ static let apiPath = " /api/ "
17
17
18
18
static let deepLinkRegex = " /a/[a-zA-Z0-9]+ "
19
19
static let href = " href "
@@ -74,99 +74,95 @@ public enum Const {
74
74
}
75
75
}
76
76
77
- public protocol JsonKeyRepresentable {
78
- var jsonKey : String { get }
79
- }
80
-
81
- public enum JsonKey : String , JsonKeyRepresentable {
82
- case email
83
- case userId
84
- case currentEmail
85
- case currentUserId
86
- case newEmail
87
- case emailListIds
88
- case unsubscribedChannelIds
89
- case unsubscribedMessageTypeIds
90
- case subscribedMessageTypeIds
91
- case preferUserId
92
-
93
- case mergeNestedObjects
94
-
95
- case inboxMetadata
96
- case inboxTitle = " title "
97
- case inboxSubtitle = " subtitle "
98
- case inboxIcon = " icon "
99
-
100
- case inboxExpiresAt = " expiresAt "
101
- case inboxCreatedAt = " createdAt "
102
-
103
- case inAppMessageContext = " messageContext "
104
-
105
- case campaignId
106
- case templateId
107
- case messageId
108
- case inboxSessionId
109
-
110
- case saveToInbox
111
- case silentInbox
112
- case inAppLocation = " location "
113
- case clickedUrl
114
- case read
115
- case priorityLevel
116
-
117
- case inboxSessionStart
118
- case inboxSessionEnd
119
- case startTotalMessageCount
120
- case startUnreadMessageCount
121
- case endTotalMessageCount
122
- case endUnreadMessageCount
123
- case impressions
124
- case closeAction
125
- case deleteAction
126
-
127
- case url
128
-
129
- case device
130
- case token
131
- case dataFields
132
- case deviceInfo
133
- case identifierForVendor
134
- case deviceId
135
- case localizedModel
136
- case model
137
- case userInterfaceIdiom
138
- case systemName
139
- case systemVersion
140
- case platform
141
- case appPackageName
142
- case appVersion
143
- case appBuild
144
- case applicationName
145
- case eventName
146
- case actionIdentifier
147
- case userText
148
- case appAlreadyRunning
149
-
150
- case html
151
-
152
- case iterableSdkVersion
153
-
154
- case notificationsEnabled
155
-
156
- case contentType = " Content-Type "
157
-
158
- public enum ActionButton {
77
+ enum JsonKey {
78
+ static let email = " email "
79
+ static let userId = " userId "
80
+ static let currentEmail = " currentEmail "
81
+ static let currentUserId = " currentUserId "
82
+ static let newEmail = " newEmail "
83
+ static let emailListIds = " emailListIds "
84
+ static let unsubscribedChannelIds = " unsubscribedChannelIds "
85
+ static let unsubscribedMessageTypeIds = " unsubscribedMessageTypeIds "
86
+ static let subscribedMessageTypeIds = " subscribedMessageTypeIds "
87
+ static let preferUserId = " preferUserId "
88
+
89
+ static let mergeNestedObjects = " mergeNestedObjects "
90
+
91
+ static let inboxMetadata = " inboxMetadata "
92
+ static let inboxTitle = " title "
93
+ static let inboxSubtitle = " subtitle "
94
+ static let inboxIcon = " icon "
95
+
96
+ static let inboxExpiresAt = " expiresAt "
97
+ static let inboxCreatedAt = " createdAt "
98
+
99
+ static let inAppMessageContext = " messageContext "
100
+
101
+ static let campaignId = " campaignId "
102
+ static let templateId = " templateId "
103
+ static let messageId = " messageId "
104
+ static let inboxSessionId = " inboxSessionId "
105
+
106
+ static let saveToInbox = " saveToInbox "
107
+ static let silentInbox = " silentInbox "
108
+ static let inAppLocation = " location "
109
+ static let clickedUrl = " clickedUrl "
110
+ static let read = " read "
111
+ static let priorityLevel = " priorityLevel "
112
+
113
+ static let inboxSessionStart = " inboxSessionStart "
114
+ static let inboxSessionEnd = " inboxSessionEnd "
115
+ static let startTotalMessageCount = " startTotalMessageCount "
116
+ static let startUnreadMessageCount = " startUnreadMessageCount "
117
+ static let endTotalMessageCount = " endTotalMessageCount "
118
+ static let endUnreadMessageCount = " endUnreadMessageCount "
119
+ static let impressions = " impressions "
120
+ static let closeAction = " closeAction "
121
+ static let deleteAction = " deleteAction "
122
+
123
+ static let url = " url "
124
+
125
+ static let device = " device "
126
+ static let token = " token "
127
+ static let dataFields = " dataFields "
128
+ static let deviceInfo = " deviceInfo "
129
+ static let identifierForVendor = " identifierForVendor "
130
+ static let deviceId = " deviceId "
131
+ static let localizedModel = " localizedModel "
132
+ static let model = " model "
133
+ static let userInterfaceIdiom = " userInterfaceIdiom "
134
+ static let systemName = " systemName "
135
+ static let systemVersion = " systemVersion "
136
+ static let platform = " platform "
137
+ static let appPackageName = " appPackageName "
138
+ static let appVersion = " appVersion "
139
+ static let appBuild = " appBuild "
140
+ static let applicationName = " applicationName "
141
+ static let eventName = " eventName "
142
+ static let actionIdentifier = " actionIdentifier "
143
+ static let userText = " userText "
144
+ static let appAlreadyRunning = " appAlreadyRunning "
145
+
146
+ static let html = " html "
147
+
148
+ static let iterableSdkVersion = " iterableSdkVersion "
149
+
150
+ static let notificationsEnabled = " notificationsEnabled "
151
+
152
+ static let contentType = " Content-Type "
153
+
154
+ enum ActionButton {
159
155
static let identifier = " identifier "
160
156
static let action = " action "
161
157
}
162
158
163
- public enum Commerce {
159
+ enum Commerce {
164
160
static let items = " items "
165
161
static let total = " total "
166
162
static let user = " user "
167
163
}
168
164
169
- public enum Device {
165
+ enum Device {
170
166
static let localizedModel = " localizedModel "
171
167
static let vendorId = " identifierForVendor "
172
168
static let model = " model "
@@ -175,7 +171,7 @@ public enum JsonKey: String, JsonKeyRepresentable {
175
171
static let userInterfaceIdiom = " userInterfaceIdiom "
176
172
}
177
173
178
- public enum Header {
174
+ enum Header {
179
175
static let apiKey = " Api-Key "
180
176
static let sdkVersion = " SDK-Version "
181
177
static let sdkPlatform = " SDK-Platform "
@@ -184,11 +180,11 @@ public enum JsonKey: String, JsonKeyRepresentable {
184
180
static let requestProcessor = " SDK-Request-Processor "
185
181
}
186
182
187
- public enum Body {
183
+ enum Body {
188
184
static let createdAt = " createdAt "
189
185
}
190
186
191
- public enum InApp {
187
+ enum InApp {
192
188
static let trigger = " trigger "
193
189
static let type = " type "
194
190
static let contentType = " contentType "
@@ -202,23 +198,19 @@ public enum JsonKey: String, JsonKeyRepresentable {
202
198
static let content = " content "
203
199
}
204
200
205
- public enum Payload {
201
+ enum Payload {
206
202
static let metadata = " itbl "
207
203
static let actionButtons = " actionButtons "
208
204
static let defaultAction = " defaultAction "
209
205
}
210
206
211
- public enum Response {
207
+ enum Response {
212
208
static let iterableCode = " code "
213
209
}
214
210
215
- public enum JWT {
211
+ enum JWT {
216
212
static let exp = " exp "
217
213
}
218
-
219
- public var jsonKey : String {
220
- rawValue
221
- }
222
214
}
223
215
224
216
public protocol JsonValueRepresentable {
0 commit comments