@miradorlabs/web-grpc 4.12.0 → 4.14.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "4.12.0",
3
+ "version": "4.14.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -444,7 +444,14 @@ export interface Organization {
444
444
  organizationStatus: OrganizationStatus;
445
445
  onboardingStatus: OnboardingStatus;
446
446
  createdAt: Date | undefined;
447
- updatedAt: Date | undefined;
447
+ updatedAt:
448
+ | Date
449
+ | undefined;
450
+ /**
451
+ * IANA timezone name (for example America/New_York) that defines the team's day. Empty until an admin sets
452
+ * one, which is distinct from an explicit UTC.
453
+ */
454
+ timeZone: string;
448
455
  }
449
456
 
450
457
  export interface CreateProjectRequest {
@@ -811,11 +818,18 @@ export interface ResendInviteResponse {
811
818
  invitation: Invitation | undefined;
812
819
  }
813
820
 
821
+ /** UpdateOrganizationRequest changes only the fields it sends, and must send at least one of them. */
814
822
  export interface UpdateOrganizationRequest {
815
823
  /** Organization UUID */
816
824
  organizationId: string;
817
- /** New organization name */
825
+ /** New organization name; empty means no change. A whitespace-only name is rejected. */
818
826
  name: string;
827
+ /**
828
+ * New IANA timezone name (for example America/New_York); empty means no change. A set value must be a valid
829
+ * IANA name, and "Local" is rejected. Onboarding completes once the organization has a non-placeholder name and a
830
+ * timezone, whichever request set each.
831
+ */
832
+ timeZone: string;
819
833
  }
820
834
 
821
835
  export interface UpdateOrganizationResponse {
@@ -1482,6 +1496,7 @@ function createBaseOrganization(): Organization {
1482
1496
  onboardingStatus: 0,
1483
1497
  createdAt: undefined,
1484
1498
  updatedAt: undefined,
1499
+ timeZone: "",
1485
1500
  };
1486
1501
  }
1487
1502
 
@@ -1505,6 +1520,9 @@ export const Organization: MessageFns<Organization> = {
1505
1520
  if (message.updatedAt !== undefined) {
1506
1521
  Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(50).fork()).join();
1507
1522
  }
1523
+ if (message.timeZone !== "") {
1524
+ writer.uint32(58).string(message.timeZone);
1525
+ }
1508
1526
  return writer;
1509
1527
  },
1510
1528
 
@@ -1569,6 +1587,14 @@ export const Organization: MessageFns<Organization> = {
1569
1587
  message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
1570
1588
  continue;
1571
1589
  }
1590
+ case 7: {
1591
+ if (tag !== 58) {
1592
+ break;
1593
+ }
1594
+
1595
+ message.timeZone = reader.string();
1596
+ continue;
1597
+ }
1572
1598
  }
1573
1599
  if ((tag & 7) === 4 || tag === 0) {
1574
1600
  break;
@@ -1609,6 +1635,11 @@ export const Organization: MessageFns<Organization> = {
1609
1635
  : isSet(object.updated_at)
1610
1636
  ? fromJsonTimestamp(object.updated_at)
1611
1637
  : undefined,
1638
+ timeZone: isSet(object.timeZone)
1639
+ ? globalThis.String(object.timeZone)
1640
+ : isSet(object.time_zone)
1641
+ ? globalThis.String(object.time_zone)
1642
+ : "",
1612
1643
  };
1613
1644
  },
1614
1645
 
@@ -1632,6 +1663,9 @@ export const Organization: MessageFns<Organization> = {
1632
1663
  if (message.updatedAt !== undefined) {
1633
1664
  obj.updatedAt = message.updatedAt.toISOString();
1634
1665
  }
1666
+ if (message.timeZone !== "") {
1667
+ obj.timeZone = message.timeZone;
1668
+ }
1635
1669
  return obj;
1636
1670
  },
1637
1671
 
