@altcraft/react-native-sdk 0.0.2 → 0.0.4

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 (36) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +119 -27
  3. package/Sdk.podspec +2 -2
  4. package/android/build.gradle +3 -4
  5. package/android/src/main/java/com/altcraft/sdk/SdkEventEmitter.kt +50 -0
  6. package/android/src/main/java/com/altcraft/sdk/SdkModule.kt +663 -480
  7. package/android/src/main/java/com/altcraft/sdk/SdkPackage.kt +16 -8
  8. package/android/src/main/java/com/altcraft/sdk/utilities/Converter.kt +164 -0
  9. package/android/src/main/java/com/altcraft/sdk/utilities/Extension.kt +72 -0
  10. package/ios/Converter.swift +485 -48
  11. package/ios/Sdk.mm +195 -270
  12. package/ios/SdkModule.swift +456 -507
  13. package/lib/module/NativeSdk.js +35 -0
  14. package/lib/module/NativeSdk.js.map +1 -1
  15. package/lib/module/Utilities.js +178 -0
  16. package/lib/module/Utilities.js.map +1 -0
  17. package/lib/module/index.js +335 -245
  18. package/lib/module/index.js.map +1 -1
  19. package/lib/typescript/src/NativeSdk.d.ts +125 -33
  20. package/lib/typescript/src/NativeSdk.d.ts.map +1 -1
  21. package/lib/typescript/src/Utilities.d.ts +47 -0
  22. package/lib/typescript/src/Utilities.d.ts.map +1 -0
  23. package/lib/typescript/src/index.d.ts +218 -94
  24. package/lib/typescript/src/index.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/NativeSdk.ts +169 -46
  27. package/src/Utilities.ts +180 -0
  28. package/src/index.tsx +410 -312
  29. package/android/src/main/java/com/altcraft/sdk/interfaces/RnFCMProvider.kt +0 -26
  30. package/android/src/main/java/com/altcraft/sdk/interfaces/RnHMSProvider.kt +0 -32
  31. package/android/src/main/java/com/altcraft/sdk/interfaces/RnJWTProvider.kt +0 -21
  32. package/android/src/main/java/com/altcraft/sdk/interfaces/RnRustoreProvider.kt +0 -53
  33. package/ios/protocols/RNAPNSProvider.swift +0 -15
  34. package/ios/protocols/RNFCMProvider.swift +0 -24
  35. package/ios/protocols/RNHMSProvider.swift +0 -24
  36. package/ios/protocols/RNJWTProvider.swift +0 -15
@@ -1,97 +1,225 @@
1
- import { type AltcraftConfig, type CategoryData, type ResponseWithHttpCode, type TokenData } from './NativeSdk';
2
- /** SDK event payload emitted from native via NativeEventEmitter ("AltcraftSdkEvent"). */
3
- export type SdkEvent = {
4
- function: string;
5
- code: number | null;
6
- message: string;
7
- type: 'event' | 'error' | 'retryError';
8
- value?: Record<string, unknown> | null;
9
- };
10
- /** UTM tags for mobileEvent attribution. */
11
- export type UTM = {
12
- campaign?: string | null;
13
- content?: string | null;
14
- keyword?: string | null;
15
- medium?: string | null;
16
- source?: string | null;
17
- temp?: string | null;
18
- };
19
- /** JS handler interface for incoming push payloads. */
20
- export declare abstract class PushReceiver {
21
- /** Called with a flat push payload map. */
22
- abstract pushHandler(message: Record<string, string>): void;
23
- }
24
- /** Registers a JS push receiver. */
25
- export declare function registerPushReceiver(receiver: PushReceiver): void;
26
- /** Clears all JS push receivers. */
27
- export declare function clearPushReceivers(): void;
28
- /**
29
- * Forwards a push payload to native SDK and then to JS receivers.
30
- * This does not intercept system notifications by itself.
1
+ import { type AltcraftConfig, type CategoryData, type ResponseWithHttpCode, type TokenData, type EmailSubscription, type SmsSubscription, type PushSubscription, type CcDataSubscription, type Subscription, type UTM, type SdkEvent } from './NativeSdk';
2
+ import { ActionFieldBuilder, actionField } from './Utilities';
3
+ /**
4
+ * Initializes the Altcraft SDK.
5
+ *
6
+ * @param config SDK configuration.
7
+ * `apiUrl` is required.
8
+ * Other fields are optional and depend on platform features.
9
+ * @returns Promise that resolves on successful initialization.
31
10
  */
