@byted-apaas/server-sdk-node 1.1.20-beta.1 → 1.1.20-beta.2

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.
@@ -37,6 +37,7 @@ export declare class PushCenter {
37
37
  * @param batchNo 批量编号
38
38
  * @param receiverIDs 接收者ID列表
39
39
  * @param tags 标签列表
40
+ * @param withFeedback 是否获取已读反馈
40
41
  */
41
- getMessageStatus(batchNo: string, receiverIDs?: string[], tags?: Map<string, string>): Promise<any>;
42
+ getMessageStatus(batchNo: string, receiverIDs?: string[], tags?: Map<string, string>, withFeedback?: boolean): Promise<any>;
42
43
  }
@@ -38,9 +38,10 @@ class PushCenter {
38
38
  * @param batchNo 批量编号
39
39
  * @param receiverIDs 接收者ID列表
40
40
  * @param tags 标签列表
41
+ * @param withFeedback 是否获取已读反馈
41
42
  */
42
- async getMessageStatus(batchNo, receiverIDs, tags) {
43
- return await Request.GetInstance().getMessageStatus(batchNo, receiverIDs, tags);
43
+ async getMessageStatus(batchNo, receiverIDs, tags, withFeedback) {
44
+ return await Request.GetInstance().getMessageStatus(batchNo, receiverIDs, tags, withFeedback);
44
45
  }
45
46
  ;
46
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byted-apaas/server-sdk-node",
3
- "version": "1.1.20-beta.1",
3
+ "version": "1.1.20-beta.2",
4
4
  "description": "aPaaS Server SDK",
5
5
  "author": "zhouwexin <zhouwexin@bytedance.com>",
6
6
  "homepage": "",
@@ -71,7 +71,7 @@ export interface IInnerAPIBaseRequest {
71
71
  refreshTasksCache: (tasks: any, cacheDuration: number) => Promise<number>;
72
72
  sendMessageBatch: (receiverInfos: any, channelIDs: string[], template: string, batchNo: string, senderID: string, senderIDType: string, subBatchNo?: string, tags?: Map<string, string>, extra?: Map<string, string>) => Promise<string>;
73
73
  getMessageBatchStatus: (batchNo: string, tags?: Map<string, string>) => Promise<any>;
74
- getMessageStatus: (batchNo: string, receiverIDs?: string[], tags?: Map<string, string>) => Promise<any>;
74
+ getMessageStatus: (batchNo: string, receiverIDs?: string[], tags?: Map<string, string>, withFeedback?: boolean) => Promise<any>;
75
75
  getFields: (objectApiName: string) => Promise<any>;
76
76
  getField: (objectApiName: string, fieldApiName: string) => Promise<any>;
77
77
  terminateWorkflowInstance: (workflowInstanceId: number, operator: number, reason: string) => Promise<void>;
@@ -37,7 +37,7 @@ export declare class RequestHttp implements IInnerAPIRequest {
37
37
  getTaskDetail(task: any): Promise<any>;
38
38
  sendMessageBatch(receiverInfos: any, channelIDs: string[], template: string, batchNo: string, senderID: string, senderIDType: string, subBatchNo?: string, tags?: Map<string, string>, extra?: Map<string, string>): Promise<string>;
39
39
  getMessageBatchStatus(batchNo: string, tags?: Map<string, string>): Promise<any>;
40
- getMessageStatus(batchNo: string, receiverIDs?: string[], tags?: Map<string, string>): Promise<any>;
40
+ getMessageStatus(batchNo: string, receiverIDs?: string[], tags?: Map<string, string>, withFeedback?: boolean): Promise<any>;
41
41
  refreshTasksCache(cacheDuration: number, tasks: any): Promise<any>;
42
42
  getFields(objectApiName: string): any;
43
43
  getField(objectApiName: string, fieldApiName: string): any;
@@ -1115,7 +1115,7 @@ class RequestHttp {
1115
1115
  getMessageBatchStatus(batchNo, tags) {
1116
1116
  return null;
1117
1117
  }
1118
- getMessageStatus(batchNo, receiverIDs, tags) {
1118
+ getMessageStatus(batchNo, receiverIDs, tags, withFeedback) {
1119
1119
  return null;
1120
1120
  }
1121
1121
  refreshTasksCache(cacheDuration, tasks) {
@@ -1597,13 +1597,14 @@ async function getMessageBatchStatus(batchNo, tags) {
1597
1597
  };
1598
1598
  return await openapi.doRequest(null, urlPath, options);
1599
1599
  }
1600
- async function getMessageStatus(batchNo, receiverIDs, tags) {
1600
+ async function getMessageStatus(batchNo, receiverIDs, tags, withFeedback) {
1601
1601
  let options = commonHttp.getOptions(null, openapiHttpPath.pushCenterGetMessageStatus);
1602
1602
  let urlPath = options._reqPath.replace(replaceKeys.namespace, await (0, common_1.getNamespaceForOpenAndFaaSSDK)());
1603
1603
  options.json = {
1604
1604
  'batch_no': batchNo,
1605
1605
  'receiver_ids': receiverIDs,
1606
1606
  'tags': tags,
1607
+ 'with_feedback': withFeedback,
1607
1608
  };
1608
1609
  return await openapi.doRequest(null, urlPath, options);
1609
1610
  }