@zyphr-dev/node-sdk 0.1.63 → 0.1.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyphr-dev/node-sdk",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "description": "Official Zyphr SDK for Node.js, React, and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -194,7 +194,7 @@ export interface SubscribersApiInterface {
194
194
  createCategory(createCategoryRequest: CreateCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoryResponse>;
195
195
 
196
196
  /**
197
- * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated.
197
+ * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated; fields you omit keep their existing values. A new subscriber\'s timezone defaults to UTC and locale to en.
198
198
  * @summary Create or update a subscriber
199
199
  * @param {CreateSubscriberRequest} createSubscriberRequest
200
200
  * @param {*} [options] Override http request option.
@@ -204,7 +204,7 @@ export interface SubscribersApiInterface {
204
204
  createSubscriberRaw(requestParameters: SubscribersApiCreateSubscriberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriberResponse>>;
205
205
 
206
206
  /**
207
- * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated.
207
+ * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated; fields you omit keep their existing values. A new subscriber\'s timezone defaults to UTC and locale to en.
208
208
  * Create or update a subscriber
209
209
  */
210
210
  createSubscriber(createSubscriberRequest: CreateSubscriberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriberResponse>;
@@ -550,7 +550,7 @@ export class SubscribersApi extends runtime.BaseAPI implements SubscribersApiInt
550
550
  }
551
551
 
552
552
  /**
553
- * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated.
553
+ * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated; fields you omit keep their existing values. A new subscriber\'s timezone defaults to UTC and locale to en.
554
554
  * Create or update a subscriber
555
555
  */
556
556
  async createSubscriberRaw(requestParameters: SubscribersApiCreateSubscriberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubscriberResponse>> {
@@ -590,7 +590,7 @@ export class SubscribersApi extends runtime.BaseAPI implements SubscribersApiInt
590
590
  }
591
591
 
592
592
  /**
593
- * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated.
593
+ * Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated; fields you omit keep their existing values. A new subscriber\'s timezone defaults to UTC and locale to en.
594
594
  * Create or update a subscriber
595
595
  */
596
596
  async createSubscriber(createSubscriberRequest: CreateSubscriberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriberResponse> {
@@ -26,11 +26,11 @@ export interface PushMessage {
26
26
  */
27
27
  id?: string;
28
28
  /**
29
- *
29
+ * The target device. Null once the device has been removed because its push token expired.
30
30
  * @type {string}
31
31
  * @memberof PushMessage
32
32
  */
33
- deviceId?: string;
33
+ deviceId?: string | null;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -41,11 +41,11 @@ export interface PushMessageDetail {
41
41
  */
42
42
  id?: string;
43
43
  /**
44
- *
44
+ * The target device. Null once the device has been removed because its push token expired.
45
45
  * @type {string}
46
46
  * @memberof PushMessageDetail
47
47
  */
48
- deviceId?: string;
48
+ deviceId?: string | null;
49
49
  /**
50
50
  *
51
51
  * @type {string}