@devvit/protos 0.10.21-next-2024-05-20-26c4ce990.0 → 0.10.21-next-2024-05-20-e376d5e1d.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,6 @@ import "devvit/ui/common/v1alpha/common.proto";
7
7
  import "devvit/ui/effects/v1alpha/effect.proto";
8
8
  import "devvit/ui/events/v1alpha/event.proto";
9
9
  import "google/protobuf/struct.proto";
10
- import "google/type/datetime.proto";
11
10
 
12
11
  option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/ui/block_kit/v1beta";
13
12
  option java_package = "com.reddit.devvit.ui.block_kit.v1beta";
@@ -90,6 +89,9 @@ message UIEnvironment {
90
89
  // The layout size of the post
91
90
  optional devvit.ui.common.v1alpha.UIDimensions dimensions = 3;
92
91
 
92
+ // Previous timezone of the user
93
+ reserved 4;
94
+
93
95
  // The timezone of the user
94
- optional google.type.TimeZone timezone = 4;
96
+ optional string timezone = 5;
95
97
  }
@@ -172,10 +172,7 @@ export declare const CustomPostDefinition: {
172
172
  width?: number;
173
173
  scale?: number;
174
174
  } | undefined;
175
- timezone?: {
176
- id?: string;
177
- version?: string;
178
- } | undefined;
175
+ timezone?: string | undefined;
179
176
  } | undefined;
180
177
  props?: {
181
178
  [x: string]: any;
@@ -252,10 +249,7 @@ export declare const CustomPostDefinition: {
252
249
  width?: number;
253
250
  scale?: number;
254
251
  } | undefined;
255
- timezone?: {
256
- id?: string;
257
- version?: string;
258
- } | undefined;
252
+ timezone?: string | undefined;
259
253
  } | undefined;
260
254
  props?: {
261
255
  [x: string]: any;
@@ -1054,10 +1048,7 @@ export declare const CustomPostDefinition: {
1054
1048
  width?: number;
1055
1049
  scale?: number;
1056
1050
  } | undefined;
1057
- timezone?: {
1058
- id?: string;
1059
- version?: string;
1060
- } | undefined;
1051
+ timezone?: string | undefined;
1061
1052
  } | undefined;
1062
1053
  props?: {
1063
1054
  [x: string]: any;
@@ -1134,10 +1125,7 @@ export declare const CustomPostDefinition: {
1134
1125
  width?: number;
1135
1126
  scale?: number;
1136
1127
  } | undefined;
1137
- timezone?: {
1138
- id?: string;
1139
- version?: string;
1140
- } | undefined;
1128
+ timezone?: string | undefined;
1141
1129
  } | undefined;
