@developer_tribe/react-native-comnyx 0.7.6 → 0.8.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.
Files changed (108) hide show
  1. package/android/build.gradle +12 -6
  2. package/android/generated/RCTAppDependencyProvider.h +25 -0
  3. package/android/generated/RCTAppDependencyProvider.mm +55 -0
  4. package/android/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  5. package/android/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  6. package/android/generated/RCTThirdPartyComponentsProvider.h +16 -0
  7. package/android/generated/RCTThirdPartyComponentsProvider.mm +23 -0
  8. package/android/generated/ReactAppDependencyProvider.podspec +34 -0
  9. package/android/generated/jni/RNComnyxSpec-generated.cpp +1 -11
  10. package/android/generated/jni/RNComnyxSpec.h +0 -7
  11. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI-generated.cpp +0 -11
  12. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI.h +0 -52
  13. package/android/src/main/java/com/comnyx/ComnyxModule.kt +75 -7
  14. package/android/src/main/java/com/comnyx/ComnyxPackage.kt +0 -3
  15. package/android/src/main/java/com/comnyx/src/messaging/firebase/FirebaseMessagingService.kt +1 -9
  16. package/android/src/main/java/com/comnyx/src/messaging/notifications/NotificationsService.kt +105 -8
  17. package/ios/Comnyx.m +2 -2
  18. package/ios/Comnyx.swift +83 -20
  19. package/ios/generated/RCTAppDependencyProvider.h +25 -0
  20. package/ios/generated/RCTAppDependencyProvider.mm +55 -0
  21. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  22. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  23. package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
  24. package/ios/generated/RCTThirdPartyComponentsProvider.mm +23 -0
  25. package/ios/generated/RNComnyxSpec/RNComnyxSpec-generated.mm +0 -23
  26. package/ios/generated/RNComnyxSpec/RNComnyxSpec.h +0 -25
  27. package/ios/generated/RNComnyxSpecJSI-generated.cpp +0 -11
  28. package/ios/generated/RNComnyxSpecJSI.h +0 -52
  29. package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
  30. package/lib/commonjs/NativeComnyx.js.map +1 -1
  31. package/lib/commonjs/api/api.js +4 -0
  32. package/lib/commonjs/api/api.js.map +1 -1
  33. package/lib/commonjs/components/ChatList.js +100 -106
  34. package/lib/commonjs/components/ChatList.js.map +1 -1
  35. package/lib/commonjs/components/CustomerForm.js +173 -179
  36. package/lib/commonjs/components/CustomerForm.js.map +1 -1
  37. package/lib/commonjs/components/EmptyList.js +5 -7
  38. package/lib/commonjs/components/EmptyList.js.map +1 -1
  39. package/lib/commonjs/constants/translations.js +145 -29
  40. package/lib/commonjs/constants/translations.js.map +1 -1
  41. package/lib/commonjs/hooks/useLocalize.js +7 -0
  42. package/lib/commonjs/hooks/useLocalize.js.map +1 -1
  43. package/lib/commonjs/notifications/index.js +2 -1
  44. package/lib/commonjs/notifications/index.js.map +1 -1
  45. package/lib/commonjs/notifications/initializeNotifications.js +137 -0
  46. package/lib/commonjs/notifications/initializeNotifications.js.map +1 -0
  47. package/lib/commonjs/register/login.js +1 -1
  48. package/lib/commonjs/register/login.js.map +1 -1
  49. package/lib/commonjs/store/store.js +14 -1
  50. package/lib/commonjs/store/store.js.map +1 -1
  51. package/lib/module/NativeComnyx.js.map +1 -1
  52. package/lib/module/api/api.js +3 -0
  53. package/lib/module/api/api.js.map +1 -1
  54. package/lib/module/components/ChatList.js +101 -107
  55. package/lib/module/components/ChatList.js.map +1 -1
  56. package/lib/module/components/CustomerForm.js +174 -180
  57. package/lib/module/components/CustomerForm.js.map +1 -1
  58. package/lib/module/components/EmptyList.js +6 -8
  59. package/lib/module/components/EmptyList.js.map +1 -1
  60. package/lib/module/constants/translations.js +145 -29
  61. package/lib/module/constants/translations.js.map +1 -1
  62. package/lib/module/hooks/useLocalize.js +6 -0
  63. package/lib/module/hooks/useLocalize.js.map +1 -1
  64. package/lib/module/notifications/index.js +2 -1
  65. package/lib/module/notifications/index.js.map +1 -1
  66. package/lib/module/notifications/initializeNotifications.js +133 -0
  67. package/lib/module/notifications/initializeNotifications.js.map +1 -0
  68. package/lib/module/register/login.js +1 -1
  69. package/lib/module/register/login.js.map +1 -1
  70. package/lib/module/store/store.js +14 -1
  71. package/lib/module/store/store.js.map +1 -1
  72. package/lib/typescript/src/NativeComnyx.d.ts +6 -1
  73. package/lib/typescript/src/NativeComnyx.d.ts.map +1 -1
  74. package/lib/typescript/src/api/api.d.ts +1 -0
  75. package/lib/typescript/src/api/api.d.ts.map +1 -1
  76. package/lib/typescript/src/components/ChatList.d.ts.map +1 -1
  77. package/lib/typescript/src/components/CustomerForm.d.ts.map +1 -1
  78. package/lib/typescript/src/components/EmptyList.d.ts.map +1 -1
  79. package/lib/typescript/src/constants/translations.d.ts.map +1 -1
  80. package/lib/typescript/src/hooks/useLocalize.d.ts +1 -0
  81. package/lib/typescript/src/hooks/useLocalize.d.ts.map +1 -1
  82. package/lib/typescript/src/notifications/index.d.ts +63 -4
  83. package/lib/typescript/src/notifications/index.d.ts.map +1 -1
  84. package/lib/typescript/src/notifications/initializeNotifications.d.ts +7 -0
  85. package/lib/typescript/src/notifications/initializeNotifications.d.ts.map +1 -0
  86. package/lib/typescript/src/store/store.d.ts +4 -0
  87. package/lib/typescript/src/store/store.d.ts.map +1 -1
  88. package/lib/typescript/src/types/Customer.d.ts +5 -0
  89. package/lib/typescript/src/types/Customer.d.ts.map +1 -1
  90. package/lib/typescript/src/types/LocalizationKeys.d.ts +4 -0
  91. package/lib/typescript/src/types/LocalizationKeys.d.ts.map +1 -1
  92. package/package.json +1 -1
  93. package/src/NativeComnyx.ts +6 -1
  94. package/src/api/api.ts +4 -0
  95. package/src/components/ChatList.tsx +110 -123
  96. package/src/components/CustomerForm.tsx +194 -212
  97. package/src/components/EmptyList.tsx +3 -10
  98. package/src/constants/translations.ts +145 -0
  99. package/src/hooks/useLocalize.ts +6 -0
  100. package/src/notifications/index.ts +69 -5
  101. package/src/notifications/initializeNotifications.ts +180 -0
  102. package/src/register/login.ts +1 -1
  103. package/src/store/store.ts +13 -0
  104. package/src/types/Customer.ts +5 -0
  105. package/src/types/LocalizationKeys.ts +4 -0
  106. package/android/generated/java/com/comnyx/NativeComnyxSpec.java +0 -37
  107. package/lib/typescript/setup-jest.d.ts +0 -1
  108. package/lib/typescript/setup-jest.d.ts.map +0 -1
