@pushwoosh/rpc-v2-http-api-data 0.1.945 → 0.1.947

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
@@ -10130,6 +10130,14 @@ export const data = {
10130
10130
  }
10131
10131
  }
10132
10132
  },
10133
+ "pushwoosh.rpc_v2.geozones.Status": {
10134
+ "type": "E",
10135
+ "values": [
10136
+ "STATUS_UNSPECIFIED",
10137
+ "STATUS_ACTIVE",
10138
+ "STATUS_INACTIVE"
10139
+ ]
10140
+ },
10133
10141
  "pushwoosh.rpc_v2.geozones.TimeInterval": {
10134
10142
  "type": "I",
10135
10143
  "fields": {
@@ -10227,6 +10235,9 @@ export const data = {
10227
10235
  },
10228
10236
  "properties": {
10229
10237
  "type": "pushwoosh.rpc_v2.geozones.Properties"
10238
+ },
10239
+ "status": {
10240
+ "type": "pushwoosh.rpc_v2.geozones.Status"
10230
10241
  }
10231
10242
  }
10232
10243
  },
@@ -10322,7 +10333,7 @@ export const data = {
10322
10333
  "type": "number"
10323
10334
  },
10324
10335
  "status": {
10325
- "type": "boolean"
10336
+ "type": "pushwoosh.rpc_v2.geozones.Status"
10326
10337
  },
10327
10338
  "cluster": {
10328
10339
  "type": "string"
@@ -10463,6 +10474,9 @@ export const data = {
10463
10474
  },
10464
10475
  "geozonesCount": {
10465
10476
  "type": "number"
10477
+ },
10478
+ "status": {
10479
+ "type": "pushwoosh.rpc_v2.geozones.Status"
10466
10480
  }
10467
10481
  }
10468
10482
  },
@@ -10499,6 +10513,9 @@ export const data = {
10499
10513
  },
10500
10514
  "cooldown": {
10501
10515
  "type": "Duration"
10516
+ },
10517
+ "status": {
10518
+ "type": "pushwoosh.rpc_v2.geozones.Status"
10502
10519
  }
10503
10520
  }
10504
10521
  },
package/geozones.d.ts CHANGED
@@ -11,6 +11,12 @@ export interface GeozonesService {
11
11
  List: GeozonesService_List;
12
12
  Delete: GeozonesService_Delete;
13
13
  }
14
+ /**
15
+ * Status reflects the user-set on/off switch for a Geozone or a GeozonesCluster.
16
+ * Unlike is_active (which is derived from the timetable schedule), Status is
17
+ * the persistent flag toggled by the user.
18
+ */
19
+ export type Status = 'STATUS_UNSPECIFIED' | 'STATUS_ACTIVE' | 'STATUS_INACTIVE';
14
20
  export type TimeInterval = {
15
21
  start: string;
16
22
  end: string;
@@ -44,6 +50,7 @@ export type Geozone = {
44
50
  campaign: string;
45
51
  timetable: Timetable;
46
52
  properties: Properties;
53
+ status: Status;
47
54
  };
48
55
  export type CreateGeozonesRequest = {
49
56
  application?: string;
@@ -76,7 +83,7 @@ export type UpdateGeozonesRequest = {
76
83
  lng?: number;
77
84
  cooldown?: Duration;
78
85
  range?: number;
79
- status?: boolean;
86
+ status?: Status;
80
87
  cluster?: string;
81
88
  preset?: string;
82
89
  campaign?: string;
@@ -1,4 +1,5 @@
1
1
  import { RpcMethod, Duration } from './commonTypes';
2
+ import { Status as pushwoosh_rpc_v2_geozones_Status } from './geozones';
2
3
  export type GeozonesClustersService_Create = RpcMethod<CreateGeozonesClusterRequest, CreateGeozonesClusterResponse>;
3
4
  export type GeozonesClustersService_Update = RpcMethod<UpdateGeozonesClusterRequest, UpdateGeozonesClusterResponse>;
4
5
  export type GeozonesClustersService_List = RpcMethod<ListGeozonesClustersRequest, ListGeozonesClustersResponse>;
@@ -15,6 +16,7 @@ export type GeozonesCluster = {
15
16
  name: string;
16
17
  cooldown: Duration;
17
18
  geozonesCount: number;
19
+ status: pushwoosh_rpc_v2_geozones_Status;
18
20
  };
19
21
  export type CreateGeozonesClusterRequest = {
20
22
  application?: string;
@@ -28,6 +30,7 @@ export type UpdateGeozonesClusterRequest = {
28
30
  code?: string;
29
31
  name?: string;
30
32
  cooldown?: Duration;
33
+ status?: pushwoosh_rpc_v2_geozones_Status;
31
34
  };
32
35
  export type UpdateGeozonesClusterResponse = {
33
36
  cluster: GeozonesCluster;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.945",
3
+ "version": "0.1.947",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",