1142
1130
  props?: {
1143
1131
  [x: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"custom_post.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/reddit/custom_post/v1alpha/custom_post.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,sDAAsD;IACtD,KAAK,CAAC,EACF;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACtB,SAAS,CAAC;IACd,kCAAkC;IAClC,MAAM,CAAC,EACH,kBAAkB,GAClB,SAAS,CAAC;IACd,gGAAgG;IAChG,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CACrC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,yDAAyD;IACzD,KAAK,CAAC,EACF;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACtB,SAAS,CAAC;IACd,wDAAwD;IACxD,OAAO,EAAE,MAAM,EAAE,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M,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"custom_post.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/reddit/custom_post/v1alpha/custom_post.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,sDAAsD;IACtD,KAAK,CAAC,EACF;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACtB,SAAS,CAAC;IACd,kCAAkC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGhE,CAAC;AAEX,UAAU,GAAG;IACX,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACtG;AAED,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -4,7 +4,6 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  import _m0 from 'protobufjs/minimal.js';
7
- import { TimeZone } from '../../../../google/type/datetime.js';
8
7
  import { UIDimensions } from '../../common/v1alpha/common.js';
9
8
  import { Effect } from '../../effects/v1alpha/effect.js';
10
9
  import { UIEvent } from '../../events/v1alpha/event.js';
@@ -80,7 +79,7 @@ export interface UIEnvironment {
80
79
  /** The layout size of the post */
81
80
  dimensions?: UIDimensions | undefined;
82
81
  /** The timezone of the user */
83
- timezone?: TimeZone | undefined;
82
+ timezone?: string | undefined;
84
83
  }
85
84
  export declare const UIRequest: {
86
85
  $type: "devvit.ui.block_kit.v1beta.UIRequest";
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../../src/types/devvit/ui/block_kit/v1beta/ui.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,GAAG,CAAC,EACA,aAAa,GACb,SAAS,CAAC;IACd,8CAA8C;IAC9C,KAAK,CAAC,EACF;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACtB,SAAS,CAAC;IACd,sDAAsD;IACtD,KAAK,CAAC,EACF;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACtB,SAAS,CAAC;IACd;;;OAGG;IACH,MAAM,EAAE,OAAO,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,KAAK,CAAC,EACF;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACtB,SAAS,CAAC;IACd,wDAAwD;IACxD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,sEAAsE;IACtE,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,kCAAkC;IAClC,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,MAAM,CAAC,EACH,MAAM,GACN,SAAS,CAAC;IACd,kFAAkF;IAClF,WAAW,CAAC,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,GAAG,aAAa;CAU/D,CAAC;AAIF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACvC,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -6,7 +6,6 @@
6
6
  /* eslint-disable */
7
7
  import _m0 from 'protobufjs/minimal.js';
8
8
  import { Struct } from '../../../../google/protobuf/struct.js';
9
- import { TimeZone } from '../../../../google/type/datetime.js';
10
9
  import { messageTypeRegistry } from '../../../../typeRegistry.js';
11
10
  import { UIDimensions } from '../../common/v1alpha/common.js';
12
11
  import { Effect } from '../../effects/v1alpha/effect.js';
@@ -222,7 +221,7 @@ export const UIEnvironment = {
222
221
  UIDimensions.encode(message.dimensions, writer.uint32(26).fork()).ldelim();
223
222
  }
224
223
  if (message.timezone !== undefined) {
225
- TimeZone.encode(message.timezone, writer.uint32(34).fork()).ldelim();
224
+ writer.uint32(42).string(message.timezone);
226
225
  }
227
226
  return writer;
228
227
  },
@@ -251,11 +250,11 @@ export const UIEnvironment = {
251
250
  }
252
251
  message.dimensions = UIDimensions.decode(reader, reader.uint32());
253
252
  continue;
254
- case 4:
255
- if (tag !== 34) {
253
+ case 5:
254
+ if (tag !== 42) {
256
255
  break;
257
256
  }
258
- message.timezone = TimeZone.decode(reader, reader.uint32());
257
+ message.timezone = reader.string();
259
258
  continue;
260
259
  }
261
260
  if ((tag & 7) === 4 || tag === 0) {
@@ -270,7 +269,7 @@ export const UIEnvironment = {
270
269
  locale: isSet(object.locale) ? globalThis.String(object.locale) : undefined,
271
270
  colorScheme: isSet(object.colorScheme) ? globalThis.String(object.colorScheme) : undefined,
272
271
  dimensions: isSet(object.dimensions) ? UIDimensions.fromJSON(object.dimensions) : undefined,
273
- timezone: isSet(object.timezone) ? TimeZone.fromJSON(object.timezone) : undefined,
272
+ timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : undefined,
274
273
  };
275
274
  },
276
275
  toJSON(message) {
@@ -285,7 +284,7 @@ export const UIEnvironment = {
285
284
  obj.dimensions = UIDimensions.toJSON(message.dimensions);
286
285
  }
287
286
  if (message.timezone !== undefined) {
288
- obj.timezone = TimeZone.toJSON(message.timezone);
287
+ obj.timezone = message.timezone;
289
288
  }
290
289
  return obj;
291
290
  },
@@ -299,9 +298,7 @@ export const UIEnvironment = {
299
298
  message.dimensions = (object.dimensions !== undefined && object.dimensions !== null)
300
299
  ? UIDimensions.fromPartial(object.dimensions)
301
300
  : undefined;
302
- message.timezone = (object.timezone !== undefined && object.timezone !== null)
303
- ? TimeZone.fromPartial(object.timezone)
304
- : undefined;
301
+ message.timezone = object.timezone ?? undefined;
305
302
  return message;
306
303
  },
307
304
  };
@@ -1,104 +0,0 @@
1
- // Copyright 2021 Google LLC
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package google.type;
18
-
19
- import "google/protobuf/duration.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "DateTimeProto";
25
- option java_package = "com.google.type";
26
- option objc_class_prefix = "GTP";
27
-
28
- // Represents civil time (or occasionally physical time).
29
- //
30
- // This type can represent a civil time in one of a few possible ways:
31
- //
32
- // * When utc_offset is set and time_zone is unset: a civil time on a calendar
33
- // day with a particular offset from UTC.
34
- // * When time_zone is set and utc_offset is unset: a civil time on a calendar
35
- // day in a particular time zone.
36
- // * When neither time_zone nor utc_offset is set: a civil time on a calendar
37
- // day in local time.
38
- //
39
- // The date is relative to the Proleptic Gregorian Calendar.
40
- //
41
- // If year is 0, the DateTime is considered not to have a specific year. month
42
- // and day must have valid, non-zero values.
43
- //
44
- // This type may also be used to represent a physical time if all the date and
45
- // time fields are set and either case of the `time_offset` oneof is set.
46
- // Consider using `Timestamp` message for physical time instead. If your use
47
- // case also would like to store the user's timezone, that can be done in
48
- // another field.
49
- //
50
- // This type is more flexible than some applications may want. Make sure to
51
- // document and validate your application's limitations.
52
- message DateTime {
53
- // Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
54
- // datetime without a year.
55
- int32 year = 1;
56
-
57
- // Required. Month of year. Must be from 1 to 12.
58
- int32 month = 2;
59
-
60
- // Required. Day of month. Must be from 1 to 31 and valid for the year and
61
- // month.
62
- int32 day = 3;
63
-
64
- // Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
65
- // may choose to allow the value "24:00:00" for scenarios like business
66
- // closing time.
67
- int32 hours = 4;
68
-
69
- // Required. Minutes of hour of day. Must be from 0 to 59.
70
- int32 minutes = 5;
71
-
72
- // Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
73
- // API may allow the value 60 if it allows leap-seconds.
74
- int32 seconds = 6;
75
-
76
- // Required. Fractions of seconds in nanoseconds. Must be from 0 to
77
- // 999,999,999.
78
- int32 nanos = 7;
79
-
80
- // Optional. Specifies either the UTC offset or the time zone of the DateTime.
81
- // Choose carefully between them, considering that time zone data may change
82
- // in the future (for example, a country modifies their DST start/end dates,
83
- // and future DateTimes in the affected range had already been stored).
84
- // If omitted, the DateTime is considered to be in local time.
85
- oneof time_offset {
86
- // UTC offset. Must be whole seconds, between -18 hours and +18 hours.
87
- // For example, a UTC offset of -4:00 would be represented as
88
- // { seconds: -14400 }.
89
- google.protobuf.Duration utc_offset = 8;
90
-
91
- // Time zone.
92
- TimeZone time_zone = 9;
93
- }
94
- }
95
-
96
- // Represents a time zone from the
97
- // [IANA Time Zone Database](https://www.iana.org/time-zones).
98
- message TimeZone {
99
- // IANA Time Zone Database time zone, e.g. "America/New_York".
100
- string id = 1;
101
-
102
- // Optional. IANA Time Zone Database version number, e.g. "2019a".
103
- string version = 2;
104
- }
@@ -1,107 +0,0 @@
1
- /**
2
- * #datetime.ts
3
- *
4
- * @packageDocumentation
5
- */
6
- import _m0 from 'protobufjs/minimal.js';
7
- import { Duration } from '../protobuf/duration.js';
8
- /**
9
- * Represents civil time (or occasionally physical time).
10
- *
11
- * This type can represent a civil time in one of a few possible ways:
12
- *
13
- * * When utc_offset is set and time_zone is unset: a civil time on a calendar
14
- * day with a particular offset from UTC.
15
- * * When time_zone is set and utc_offset is unset: a civil time on a calendar
16
- * day in a particular time zone.
17
- * * When neither time_zone nor utc_offset is set: a civil time on a calendar
18
- * day in local time.
19
- *
20
- * The date is relative to the Proleptic Gregorian Calendar.
21
- *
22
- * If year is 0, the DateTime is considered not to have a specific year. month
23
- * and day must have valid, non-zero values.
24
- *
25
- * This type may also be used to represent a physical time if all the date and
26
- * time fields are set and either case of the `time_offset` oneof is set.
27
- * Consider using `Timestamp` message for physical time instead. If your use
28
- * case also would like to store the user's timezone, that can be done in
29
- * another field.
30
- *
31
- * This type is more flexible than some applications may want. Make sure to
32
- * document and validate your application's limitations.
33
- */
34
- export interface DateTime {
35
- /**
36
- * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
37
- * datetime without a year.
38
- */
39
- year: number;
40
- /** Required. Month of year. Must be from 1 to 12. */
41
- month: number;
42
- /**
43
- * Required. Day of month. Must be from 1 to 31 and valid for the year and
44
- * month.
45
- */
46
- day: number;
47
- /**
48
- * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
49
- * may choose to allow the value "24:00:00" for scenarios like business
50
- * closing time.
51
- */
52
- hours: number;
53
- /** Required. Minutes of hour of day. Must be from 0 to 59. */
54
- minutes: number;
55
- /**
56
- * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
57
- * API may allow the value 60 if it allows leap-seconds.
58
- */
59
- seconds: number;
60
- /**
61
- * Required. Fractions of seconds in nanoseconds. Must be from 0 to
62
- * 999,999,999.
63
- */
64
- nanos: number;
65
- /**
66
- * UTC offset. Must be whole seconds, between -18 hours and +18 hours.
67
- * For example, a UTC offset of -4:00 would be represented as
68
- * { seconds: -14400 }.
69
- */
70
- utcOffset?: Duration | undefined;
71
- /** Time zone. */
72
- timeZone?: TimeZone | undefined;
73
- }
74
- /**
75
- * Represents a time zone from the
76
- * [IANA Time Zone Database](https://www.iana.org/time-zones).
77
- */
78
- export interface TimeZone {
79
- /** IANA Time Zone Database time zone, e.g. "America/New_York". */
80
- id: string;
81
- /** Optional. IANA Time Zone Database version number, e.g. "2019a". */
82
- version: string;
83
- }
84
- export declare const DateTime: {
85
- $type: "google.type.DateTime";
86
- encode(message: DateTime, writer?: _m0.Writer): _m0.Writer;
87
- decode(input: _m0.Reader | Uint8Array, length?: number): DateTime;
88
- fromJSON(object: any): DateTime;
89
- toJSON(message: DateTime): unknown;
90
- create(base?: DeepPartial<DateTime>): DateTime;
91
- fromPartial(object: DeepPartial<DateTime>): DateTime;
92
- };
93
- export declare const TimeZone: {
94
- $type: "google.type.TimeZone";
95
- encode(message: TimeZone, writer?: _m0.Writer): _m0.Writer;
96
- decode(input: _m0.Reader | Uint8Array, length?: number): TimeZone;
97
- fromJSON(object: any): TimeZone;
98
- toJSON(message: TimeZone): unknown;
99
- create(base?: DeepPartial<TimeZone>): TimeZone;
100
- fromPartial(object: DeepPartial<TimeZone>): TimeZone;
101
- };
102
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
103
- type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
104
- [K in keyof T]?: DeepPartial<T[K]>;
105
- } : Partial<T>;
106
- export {};
107
- //# sourceMappingURL=datetime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../../src/types/google/type/datetime.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,GAAG,MAAM,uBAAuB,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,CAAC,EACN,QAAQ,GACR,SAAS,CAAC;IACd,iBAAiB;IACjB,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB;AAgBD,eAAO,MAAM,QAAQ;;oBAGH,QAAQ,WAAU,IA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
9
- import { Duration } from '../protobuf/duration.js';
10
- function createBaseDateTime() {
11
- return {
12
- year: 0,
13
- month: 0,
14
- day: 0,
15
- hours: 0,
16
- minutes: 0,
17
- seconds: 0,
18
- nanos: 0,
19
- utcOffset: undefined,
20
- timeZone: undefined,
21
- };
22
- }
23
- export const DateTime = {
24
- $type: "google.type.DateTime",
25
- encode(message, writer = _m0.Writer.create()) {
26
- if (message.year !== 0) {
27
- writer.uint32(8).int32(message.year);
28
- }
29
- if (message.month !== 0) {
30
- writer.uint32(16).int32(message.month);
31
- }
32
- if (message.day !== 0) {
33
- writer.uint32(24).int32(message.day);
34
- }
35
- if (message.hours !== 0) {
36
- writer.uint32(32).int32(message.hours);
37
- }
38
- if (message.minutes !== 0) {
39
- writer.uint32(40).int32(message.minutes);
40
- }
41
- if (message.seconds !== 0) {
42
- writer.uint32(48).int32(message.seconds);
43
- }
44
- if (message.nanos !== 0) {
45
- writer.uint32(56).int32(message.nanos);
46
- }
47
- if (message.utcOffset !== undefined) {
48
- Duration.encode(message.utcOffset, writer.uint32(66).fork()).ldelim();
49
- }
50
- if (message.timeZone !== undefined) {
51
- TimeZone.encode(message.timeZone, writer.uint32(74).fork()).ldelim();
52
- }
53
- return writer;
54
- },
55
- decode(input, length) {
56
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
57
- let end = length === undefined ? reader.len : reader.pos + length;
58
- const message = createBaseDateTime();
59
- while (reader.pos < end) {
60
- const tag = reader.uint32();
61
- switch (tag >>> 3) {
62
- case 1:
63
- if (tag !== 8) {
64
- break;
65
- }
66
- message.year = reader.int32();
67
- continue;
68
- case 2:
69
- if (tag !== 16) {
70
- break;
71
- }
72
- message.month = reader.int32();
73
- continue;
74
- case 3:
75
- if (tag !== 24) {
76
- break;
77
- }
78
- message.day = reader.int32();
79
- continue;
80
- case 4:
81
- if (tag !== 32) {
82
- break;
83
- }
84
- message.hours = reader.int32();
85
- continue;
86
- case 5:
87
- if (tag !== 40) {
88
- break;
89
- }
90
- message.minutes = reader.int32();
91
- continue;
92
- case 6:
93
- if (tag !== 48) {
94
- break;
95
- }
96
- message.seconds = reader.int32();
97
- continue;
98
- case 7:
99
- if (tag !== 56) {
100
- break;
101
- }
102
- message.nanos = reader.int32();
103
- continue;
104
- case 8:
105
- if (tag !== 66) {
106
- break;
107
- }
108
- message.utcOffset = Duration.decode(reader, reader.uint32());
109
- continue;
110
- case 9:
111
- if (tag !== 74) {
112
- break;
113
- }
114
- message.timeZone = TimeZone.decode(reader, reader.uint32());
115
- continue;
116
- }
117
- if ((tag & 7) === 4 || tag === 0) {
118
- break;
119
- }
120
- reader.skipType(tag & 7);
121
- }
122
- return message;
123
- },
124
- fromJSON(object) {
125
- return {
126
- year: isSet(object.year) ? globalThis.Number(object.year) : 0,
127
- month: isSet(object.month) ? globalThis.Number(object.month) : 0,
128
- day: isSet(object.day) ? globalThis.Number(object.day) : 0,
129
- hours: isSet(object.hours) ? globalThis.Number(object.hours) : 0,
130
- minutes: isSet(object.minutes) ? globalThis.Number(object.minutes) : 0,
131
- seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
132
- nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
133
- utcOffset: isSet(object.utcOffset) ? Duration.fromJSON(object.utcOffset) : undefined,
134
- timeZone: isSet(object.timeZone) ? TimeZone.fromJSON(object.timeZone) : undefined,
135
- };
136
- },
137
- toJSON(message) {
138
- const obj = {};
139
- if (message.year !== 0) {
140
- obj.year = Math.round(message.year);
141
- }
142
- if (message.month !== 0) {
143
- obj.month = Math.round(message.month);
144
- }
145
- if (message.day !== 0) {
146
- obj.day = Math.round(message.day);
147
- }
148
- if (message.hours !== 0) {
149
- obj.hours = Math.round(message.hours);
150
- }
151
- if (message.minutes !== 0) {
152
- obj.minutes = Math.round(message.minutes);
153
- }
154
- if (message.seconds !== 0) {
155
- obj.seconds = Math.round(message.seconds);
156
- }
157
- if (message.nanos !== 0) {
158
- obj.nanos = Math.round(message.nanos);
159
- }
160
- if (message.utcOffset !== undefined) {
161
- obj.utcOffset = Duration.toJSON(message.utcOffset);
162
- }
163
- if (message.timeZone !== undefined) {
164
- obj.timeZone = TimeZone.toJSON(message.timeZone);
165
- }
166
- return obj;
167
- },
168
- create(base) {
169
- return DateTime.fromPartial(base ?? {});
170
- },
171
- fromPartial(object) {
172
- const message = createBaseDateTime();
173
- message.year = object.year ?? 0;
174
- message.month = object.month ?? 0;
175
- message.day = object.day ?? 0;
176
- message.hours = object.hours ?? 0;
177
- message.minutes = object.minutes ?? 0;
178
- message.seconds = object.seconds ?? 0;
179
- message.nanos = object.nanos ?? 0;
180
- message.utcOffset = (object.utcOffset !== undefined && object.utcOffset !== null)
181
- ? Duration.fromPartial(object.utcOffset)
182
- : undefined;
183
- message.timeZone = (object.timeZone !== undefined && object.timeZone !== null)
184
- ? TimeZone.fromPartial(object.timeZone)
185
- : undefined;
186
- return message;
187
- },
188
- };
189
- messageTypeRegistry.set(DateTime.$type, DateTime);
190
- function createBaseTimeZone() {
191
- return { id: "", version: "" };
192
- }
193
- export const TimeZone = {
194
- $type: "google.type.TimeZone",
195
- encode(message, writer = _m0.Writer.create()) {
196
- if (message.id !== "") {
197
- writer.uint32(10).string(message.id);
198
- }
199
- if (message.version !== "") {
200
- writer.uint32(18).string(message.version);
201
- }
202
- return writer;
203
- },
204
- decode(input, length) {
205
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
206
- let end = length === undefined ? reader.len : reader.pos + length;
207
- const message = createBaseTimeZone();
208
- while (reader.pos < end) {
209
- const tag = reader.uint32();
210
- switch (tag >>> 3) {
211
- case 1:
212
- if (tag !== 10) {
213
- break;
214
- }
215
- message.id = reader.string();
216
- continue;
217
- case 2:
218
- if (tag !== 18) {
219
- break;
220
- }
221
- message.version = reader.string();
222
- continue;
223
- }
224
- if ((tag & 7) === 4 || tag === 0) {
225
- break;
226
- }
227
- reader.skipType(tag & 7);
228
- }
229
- return message;
230
- },
231
- fromJSON(object) {
232
- return {
233
- id: isSet(object.id) ? globalThis.String(object.id) : "",
234
- version: isSet(object.version) ? globalThis.String(object.version) : "",
235
- };
236
- },
237
- toJSON(message) {
238
- const obj = {};
239
- if (message.id !== "") {
240
- obj.id = message.id;
241
- }
242
- if (message.version !== "") {
243
- obj.version = message.version;
244
- }
245
- return obj;
246
- },
247
- create(base) {
248
- return TimeZone.fromPartial(base ?? {});
249
- },
250
- fromPartial(object) {
251
- const message = createBaseTimeZone();
252
- message.id = object.id ?? "";
253
- message.version = object.version ?? "";
254
- return message;
255
- },
256
- };
257
- messageTypeRegistry.set(TimeZone.$type, TimeZone);
258
- function isSet(value) {
259
- return value !== null && value !== undefined;
260
- }