@@ -1646,6 +1680,7 @@ export const Organization: MessageFns<Organization> = {
1646
1680
  message.onboardingStatus = object.onboardingStatus ?? 0;
1647
1681
  message.createdAt = object.createdAt ?? undefined;
1648
1682
  message.updatedAt = object.updatedAt ?? undefined;
1683
+ message.timeZone = object.timeZone ?? "";
1649
1684
  return message;
1650
1685
  },
1651
1686
  };
@@ -7162,7 +7197,7 @@ export const ResendInviteResponse: MessageFns<ResendInviteResponse> = {
7162
7197
  };
7163
7198
 
7164
7199
  function createBaseUpdateOrganizationRequest(): UpdateOrganizationRequest {
7165
- return { organizationId: "", name: "" };
7200
+ return { organizationId: "", name: "", timeZone: "" };
7166
7201
  }
7167
7202
 
7168
7203
  export const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest> = {
@@ -7173,6 +7208,9 @@ export const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest> =
7173
7208
  if (message.name !== "") {
7174
7209
  writer.uint32(18).string(message.name);
7175
7210
  }
7211
+ if (message.timeZone !== "") {
7212
+ writer.uint32(26).string(message.timeZone);
7213
+ }
7176
7214
  return writer;
7177
7215
  },
7178
7216
 
@@ -7205,6 +7243,14 @@ export const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest> =
7205
7243
  message.name = reader.string();
7206
7244
  continue;
7207
7245
  }
7246
+ case 3: {
7247
+ if (tag !== 26) {
7248
+ break;
7249
+ }
7250
+
7251
+ message.timeZone = reader.string();
7252
+ continue;
7253
+ }
7208
7254
  }
7209
7255
  if ((tag & 7) === 4 || tag === 0) {
7210
7256
  break;
@@ -7225,6 +7271,11 @@ export const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest> =
7225
7271
  ? globalThis.String(object.organization_id)
7226
7272
  : "",
7227
7273
  name: isSet(object.name) ? globalThis.String(object.name) : "",
7274
+ timeZone: isSet(object.timeZone)
7275
+ ? globalThis.String(object.timeZone)
7276
+ : isSet(object.time_zone)
7277
+ ? globalThis.String(object.time_zone)
7278
+ : "",
7228
7279
  };
7229
7280
  },
7230
7281
 
@@ -7236,6 +7287,9 @@ export const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest> =
7236
7287
  if (message.name !== "") {
7237
7288
  obj.name = message.name;
7238
7289
  }
7290
+ if (message.timeZone !== "") {
7291
+ obj.timeZone = message.timeZone;
7292
+ }
7239
7293
  return obj;
7240
7294
  },
7241
7295
 
@@ -7246,6 +7300,7 @@ export const UpdateOrganizationRequest: MessageFns<UpdateOrganizationRequest> =
7246
7300
  const message = createBaseUpdateOrganizationRequest();
7247
7301
  message.organizationId = object.organizationId ?? "";
7248
7302
  message.name = object.name ?? "";
7303
+ message.timeZone = object.timeZone ?? "";
7249
7304
  return message;
7250
7305
  },
7251
7306
  };
@@ -2956,7 +2956,8 @@ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2956
2956
  organizationStatus: jspb.Message.getFieldWithDefault(msg, 3, 0),
2957
2957
  onboardingStatus: jspb.Message.getFieldWithDefault(msg, 4, 0),
2958
2958
  createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2959
- updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2959
+ updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2960
+ timeZone: jspb.Message.getFieldWithDefault(msg, 7, "")
2960
2961
  };
2961
2962
 