@@ -20,6 +20,11 @@ export interface CreateCustomerRequest {
20
20
  ipAddress?: string;
21
21
  customParameters?: CustomParameter[];
22
22
  integrationParameters?: IntegrationParameters;
23
+ apnsToken?: string;
24
+ fcmToken?: string;
25
+ allow_notifications?: boolean;
26
+ platform?: string;
27
+ timezone?: string;
23
28
  }
24
29
 
25
30
  export interface Customer {
@@ -39,4 +39,8 @@ export type LocalizationKeys = {
39
39
  'customer.form.failed.phone.desc': string;
40
40
  'customer.form.name': string;
41
41
  'customer.form.cancel': string;
42
+ 'notifications.optIn.title': string;
43
+ 'notifications.optIn.description': string;
44
+ 'notifications.optIn.cancel': string;
45
+ 'notifications.optIn.openSettings': string;
42
46
  };
@@ -1,37 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJavaSpec.js
9
- *
10
- * @nolint
11
- */
12
-
13
- package com.comnyx;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.ReactApplicationContext;
17
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
18
- import com.facebook.react.bridge.ReactMethod;
19
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
20
- import javax.annotation.Nonnull;
21
-
22
- public abstract class NativeComnyxSpec extends ReactContextBaseJavaModule implements TurboModule {
23
- public static final String NAME = "Comnyx";
24
-
25
- public NativeComnyxSpec(ReactApplicationContext reactContext) {
26
- super(reactContext);
27
- }
28
-
29
- @Override
30
- public @Nonnull String getName() {
31
- return NAME;
32
- }
33
-
34
- @ReactMethod(isBlockingSynchronousMethod = true)
35
- @DoNotStrip
36
- public abstract double multiply(double a, double b);
37
- }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=setup-jest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-jest.d.ts","sourceRoot":"","sources":["../../setup-jest.ts"],"names":[],"mappings":""}