32
- export declare function takePush(message: Record<string, string>): void;
33
- /** Subscribes to native SDK events and routes them to the handler. */
34
- export declare function subscribeToEvents(handler: (event: SdkEvent) => void): void;
35
- /** Unsubscribes from native SDK events. */
36
- export declare function unsubscribeFromEvent(): void;
37
- /** Initializes the Altcraft SDK. */
38
11
  export declare function initialize(config: AltcraftConfig): Promise<void>;
39
- /** Sets or clears the JWT used by the SDK. */
40
- export declare function setJwt(token: string | null): void;
41
- /** Android-only: sets FCM token. */
42
- export declare function setAndroidFcmToken(token: string | null): void;
43
- /** iOS-only: sets FCM token. */
44
- export declare function setIosFcmToken(token: string | null): void;
45
- /** Android-only: sets HMS token. */
46
- export declare function setAndroidHmsToken(token: string | null): void;
47
- /** iOS-only: sets HMS token. */
48
- export declare function setIosHmsToken(token: string | null): void;
49
- /** iOS-only: sets APNs token. */
50
- export declare function setApnsToken(token: string | null): void;
51
- /** Android-only: sets RuStore token. */
52
- export declare function setRustoreToken(token: string | null): void;
53
- /** Push subscribe (fire-and-forget). */
12
+ /**
13
+ * Sends a push subscribe request.
14
+ *
15
+ * @param sync Execution mode:
16
+ * `true` — sends a synchronous request to the server and returns
17
+ * the result of the operation execution.
18
+ * `false` — sends an asynchronous request and returns
19
+ * the result of task enqueueing on the server.
20
+ * `null` — native default behavior.
21
+ * @param profileFields Optional profile fields to attach to the request.
22
+ * @param customFields Optional custom fields to attach to the request.
23
+ * @param cats Optional categories list.
24
+ * @param replace Optional flag to replace an existing subscription.
25
+ * @param skipTriggers Optional flag to skip trigger execution on the server.
26
+ */
54
27
  export declare function pushSubscribe(sync?: boolean | null, profileFields?: Record<string, unknown> | null, customFields?: Record<string, unknown> | null, cats?: CategoryData[] | null, replace?: boolean | null, skipTriggers?: boolean | null): void;
55
- /** Push suspend (fire-and-forget). */
28
+ /**
29
+ * Sends a push suspend request.
30
+ *
31
+ * @param sync Execution mode (see {@link pushSubscribe}).
32
+ * @param profileFields Optional profile fields.
33
+ * @param customFields Optional custom fields.
34
+ * @param cats Optional categories list.
35
+ * @param replace Optional flag to replace an existing subscription.
36
+ * @param skipTriggers Optional flag to skip trigger execution on the server.
37
+ */
56
38
  export declare function pushSuspend(sync?: boolean | null, profileFields?: Record<string, unknown> | null, customFields?: Record<string, unknown> | null, cats?: CategoryData[] | null, replace?: boolean | null, skipTriggers?: boolean | null): void;
57
- /** Push unsubscribe (fire-and-forget). */
39
+ /**
40
+ * Sends a push unsubscribe request.
41
+ *
42
+ * @param sync Execution mode (see {@link pushSubscribe}).
43
+ * @param profileFields Optional profile fields.
44
+ * @param customFields Optional custom fields.
45
+ * @param cats Optional categories list.
46
+ * @param replace Optional flag to replace an existing subscription.
47
+ * @param skipTriggers Optional flag to skip trigger execution on the server.
48
+ */
58
49
  export declare function pushUnSubscribe(sync?: boolean | null, profileFields?: Record<string, unknown> | null, customFields?: Record<string, unknown> | null, cats?: CategoryData[] | null, replace?: boolean | null, skipTriggers?: boolean | null): void;
59
- /** Un-suspends push subscription and returns response (if any). */
50
+ /**
51
+ * Unsuspends push subscriptions based on native matching rules.
52
+ *
53
+ * @returns Promise resolving to response with HTTP code or `null` if unavailable.
54
+ */
60
55
  export declare function unSuspendPushSubscription(): Promise<ResponseWithHttpCode | null>;
