@pushwoosh/rpc-v2-http-api-data 0.1.813 → 0.1.817

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/data.js CHANGED
@@ -6748,6 +6748,53 @@ export const data = {
6748
6748
  "type": "I",
6749
6749
  "fields": {}
6750
6750
  },
6751
+ "pushwoosh.rpc.errors.v3.I18NOptions": {
6752
+ "type": "I",
6753
+ "fields": {
6754
+ "args": {
6755
+ "type": "string",
6756
+ "mapKeyType": "string"
6757
+ }
6758
+ }
6759
+ },
6760
+ "pushwoosh.rpc.errors.v3.BadRequest.FieldViolation": {
6761
+ "type": "I",
6762
+ "fields": {
6763
+ "field": {
6764
+ "type": "string"
6765
+ },
6766
+ "description": {
6767
+ "type": "string"
6768
+ },
6769
+ "reason": {
6770
+ "type": "string"
6771
+ },
6772
+ "args": {
6773
+ "type": "string",
6774
+ "mapKeyType": "string"
6775
+ }
6776
+ }
6777
+ },
6778
+ "pushwoosh.rpc.errors.v3.BadRequest": {
6779
+ "type": "I",
6780
+ "fields": {
6781
+ "fieldViolations": {
6782
+ "type": "pushwoosh.rpc.errors.v3.BadRequest.FieldViolation",
6783
+ "array": true
6784
+ }
6785
+ }
6786
+ },
6787
+ "pushwoosh.rpc.errors.v3.FailedPrecondition": {
6788
+ "type": "I",
6789
+ "fields": {
6790
+ "Type": {
6791
+ "type": "string"
6792
+ },
6793
+ "Description": {
6794
+ "type": "string"
6795
+ }
6796
+ }
6797
+ },
6751
6798
  "pushwoosh.rpc_v2.events.EventsService": {
6752
6799
  "type": "S",
6753
6800
  "key": "events",
@@ -22211,6 +22258,242 @@ export const data = {
22211
22258
  }
22212
22259
  }
22213
22260
  },
