@lansweeper/policies-grpc 0.0.2 → 0.0.3

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.
@@ -1 +1 @@
1
- {"file":[{"name":"proto/policies.proto","package":"lansweeper.policies.v1","messageType":[{"name":"Policy","field":[{"name":"send_each_time_in_minutes","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"sendEachTimeInMinutes"},{"name":"policy_type","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.policies.v1.PolicyType","jsonName":"policyType"}]},{"name":"ContextPolicy","field":[{"name":"context","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"context"},{"name":"policies","number":2,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.policies.v1.Policy","jsonName":"policies"}]},{"name":"GetInstallationPolicyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"GetInstallationPolicyResponse","field":[{"name":"installation_policy_type","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installationPolicyType"},{"name":"context_policies","number":2,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.policies.v1.ContextPolicy","jsonName":"contextPolicies"}]}],"enumType":[{"name":"PolicyType","value":[{"name":"POLICY_1","number":0},{"name":"POLICY_2","number":1},{"name":"POLICY_3","number":2}]}],"service":[{"name":"PoliciesService","method":[{"name":"GetInstallationPolicy","inputType":".lansweeper.policies.v1.GetInstallationPolicyRequest","outputType":".lansweeper.policies.v1.GetInstallationPolicyResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,32,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,31]},{"path":[5,0],"span":[4,0,8,1]},{"path":[5,0,1],"span":[4,5,15]},{"path":[5,0,2,0],"span":[5,4,17]},{"path":[5,0,2,0,1],"span":[5,4,12]},{"path":[5,0,2,0,2],"span":[5,15,16]},{"path":[5,0,2,1],"span":[6,4,17]},{"path":[5,0,2,1,1],"span":[6,4,12]},{"path":[5,0,2,1,2],"span":[6,15,16]},{"path":[5,0,2,2],"span":[7,4,17]},{"path":[5,0,2,2,1],"span":[7,4,12]},{"path":[5,0,2,2,2],"span":[7,15,16]},{"path":[4,0],"span":[10,0,13,1]},{"path":[4,0,1],"span":[10,8,14]},{"path":[4,0,2,0],"span":[11,4,40]},{"path":[4,0,2,0,5],"span":[11,4,9]},{"path":[4,0,2,0,1],"span":[11,10,35]},{"path":[4,0,2,0,3],"span":[11,38,39]},{"path":[4,0,2,1],"span":[12,4,31]},{"path":[4,0,2,1,6],"span":[12,4,14]},{"path":[4,0,2,1,1],"span":[12,15,26]},{"path":[4,0,2,1,3],"span":[12,29,30]},{"path":[4,1],"span":[15,0,18,1]},{"path":[4,1,1],"span":[15,8,21]},{"path":[4,1,2,0],"span":[16,4,23]},{"path":[4,1,2,0,5],"span":[16,4,10]},{"path":[4,1,2,0,1],"span":[16,11,18]},{"path":[4,1,2,0,3],"span":[16,21,22]},{"path":[4,1,2,1],"span":[17,4,33]},{"path":[4,1,2,1,4],"span":[17,4,12]},{"path":[4,1,2,1,6],"span":[17,13,19]},{"path":[4,1,2,1,1],"span":[17,20,28]},{"path":[4,1,2,1,3],"span":[17,31,32]},{"path":[4,2],"span":[20,0,23,1]},{"path":[4,2,1],"span":[20,8,36]},{"path":[4,2,2,0],"span":[21,4,23]},{"path":[4,2,2,0,5],"span":[21,4,10]},{"path":[4,2,2,0,1],"span":[21,11,18]},{"path":[4,2,2,0,3],"span":[21,21,22]},{"path":[4,2,2,1],"span":[22,4,27]},{"path":[4,2,2,1,5],"span":[22,4,10]},{"path":[4,2,2,1,1],"span":[22,11,22]},{"path":[4,2,2,1,3],"span":[22,25,26]},{"path":[4,3],"span":[25,0,28,1]},{"path":[4,3,1],"span":[25,8,37]},{"path":[4,3,2,0],"span":[26,4,40]},{"path":[4,3,2,0,5],"span":[26,4,10]},{"path":[4,3,2,0,1],"span":[26,11,35]},{"path":[4,3,2,0,3],"span":[26,38,39]},{"path":[4,3,2,1],"span":[27,4,48]},{"path":[4,3,2,1,4],"span":[27,4,12]},{"path":[4,3,2,1,6],"span":[27,13,26]},{"path":[4,3,2,1,1],"span":[27,27,43]},{"path":[4,3,2,1,3],"span":[27,46,47]},{"path":[6,0],"span":[30,0,32,1]},{"path":[6,0,1],"span":[30,8,23]},{"path":[6,0,2,0],"span":[31,4,102]},{"path":[6,0,2,0,1],"span":[31,8,29]},{"path":[6,0,2,0,2],"span":[31,30,58]},{"path":[6,0,2,0,3],"span":[31,69,98]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
1
+ {"file":[{"name":"proto/policies.proto","package":"lansweeper.policies.v1","messageType":[{"name":"Policy","field":[{"name":"send_each_time_in_minutes","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"sendEachTimeInMinutes"},{"name":"policy_type","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.policies.v1.PolicyType","jsonName":"policyType"},{"name":"enabled","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"enabled"}]},{"name":"ContextPolicy","field":[{"name":"context","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"context"},{"name":"policies","number":2,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.policies.v1.Policy","jsonName":"policies"}]},{"name":"GetInstallationPolicyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"GetInstallationPolicyResponse","field":[{"name":"installation_policy_type","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installationPolicyType"},{"name":"context_policies","number":2,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.policies.v1.ContextPolicy","jsonName":"contextPolicies"}]}],"enumType":[{"name":"PolicyType","value":[{"name":"POLICY_1","number":0},{"name":"POLICY_2","number":1},{"name":"POLICY_3","number":2},{"name":"MANUAL_CHANGE","number":3},{"name":"NEW_CHANGE","number":4}]}],"service":[{"name":"PoliciesService","method":[{"name":"GetInstallationPolicy","inputType":".lansweeper.policies.v1.GetInstallationPolicyRequest","outputType":".lansweeper.policies.v1.GetInstallationPolicyResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,35,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,31]},{"path":[5,0],"span":[4,0,10,1]},{"path":[5,0,1],"span":[4,5,15]},{"path":[5,0,2,0],"span":[5,4,17]},{"path":[5,0,2,0,1],"span":[5,4,12]},{"path":[5,0,2,0,2],"span":[5,15,16]},{"path":[5,0,2,1],"span":[6,4,17]},{"path":[5,0,2,1,1],"span":[6,4,12]},{"path":[5,0,2,1,2],"span":[6,15,16]},{"path":[5,0,2,2],"span":[7,4,17]},{"path":[5,0,2,2,1],"span":[7,4,12]},{"path":[5,0,2,2,2],"span":[7,15,16]},{"path":[5,0,2,3],"span":[8,4,22]},{"path":[5,0,2,3,1],"span":[8,4,17]},{"path":[5,0,2,3,2],"span":[8,20,21]},{"path":[5,0,2,4],"span":[9,4,19]},{"path":[5,0,2,4,1],"span":[9,4,14]},{"path":[5,0,2,4,2],"span":[9,17,18]},{"path":[4,0],"span":[12,0,16,1]},{"path":[4,0,1],"span":[12,8,14]},{"path":[4,0,2,0],"span":[13,4,40]},{"path":[4,0,2,0,5],"span":[13,4,9]},{"path":[4,0,2,0,1],"span":[13,10,35]},{"path":[4,0,2,0,3],"span":[13,38,39]},{"path":[4,0,2,1],"span":[14,4,31]},{"path":[4,0,2,1,6],"span":[14,4,14]},{"path":[4,0,2,1,1],"span":[14,15,26]},{"path":[4,0,2,1,3],"span":[14,29,30]},{"path":[4,0,2,2],"span":[15,4,21]},{"path":[4,0,2,2,5],"span":[15,4,8]},{"path":[4,0,2,2,1],"span":[15,9,16]},{"path":[4,0,2,2,3],"span":[15,19,20]},{"path":[4,1],"span":[18,0,21,1]},{"path":[4,1,1],"span":[18,8,21]},{"path":[4,1,2,0],"span":[19,4,23]},{"path":[4,1,2,0,5],"span":[19,4,10]},{"path":[4,1,2,0,1],"span":[19,11,18]},{"path":[4,1,2,0,3],"span":[19,21,22]},{"path":[4,1,2,1],"span":[20,4,33]},{"path":[4,1,2,1,4],"span":[20,4,12]},{"path":[4,1,2,1,6],"span":[20,13,19]},{"path":[4,1,2,1,1],"span":[20,20,28]},{"path":[4,1,2,1,3],"span":[20,31,32]},{"path":[4,2],"span":[23,0,26,1]},{"path":[4,2,1],"span":[23,8,36]},{"path":[4,2,2,0],"span":[24,4,23]},{"path":[4,2,2,0,5],"span":[24,4,10]},{"path":[4,2,2,0,1],"span":[24,11,18]},{"path":[4,2,2,0,3],"span":[24,21,22]},{"path":[4,2,2,1],"span":[25,4,27]},{"path":[4,2,2,1,5],"span":[25,4,10]},{"path":[4,2,2,1,1],"span":[25,11,22]},{"path":[4,2,2,1,3],"span":[25,25,26]},{"path":[4,3],"span":[28,0,31,1]},{"path":[4,3,1],"span":[28,8,37]},{"path":[4,3,2,0],"span":[29,4,40]},{"path":[4,3,2,0,5],"span":[29,4,10]},{"path":[4,3,2,0,1],"span":[29,11,35]},{"path":[4,3,2,0,3],"span":[29,38,39]},{"path":[4,3,2,1],"span":[30,4,48]},{"path":[4,3,2,1,4],"span":[30,4,12]},{"path":[4,3,2,1,6],"span":[30,13,26]},{"path":[4,3,2,1,1],"span":[30,27,43]},{"path":[4,3,2,1,3],"span":[30,46,47]},{"path":[6,0],"span":[33,0,35,1]},{"path":[6,0,1],"span":[33,8,23]},{"path":[6,0,2,0],"span":[34,4,102]},{"path":[6,0,2,0,1],"span":[34,8,29]},{"path":[6,0,2,0,2],"span":[34,30,58]},{"path":[6,0,2,0,3],"span":[34,69,98]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -11,6 +11,8 @@ export class Policy extends jspb.Message {
11
11
  setSendEachTimeInMinutes(value: number): Policy;
12
12
  getPolicyType(): PolicyType;
13
13
  setPolicyType(value: PolicyType): Policy;
14
+ getEnabled(): boolean;
15
+ setEnabled(value: boolean): Policy;
14
16
 
15
17
  serializeBinary(): Uint8Array;
16
18
  toObject(includeInstance?: boolean): Policy.AsObject;
@@ -26,6 +28,7 @@ export namespace Policy {
26
28
  export type AsObject = {
27
29
  sendEachTimeInMinutes: number,
28
30
  policyType: PolicyType,
31
+ enabled: boolean,
29
32
  }
30
33
  }
31
34
 
@@ -106,4 +109,6 @@ export enum PolicyType {
106
109
  POLICY_1 = 0,
107
110
  POLICY_2 = 1,
108
111
  POLICY_3 = 2,
112
+ MANUAL_CHANGE = 3,
113
+ NEW_CHANGE = 4,
109
114
  }
@@ -137,7 +137,8 @@ proto.lansweeper.policies.v1.Policy.prototype.toObject = function(opt_includeIns
137
137
  proto.lansweeper.policies.v1.Policy.toObject = function(includeInstance, msg) {
138
138
  var f, obj = {
139
139
  sendEachTimeInMinutes: jspb.Message.getFieldWithDefault(msg, 1, 0),
140
- policyType: jspb.Message.getFieldWithDefault(msg, 2, 0)
140
+ policyType: jspb.Message.getFieldWithDefault(msg, 2, 0),
141
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
141
142
  };
142
143
 
143
144
  if (includeInstance) {
@@ -182,6 +183,10 @@ proto.lansweeper.policies.v1.Policy.deserializeBinaryFromReader = function(msg,
182
183
  var value = /** @type {!proto.lansweeper.policies.v1.PolicyType} */ (reader.readEnum());
183
184
  msg.setPolicyType(value);
184
185
  break;
186
+ case 3:
187
+ var value = /** @type {boolean} */ (reader.readBool());
188
+ msg.setEnabled(value);
189
+ break;
185
190
  default:
186
191
  reader.skipField();
187
192
  break;
@@ -225,6 +230,13 @@ proto.lansweeper.policies.v1.Policy.serializeBinaryToWriter = function(message,
225
230
  f
226
231
  );
227
232
  }
233
+ f = message.getEnabled();
234
+ if (f) {
235
+ writer.writeBool(
236
+ 3,
237
+ f
238
+ );
239
+ }
228
240
  };
229
241
 
230
242
 
@@ -264,6 +276,24 @@ proto.lansweeper.policies.v1.Policy.prototype.setPolicyType = function(value) {
264
276
  };
265
277
 
266
278
 
279
+ /**
280
+ * optional bool enabled = 3;
281
+ * @return {boolean}
282
+ */
283
+ proto.lansweeper.policies.v1.Policy.prototype.getEnabled = function() {
284
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
285
+ };
286
+
287
+
288
+ /**
289
+ * @param {boolean} value
290
+ * @return {!proto.lansweeper.policies.v1.Policy} returns this
291
+ */
292
+ proto.lansweeper.policies.v1.Policy.prototype.setEnabled = function(value) {
293
+ return jspb.Message.setProto3BooleanField(this, 3, value);
294
+ };
295
+
296
+
267
297
 
268
298
  /**
269
299
  * List of repeated fields within this message type.
@@ -810,7 +840,9 @@ proto.lansweeper.policies.v1.GetInstallationPolicyResponse.prototype.clearContex
810
840
  proto.lansweeper.policies.v1.PolicyType = {
811
841
  POLICY_1: 0,
812
842
  POLICY_2: 1,
813
- POLICY_3: 2
843
+ POLICY_3: 2,
844
+ MANUAL_CHANGE: 3,
845
+ NEW_CHANGE: 4
814
846
  };
815
847
 
816
848
  goog.object.extend(exports, proto.lansweeper.policies.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/policies-grpc",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "policies grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "e2aa9c7eed704aa02f56e9628dfb616e19509958"
19
+ "gitHead": "3981ca53018904f6a69766a835fd5f8fc9311fa4"
20
20
  }
@@ -6,11 +6,14 @@ enum PolicyType {
6
6
  POLICY_1 = 0;
7
7
  POLICY_2 = 1;
8
8
  POLICY_3 = 2;
9
+ MANUAL_CHANGE = 3;
10
+ NEW_CHANGE = 4;
9
11
  }
10
12
 
11
13
  message Policy {
12
14
  int32 send_each_time_in_minutes = 1;
13
15
  PolicyType policy_type = 2;
16
+ bool enabled = 3;
14
17
  }
15
18
 
16
19
  message ContextPolicy {