61
- /** Returns latest subscription status (if any). */
56
+ /**
57
+ * Returns the status of the latest subscription in profile.
58
+ *
59
+ * @returns Promise resolving to response with HTTP code or `null` if unavailable.
60
+ */
62
61
  export declare function getStatusOfLatestSubscription(): Promise<ResponseWithHttpCode | null>;
63
- /** Returns latest subscription status for a provider (if any). */
64
- export declare function getStatusOfLatestSubscriptionForProvider(provider?: string | null): Promise<ResponseWithHttpCode | null>;
65
- /** Returns current subscription status (if any). */
62
+ /**
63
+ * Returns the status of the subscription matching the current push token and provider context.
64
+ *
65
+ * @returns Promise resolving to response with HTTP code or `null` if unavailable.
66
+ */
66
67
  export declare function getStatusForCurrentSubscription(): Promise<ResponseWithHttpCode | null>;
67
- /** Returns current push token (or null). */
68
+ /**
69
+ * Returns the status of the latest subscription for the given provider.
70
+ *
71
+ * If `provider` is `null`, native side may use the current provider context.
72
+ *
73
+ * @param provider Optional provider identifier (platform-dependent).
74
+ * @returns Promise resolving to response with HTTP code or `null` if unavailable.
75
+ */
76
+ export declare function getStatusOfLatestSubscriptionForProvider(provider?: string | null): Promise<ResponseWithHttpCode | null>;
77
+ /**
78
+ * Returns the current push token data from native side.
79
+ *
80
+ * @returns Promise resolving to token info or `null` if token is not available.
81
+ */
68
82
  export declare function getPushToken(): Promise<TokenData | null>;
69
- /** Deletes device token for provider. */
70
- export declare function deleteDeviceToken(provider: string | null): Promise<void>;
71
- /** Forces token refresh flow. */
72
- export declare function forcedTokenUpdate(): Promise<void>;
73
- /** Updates provider priority list. */
74
- export declare function changePushProviderPriorityList(priorityList: string[] | null): Promise<void>;
75
- /** Sets or clears token for a specific provider. */
83
+ /**
84
+ * Sets or clears the push token for a specific provider.
85
+ *
86
+ * @param provider Provider identifier (e.g. platform push provider name).
87
+ * @param token Token string or `null` to clear.
88
+ * @returns Promise that resolves when the token is saved on native side.
89
+ */
76
90
  export declare function setPushToken(provider: string, token: string | null): Promise<void>;
77
- /** Clears SDK local state. */
91
+ /**
92
+ * Clears SDK local state (native).
93
+ *
94
+ * @returns Promise that resolves after cleanup.
95
+ */
78
96
  export declare function clear(): Promise<void>;
79
- /** Resets session init-control state (platform-dependent). */
80
- export declare function unlockInitOperationsInThisSession(): void;
81
- /** Requests notification permission (platform-dependent). */
97
+ /**
98
+ * Sends a mobile event to the server.
99
+ *
100
+ * @param sid Pixel identifier.
101
+ * @param eventName Event name.
102
+ * @param sendMessageId Optional message identifier to link the event.
103
+ * @param payload Optional event payload.
104
+ * @param matching Optional matching parameters.
105
+ * @param matchingType Optional matching mode/type.
106
+ * @param profileFields Optional profile fields.
107
+ * @param subscription Optional subscription info to attach (email/sms/push/cc_data).
108
+ * @param utm Optional UTM tags for attribution.
109
+ */
110
+ export declare function mobileEvent(sid: string, eventName: string, sendMessageId?: string | null, payload?: Record<string, unknown> | null, matching?: Record<string, unknown> | null, matchingType?: string | null, profileFields?: Record<string, unknown> | null, subscription?: Subscription | null, utm?: UTM | null): void;
111
+ /**
112
+ * Subscribes to native SDK events and routes them to the provided handler.
113
+ *
114
+ * Multiple callers can subscribe independently — each handler receives every event.
115
+ * The native subscription is activated only once (first caller).
116
+ *
117
+ * @param handler Callback invoked for each incoming SDK event.
118
+ * The event object is produced by native and follows {@link SdkEvent}.
119
+ */
120
+ export declare function subscribeToEvents(handler: (event: SdkEvent) => void): void;
121
+ /**
122
+ * Unsubscribes a specific handler from native SDK events.
123
+ *
124
+ * When the last handler is removed, the native subscription is also released.
125
+ * Safe to call even if not subscribed.
126
+ */
127
+ export declare function unsubscribeFromEvent(handler?: (event: SdkEvent) => void): void;
128
+ /**
129
+ * Forwards a push payload to native SDK (Android-only behavior).
130
+ *
131
+ * @param message Push payload map (string-only).
132
+ */
133
+ export declare function takePush(message: Record<string, string>): void;
134
+ /**
135
+ * Requests notification permission (Android-only behavior).
136
+ * On Android it may trigger runtime permission flow,
137
+ * n iOS it can be a no-op or routed to native implementation.
138
+ */
82
139
  export declare function requestNotificationPermission(): void;