22261
+ "pushwoosh.rpc.segments.v3.SegmentsService_Create_FieldViolations": {
22262
+ "type": "E",
22263
+ "values": [
22264
+ "FV_UNSPECIFIED",
22265
+ "NAME_EMPTY",
22266
+ "NAME_INVALID_SPACE",
22267
+ "NAME_TOO_LONG",
22268
+ "NAME_ALREADY_EXISTS"
22269
+ ]
22270
+ },
22271
+ "pushwoosh.rpc.segments.v3.SegmentsService_Create_FailedPreconditions": {
22272
+ "type": "E",
22273
+ "values": [
22274
+ "FP_UNSPECIFIED",
22275
+ "HIGH_SPEED_SEGMENTS_NOT_ALLOWED",
22276
+ "HIGH_SPEED_SEGMENTS_LIMIT_REACHED"
22277
+ ]
22278
+ },
22279
+ "pushwoosh.rpc.segments.v3.SegmentsService": {
22280
+ "type": "S",
22281
+ "key": "segments",
22282
+ "methods": {
22283
+ "List": {
22284
+ "request": "pushwoosh.rpc.segments.v3.ListRequest",
22285
+ "response": "pushwoosh.rpc.segments.v3.ListResponse",
22286
+ "method": "get",
22287
+ "path": "/api/v3/segments"
22288
+ },
22289
+ "Get": {
22290
+ "request": "pushwoosh.rpc.segments.v3.GetRequest",
22291
+ "response": "pushwoosh.rpc.segments.v3.GetResponse",
22292
+ "method": "get",
22293
+ "path": "/api/v3/segments/{segment}"
22294
+ },
22295
+ "Create": {
22296
+ "request": "pushwoosh.rpc.segments.v3.CreateRequest",
22297
+ "response": "pushwoosh.rpc.segments.v3.CreateResponse",
22298
+ "method": "post",
22299
+ "path": "/api/v3/segments"
22300
+ },
22301
+ "Update": {
22302
+ "request": "pushwoosh.rpc.segments.v3.UpdateRequest",
22303
+ "response": "pushwoosh.rpc.segments.v3.UpdateResponse",
22304
+ "method": "put",
22305
+ "path": "/api/v3/segments/{segment}"
22306
+ },
22307
+ "Delete": {
22308
+ "request": "pushwoosh.rpc.segments.v3.DeleteRequest",
22309
+ "response": "pushwoosh.rpc.segments.v3.DeleteResponse",
22310
+ "method": "delete",
22311
+ "path": "/api/v3/segments/{segment}"
22312
+ }
22313
+ }
22314
+ },
22315
+ "pushwoosh.rpc.segments.v3.DeviceLoadPolicy": {
22316
+ "type": "E",
22317
+ "values": [
22318
+ "FILTER",
22319
+ "ALL"
22320
+ ]
22321
+ },
22322
+ "pushwoosh.rpc.segments.v3.ListRequest": {
22323
+ "type": "I",
22324
+ "fields": {
22325
+ "application": {
22326
+ "type": "string"
22327
+ }
22328
+ }
22329
+ },
22330
+ "pushwoosh.rpc.segments.v3.ListResponse": {
22331
+ "type": "I",
22332
+ "fields": {}
22333
+ },
22334
+ "pushwoosh.rpc.segments.v3.GetRequest": {
22335
+ "type": "I",
22336
+ "fields": {
22337
+ "segment": {
22338
+ "type": "string"
22339
+ }
22340
+ }
22341
+ },
22342
+ "pushwoosh.rpc.segments.v3.GetResponse": {
22343
+ "type": "I",
22344
+ "fields": {
22345
+ "application": {
22346
+ "type": "string"
22347
+ },
22348
+ "code": {
22349
+ "type": "string"
22350
+ },
22351
+ "name": {
22352
+ "type": "string"
22353
+ },
22354
+ "seglang": {
22355
+ "type": "string"
22356
+ },
22357
+ "filterExpression": {
22358
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
22359
+ },
22360
+ "deviceLoadPolicy": {
22361
+ "type": "pushwoosh.rpc.segments.v3.DeviceLoadPolicy"
22362
+ },
22363
+ "highSpeed": {
22364
+ "type": "boolean"
22365
+ },
22366
+ "highSpeedReady": {
22367
+ "type": "boolean"
22368
+ },
22369
+ "highSpeedPreparedAt": {
22370
+ "type": "Date"
22371
+ },
22372
+ "createdAt": {
22373
+ "type": "Date"
22374
+ },
22375
+ "expireAt": {
22376
+ "type": "Date"
22377
+ }
22378
+ }
22379
+ },
22380
+ "pushwoosh.rpc.segments.v3.CreateRequest": {
22381
+ "type": "I",
22382
+ "fields": {
22383
+ "application": {
22384
+ "type": "string"
22385
+ },
22386
+ "name": {
22387
+ "type": "string"
22388
+ },
22389
+ "seglang": {
22390
+ "type": "string"
22391
+ },
22392
+ "filterExpression": {
22393
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
22394
+ },
22395
+ "deviceLoadPolicy": {
22396
+ "type": "pushwoosh.rpc.segments.v3.DeviceLoadPolicy",
22397
+ "optional": true
22398
+ },
22399
+ "highSpeed": {
22400
+ "type": "boolean",
22401
+ "optional": true
22402
+ },
22403
+ "expireAt": {
22404
+ "type": "string",
22405
+ "optional": true
22406
+ }
22407
+ },
22408
+ "oneofs": {
22409
+ "conditions": {
22410
+ "oneof": [
22411
+ "seglang",
22412
+ "filterExpression"
22413
+ ]
22414
+ }
22415
+ }
22416
+ },
22417
+ "pushwoosh.rpc.segments.v3.CreateResponse": {
22418
+ "type": "I",
22419
+ "fields": {
22420
+ "application": {
22421
+ "type": "string"
22422
+ },
22423
+ "code": {
22424
+ "type": "string"
22425
+ },
22426
+ "name": {
22427
+ "type": "string"
22428
+ },
22429
+ "seglang": {
22430
+ "type": "string"
22431
+ },
22432
+ "filterExpression": {
22433
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
22434
+ },
22435
+ "deviceLoadPolicy": {
22436
+ "type": "pushwoosh.rpc.segments.v3.DeviceLoadPolicy"
22437
+ },
22438
+ "highSpeed": {
22439
+ "type": "boolean"
22440
+ },
22441
+ "highSpeedReady": {
22442
+ "type": "boolean"
22443
+ },
22444
+ "highSpeedPreparedAt": {
22445
+ "type": "Date"
22446
+ },
22447
+ "createdAt": {
22448
+ "type": "Date"
22449
+ },
22450
+ "expireAt": {
22451
+ "type": "Date"
22452
+ }
22453
+ }
22454
+ },
22455
+ "pushwoosh.rpc.segments.v3.UpdateRequest": {
22456
+ "type": "I",
22457
+ "fields": {
22458
+ "segment": {
22459
+ "type": "string"
22460
+ },
22461
+ "name": {
22462
+ "type": "string",
22463
+ "optional": true
22464
+ },
22465
+ "seglang": {
22466
+ "type": "string"
22467
+ },
22468
+ "filterExpression": {
22469
+ "type": "pushwoosh.objects.filters.v1.FilterExpression"
22470
+ }
22471
+ },
22472
+ "oneofs": {
22473
+ "conditions": {
22474
+ "oneof": [
22475
+ "seglang",
22476
+ "filterExpression"
22477
+ ]
22478
+ }
22479
+ }
22480
+ },
22481
+ "pushwoosh.rpc.segments.v3.UpdateResponse": {
22482
+ "type": "I",
22483
+ "fields": {}
22484
+ },
22485
+ "pushwoosh.rpc.segments.v3.DeleteRequest": {
22486
+ "type": "I",
22487
+ "fields": {
22488
+ "segment": {
22489
+ "type": "string"
22490
+ }
22491
+ }
22492
+ },
22493
+ "pushwoosh.rpc.segments.v3.DeleteResponse": {
22494
+ "type": "I",
22495
+ "fields": {}
22496
+ },
22214
22497
  "pushwoosh.rpc_v2.send_rate.SendRateService": {
22215
22498
  "type": "S",
22216
22499
  "key": "sendRate",
package/index.d.ts CHANGED
@@ -45,6 +45,7 @@ import { ReferralPartnerService as pushwoosh_rpc_v2_referral_partners_ReferralPa
45
45
  import { RestrictionsService as pushwoosh_rpc_v2_restrictions_RestrictionsService } from './restrictions';
46
46
  import { RichMediaService as pushwoosh_rpc_v2_rich_medias_RichMediaService } from './rich_medias';
47
47
  import { SegmentStatisticsService as pushwoosh_rpc_v2_segment_statistics_SegmentStatisticsService } from './segment_statistics';
48
+ import { SegmentsService as pushwoosh_rpc_segments_v3_SegmentsService } from './pushwoosh_rpc_segments_v3';
48
49
  import { SendRateService as pushwoosh_rpc_v2_send_rate_SendRateService } from './send_rate';
49
50
  import { smsPresetsService as pushwoosh_rpc_v2_sms_presets_smsPresetsService } from './sms_presets';
50
51
  import { StatisticsDashboardsService as pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService } from './statistics_dashboards';
@@ -104,6 +105,7 @@ export type API = {
104
105
  restrictions: pushwoosh_rpc_v2_restrictions_RestrictionsService;
105
106
  richMedia: pushwoosh_rpc_v2_rich_medias_RichMediaService;
106
107
  segmentStatistics: pushwoosh_rpc_v2_segment_statistics_SegmentStatisticsService;
108
+ segments: pushwoosh_rpc_segments_v3_SegmentsService;
107
109
  sendRate: pushwoosh_rpc_v2_send_rate_SendRateService;
108
110
  smsPresets: pushwoosh_rpc_v2_sms_presets_smsPresetsService;
109
111
  statisticsDashboards: pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.813",
3
+ "version": "0.1.817",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,16 @@
1
+ export type I18NOptions = {
2
+ args: Record<string, string>;
3
+ };
4
+ export type BadRequest_FieldViolation = {
5
+ field: string;
6
+ description: string;
7
+ reason: string;
8
+ args: Record<string, string>;
9
+ };
10
+ export type BadRequest = {
11
+ fieldViolations: BadRequest_FieldViolation[];
12
+ };
13
+ export type FailedPrecondition = {
14
+ Type: string;
15
+ Description: string;
16
+ };
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
@@ -0,0 +1,80 @@
1
+ import { FilterExpression as pushwoosh_objects_filters_v1_FilterExpression } from './pushwoosh_objects_filters_v1';
2
+ export type SegmentsService_Create_FieldViolations = 'FV_UNSPECIFIED' | 'NAME_EMPTY' | 'NAME_INVALID_SPACE' | 'NAME_TOO_LONG' | 'NAME_ALREADY_EXISTS';
3
+ export type SegmentsService_Create_FailedPreconditions = 'FP_UNSPECIFIED' | 'HIGH_SPEED_SEGMENTS_NOT_ALLOWED' | 'HIGH_SPEED_SEGMENTS_LIMIT_REACHED';
4
+ export interface SegmentsService {
5
+ List(request: ListRequest): Promise<ListResponse>;
6
+ Get(request: GetRequest): Promise<GetResponse>;
7
+ Create(request: CreateRequest): Promise<CreateResponse>;
8
+ Update(request: UpdateRequest): Promise<UpdateResponse>;
9
+ Delete(request: DeleteRequest): Promise<DeleteResponse>;
10
+ }
11
+ export type DeviceLoadPolicy = 'FILTER' | 'ALL';
12
+ export type ListRequest = {
13
+ application?: string;
14
+ };
15
+ export type ListResponse = {};
16
+ export type GetRequest = {
17
+ segment?: string;
18
+ };
19
+ export type GetResponse = {
20
+ application: string;
21
+ code: string;
22
+ name: string;
23
+ seglang: string;
24
+ filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
25
+ deviceLoadPolicy: DeviceLoadPolicy;
26
+ highSpeed: boolean;
27
+ highSpeedReady: boolean;
28
+ highSpeedPreparedAt: Date;
29
+ createdAt: Date;
30
+ expireAt: Date;
31
+ };
32
+ export type CreateRequest_conditions_seglang = {
33
+ type: 'seglang';
34
+ data: string;
35
+ };
36
+ export type CreateRequest_conditions_filterExpression = {
37
+ type: 'filterExpression';
38
+ data: pushwoosh_objects_filters_v1_FilterExpression;
39
+ };
40
+ export type CreateRequest_conditions = CreateRequest_conditions_seglang | CreateRequest_conditions_filterExpression;
41
+ export type CreateRequest = {
42
+ application?: string;
43
+ name?: string;
44
+ deviceLoadPolicy?: DeviceLoadPolicy;
45
+ highSpeed?: boolean;
46
+ expireAt?: string;
47
+ conditions: CreateRequest_conditions;
48
+ };
49
+ export type CreateResponse = {
50
+ application: string;
51
+ code: string;
52
+ name: string;
53
+ seglang: string;
54
+ filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
55
+ deviceLoadPolicy: DeviceLoadPolicy;
56
+ highSpeed: boolean;
57
+ highSpeedReady: boolean;
58
+ highSpeedPreparedAt: Date;
59
+ createdAt: Date;
60
+ expireAt: Date;
61
+ };
62
+ export type UpdateRequest_conditions_seglang = {
63
+ type: 'seglang';
64
+ data: string;
65
+ };
66
+ export type UpdateRequest_conditions_filterExpression = {
67
+ type: 'filterExpression';
68
+ data: pushwoosh_objects_filters_v1_FilterExpression;
69
+ };
70
+ export type UpdateRequest_conditions = UpdateRequest_conditions_seglang | UpdateRequest_conditions_filterExpression;
71
+ export type UpdateRequest = {
72
+ segment?: string;
73
+ name?: string;
74
+ conditions: UpdateRequest_conditions;
75
+ };
76
+ export type UpdateResponse = {};
77
+ export type DeleteRequest = {
78
+ segment?: string;
79
+ };
80
+ export type DeleteResponse = {};
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};