@pushwoosh/rpc-v2-http-api-data 0.1.939 → 0.1.940

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 (3) hide show
  1. package/data.js +22 -0
  2. package/deeplinks.d.ts +13 -0
  3. package/package.json +1 -1
package/data.js CHANGED
@@ -5929,6 +5929,12 @@ export const data = {
5929
5929
  "response": "pushwoosh.rpc_v2.deeplinks.DeleteDeeplinkResponse",
5930
5930
  "method": "delete",
5931
5931
  "path": "/api/deeplinks/{code}"
5932
+ },
5933
+ "GetLinkContent": {
5934
+ "request": "pushwoosh.rpc_v2.deeplinks.GetLinkContentRequest",
5935
+ "response": "pushwoosh.rpc_v2.deeplinks.GetLinkContentResponse",
5936
+ "method": "post",
5937
+ "path": "/api/deeplinks/link_content"
5932
5938
  }
5933
5939
  }
5934
5940
  },
@@ -6078,6 +6084,22 @@ export const data = {
6078
6084
  "type": "I",
6079
6085
  "fields": {}
6080
6086
  },
6087
+ "pushwoosh.rpc_v2.deeplinks.GetLinkContentRequest": {
6088
+ "type": "I",
6089
+ "fields": {
6090
+ "uri": {
6091
+ "type": "string"
6092
+ }
6093
+ }
6094
+ },
6095
+ "pushwoosh.rpc_v2.deeplinks.GetLinkContentResponse": {
6096
+ "type": "I",
6097
+ "fields": {
6098
+ "content": {
6099
+ "type": "string"
6100
+ }
6101
+ }
6102
+ },
6081
6103
  "pushwoosh.rpc_v2.devices.DevicesService": {
6082
6104
  "type": "S",
6083
6105
  "key": "devices",
package/deeplinks.d.ts CHANGED
@@ -4,12 +4,18 @@ export type DeeplinksService_Get = RpcMethod<GetDeeplinkRequest, GetDeeplinkResp
4
4
  export type DeeplinksService_Create = RpcMethod<CreateDeeplinkRequest, CreateDeeplinkResponse>;
5
5
  export type DeeplinksService_Update = RpcMethod<UpdateDeeplinkRequest, UpdateDeeplinkResponse>;
6
6
  export type DeeplinksService_Delete = RpcMethod<DeleteDeeplinkRequest, DeleteDeeplinkResponse>;
7
+ export type DeeplinksService_GetLinkContent = RpcMethod<GetLinkContentRequest, GetLinkContentResponse>;
7
8
  export interface DeeplinksService {
8
9
  List: DeeplinksService_List;
9
10
  Get: DeeplinksService_Get;
10
11
  Create: DeeplinksService_Create;
11
12
  Update: DeeplinksService_Update;
12
13
  Delete: DeeplinksService_Delete;
14
+ /**
15
+ * POST is used instead of GET because the uri parameter may contain
16
+ * arbitrarily long URLs that exceed HTTP query-string length limits.
17
+ */
18
+ GetLinkContent: DeeplinksService_GetLinkContent;
13
19
  }
14
20
  export type ListDeeplinksRequest_OrderBy = 'NAME' | 'CREATED';
15
21
  export type ListDeeplinksRequest_OrderDirection = 'ASC' | 'DESC';
@@ -62,3 +68,10 @@ export type DeleteDeeplinkRequest = {
62
68
  code?: string;
63
69
  };
64
70
  export type DeleteDeeplinkResponse = {};
71
+ export type GetLinkContentRequest = {
72
+ uri?: string;
73
+ };
74
+ export type GetLinkContentResponse = {
75
+ /** Full HTML document containing only the og:* meta tags from the fetched page. */
76
+ content: string;
77
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.939",
3
+ "version": "0.1.940",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",