83
- /** Stores a value into native UserDefaults / SharedPreferences (platform-dependent). */
84
- export declare function setUserDefaultsValue(suiteName: string | null, key: string, value: unknown): void;
85
- /** Sends a mobile event (fire-and-forget). */
86
- export declare function mobileEvent(sid: string, eventName: string, sendMessageId?: string | null, payload?: Record<string, unknown> | null, matching?: Record<string, unknown> | null, matchingType?: string | null, profileFields?: Record<string, unknown> | null, utm?: UTM | null): void;
87
- /** Manually records a push delivery event (fire-and-forget). */
140
+ /**
141
+ * Reports an Altcraft push delivery event (Android-only behavior).
142
+ *
143
+ * @param message Optional push payload (string-only).
144
+ * @param messageUID Optional Altcraft message UID.
145
+ */
88
146
  export declare function deliveryEvent(message?: Record<string, string> | null, messageUID?: string | null): void;
89
- /** Manually records a push open event (fire-and-forget). */
147
+ /**
148
+ * Reports an Altcraft push open event (Android-only behavior).
149
+ *
150
+ * @param message Optional push payload (string-only).
151
+ * @param messageUID Optional Altcraft message UID.
152
+ */
90
153
  export declare function openEvent(message?: Record<string, string> | null, messageUID?: string | null): void;
