@dashx/react-native 0.1.22 → 0.1.23
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/android/.gradle/6.9/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.9/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/6.9/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/6.9/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/6.9/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/6.9/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/release/generateReleaseRFile/R.jar +0 -0
- package/android/build/intermediates/incremental/mergeReleaseResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/incremental/packageReleaseResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/lint-cache/maven.google/master-index.xml +3 -0
- package/android/build/intermediates/transforms/mergeJavaRes/debug/0.jar +0 -0
- package/android/build/intermediates/transforms/mergeJavaRes/release/0.jar +0 -0
- package/android/build/kotlin/compileDebugKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/last-build.bin +0 -0
- package/android/build/kotlin/compileReleaseKotlin/build-history.bin +0 -0
- package/android/build/kotlin/compileReleaseKotlin/last-build.bin +0 -0
- package/android/build/libs/android-javadoc.jar +0 -0
- package/android/build/libs/android-sources.jar +0 -0
- package/android/build/reports/lint-results.html +1 -1
- package/android/build.gradle +1 -1
- package/ios/API.swift +118 -58
- package/ios/graphql/TrackEvent.graphql +1 -1
- package/ios/schema.json +9393 -4179
- package/package.json +1 -1
package/ios/API.swift
CHANGED
|
@@ -126,6 +126,7 @@ public enum DashXGql {
|
|
|
126
126
|
|
|
127
127
|
public enum OrderStatus: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
|
|
128
128
|
public typealias RawValue = String
|
|
129
|
+
case draft
|
|
129
130
|
case initial
|
|
130
131
|
case checkedOut
|
|
131
132
|
case paid
|
|
@@ -135,6 +136,7 @@ public enum DashXGql {
|
|
|
135
136
|
|
|
136
137
|
public init?(rawValue: RawValue) {
|
|
137
138
|
switch rawValue {
|
|
139
|
+
case "DRAFT": self = .draft
|
|
138
140
|
case "INITIAL": self = .initial
|
|
139
141
|
case "CHECKED_OUT": self = .checkedOut
|
|
140
142
|
case "PAID": self = .paid
|
|
@@ -145,6 +147,7 @@ public enum DashXGql {
|
|
|
145
147
|
|
|
146
148
|
public var rawValue: RawValue {
|
|
147
149
|
switch self {
|
|
150
|
+
case .draft: return "DRAFT"
|
|
148
151
|
case .initial: return "INITIAL"
|
|
149
152
|
case .checkedOut: return "CHECKED_OUT"
|
|
150
153
|
case .paid: return "PAID"
|
|
@@ -155,6 +158,7 @@ public enum DashXGql {
|
|
|
155
158
|
|
|
156
159
|
public static func == (lhs: OrderStatus, rhs: OrderStatus) -> Bool {
|
|
157
160
|
switch (lhs, rhs) {
|
|
161
|
+
case (.draft, .draft): return true
|
|
158
162
|
case (.initial, .initial): return true
|
|
159
163
|
case (.checkedOut, .checkedOut): return true
|
|
160
164
|
case (.paid, .paid): return true
|
|
@@ -166,6 +170,7 @@ public enum DashXGql {
|
|
|
166
170
|
|
|
167
171
|
public static var allCases: [OrderStatus] {
|
|
168
172
|
return [
|
|
173
|
+
.draft,
|
|
169
174
|
.initial,
|
|
170
175
|
.checkedOut,
|
|
171
176
|
.paid,
|
|
@@ -259,8 +264,9 @@ public enum DashXGql {
|
|
|
259
264
|
/// - Parameters:
|
|
260
265
|
/// - accountUid
|
|
261
266
|
/// - accountAnonymousUid
|
|
262
|
-
|
|
263
|
-
|
|
267
|
+
/// - orderId
|
|
268
|
+
public init(accountUid: Swift.Optional<String?> = nil, accountAnonymousUid: Swift.Optional<String?> = nil, orderId: Swift.Optional<UUID?> = nil) {
|
|
269
|
+
graphQLMap = ["accountUid": accountUid, "accountAnonymousUid": accountAnonymousUid, "orderId": orderId]
|
|
264
270
|
}
|
|
265
271
|
|
|
266
272
|
public var accountUid: Swift.Optional<String?> {
|
|
@@ -280,12 +286,22 @@ public enum DashXGql {
|
|
|
280
286
|
graphQLMap.updateValue(newValue, forKey: "accountAnonymousUid")
|
|
281
287
|
}
|
|
282
288
|
}
|
|
289
|
+
|
|
290
|
+
public var orderId: Swift.Optional<UUID?> {
|
|
291
|
+
get {
|
|
292
|
+
return graphQLMap["orderId"] as? Swift.Optional<UUID?> ?? Swift.Optional<UUID?>.none
|
|
293
|
+
}
|
|
294
|
+
set {
|
|
295
|
+
graphQLMap.updateValue(newValue, forKey: "orderId")
|
|
296
|
+
}
|
|
297
|
+
}
|
|
283
298
|
}
|
|
284
299
|
|
|
285
300
|
public struct FetchContentInput: GraphQLMapConvertible {
|
|
286
301
|
public var graphQLMap: GraphQLMap
|
|
287
302
|
|
|
288
303
|
/// - Parameters:
|
|
304
|
+
/// - contentId
|
|
289
305
|
/// - contentType
|
|
290
306
|
/// - content
|
|
291
307
|
/// - preview
|
|
@@ -293,22 +309,31 @@ public enum DashXGql {
|
|
|
293
309
|
/// - fields
|
|
294
310
|
/// - include
|
|
295
311
|
/// - exclude
|
|
296
|
-
public init(contentType: String, content: String, preview: Swift.Optional<Bool?> = nil, language: Swift.Optional<String?> = nil, fields: Swift.Optional<[String]?> = nil, include: Swift.Optional<[String]?> = nil, exclude: Swift.Optional<[String]?> = nil) {
|
|
297
|
-
graphQLMap = ["contentType": contentType, "content": content, "preview": preview, "language": language, "fields": fields, "include": include, "exclude": exclude]
|
|
312
|
+
public init(contentId: Swift.Optional<UUID?> = nil, contentType: Swift.Optional<String?> = nil, content: Swift.Optional<String?> = nil, preview: Swift.Optional<Bool?> = nil, language: Swift.Optional<String?> = nil, fields: Swift.Optional<[String]?> = nil, include: Swift.Optional<[String]?> = nil, exclude: Swift.Optional<[String]?> = nil) {
|
|
313
|
+
graphQLMap = ["contentId": contentId, "contentType": contentType, "content": content, "preview": preview, "language": language, "fields": fields, "include": include, "exclude": exclude]
|
|
298
314
|
}
|
|
299
315
|
|
|
300
|
-
public var
|
|
316
|
+
public var contentId: Swift.Optional<UUID?> {
|
|
301
317
|
get {
|
|
302
|
-
return graphQLMap["
|
|
318
|
+
return graphQLMap["contentId"] as? Swift.Optional<UUID?> ?? Swift.Optional<UUID?>.none
|
|
319
|
+
}
|
|
320
|
+
set {
|
|
321
|
+
graphQLMap.updateValue(newValue, forKey: "contentId")
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
public var contentType: Swift.Optional<String?> {
|
|
326
|
+
get {
|
|
327
|
+
return graphQLMap["contentType"] as? Swift.Optional<String?> ?? Swift.Optional<String?>.none
|
|
303
328
|
}
|
|
304
329
|
set {
|
|
305
330
|
graphQLMap.updateValue(newValue, forKey: "contentType")
|
|
306
331
|
}
|
|
307
332
|
}
|
|
308
333
|
|
|
309
|
-
public var content: String {
|
|
334
|
+
public var content: Swift.Optional<String?> {
|
|
310
335
|
get {
|
|
311
|
-
return graphQLMap["content"] as
|
|
336
|
+
return graphQLMap["content"] as? Swift.Optional<String?> ?? Swift.Optional<String?>.none
|
|
312
337
|
}
|
|
313
338
|
set {
|
|
314
339
|
graphQLMap.updateValue(newValue, forKey: "content")
|
|
@@ -372,8 +397,9 @@ public enum DashXGql {
|
|
|
372
397
|
/// - name
|
|
373
398
|
/// - firstName
|
|
374
399
|
/// - lastName
|
|
375
|
-
|
|
376
|
-
|
|
400
|
+
/// - scope
|
|
401
|
+
public init(uid: Swift.Optional<String?> = nil, anonymousUid: Swift.Optional<String?> = nil, email: Swift.Optional<String?> = nil, phone: Swift.Optional<String?> = nil, name: Swift.Optional<String?> = nil, firstName: Swift.Optional<String?> = nil, lastName: Swift.Optional<String?> = nil, scope: Swift.Optional<String?> = nil) {
|
|
402
|
+
graphQLMap = ["uid": uid, "anonymousUid": anonymousUid, "email": email, "phone": phone, "name": name, "firstName": firstName, "lastName": lastName, "scope": scope]
|
|
377
403
|
}
|
|
378
404
|
|
|
379
405
|
public var uid: Swift.Optional<String?> {
|
|
@@ -438,6 +464,15 @@ public enum DashXGql {
|
|
|
438
464
|
graphQLMap.updateValue(newValue, forKey: "lastName")
|
|
439
465
|
}
|
|
440
466
|
}
|
|
467
|
+
|
|
468
|
+
public var scope: Swift.Optional<String?> {
|
|
469
|
+
get {
|
|
470
|
+
return graphQLMap["scope"] as? Swift.Optional<String?> ?? Swift.Optional<String?>.none
|
|
471
|
+
}
|
|
472
|
+
set {
|
|
473
|
+
graphQLMap.updateValue(newValue, forKey: "scope")
|
|
474
|
+
}
|
|
475
|
+
}
|
|
441
476
|
}
|
|
442
477
|
|
|
443
478
|
public struct SearchContentInput: GraphQLMapConvertible {
|
|
@@ -566,8 +601,9 @@ public enum DashXGql {
|
|
|
566
601
|
/// - deviceUid
|
|
567
602
|
/// - deviceAdvertisingUid
|
|
568
603
|
/// - isDeviceAdTrackingEnabled
|
|
569
|
-
|
|
570
|
-
|
|
604
|
+
/// - tag
|
|
605
|
+
public init(accountUid: Swift.Optional<String?> = nil, accountAnonymousUid: Swift.Optional<String?> = nil, name: Swift.Optional<String?> = nil, kind: ContactKind, value: String, userAgent: Swift.Optional<String?> = nil, osName: Swift.Optional<String?> = nil, osVersion: Swift.Optional<String?> = nil, deviceModel: Swift.Optional<String?> = nil, deviceManufacturer: Swift.Optional<String?> = nil, deviceUid: Swift.Optional<String?> = nil, deviceAdvertisingUid: Swift.Optional<String?> = nil, isDeviceAdTrackingEnabled: Swift.Optional<Bool?> = nil, tag: Swift.Optional<String?> = nil) {
|
|
606
|
+
graphQLMap = ["accountUid": accountUid, "accountAnonymousUid": accountAnonymousUid, "name": name, "kind": kind, "value": value, "userAgent": userAgent, "osName": osName, "osVersion": osVersion, "deviceModel": deviceModel, "deviceManufacturer": deviceManufacturer, "deviceUid": deviceUid, "deviceAdvertisingUid": deviceAdvertisingUid, "isDeviceAdTrackingEnabled": isDeviceAdTrackingEnabled, "tag": tag]
|
|
571
607
|
}
|
|
572
608
|
|
|
573
609
|
public var accountUid: Swift.Optional<String?> {
|
|
@@ -686,6 +722,15 @@ public enum DashXGql {
|
|
|
686
722
|
graphQLMap.updateValue(newValue, forKey: "isDeviceAdTrackingEnabled")
|
|
687
723
|
}
|
|
688
724
|
}
|
|
725
|
+
|
|
726
|
+
public var tag: Swift.Optional<String?> {
|
|
727
|
+
get {
|
|
728
|
+
return graphQLMap["tag"] as? Swift.Optional<String?> ?? Swift.Optional<String?>.none
|
|
729
|
+
}
|
|
730
|
+
set {
|
|
731
|
+
graphQLMap.updateValue(newValue, forKey: "tag")
|
|
732
|
+
}
|
|
733
|
+
}
|
|
689
734
|
}
|
|
690
735
|
|
|
691
736
|
public enum ContactKind: RawRepresentable, Equatable, Hashable, CaseIterable, Apollo.JSONDecodable, Apollo.JSONEncodable {
|
|
@@ -695,6 +740,7 @@ public enum DashXGql {
|
|
|
695
740
|
case ios
|
|
696
741
|
case android
|
|
697
742
|
case web
|
|
743
|
+
case whatsapp
|
|
698
744
|
/// Auto generated constant for unknown enum values
|
|
699
745
|
case __unknown(RawValue)
|
|
700
746
|
|
|
@@ -705,6 +751,7 @@ public enum DashXGql {
|
|
|
705
751
|
case "IOS": self = .ios
|
|
706
752
|
case "ANDROID": self = .android
|
|
707
753
|
case "WEB": self = .web
|
|
754
|
+
case "WHATSAPP": self = .whatsapp
|
|
708
755
|
default: self = .__unknown(rawValue)
|
|
709
756
|
}
|
|
710
757
|
}
|
|
@@ -716,6 +763,7 @@ public enum DashXGql {
|
|
|
716
763
|
case .ios: return "IOS"
|
|
717
764
|
case .android: return "ANDROID"
|
|
718
765
|
case .web: return "WEB"
|
|
766
|
+
case .whatsapp: return "WHATSAPP"
|
|
719
767
|
case .__unknown(let value): return value
|
|
720
768
|
}
|
|
721
769
|
}
|
|
@@ -727,6 +775,7 @@ public enum DashXGql {
|
|
|
727
775
|
case (.ios, .ios): return true
|
|
728
776
|
case (.android, .android): return true
|
|
729
777
|
case (.web, .web): return true
|
|
778
|
+
case (.whatsapp, .whatsapp): return true
|
|
730
779
|
case (.__unknown(let lhsValue), .__unknown(let rhsValue)): return lhsValue == rhsValue
|
|
731
780
|
default: return false
|
|
732
781
|
}
|
|
@@ -739,6 +788,7 @@ public enum DashXGql {
|
|
|
739
788
|
.ios,
|
|
740
789
|
.android,
|
|
741
790
|
.web,
|
|
791
|
+
.whatsapp,
|
|
742
792
|
]
|
|
743
793
|
}
|
|
744
794
|
}
|
|
@@ -751,8 +801,9 @@ public enum DashXGql {
|
|
|
751
801
|
/// - accountUid
|
|
752
802
|
/// - accountAnonymousUid
|
|
753
803
|
/// - data
|
|
754
|
-
|
|
755
|
-
|
|
804
|
+
/// - timestamp
|
|
805
|
+
public init(event: String, accountUid: Swift.Optional<String?> = nil, accountAnonymousUid: Swift.Optional<String?> = nil, data: Swift.Optional<JSON?> = nil, timestamp: Swift.Optional<DateTime?> = nil) {
|
|
806
|
+
graphQLMap = ["event": event, "accountUid": accountUid, "accountAnonymousUid": accountAnonymousUid, "data": data, "timestamp": timestamp]
|
|
756
807
|
}
|
|
757
808
|
|
|
758
809
|
public var event: String {
|
|
@@ -790,6 +841,15 @@ public enum DashXGql {
|
|
|
790
841
|
graphQLMap.updateValue(newValue, forKey: "data")
|
|
791
842
|
}
|
|
792
843
|
}
|
|
844
|
+
|
|
845
|
+
public var timestamp: Swift.Optional<DateTime?> {
|
|
846
|
+
get {
|
|
847
|
+
return graphQLMap["timestamp"] as? Swift.Optional<DateTime?> ?? Swift.Optional<DateTime?>.none
|
|
848
|
+
}
|
|
849
|
+
set {
|
|
850
|
+
graphQLMap.updateValue(newValue, forKey: "timestamp")
|
|
851
|
+
}
|
|
852
|
+
}
|
|
793
853
|
}
|
|
794
854
|
|
|
795
855
|
public final class AddContentMutation: GraphQLMutation {
|
|
@@ -848,7 +908,7 @@ public enum DashXGql {
|
|
|
848
908
|
}
|
|
849
909
|
|
|
850
910
|
public struct AddContent: GraphQLSelectionSet {
|
|
851
|
-
public static let possibleTypes: [String] = ["
|
|
911
|
+
public static let possibleTypes: [String] = ["CustomContent"]
|
|
852
912
|
|
|
853
913
|
public static var selections: [GraphQLSelection] {
|
|
854
914
|
return [
|
|
@@ -856,7 +916,7 @@ public enum DashXGql {
|
|
|
856
916
|
GraphQLField("id", type: .nonNull(.scalar(UUID.self))),
|
|
857
917
|
GraphQLField("position", type: .nonNull(.scalar(Int.self))),
|
|
858
918
|
GraphQLField("identifier", type: .nonNull(.scalar(String.self))),
|
|
859
|
-
GraphQLField("data", type: .nonNull(.scalar(
|
|
919
|
+
GraphQLField("data", type: .nonNull(.scalar(JSON.self))),
|
|
860
920
|
]
|
|
861
921
|
}
|
|
862
922
|
|
|
@@ -866,8 +926,8 @@ public enum DashXGql {
|
|
|
866
926
|
self.resultMap = unsafeResultMap
|
|
867
927
|
}
|
|
868
928
|
|
|
869
|
-
public init(id: UUID, position: Int, identifier: String, data:
|
|
870
|
-
self.init(unsafeResultMap: ["__typename": "
|
|
929
|
+
public init(id: UUID, position: Int, identifier: String, data: JSON) {
|
|
930
|
+
self.init(unsafeResultMap: ["__typename": "CustomContent", "id": id, "position": position, "identifier": identifier, "data": data])
|
|
871
931
|
}
|
|
872
932
|
|
|
873
933
|
public var __typename: String {
|
|
@@ -906,9 +966,9 @@ public enum DashXGql {
|
|
|
906
966
|
}
|
|
907
967
|
}
|
|
908
968
|
|
|
909
|
-
public var data:
|
|
969
|
+
public var data: JSON {
|
|
910
970
|
get {
|
|
911
|
-
return resultMap["data"]! as!
|
|
971
|
+
return resultMap["data"]! as! JSON
|
|
912
972
|
}
|
|
913
973
|
set {
|
|
914
974
|
resultMap.updateValue(newValue, forKey: "data")
|
|
@@ -1013,7 +1073,7 @@ public enum DashXGql {
|
|
|
1013
1073
|
GraphQLField("discount", type: .nonNull(.scalar(Decimal.self))),
|
|
1014
1074
|
GraphQLField("tax", type: .nonNull(.scalar(Decimal.self))),
|
|
1015
1075
|
GraphQLField("total", type: .nonNull(.scalar(Decimal.self))),
|
|
1016
|
-
GraphQLField("gatewayMeta", type: .scalar(
|
|
1076
|
+
GraphQLField("gatewayMeta", type: .scalar(JSON.self)),
|
|
1017
1077
|
GraphQLField("currencyCode", type: .nonNull(.scalar(String.self))),
|
|
1018
1078
|
GraphQLField("orderItems", type: .nonNull(.list(.nonNull(.object(OrderItem.selections))))),
|
|
1019
1079
|
GraphQLField("couponRedemptions", type: .nonNull(.list(.nonNull(.object(CouponRedemption.selections))))),
|
|
@@ -1026,7 +1086,7 @@ public enum DashXGql {
|
|
|
1026
1086
|
self.resultMap = unsafeResultMap
|
|
1027
1087
|
}
|
|
1028
1088
|
|
|
1029
|
-
public init(id: UUID, status: OrderStatus, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, gatewayMeta:
|
|
1089
|
+
public init(id: UUID, status: OrderStatus, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, gatewayMeta: JSON? = nil, currencyCode: String, orderItems: [OrderItem], couponRedemptions: [CouponRedemption]) {
|
|
1030
1090
|
self.init(unsafeResultMap: ["__typename": "Order", "id": id, "status": status, "subtotal": subtotal, "discount": discount, "tax": tax, "total": total, "gatewayMeta": gatewayMeta, "currencyCode": currencyCode, "orderItems": orderItems.map { (value: OrderItem) -> ResultMap in value.resultMap }, "couponRedemptions": couponRedemptions.map { (value: CouponRedemption) -> ResultMap in value.resultMap }])
|
|
1031
1091
|
}
|
|
1032
1092
|
|
|
@@ -1093,9 +1153,9 @@ public enum DashXGql {
|
|
|
1093
1153
|
}
|
|
1094
1154
|
}
|
|
1095
1155
|
|
|
1096
|
-
public var gatewayMeta:
|
|
1156
|
+
public var gatewayMeta: JSON? {
|
|
1097
1157
|
get {
|
|
1098
|
-
return resultMap["gatewayMeta"] as?
|
|
1158
|
+
return resultMap["gatewayMeta"] as? JSON
|
|
1099
1159
|
}
|
|
1100
1160
|
set {
|
|
1101
1161
|
resultMap.updateValue(newValue, forKey: "gatewayMeta")
|
|
@@ -1142,7 +1202,7 @@ public enum DashXGql {
|
|
|
1142
1202
|
GraphQLField("discount", type: .nonNull(.scalar(Decimal.self))),
|
|
1143
1203
|
GraphQLField("tax", type: .nonNull(.scalar(Decimal.self))),
|
|
1144
1204
|
GraphQLField("total", type: .nonNull(.scalar(Decimal.self))),
|
|
1145
|
-
GraphQLField("custom", type: .nonNull(.scalar(
|
|
1205
|
+
GraphQLField("custom", type: .nonNull(.scalar(JSON.self))),
|
|
1146
1206
|
GraphQLField("currencyCode", type: .nonNull(.scalar(String.self))),
|
|
1147
1207
|
]
|
|
1148
1208
|
}
|
|
@@ -1153,7 +1213,7 @@ public enum DashXGql {
|
|
|
1153
1213
|
self.resultMap = unsafeResultMap
|
|
1154
1214
|
}
|
|
1155
1215
|
|
|
1156
|
-
public init(id: UUID, quantity: Decimal, unitPrice: Decimal, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, custom:
|
|
1216
|
+
public init(id: UUID, quantity: Decimal, unitPrice: Decimal, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, custom: JSON, currencyCode: String) {
|
|
1157
1217
|
self.init(unsafeResultMap: ["__typename": "OrderItem", "id": id, "quantity": quantity, "unitPrice": unitPrice, "subtotal": subtotal, "discount": discount, "tax": tax, "total": total, "custom": custom, "currencyCode": currencyCode])
|
|
1158
1218
|
}
|
|
1159
1219
|
|
|
@@ -1229,9 +1289,9 @@ public enum DashXGql {
|
|
|
1229
1289
|
}
|
|
1230
1290
|
}
|
|
1231
1291
|
|
|
1232
|
-
public var custom:
|
|
1292
|
+
public var custom: JSON {
|
|
1233
1293
|
get {
|
|
1234
|
-
return resultMap["custom"]! as!
|
|
1294
|
+
return resultMap["custom"]! as! JSON
|
|
1235
1295
|
}
|
|
1236
1296
|
set {
|
|
1237
1297
|
resultMap.updateValue(newValue, forKey: "custom")
|
|
@@ -1435,7 +1495,7 @@ public enum DashXGql {
|
|
|
1435
1495
|
}
|
|
1436
1496
|
|
|
1437
1497
|
public struct EditContent: GraphQLSelectionSet {
|
|
1438
|
-
public static let possibleTypes: [String] = ["
|
|
1498
|
+
public static let possibleTypes: [String] = ["CustomContent"]
|
|
1439
1499
|
|
|
1440
1500
|
public static var selections: [GraphQLSelection] {
|
|
1441
1501
|
return [
|
|
@@ -1443,7 +1503,7 @@ public enum DashXGql {
|
|
|
1443
1503
|
GraphQLField("id", type: .nonNull(.scalar(UUID.self))),
|
|
1444
1504
|
GraphQLField("position", type: .nonNull(.scalar(Int.self))),
|
|
1445
1505
|
GraphQLField("identifier", type: .nonNull(.scalar(String.self))),
|
|
1446
|
-
GraphQLField("data", type: .nonNull(.scalar(
|
|
1506
|
+
GraphQLField("data", type: .nonNull(.scalar(JSON.self))),
|
|
1447
1507
|
]
|
|
1448
1508
|
}
|
|
1449
1509
|
|
|
@@ -1453,8 +1513,8 @@ public enum DashXGql {
|
|
|
1453
1513
|
self.resultMap = unsafeResultMap
|
|
1454
1514
|
}
|
|
1455
1515
|
|
|
1456
|
-
public init(id: UUID, position: Int, identifier: String, data:
|
|
1457
|
-
self.init(unsafeResultMap: ["__typename": "
|
|
1516
|
+
public init(id: UUID, position: Int, identifier: String, data: JSON) {
|
|
1517
|
+
self.init(unsafeResultMap: ["__typename": "CustomContent", "id": id, "position": position, "identifier": identifier, "data": data])
|
|
1458
1518
|
}
|
|
1459
1519
|
|
|
1460
1520
|
public var __typename: String {
|
|
@@ -1493,9 +1553,9 @@ public enum DashXGql {
|
|
|
1493
1553
|
}
|
|
1494
1554
|
}
|
|
1495
1555
|
|
|
1496
|
-
public var data:
|
|
1556
|
+
public var data: JSON {
|
|
1497
1557
|
get {
|
|
1498
|
-
return resultMap["data"]! as!
|
|
1558
|
+
return resultMap["data"]! as! JSON
|
|
1499
1559
|
}
|
|
1500
1560
|
set {
|
|
1501
1561
|
resultMap.updateValue(newValue, forKey: "data")
|
|
@@ -1600,7 +1660,7 @@ public enum DashXGql {
|
|
|
1600
1660
|
GraphQLField("discount", type: .nonNull(.scalar(Decimal.self))),
|
|
1601
1661
|
GraphQLField("tax", type: .nonNull(.scalar(Decimal.self))),
|
|
1602
1662
|
GraphQLField("total", type: .nonNull(.scalar(Decimal.self))),
|
|
1603
|
-
GraphQLField("gatewayMeta", type: .scalar(
|
|
1663
|
+
GraphQLField("gatewayMeta", type: .scalar(JSON.self)),
|
|
1604
1664
|
GraphQLField("currencyCode", type: .nonNull(.scalar(String.self))),
|
|
1605
1665
|
GraphQLField("orderItems", type: .nonNull(.list(.nonNull(.object(OrderItem.selections))))),
|
|
1606
1666
|
GraphQLField("couponRedemptions", type: .nonNull(.list(.nonNull(.object(CouponRedemption.selections))))),
|
|
@@ -1613,7 +1673,7 @@ public enum DashXGql {
|
|
|
1613
1673
|
self.resultMap = unsafeResultMap
|
|
1614
1674
|
}
|
|
1615
1675
|
|
|
1616
|
-
public init(id: UUID, status: OrderStatus, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, gatewayMeta:
|
|
1676
|
+
public init(id: UUID, status: OrderStatus, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, gatewayMeta: JSON? = nil, currencyCode: String, orderItems: [OrderItem], couponRedemptions: [CouponRedemption]) {
|
|
1617
1677
|
self.init(unsafeResultMap: ["__typename": "Order", "id": id, "status": status, "subtotal": subtotal, "discount": discount, "tax": tax, "total": total, "gatewayMeta": gatewayMeta, "currencyCode": currencyCode, "orderItems": orderItems.map { (value: OrderItem) -> ResultMap in value.resultMap }, "couponRedemptions": couponRedemptions.map { (value: CouponRedemption) -> ResultMap in value.resultMap }])
|
|
1618
1678
|
}
|
|
1619
1679
|
|
|
@@ -1680,9 +1740,9 @@ public enum DashXGql {
|
|
|
1680
1740
|
}
|
|
1681
1741
|
}
|
|
1682
1742
|
|
|
1683
|
-
public var gatewayMeta:
|
|
1743
|
+
public var gatewayMeta: JSON? {
|
|
1684
1744
|
get {
|
|
1685
|
-
return resultMap["gatewayMeta"] as?
|
|
1745
|
+
return resultMap["gatewayMeta"] as? JSON
|
|
1686
1746
|
}
|
|
1687
1747
|
set {
|
|
1688
1748
|
resultMap.updateValue(newValue, forKey: "gatewayMeta")
|
|
@@ -1729,7 +1789,7 @@ public enum DashXGql {
|
|
|
1729
1789
|
GraphQLField("discount", type: .nonNull(.scalar(Decimal.self))),
|
|
1730
1790
|
GraphQLField("tax", type: .nonNull(.scalar(Decimal.self))),
|
|
1731
1791
|
GraphQLField("total", type: .nonNull(.scalar(Decimal.self))),
|
|
1732
|
-
GraphQLField("custom", type: .nonNull(.scalar(
|
|
1792
|
+
GraphQLField("custom", type: .nonNull(.scalar(JSON.self))),
|
|
1733
1793
|
GraphQLField("currencyCode", type: .nonNull(.scalar(String.self))),
|
|
1734
1794
|
]
|
|
1735
1795
|
}
|
|
@@ -1740,7 +1800,7 @@ public enum DashXGql {
|
|
|
1740
1800
|
self.resultMap = unsafeResultMap
|
|
1741
1801
|
}
|
|
1742
1802
|
|
|
1743
|
-
public init(id: UUID, quantity: Decimal, unitPrice: Decimal, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, custom:
|
|
1803
|
+
public init(id: UUID, quantity: Decimal, unitPrice: Decimal, subtotal: Decimal, discount: Decimal, tax: Decimal, total: Decimal, custom: JSON, currencyCode: String) {
|
|
1744
1804
|
self.init(unsafeResultMap: ["__typename": "OrderItem", "id": id, "quantity": quantity, "unitPrice": unitPrice, "subtotal": subtotal, "discount": discount, "tax": tax, "total": total, "custom": custom, "currencyCode": currencyCode])
|
|
1745
1805
|
}
|
|
1746
1806
|
|
|
@@ -1816,9 +1876,9 @@ public enum DashXGql {
|
|
|
1816
1876
|
}
|
|
1817
1877
|
}
|
|
1818
1878
|
|
|
1819
|
-
public var custom:
|
|
1879
|
+
public var custom: JSON {
|
|
1820
1880
|
get {
|
|
1821
|
-
return resultMap["custom"]! as!
|
|
1881
|
+
return resultMap["custom"]! as! JSON
|
|
1822
1882
|
}
|
|
1823
1883
|
set {
|
|
1824
1884
|
resultMap.updateValue(newValue, forKey: "custom")
|
|
@@ -1992,7 +2052,7 @@ public enum DashXGql {
|
|
|
1992
2052
|
|
|
1993
2053
|
public static var selections: [GraphQLSelection] {
|
|
1994
2054
|
return [
|
|
1995
|
-
GraphQLField("fetchContent", arguments: ["input": GraphQLVariable("input")], type: .nonNull(.scalar(
|
|
2055
|
+
GraphQLField("fetchContent", arguments: ["input": GraphQLVariable("input")], type: .nonNull(.scalar(JSON.self))),
|
|
1996
2056
|
]
|
|
1997
2057
|
}
|
|
1998
2058
|
|
|
@@ -2002,13 +2062,13 @@ public enum DashXGql {
|
|
|
2002
2062
|
self.resultMap = unsafeResultMap
|
|
2003
2063
|
}
|
|
2004
2064
|
|
|
2005
|
-
public init(fetchContent:
|
|
2065
|
+
public init(fetchContent: JSON) {
|
|
2006
2066
|
self.init(unsafeResultMap: ["__typename": "Query", "fetchContent": fetchContent])
|
|
2007
2067
|
}
|
|
2008
2068
|
|
|
2009
|
-
public var fetchContent:
|
|
2069
|
+
public var fetchContent: JSON {
|
|
2010
2070
|
get {
|
|
2011
|
-
return resultMap["fetchContent"]! as!
|
|
2071
|
+
return resultMap["fetchContent"]! as! JSON
|
|
2012
2072
|
}
|
|
2013
2073
|
set {
|
|
2014
2074
|
resultMap.updateValue(newValue, forKey: "fetchContent")
|
|
@@ -2136,7 +2196,7 @@ public enum DashXGql {
|
|
|
2136
2196
|
|
|
2137
2197
|
public static var selections: [GraphQLSelection] {
|
|
2138
2198
|
return [
|
|
2139
|
-
GraphQLField("searchContent", arguments: ["input": GraphQLVariable("input")], type: .nonNull(.list(.nonNull(.scalar(
|
|
2199
|
+
GraphQLField("searchContent", arguments: ["input": GraphQLVariable("input")], type: .nonNull(.list(.nonNull(.scalar(JSON.self))))),
|
|
2140
2200
|
]
|
|
2141
2201
|
}
|
|
2142
2202
|
|
|
@@ -2146,13 +2206,13 @@ public enum DashXGql {
|
|
|
2146
2206
|
self.resultMap = unsafeResultMap
|
|
2147
2207
|
}
|
|
2148
2208
|
|
|
2149
|
-
public init(searchContent: [
|
|
2209
|
+
public init(searchContent: [JSON]) {
|
|
2150
2210
|
self.init(unsafeResultMap: ["__typename": "Query", "searchContent": searchContent])
|
|
2151
2211
|
}
|
|
2152
2212
|
|
|
2153
|
-
public var searchContent: [
|
|
2213
|
+
public var searchContent: [JSON] {
|
|
2154
2214
|
get {
|
|
2155
|
-
return resultMap["searchContent"]! as! [
|
|
2215
|
+
return resultMap["searchContent"]! as! [JSON]
|
|
2156
2216
|
}
|
|
2157
2217
|
set {
|
|
2158
2218
|
resultMap.updateValue(newValue, forKey: "searchContent")
|
|
@@ -2272,7 +2332,7 @@ public enum DashXGql {
|
|
|
2272
2332
|
mutation TrackEvent($input: TrackEventInput!) {
|
|
2273
2333
|
trackEvent(input: $input) {
|
|
2274
2334
|
__typename
|
|
2275
|
-
|
|
2335
|
+
success
|
|
2276
2336
|
}
|
|
2277
2337
|
}
|
|
2278
2338
|
"""
|
|
@@ -2318,12 +2378,12 @@ public enum DashXGql {
|
|
|
2318
2378
|
}
|
|
2319
2379
|
|
|
2320
2380
|
public struct TrackEvent: GraphQLSelectionSet {
|
|
2321
|
-
public static let possibleTypes: [String] = ["
|
|
2381
|
+
public static let possibleTypes: [String] = ["TrackEventResponse"]
|
|
2322
2382
|
|
|
2323
2383
|
public static var selections: [GraphQLSelection] {
|
|
2324
2384
|
return [
|
|
2325
2385
|
GraphQLField("__typename", type: .nonNull(.scalar(String.self))),
|
|
2326
|
-
GraphQLField("
|
|
2386
|
+
GraphQLField("success", type: .nonNull(.scalar(Bool.self))),
|
|
2327
2387
|
]
|
|
2328
2388
|
}
|
|
2329
2389
|
|
|
@@ -2333,8 +2393,8 @@ public enum DashXGql {
|
|
|
2333
2393
|
self.resultMap = unsafeResultMap
|
|
2334
2394
|
}
|
|
2335
2395
|
|
|
2336
|
-
public init(
|
|
2337
|
-
self.init(unsafeResultMap: ["__typename": "
|
|
2396
|
+
public init(success: Bool) {
|
|
2397
|
+
self.init(unsafeResultMap: ["__typename": "TrackEventResponse", "success": success])
|
|
2338
2398
|
}
|
|
2339
2399
|
|
|
2340
2400
|
public var __typename: String {
|
|
@@ -2346,12 +2406,12 @@ public enum DashXGql {
|
|
|
2346
2406
|
}
|
|
2347
2407
|
}
|
|
2348
2408
|
|
|
2349
|
-
public var
|
|
2409
|
+
public var success: Bool {
|
|
2350
2410
|
get {
|
|
2351
|
-
return resultMap["
|
|
2411
|
+
return resultMap["success"]! as! Bool
|
|
2352
2412
|
}
|
|
2353
2413
|
set {
|
|
2354
|
-
resultMap.updateValue(newValue, forKey: "
|
|
2414
|
+
resultMap.updateValue(newValue, forKey: "success")
|
|
2355
2415
|
}
|
|
2356
2416
|
}
|
|
2357
2417
|
}
|