@pushwoosh/rpc-v2-http-api-data 0.1.489 → 0.1.491

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/accounts.d.ts CHANGED
@@ -185,7 +185,15 @@ export interface EmailTemplatesService {
185
185
  GetEmailTemplateLabels(request: GetEmailTemplateLabelsRequest): Promise<GetEmailTemplateLabelsResponse>;
186
186
  Test(request: TestEmailTemplateRequest): Promise<TestEmailTemplateResponse>;
187
187
  Migrate(request: MigrateRequest): Promise<MigrateResponse>;
188
+ Clone(request: CloneEmailPresetsRequest): Promise<CloneEmailPresetsResponse>;
188
189
  }
190
+ export type CloneEmailPresetsRequest = {
191
+ emailPresetCode?: string;
192
+ applicationId?: number;
193
+ };
194
+ export type CloneEmailPresetsResponse = {
195
+ emailPresetCode: string;
196
+ };
189
197
  export type UpdateEmailTemplateRequest = {
190
198
  code?: string;
191
199
  name?: string;
package/data.js CHANGED
@@ -4318,6 +4318,31 @@ export const data = {
4318
4318
  "response": "pushwoosh.rpc_v2.accounts.MigrateResponse",
4319
4319
  "method": "post",
4320
4320
  "path": "/api/email_templates:migrate"
4321
+ },
4322
+ "Clone": {
4323
+ "request": "pushwoosh.rpc_v2.accounts.CloneEmailPresetsRequest",
4324
+ "response": "pushwoosh.rpc_v2.accounts.CloneEmailPresetsResponse",
4325
+ "method": "post",
4326
+ "path": "/api/email_templates:clone"
4327
+ }
4328
+ }
4329
+ },
4330
+ "pushwoosh.rpc_v2.accounts.CloneEmailPresetsRequest": {
4331
+ "type": "I",
4332
+ "fields": {
4333
+ "emailPresetCode": {
4334
+ "type": "string"
4335
+ },
4336
+ "applicationId": {
4337
+ "type": "number"
4338
+ }
4339
+ }
4340
+ },
4341
+ "pushwoosh.rpc_v2.accounts.CloneEmailPresetsResponse": {
4342
+ "type": "I",
4343
+ "fields": {
4344
+ "emailPresetCode": {
4345
+ "type": "string"
4321
4346
  }
4322
4347
  }
4323
4348
  },
@@ -17761,6 +17786,12 @@ export const data = {
17761
17786
  "response": "pushwoosh.rpc_v2.segment_statistics.StatusResponse",
17762
17787
  "method": "get",
17763
17788
  "path": "/api/segment_statistics/status"
17789
+ },
17790
+ "GetSegmentSizeChanges": {
17791
+ "request": "pushwoosh.rpc_v2.segment_statistics.GetSegmentSizeChangesRequest",
17792
+ "response": "pushwoosh.rpc_v2.segment_statistics.GetSegmentSizeChangesResponse",
17793
+ "method": "post",
17794
+ "path": "/api/segment_statistics/segment_size_changes"
17764
17795
  }
17765
17796
  }
17766
17797
  },
@@ -17821,6 +17852,56 @@ export const data = {
17821
17852
  }
17822
17853
  }
17823
17854
  },
17855
+ "pushwoosh.rpc_v2.segment_statistics.GetSegmentSizeChangesRequest": {
17856
+ "type": "I",
17857
+ "fields": {
17858
+ "application": {
17859
+ "type": "string"
17860
+ },
17861
+ "filter": {
17862
+ "type": "string"
17863
+ },
17864
+ "timestampFrom": {
17865
+ "type": "Date"
17866
+ },
17867
+ "timestampTo": {
17868
+ "type": "Date"
17869
+ }
17870
+ }
17871
+ },
17872
+ "pushwoosh.rpc_v2.segment_statistics.GetSegmentSizeChangesResponse.PlatformChanges": {
17873
+ "type": "I",
17874
+ "fields": {
17875
+ "increase": {
17876
+ "type": "number",
17877
+ "array": true
17878
+ },
17879
+ "decrease": {
17880
+ "type": "number",
17881
+ "array": true
17882
+ },
17883
+ "net": {
17884
+ "type": "number",
17885
+ "array": true
17886
+ }
17887
+ }
17888
+ },
17889
+ "pushwoosh.rpc_v2.segment_statistics.GetSegmentSizeChangesResponse": {
17890
+ "type": "I",
17891
+ "fields": {
17892
+ "timestamps": {
17893
+ "type": "Date",
17894
+ "array": true
17895
+ },
17896
+ "all": {
17897
+ "type": "pushwoosh.rpc_v2.segment_statistics.GetSegmentSizeChangesResponse.PlatformChanges"
17898
+ },
17899
+ "totals": {
17900
+ "type": "number",
17901
+ "array": true
17902
+ }
17903
+ }
17904
+ },
17824
17905
  "pushwoosh.rpc_v2.sms_presets.smsPresetsService": {
17825
17906
  "type": "S",
17826
17907
  "key": "smsPresets",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.489",
3
+ "version": "0.1.491",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1,6 +1,7 @@
1
1
  export interface SegmentStatisticsService {
2
2
  Prepare(request: PrepareRequest): Promise<PrepareResponse>;
3
3
  Status(request: StatusRequest): Promise<StatusResponse>;
4
+ GetSegmentSizeChanges(request: GetSegmentSizeChangesRequest): Promise<GetSegmentSizeChangesResponse>;
4
5
  }
5
6
  export type PrepareRequest = {
6
7
  segments?: string[];
@@ -19,3 +20,19 @@ export type StatusResponse_SegmentStatus = {
19
20
  export type StatusResponse = {
20
21
  segments: StatusResponse_SegmentStatus[];
21
22
  };
23
+ export type GetSegmentSizeChangesRequest = {
24
+ application?: string;
25
+ filter?: string;
26
+ timestampFrom?: Date;
27
+ timestampTo?: Date;
28
+ };
29
+ export type GetSegmentSizeChangesResponse_PlatformChanges = {
30
+ increase: number[];
31
+ decrease: number[];
32
+ net: number[];
33
+ };
34
+ export type GetSegmentSizeChangesResponse = {
35
+ timestamps: Date[];
36
+ all: GetSegmentSizeChangesResponse_PlatformChanges;
37
+ totals: number[];
38
+ };