91
- /** Public React Native facade for the Altcraft SDK. */
154
+ /**
155
+ * Stores a value into native UserDefaults (IOS-only behavior).
156
+ *
157
+ * @param suiteName iOS App Group suite name or `null` to use standard UserDefaults.
158
+ * @param key Storage key.
159
+ * @param value Any JS value; will be converted to string or removed when `null/undefined`.
160
+ */
161
+ export declare function setUserDefaultsValue(suiteName: string | null, key: string, value: unknown): void;
162
+ /**
163
+ * Updates profile fields on the server.
164
+ *
165
+ * @param profileFields Optional profile fields to update.
166
+ * @param skipTriggers Optional flag to skip trigger execution on the server.
167
+ */
168
+ export declare function updateProfileFields(profileFields?: Record<string, unknown> | null, skipTriggers?: boolean | null): void;
169
+ /**
170
+ * Forces a push token refresh (delete current token + re-register).
171
+ *
172
+ * @returns Promise that resolves when the token update flow completes.
173
+ */
174
+ export declare function forcedTokenUpdate(): Promise<void>;
175
+ /**
176
+ * Deletes the device token for a given provider.
177
+ *
178
+ * @param provider Provider identifier (e.g. `android-firebase`, `ios-firebase`).
179
+ * @returns Promise that resolves when the delete call completes.
180
+ */
181
+ export declare function deleteDeviceToken(provider: string): Promise<void>;
182
+ /**
183
+ * Changes the push provider priority list at runtime.
184
+ *
185
+ * @param priorityList Ordered list of provider identifiers.
186
+ * @returns Promise that resolves when the priority list is updated.
187
+ */
188
+ export declare function changePushProviderPriorityList(priorityList: string[] | null): Promise<void>;
189
+ /**
190
+ * Checks whether a push payload belongs to Altcraft.
191
+ *
192
+ * @param message Push payload map (string-only).
193
+ * @returns `true` if the message contains the Altcraft marker key.
194
+ */
195
+ export declare function isAltcraftPush(message: Record<string, string>): boolean;
196
+ /**
197
+ * Allows re-running initial retry/scheduling/token-check logic
198
+ * in this process on the next initialization (Android only).
199
+ * No-op on iOS.
200
+ */
201
+ export declare function unlockInitialOperationsInThisSession(): void;
202
+ /**
203
+ * Sets the App Group name for shared UserDefaults and Core Data (iOS only).
204
+ * Must be called before SDK initialization.
205
+ *
206
+ * @param groupName App Group identifier or `null` to clear.
207
+ */
208
+ export declare function setAppGroup(groupName: string | null): void;
209
+ /**
210
+ * Public React Native facade for the Altcraft SDK.
211
+ *
212
+ * Provides:
213
+ * - SDK initialization
214
+ * - Push subscription operations
215
+ * - Subscription status queries
216
+ * - SDK event stream via NativeEventEmitter
217
+ * - Mobile events
218
+ * - Push token access
219
+ * - Local storage bridge (UserDefaults/SharedPreferences)
220
+ */
92
221
  declare const AltcraftSDK: {
93
222
  initialize: typeof initialize;
94
- setJwt: typeof setJwt;
95
223
  pushSubscribe: typeof pushSubscribe;
96
224
  pushSuspend: typeof pushSuspend;
97
225
  pushUnSubscribe: typeof pushUnSubscribe;
@@ -99,30 +227,26 @@ declare const AltcraftSDK: {
99
227
  getStatusOfLatestSubscription: typeof getStatusOfLatestSubscription;
100
228
  getStatusOfLatestSubscriptionForProvider: typeof getStatusOfLatestSubscriptionForProvider;
101
229
  getStatusForCurrentSubscription: typeof getStatusForCurrentSubscription;
102
- getPushToken: typeof getPushToken;
103
- deleteDeviceToken: typeof deleteDeviceToken;
104
- forcedTokenUpdate: typeof forcedTokenUpdate;
105
- changePushProviderPriorityList: typeof changePushProviderPriorityList;
106
- setPushToken: typeof setPushToken;
107
- mobileEvent: typeof mobileEvent;
108
230
  subscribeToEvents: typeof subscribeToEvents;
109
231
  unsubscribeFromEvent: typeof unsubscribeFromEvent;
232
+ mobileEvent: typeof mobileEvent;
233
+ setPushToken: typeof setPushToken;
234
+ getPushToken: typeof getPushToken;
110
235
  clear: typeof clear;
111
- setIosFcmToken: typeof setIosFcmToken;
112
- setIosHmsToken: typeof setIosHmsToken;
113
- setApnsToken: typeof setApnsToken;
114
236
  setUserDefaultsValue: typeof setUserDefaultsValue;
115
- setAndroidFcmToken: typeof setAndroidFcmToken;
116
- setAndroidHmsToken: typeof setAndroidHmsToken;
117
- setRustoreToken: typeof setRustoreToken;
118
- PushReceiver: typeof PushReceiver;
119
- registerPushReceiver: typeof registerPushReceiver;
120
- clearPushReceivers: typeof clearPushReceivers;
121
237
  takePush: typeof takePush;
122
238
  deliveryEvent: typeof deliveryEvent;
123
239
  openEvent: typeof openEvent;
124
- unlockInitOperationsInThisSession: typeof unlockInitOperationsInThisSession;
125
240
  requestNotificationPermission: typeof requestNotificationPermission;
241
+ unlockInitialOperationsInThisSession: typeof unlockInitialOperationsInThisSession;
242
+ updateProfileFields: typeof updateProfileFields;
243
+ forcedTokenUpdate: typeof forcedTokenUpdate;
244
+ deleteDeviceToken: typeof deleteDeviceToken;
245
+ changePushProviderPriorityList: typeof changePushProviderPriorityList;
246
+ isAltcraftPush: typeof isAltcraftPush;
247
+ setAppGroup: typeof setAppGroup;
126
248
  };
127
249
  export default AltcraftSDK;
250
+ export { ActionFieldBuilder, actionField };
251
+ export type { AltcraftConfig, CategoryData, ResponseWithHttpCode, TokenData, EmailSubscription, SmsSubscription, PushSubscription, CcDataSubscription, Subscription, UTM, SdkEvent, };
128
252
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AAErB,yFAAyF;AACzF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CACxC,CAAC;AAEF,4CAA4C;AAC5C,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAA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SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAE1D;AAID;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDhB,CAAC;AAEF,eAAe,WAAW,CAAC;AAE3B,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAAC;AAE3C,YAAY,EACV,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,GAAG,EACH,QAAQ,GACT,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altcraft/react-native-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Altcraft Platform SDK for React Native",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",