@trycourier/courier-js 3.0.0 → 3.1.1

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.
@@ -21,17 +21,18 @@ export interface CourierUserPreferences {
21
21
  export interface CourierUserPreferencesTopicResponse {
22
22
  topic: CourierUserPreferencesTopic;
23
23
  }
24
- export declare class PreferenceTransformer {
25
- /**
26
- * Transforms a single API response item to the CourierUserPreferencesTopic type
27
- * @param item - The API response item
28
- * @returns A CourierUserPreferencesTopic object
29
- */
30
- transformItem(item: any): CourierUserPreferencesTopic;
31
- /**
32
- * Transforms an array of API response items to CourierUserPreferencesTopic objects
33
- * @param items - The API response items
34
- * @returns A generator of CourierUserPreferencesTopic objects
35
- */
36
- transform(items: any[]): Generator<CourierUserPreferencesTopic>;
24
+ /**
25
+ * GraphQL response type for recipient preference nodes
26
+ * @internal
27
+ */
28
+ export interface RecipientPreference {
29
+ templateId: string;
30
+ templateName?: string;
31
+ status?: string;
32
+ hasCustomRouting?: boolean;
33
+ routingPreferences?: string[];
34
+ digestSchedule?: string;
35
+ sectionId?: string;
36
+ sectionName?: string;
37
+ defaultStatus?: string;
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/courier-js",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": "A browser-safe API wrapper",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",