2962
2963
  if (includeInstance) {
@@ -3019,6 +3020,10 @@ proto.gateway.web.v1.Organization.deserializeBinaryFromReader = function(msg, re
3019
3020
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3020
3021
  msg.setUpdatedAt(value);
3021
3022
  break;
3023
+ case 7:
3024
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3025
+ msg.setTimeZone(value);
3026
+ break;
3022
3027
  default:
3023
3028
  reader.skipField();
3024
3029
  break;
@@ -3092,6 +3097,13 @@ proto.gateway.web.v1.Organization.serializeBinaryToWriter = function(message, wr
3092
3097
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3093
3098
  );
3094
3099
  }
3100
+ f = message.getTimeZone();
3101
+ if (f.length > 0) {
3102
+ writer.writeString(
3103
+ 7,
3104
+ f
3105
+ );
3106
+ }
3095
3107
  };
3096
3108
 
3097
3109
 
@@ -3241,6 +3253,24 @@ proto.gateway.web.v1.Organization.prototype.hasUpdatedAt = function() {
3241
3253
  };
3242
3254
 
3243
3255
 
3256
+ /**
3257
+ * optional string time_zone = 7;
3258
+ * @return {string}
3259
+ */
3260
+ proto.gateway.web.v1.Organization.prototype.getTimeZone = function() {
3261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3262
+ };
3263
+
3264
+
3265
+ /**
3266
+ * @param {string} value
3267
+ * @return {!proto.gateway.web.v1.Organization} returns this
3268
+ */
3269
+ proto.gateway.web.v1.Organization.prototype.setTimeZone = function(value) {
3270
+ return jspb.Message.setProto3StringField(this, 7, value);
3271
+ };
3272
+
3273
+
3244
3274
 
3245
3275
 
3246
3276
 
@@ -14189,7 +14219,8 @@ proto.gateway.web.v1.UpdateOrganizationRequest.prototype.toObject = function(opt
14189
14219
  proto.gateway.web.v1.UpdateOrganizationRequest.toObject = function(includeInstance, msg) {
14190
14220
  var f, obj = {
14191
14221
  organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
14192
- name: jspb.Message.getFieldWithDefault(msg, 2, "")
14222
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
14223
+ timeZone: jspb.Message.getFieldWithDefault(msg, 3, "")
14193
14224
  };
14194
14225
 
14195
14226
  if (includeInstance) {
@@ -14234,6 +14265,10 @@ proto.gateway.web.v1.UpdateOrganizationRequest.deserializeBinaryFromReader = fun
14234
14265
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
14235
14266
  msg.setName(value);
14236
14267
  break;
14268
+ case 3:
14269
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14270
+ msg.setTimeZone(value);
14271
+ break;
14237
14272
  default:
14238
14273
  reader.skipField();
14239
14274
  break;
@@ -14277,6 +14312,13 @@ proto.gateway.web.v1.UpdateOrganizationRequest.serializeBinaryToWriter = functio
14277
14312
  f
14278
14313
  );
14279
14314
  }
14315
+ f = message.getTimeZone();
14316
+ if (f.length > 0) {
14317
+ writer.writeString(
14318
+ 3,
14319
+ f
14320
+ );
14321
+ }
14280
14322
  };
14281
14323
 
14282
14324
 
@@ -14316,6 +14358,24 @@ proto.gateway.web.v1.UpdateOrganizationRequest.prototype.setName = function(valu
14316
14358
  };
14317
14359
 
14318
14360
 
14361
+ /**
14362
+ * optional string time_zone = 3;
14363
+ * @return {string}
14364
+ */
14365
+ proto.gateway.web.v1.UpdateOrganizationRequest.prototype.getTimeZone = function() {
14366
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
14367
+ };
14368
+
14369
+
14370
+ /**
14371
+ * @param {string} value
14372
+ * @return {!proto.gateway.web.v1.UpdateOrganizationRequest} returns this
14373
+ */
14374
+ proto.gateway.web.v1.UpdateOrganizationRequest.prototype.setTimeZone = function(value) {
14375
+ return jspb.Message.setProto3StringField(this, 3, value);
14376
+ };
14377
+
14378
+
14319
14379
 
14320
14380
 
14321
14381