@pushwoosh/rpc-v2-http-api-data 0.1.988 → 0.1.990

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/applications.d.ts CHANGED
@@ -6,6 +6,7 @@ export type ApplicationsService_Update = RpcMethod<UpdateApplicationRequest, Upd
6
6
  export type ApplicationsService_List = RpcMethod<ListApplicationsRequest, ListApplicationsResponse>;
7
7
  export type ApplicationsService_Delete = RpcMethod<DeleteApplicationRequest, DeleteApplicationResponse>;
8
8
  export type ApplicationsService_SetShortenerConfiguration = RpcMethod<SetShortenerConfigurationRequest, SetShortenerConfigurationResponse>;
9
+ export type ApplicationsService_ShortenURL = RpcMethod<ShortenURLRequest, ShortenURLResponse>;
9
10
  export type ApplicationsService_UpdateURLParams = RpcMethod<UpdateURLParamsRequest, UpdateURLParamsResponse>;
10
11
  export type ApplicationsService_SendEmailVerification = RpcMethod<SendEmailVerificationRequest, SendEmailVerificationResponse>;
11
12
  export type ApplicationsService_GetAccountGroupPermissions = RpcMethod<GetAccountGroupPermissionsRequest, GetAccountGroupPermissionsResponse>;
@@ -22,6 +23,7 @@ export interface ApplicationsService {
22
23
  List: ApplicationsService_List;
23
24
  Delete: ApplicationsService_Delete;
24
25
  SetShortenerConfiguration: ApplicationsService_SetShortenerConfiguration;
26
+ ShortenURL: ApplicationsService_ShortenURL;
25
27
  UpdateURLParams: ApplicationsService_UpdateURLParams;
26
28
  SendEmailVerification: ApplicationsService_SendEmailVerification;
27
29
  GetAccountGroupPermissions: ApplicationsService_GetAccountGroupPermissions;
@@ -115,6 +117,13 @@ export type SetShortenerConfigurationRequest = {
115
117
  bitlyAccessToken?: string;
116
118
  };
117
119
  export type SetShortenerConfigurationResponse = {};
120
+ export type ShortenURLRequest = {
121
+ code?: string;
122
+ url?: string;
123
+ };
124
+ export type ShortenURLResponse = {
125
+ shortUrl: string;
126
+ };
118
127
  export type UpdateURLParamsRequest = {
119
128
  code?: string;
120
129
  params?: Record<string, string>;
package/data.js CHANGED
@@ -2591,6 +2591,12 @@ export const data = {
2591
2591
  "method": "post",
2592
2592
  "path": "/api/applications/{code}/set_shortener_configuration"
2593
2593
  },
2594
+ "ShortenURL": {
2595
+ "request": "pushwoosh.rpc_v2.applications.ShortenURLRequest",
2596
+ "response": "pushwoosh.rpc_v2.applications.ShortenURLResponse",
2597
+ "method": "post",
2598
+ "path": "/api/applications/{code}/shorten_url"
2599
+ },
2594
2600
  "UpdateURLParams": {
2595
2601
  "request": "pushwoosh.rpc_v2.applications.UpdateURLParamsRequest",
2596
2602
  "response": "pushwoosh.rpc_v2.applications.UpdateURLParamsResponse",
@@ -2905,6 +2911,25 @@ export const data = {
2905
2911
  "type": "I",
2906
2912
  "fields": {}
2907
2913
  },
2914
+ "pushwoosh.rpc_v2.applications.ShortenURLRequest": {
2915
+ "type": "I",
2916
+ "fields": {
2917
+ "code": {
2918
+ "type": "string"
2919
+ },
2920
+ "url": {
2921
+ "type": "string"
2922
+ }
2923
+ }
2924
+ },
2925
+ "pushwoosh.rpc_v2.applications.ShortenURLResponse": {
2926
+ "type": "I",
2927
+ "fields": {
2928
+ "shortUrl": {
2929
+ "type": "string"
2930
+ }
2931
+ }
2932
+ },
2908
2933
  "pushwoosh.rpc_v2.applications.UpdateURLParamsRequest": {
2909
2934
  "type": "I",
2910
2935
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.988",
3
+ "version": "0.1.990",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",