Skip to content

Commit

Permalink
rename URLProps to URLParams
Browse files Browse the repository at this point in the history
  • Loading branch information
felicio committed Mar 15, 2023
1 parent 91711ee commit 162d146
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions packages/status-js/src/protos/communities.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ message CommunityDescription {
string outro_message = 12;
bool encrypted = 13;
repeated string tags = 14;
URLProps url_props = 15;
URLParams url_params = 15;
}

message CommunityAdminSettings {
Expand All @@ -61,7 +61,7 @@ message CommunityChat {
ChatIdentity identity = 3;
string category_id = 4;
int32 position = 5;
URLProps url_props = 6;
URLParams url_params = 6;
}

message CommunityCategory {
Expand Down
14 changes: 7 additions & 7 deletions packages/status-js/src/protos/communities_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
import { ChatIdentity } from "./chat-identity_pb.js";
import { URLProps } from "./url-data_pb.js";
import { URLParams } from "./url-data_pb.js";

/**
* @generated from message Grant
Expand Down Expand Up @@ -285,9 +285,9 @@ export class CommunityDescription extends Message<CommunityDescription> {
tags: string[] = [];

/**
* @generated from field: URLProps url_props = 15;
* @generated from field: URLParams url_params = 15;
*/
urlProps?: URLProps;
urlParams?: URLParams;

constructor(data?: PartialMessage<CommunityDescription>) {
super();
Expand All @@ -310,7 +310,7 @@ export class CommunityDescription extends Message<CommunityDescription> {
{ no: 12, name: "outro_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 13, name: "encrypted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 14, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
{ no: 15, name: "url_props", kind: "message", T: URLProps },
{ no: 15, name: "url_params", kind: "message", T: URLParams },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommunityDescription {
Expand Down Expand Up @@ -397,9 +397,9 @@ export class CommunityChat extends Message<CommunityChat> {
position = 0;

/**
* @generated from field: URLProps url_props = 6;
* @generated from field: URLParams url_params = 6;
*/
urlProps?: URLProps;
urlParams?: URLParams;

constructor(data?: PartialMessage<CommunityChat>) {
super();
Expand All @@ -414,7 +414,7 @@ export class CommunityChat extends Message<CommunityChat> {
{ no: 3, name: "identity", kind: "message", T: ChatIdentity },
{ no: 4, name: "category_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "position", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
{ no: 6, name: "url_props", kind: "message", T: URLProps },
{ no: 6, name: "url_params", kind: "message", T: URLParams },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommunityChat {
Expand Down
2 changes: 1 addition & 1 deletion packages/status-js/src/protos/push-notifications.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ message PushNotificationRegistrationResponse {
message ContactCodeAdvertisement {
repeated PushNotificationQueryInfo push_notification_info = 1;
ChatIdentity chat_identity = 2;
URLProps url_props = 3;
URLParams url_params = 3;
}

message PushNotificationQuery {
Expand Down
8 changes: 4 additions & 4 deletions packages/status-js/src/protos/push-notifications_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
import { ChatIdentity } from "./chat-identity_pb.js";
import { URLProps } from "./url-data_pb.js";
import { URLParams } from "./url-data_pb.js";

/**
* @generated from message PushNotificationRegistration
Expand Down Expand Up @@ -251,9 +251,9 @@ export class ContactCodeAdvertisement extends Message<ContactCodeAdvertisement>
chatIdentity?: ChatIdentity;

/**
* @generated from field: URLProps url_props = 3;
* @generated from field: URLParams url_params = 3;
*/
urlProps?: URLProps;
urlParams?: URLParams;

constructor(data?: PartialMessage<ContactCodeAdvertisement>) {
super();
Expand All @@ -265,7 +265,7 @@ export class ContactCodeAdvertisement extends Message<ContactCodeAdvertisement>
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "push_notification_info", kind: "message", T: PushNotificationQueryInfo, repeated: true },
{ no: 2, name: "chat_identity", kind: "message", T: ChatIdentity },
{ no: 3, name: "url_props", kind: "message", T: URLProps },
{ no: 3, name: "url_params", kind: "message", T: URLParams },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ContactCodeAdvertisement {
Expand Down
2 changes: 1 addition & 1 deletion packages/status-js/src/protos/url-data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ message URLData {
bytes content = 1;
}

message URLProps {
message URLParams {
string encoded_url_data = 1;
// Signature of encoded URL data
string encoded_signature = 2;
Expand Down
24 changes: 12 additions & 12 deletions packages/status-js/src/protos/url-data_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ export class URLData extends Message<URLData> {
}

/**
* @generated from message URLProps
* @generated from message URLParams
*/
export class URLProps extends Message<URLProps> {
export class URLParams extends Message<URLParams> {
/**
* @generated from field: string encoded_url_data = 1;
*/
Expand All @@ -238,32 +238,32 @@ export class URLProps extends Message<URLProps> {
*/
encodedSignature = "";

constructor(data?: PartialMessage<URLProps>) {
constructor(data?: PartialMessage<URLParams>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime = proto3;
static readonly typeName = "URLProps";
static readonly typeName = "URLParams";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "encoded_url_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "encoded_signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): URLProps {
return new URLProps().fromBinary(bytes, options);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): URLParams {
return new URLParams().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): URLProps {
return new URLProps().fromJson(jsonValue, options);
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): URLParams {
return new URLParams().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): URLProps {
return new URLProps().fromJsonString(jsonString, options);
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): URLParams {
return new URLParams().fromJsonString(jsonString, options);
}

static equals(a: URLProps | PlainMessage<URLProps> | undefined, b: URLProps | PlainMessage<URLProps> | undefined): boolean {
return proto3.util.equals(URLProps, a, b);
static equals(a: URLParams | PlainMessage<URLParams> | undefined, b: URLParams | PlainMessage<URLParams> | undefined): boolean {
return proto3.util.equals(URLParams, a, b);
}
}

0 comments on commit 162d146

Please sign in to comment.