mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-22 09:08:35 +00:00
Add event prefix + arbitrary JSON options for IFTTT.
This commit is contained in:
3
api/js/api/application_grpc_pb.js
vendored
3
api/js/api/application_grpc_pb.js
vendored
@ -701,7 +701,8 @@ function deserialize_google_protobuf_Empty(buffer_arg) {
|
||||
}
|
||||
|
||||
|
||||
// ApplicationService is the service providing API methods for managing applications.
|
||||
// ApplicationService is the service providing API methods for managing
|
||||
// applications.
|
||||
var ApplicationServiceService = exports.ApplicationServiceService = {
|
||||
// Create creates the given application.
|
||||
create: {
|
||||
|
8
api/js/api/application_pb.d.ts
vendored
8
api/js/api/application_pb.d.ts
vendored
@ -1691,6 +1691,12 @@ export class IftttIntegration extends jspb.Message {
|
||||
setUplinkValuesList(value: Array<string>): void;
|
||||
addUplinkValues(value: string, index?: number): string;
|
||||
|
||||
getArbitraryJson(): boolean;
|
||||
setArbitraryJson(value: boolean): void;
|
||||
|
||||
getEventPrefix(): string;
|
||||
setEventPrefix(value: string): void;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): IftttIntegration.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: IftttIntegration): IftttIntegration.AsObject;
|
||||
@ -1706,6 +1712,8 @@ export namespace IftttIntegration {
|
||||
applicationId: string,
|
||||
key: string,
|
||||
uplinkValuesList: Array<string>,
|
||||
arbitraryJson: boolean,
|
||||
eventPrefix: string,
|
||||
}
|
||||
}
|
||||
|
||||
|
62
api/js/api/application_pb.js
vendored
62
api/js/api/application_pb.js
vendored
@ -13195,7 +13195,9 @@ proto.api.IftttIntegration.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
uplinkValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
||||
uplinkValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
||||
arbitraryJson: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
||||
eventPrefix: jspb.Message.getFieldWithDefault(msg, 5, "")
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -13244,6 +13246,14 @@ proto.api.IftttIntegration.deserializeBinaryFromReader = function(msg, reader) {
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.addUplinkValues(value);
|
||||
break;
|
||||
case 4:
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setArbitraryJson(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setEventPrefix(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -13294,6 +13304,20 @@ proto.api.IftttIntegration.serializeBinaryToWriter = function(message, writer) {
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getArbitraryJson();
|
||||
if (f) {
|
||||
writer.writeBool(
|
||||
4,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getEventPrefix();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
5,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -13370,6 +13394,42 @@ proto.api.IftttIntegration.prototype.clearUplinkValuesList = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional bool arbitrary_json = 4;
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.api.IftttIntegration.prototype.getArbitraryJson = function() {
|
||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
* @return {!proto.api.IftttIntegration} returns this
|
||||
*/
|
||||
proto.api.IftttIntegration.prototype.setArbitraryJson = function(value) {
|
||||
return jspb.Message.setProto3BooleanField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string event_prefix = 5;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.IftttIntegration.prototype.getEventPrefix = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.IftttIntegration} returns this
|
||||
*/
|
||||
proto.api.IftttIntegration.prototype.setEventPrefix = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 5, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user