@fatehan/tsrp 1.6.17 → 1.6.19

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.
Files changed (88) hide show
  1. package/dist/fatehan/activities/workflow.d.ts +219 -0
  2. package/dist/fatehan/activities/workflow.d.ts.map +1 -0
  3. package/dist/fatehan/activities/workflow.js +1941 -0
  4. package/dist/fatehan/activities/workshift.d.ts +140 -0
  5. package/dist/fatehan/activities/workshift.d.ts.map +1 -0
  6. package/dist/fatehan/activities/workshift.js +1244 -0
  7. package/dist/fatehan/apis/client.d.ts +246 -0
  8. package/dist/fatehan/apis/client.d.ts.map +1 -0
  9. package/dist/fatehan/apis/client.js +2572 -0
  10. package/dist/fatehan/areas/area.d.ts +96 -0
  11. package/dist/fatehan/areas/area.d.ts.map +1 -0
  12. package/dist/fatehan/areas/area.js +761 -0
  13. package/dist/fatehan/devices/devices.d.ts +256 -0
  14. package/dist/fatehan/devices/devices.d.ts.map +1 -0
  15. package/dist/fatehan/devices/devices.js +2730 -0
  16. package/dist/fatehan/devices/maintenance.d.ts +64 -0
  17. package/dist/fatehan/devices/maintenance.d.ts.map +1 -0
  18. package/dist/fatehan/devices/maintenance.js +484 -0
  19. package/dist/fatehan/financial/financial.d.ts +162 -0
  20. package/dist/fatehan/financial/financial.d.ts.map +1 -0
  21. package/dist/fatehan/financial/financial.js +1701 -0
  22. package/dist/fatehan/google/protobuf/descriptor.d.ts +1303 -0
  23. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -0
  24. package/dist/fatehan/google/protobuf/descriptor.js +3467 -0
  25. package/dist/fatehan/google/protobuf/duration.d.ts +99 -0
  26. package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -0
  27. package/dist/fatehan/google/protobuf/duration.js +63 -0
  28. package/dist/fatehan/google/protobuf/field_mask.d.ts +228 -0
  29. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -0
  30. package/dist/fatehan/google/protobuf/field_mask.js +57 -0
  31. package/dist/fatehan/google/protobuf/timestamp.d.ts +129 -0
  32. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -0
  33. package/dist/fatehan/google/protobuf/timestamp.js +63 -0
  34. package/dist/fatehan/identities/authentication.d.ts +164 -0
  35. package/dist/fatehan/identities/authentication.d.ts.map +1 -0
  36. package/dist/fatehan/identities/authentication.js +1291 -0
  37. package/dist/fatehan/identities/identities.d.ts +969 -0
  38. package/dist/fatehan/identities/identities.d.ts.map +1 -0
  39. package/dist/fatehan/identities/identities.js +2993 -0
  40. package/dist/fatehan/models/fusion.d.ts +149 -0
  41. package/dist/fatehan/models/fusion.d.ts.map +1 -0
  42. package/dist/fatehan/models/fusion.js +1531 -0
  43. package/dist/fatehan/models/models.d.ts +162 -0
  44. package/dist/fatehan/models/models.d.ts.map +1 -0
  45. package/dist/fatehan/models/models.js +1486 -0
  46. package/dist/fatehan/notifies/direct.d.ts +85 -0
  47. package/dist/fatehan/notifies/direct.d.ts.map +1 -0
  48. package/dist/fatehan/notifies/direct.js +669 -0
  49. package/dist/fatehan/notifies/notify.d.ts +232 -0
  50. package/dist/fatehan/notifies/notify.d.ts.map +1 -0
  51. package/dist/fatehan/notifies/notify.js +1958 -0
  52. package/dist/fatehan/packets/commands.d.ts +150 -0
  53. package/dist/fatehan/packets/commands.d.ts.map +1 -0
  54. package/dist/fatehan/packets/commands.js +1364 -0
  55. package/dist/fatehan/packets/dataModel.d.ts +1610 -0
  56. package/dist/fatehan/packets/dataModel.d.ts.map +1 -0
  57. package/dist/fatehan/packets/dataModel.js +14947 -0
  58. package/dist/fatehan/packets/dataModule.d.ts +61 -0
  59. package/dist/fatehan/packets/dataModule.d.ts.map +1 -0
  60. package/dist/fatehan/packets/dataModule.js +386 -0
  61. package/dist/fatehan/packets/forge.d.ts +142 -0
  62. package/dist/fatehan/packets/forge.d.ts.map +1 -0
  63. package/dist/fatehan/packets/forge.js +1339 -0
  64. package/dist/fatehan/services/api.d.ts +1220 -0
  65. package/dist/fatehan/services/api.d.ts.map +1 -0
  66. package/dist/fatehan/services/api.js +12660 -0
  67. package/dist/fatehan/services/repositories.d.ts +78 -0
  68. package/dist/fatehan/services/repositories.d.ts.map +1 -0
  69. package/dist/fatehan/services/repositories.js +620 -0
  70. package/dist/fatehan/stream/stream.d.ts +224 -0
  71. package/dist/fatehan/stream/stream.d.ts.map +1 -0
  72. package/dist/fatehan/stream/stream.js +1416 -0
  73. package/dist/fatehan/trips/trip.d.ts +325 -0
  74. package/dist/fatehan/trips/trip.d.ts.map +1 -0
  75. package/dist/fatehan/trips/trip.js +1635 -0
  76. package/dist/fatehan/utils/buf/validate/validate.d.ts +3520 -0
  77. package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -0
  78. package/dist/fatehan/utils/buf/validate/validate.js +4248 -0
  79. package/dist/services.d.ts +79 -0
  80. package/dist/services.d.ts.map +1 -0
  81. package/dist/services.js +245 -0
  82. package/dist/store/system.io.d.ts +6 -0
  83. package/dist/store/system.io.d.ts.map +1 -0
  84. package/dist/store/system.io.js +14 -0
  85. package/dist/system.io.d.ts +6 -0
  86. package/dist/system.io.d.ts.map +1 -0
  87. package/dist/system.io.js +208 -0
  88. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import Long from "long";
3
+ export declare const protobufPackage = "google.protobuf";
4
+ /**
5
+ * A Duration represents a signed, fixed-length span of time represented
6
+ * as a count of seconds and fractions of seconds at nanosecond
7
+ * resolution. It is independent of any calendar and concepts like "day"
8
+ * or "month". It is related to Timestamp in that the difference between
9
+ * two Timestamp values is a Duration and it can be added or subtracted
10
+ * from a Timestamp. Range is approximately +-10,000 years.
11
+ *
12
+ * # Examples
13
+ *
14
+ * Example 1: Compute Duration from two Timestamps in pseudo code.
15
+ *
16
+ * Timestamp start = ...;
17
+ * Timestamp end = ...;
18
+ * Duration duration = ...;
19
+ *
20
+ * duration.seconds = end.seconds - start.seconds;
21
+ * duration.nanos = end.nanos - start.nanos;
22
+ *
23
+ * if (duration.seconds < 0 && duration.nanos > 0) {
24
+ * duration.seconds += 1;
25
+ * duration.nanos -= 1000000000;
26
+ * } else if (duration.seconds > 0 && duration.nanos < 0) {
27
+ * duration.seconds -= 1;
28
+ * duration.nanos += 1000000000;
29
+ * }
30
+ *
31
+ * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
32
+ *
33
+ * Timestamp start = ...;
34
+ * Duration duration = ...;
35
+ * Timestamp end = ...;
36
+ *
37
+ * end.seconds = start.seconds + duration.seconds;
38
+ * end.nanos = start.nanos + duration.nanos;
39
+ *
40
+ * if (end.nanos < 0) {
41
+ * end.seconds -= 1;
42
+ * end.nanos += 1000000000;
43
+ * } else if (end.nanos >= 1000000000) {
44
+ * end.seconds += 1;
45
+ * end.nanos -= 1000000000;
46
+ * }
47
+ *
48
+ * Example 3: Compute Duration from datetime.timedelta in Python.
49
+ *
50
+ * td = datetime.timedelta(days=3, minutes=10)
51
+ * duration = Duration()
52
+ * duration.FromTimedelta(td)
53
+ *
54
+ * # JSON Mapping
55
+ *
56
+ * In JSON format, the Duration type is encoded as a string rather than an
57
+ * object, where the string ends in the suffix "s" (indicating seconds) and
58
+ * is preceded by the number of seconds, with nanoseconds expressed as
59
+ * fractional seconds. For example, 3 seconds with 0 nanoseconds should be
60
+ * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
61
+ * be expressed in JSON format as "3.000000001s", and 3 seconds and 1
62
+ * microsecond should be expressed in JSON format as "3.000001s".
63
+ */
64
+ export interface Duration {
65
+ /**
66
+ * Signed seconds of the span of time. Must be from -315,576,000,000
67
+ * to +315,576,000,000 inclusive. Note: these bounds are computed from:
68
+ * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
69
+ */
70
+ seconds: Long;
71
+ /**
72
+ * Signed fractions of a second at nanosecond resolution of the span
73
+ * of time. Durations less than one second are represented with a 0
74
+ * `seconds` field and a positive or negative `nanos` field. For durations
75
+ * of one second or more, a non-zero value for the `nanos` field must be
76
+ * of the same sign as the `seconds` field. Must be from -999,999,999
77
+ * to +999,999,999 inclusive.
78
+ */
79
+ nanos: number;
80
+ }
81
+ export declare const Duration: MessageFns<Duration>;
82
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
83
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
84
+ [K in keyof T]?: DeepPartial<T[K]>;
85
+ } : Partial<T>;
86
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
87
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
88
+ [K in keyof P]: Exact<P[K], I[K]>;
89
+ } & {
90
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
91
+ };
92
+ export interface MessageFns<T> {
93
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
94
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
95
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
96
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
97
+ }
98
+ export {};
99
+ //# sourceMappingURL=duration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/duration.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,OAAO,EAAE,IAAI,CAAC;IACd;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAC;CAC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Y,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,63 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.8
4
+ // protoc v7.34.1
5
+ // source: google/protobuf/duration.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ import Long from "long";
9
+ export const protobufPackage = "google.protobuf";
10
+ function createBaseDuration() {
11
+ return { seconds: Long.ZERO, nanos: 0 };
12
+ }
13
+ export const Duration = {
14
+ encode(message, writer = new BinaryWriter()) {
15
+ if (!message.seconds.equals(Long.ZERO)) {
16
+ writer.uint32(8).int64(message.seconds.toString());
17
+ }
18
+ if (message.nanos !== 0) {
19
+ writer.uint32(16).int32(message.nanos);
20
+ }
21
+ return writer;
22
+ },
23
+ decode(input, length) {
24
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25
+ const end = length === undefined ? reader.len : reader.pos + length;
26
+ const message = createBaseDuration();
27
+ while (reader.pos < end) {
28
+ const tag = reader.uint32();
29
+ switch (tag >>> 3) {
30
+ case 1: {
31
+ if (tag !== 8) {
32
+ break;
33
+ }
34
+ message.seconds = Long.fromString(reader.int64().toString());
35
+ continue;
36
+ }
37
+ case 2: {
38
+ if (tag !== 16) {
39
+ break;
40
+ }
41
+ message.nanos = reader.int32();
42
+ continue;
43
+ }
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skip(tag & 7);
49
+ }
50
+ return message;
51
+ },
52
+ create(base) {
53
+ return Duration.fromPartial(base ?? {});
54
+ },
55
+ fromPartial(object) {
56
+ const message = createBaseDuration();
57
+ message.seconds = (object.seconds !== undefined && object.seconds !== null)
58
+ ? Long.fromValue(object.seconds)
59
+ : Long.ZERO;
60
+ message.nanos = object.nanos ?? 0;
61
+ return message;
62
+ },
63
+ };
@@ -0,0 +1,228 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import Long from "long";
3
+ export declare const protobufPackage = "google.protobuf";
4
+ /**
5
+ * `FieldMask` represents a set of symbolic field paths, for example:
6
+ *
7
+ * paths: "f.a"
8
+ * paths: "f.b.d"
9
+ *
10
+ * Here `f` represents a field in some root message, `a` and `b`
11
+ * fields in the message found in `f`, and `d` a field found in the
12
+ * message in `f.b`.
13
+ *
14
+ * Field masks are used to specify a subset of fields that should be
15
+ * returned by a get operation or modified by an update operation.
16
+ * Field masks also have a custom JSON encoding (see below).
17
+ *
18
+ * # Field Masks in Projections
19
+ *
20
+ * When used in the context of a projection, a response message or
21
+ * sub-message is filtered by the API to only contain those fields as
22
+ * specified in the mask. For example, if the mask in the previous
23
+ * example is applied to a response message as follows:
24
+ *
25
+ * f {
26
+ * a : 22
27
+ * b {
28
+ * d : 1
29
+ * x : 2
30
+ * }
31
+ * y : 13
32
+ * }
33
+ * z: 8
34
+ *
35
+ * The result will not contain specific values for fields x,y and z
36
+ * (their value will be set to the default, and omitted in proto text
37
+ * output):
38
+ *
39
+ * f {
40
+ * a : 22
41
+ * b {
42
+ * d : 1
43
+ * }
44
+ * }
45
+ *
46
+ * A repeated field is not allowed except at the last position of a
47
+ * paths string.
48
+ *
49
+ * If a FieldMask object is not present in a get operation, the
50
+ * operation applies to all fields (as if a FieldMask of all fields
51
+ * had been specified).
52
+ *
53
+ * Note that a field mask does not necessarily apply to the
54
+ * top-level response message. In case of a REST get operation, the
55
+ * field mask applies directly to the response, but in case of a REST
56
+ * list operation, the mask instead applies to each individual message
57
+ * in the returned resource list. In case of a REST custom method,
58
+ * other definitions may be used. Where the mask applies will be
59
+ * clearly documented together with its declaration in the API. In
60
+ * any case, the effect on the returned resource/resources is required
61
+ * behavior for APIs.
62
+ *
63
+ * # Field Masks in Update Operations
64
+ *
65
+ * A field mask in update operations specifies which fields of the
66
+ * targeted resource are going to be updated. The API is required
67
+ * to only change the values of the fields as specified in the mask
68
+ * and leave the others untouched. If a resource is passed in to
69
+ * describe the updated values, the API ignores the values of all
70
+ * fields not covered by the mask.
71
+ *
72
+ * If a repeated field is specified for an update operation, new values will
73
+ * be appended to the existing repeated field in the target resource. Note that
74
+ * a repeated field is only allowed in the last position of a `paths` string.
75
+ *
76
+ * If a sub-message is specified in the last position of the field mask for an
77
+ * update operation, then new value will be merged into the existing sub-message
78
+ * in the target resource.
79
+ *
80
+ * For example, given the target message:
81
+ *
82
+ * f {
83
+ * b {
84
+ * d: 1
85
+ * x: 2
86
+ * }
87
+ * c: [1]
88
+ * }
89
+ *
90
+ * And an update message:
91
+ *
92
+ * f {
93
+ * b {
94
+ * d: 10
95
+ * }
96
+ * c: [2]
97
+ * }
98
+ *
99
+ * then if the field mask is:
100
+ *
101
+ * paths: ["f.b", "f.c"]
102
+ *
103
+ * then the result will be:
104
+ *
105
+ * f {
106
+ * b {
107
+ * d: 10
108
+ * x: 2
109
+ * }
110
+ * c: [1, 2]
111
+ * }
112
+ *
113
+ * An implementation may provide options to override this default behavior for
114
+ * repeated and message fields.
115
+ *
116
+ * Note that libraries which implement FieldMask resolution have various
117
+ * different behaviors in the face of empty masks or the special "*" mask.
118
+ * When implementing a service you should confirm these cases have the
119
+ * appropriate behavior in the underlying FieldMask library that you desire,
120
+ * and you may need to special case those cases in your application code if
121
+ * the underlying field mask library behavior differs from your intended
122
+ * service semantics.
123
+ *
124
+ * Update methods implementing https://google.aip.dev/134
125
+ * - MUST support the special value * meaning "full replace"
126
+ * - MUST treat an omitted field mask as "replace fields which are present".
127
+ *
128
+ * Other methods implementing https://google.aip.dev/157
129
+ * - SHOULD support the special value "*" to mean "get all".
130
+ * - MUST treat an omitted field mask to mean "get all", unless otherwise
131
+ * documented.
132
+ *
133
+ * ## Considerations for HTTP REST
134
+ *
135
+ * The HTTP kind of an update operation which uses a field mask must
136
+ * be set to PATCH instead of PUT in order to satisfy HTTP semantics
137
+ * (PUT must only be used for full updates).
138
+ *
139
+ * # JSON Encoding of Field Masks
140
+ *
141
+ * In JSON, a field mask is encoded as a single string where paths are
142
+ * separated by a comma. Fields name in each path are converted
143
+ * to/from lower-camel naming conventions.
144
+ *
145
+ * As an example, consider the following message declarations:
146
+ *
147
+ * message Profile {
148
+ * User user = 1;
149
+ * Photo photo = 2;
150
+ * }
151
+ * message User {
152
+ * string display_name = 1;
153
+ * string address = 2;
154
+ * }
155
+ *
156
+ * In proto a field mask for `Profile` may look as such:
157
+ *
158
+ * mask {
159
+ * paths: "user.display_name"
160
+ * paths: "photo"
161
+ * }
162
+ *
163
+ * In JSON, the same mask is represented as below:
164
+ *
165
+ * {
166
+ * mask: "user.displayName,photo"
167
+ * }
168
+ *
169
+ * # Field Masks and Oneof Fields
170
+ *
171
+ * Field masks treat fields in oneofs just as regular fields. Consider the
172
+ * following message:
173
+ *
174
+ * message SampleMessage {
175
+ * oneof test_oneof {
176
+ * string name = 4;
177
+ * SubMessage sub_message = 9;
178
+ * }
179
+ * }
180
+ *
181
+ * The field mask can be:
182
+ *
183
+ * mask {
184
+ * paths: "name"
185
+ * }
186
+ *
187
+ * Or:
188
+ *
189
+ * mask {
190
+ * paths: "sub_message"
191
+ * }
192
+ *
193
+ * Note that oneof type names ("test_oneof" in this case) cannot be used in
194
+ * paths.
195
+ *
196
+ * ## Field Mask Verification
197
+ *
198
+ * The implementation of any API method which has a FieldMask type field in the
199
+ * request should verify the included field paths, and return an
200
+ * `INVALID_ARGUMENT` error if any path is unmappable.
201
+ */
202
+ export interface FieldMask {
203
+ /** The set of field mask paths. */
204
+ paths: string[];
205
+ }
206
+ export declare const FieldMask: MessageFns<FieldMask> & FieldMaskWrapperFns;
207
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
208
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
209
+ [K in keyof T]?: DeepPartial<T[K]>;
210
+ } : Partial<T>;
211
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
212
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
213
+ [K in keyof P]: Exact<P[K], I[K]>;
214
+ } & {
215
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
216
+ };
217
+ export interface MessageFns<T> {
218
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
219
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
220
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
221
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
222
+ }
223
+ export interface FieldMaskWrapperFns {
224
+ wrap(paths: string[]): FieldMask;
225
+ unwrap(message: FieldMask): string[];
226
+ }
227
+ export {};
228
+ //# sourceMappingURL=field_mask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field_mask.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/field_mask.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAEnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,EAAE,CAAC;CACtC"}
@@ -0,0 +1,57 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.6
4
+ // protoc v7.34.1
5
+ // source: google/protobuf/field_mask.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ export const protobufPackage = "google.protobuf";
9
+ function createBaseFieldMask() {
10
+ return { paths: [] };
11
+ }
12
+ export const FieldMask = {
13
+ encode(message, writer = new BinaryWriter()) {
14
+ for (const v of message.paths) {
15
+ writer.uint32(10).string(v);
16
+ }
17
+ return writer;
18
+ },
19
+ decode(input, length) {
20
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
21
+ const end = length === undefined ? reader.len : reader.pos + length;
22
+ const message = createBaseFieldMask();
23
+ while (reader.pos < end) {
24
+ const tag = reader.uint32();
25
+ switch (tag >>> 3) {
26
+ case 1: {
27
+ if (tag !== 10) {
28
+ break;
29
+ }
30
+ message.paths.push(reader.string());
31
+ continue;
32
+ }
33
+ }
34
+ if ((tag & 7) === 4 || tag === 0) {
35
+ break;
36
+ }
37
+ reader.skip(tag & 7);
38
+ }
39
+ return message;
40
+ },
41
+ create(base) {
42
+ return FieldMask.fromPartial(base ?? {});
43
+ },
44
+ fromPartial(object) {
45
+ const message = createBaseFieldMask();
46
+ message.paths = object.paths?.map((e) => e) || [];
47
+ return message;
48
+ },
49
+ wrap(paths) {
50
+ const result = createBaseFieldMask();
51
+ result.paths = paths;
52
+ return result;
53
+ },
54
+ unwrap(message) {
55
+ return message.paths;
56
+ },
57
+ };
@@ -0,0 +1,129 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import Long from "long";
3
+ export declare const protobufPackage = "google.protobuf";
4
+ /**
5
+ * A Timestamp represents a point in time independent of any time zone or local
6
+ * calendar, encoded as a count of seconds and fractions of seconds at
7
+ * nanosecond resolution. The count is relative to an epoch at UTC midnight on
8
+ * January 1, 1970, in the proleptic Gregorian calendar which extends the
9
+ * Gregorian calendar backwards to year one.
10
+ *
11
+ * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
12
+ * second table is needed for interpretation, using a [24-hour linear
13
+ * smear](https://developers.google.com/time/smear).
14
+ *
15
+ * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
16
+ * restricting to that range, we ensure that we can convert to and from [RFC
17
+ * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
18
+ *
19
+ * # Examples
20
+ *
21
+ * Example 1: Compute Timestamp from POSIX `time()`.
22
+ *
23
+ * Timestamp timestamp;
24
+ * timestamp.set_seconds(time(NULL));
25
+ * timestamp.set_nanos(0);
26
+ *
27
+ * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
28
+ *
29
+ * struct timeval tv;
30
+ * gettimeofday(&tv, NULL);
31
+ *
32
+ * Timestamp timestamp;
33
+ * timestamp.set_seconds(tv.tv_sec);
34
+ * timestamp.set_nanos(tv.tv_usec * 1000);
35
+ *
36
+ * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
37
+ *
38
+ * FILETIME ft;
39
+ * GetSystemTimeAsFileTime(&ft);
40
+ * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
41
+ *
42
+ * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
43
+ * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
44
+ * Timestamp timestamp;
45
+ * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
46
+ * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
47
+ *
48
+ * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
49
+ *
50
+ * long millis = System.currentTimeMillis();
51
+ *
52
+ * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
53
+ * .setNanos((int) ((millis % 1000) * 1000000)).build();
54
+ *
55
+ * Example 5: Compute Timestamp from Java `Instant.now()`.
56
+ *
57
+ * Instant now = Instant.now();
58
+ *
59
+ * Timestamp timestamp =
60
+ * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
61
+ * .setNanos(now.getNano()).build();
62
+ *
63
+ * Example 6: Compute Timestamp from current time in Python.
64
+ *
65
+ * timestamp = Timestamp()
66
+ * timestamp.GetCurrentTime()
67
+ *
68
+ * # JSON Mapping
69
+ *
70
+ * In JSON format, the Timestamp type is encoded as a string in the
71
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
72
+ * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
73
+ * where {year} is always expressed using four digits while {month}, {day},
74
+ * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
75
+ * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
76
+ * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
77
+ * is required. A ProtoJSON serializer should always use UTC (as indicated by
78
+ * "Z") when printing the Timestamp type and a ProtoJSON parser should be
79
+ * able to accept both UTC and other timezones (as indicated by an offset).
80
+ *
81
+ * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
82
+ * 01:30 UTC on January 15, 2017.
83
+ *
84
+ * In JavaScript, one can convert a Date object to this format using the
85
+ * standard
86
+ * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
87
+ * method. In Python, a standard `datetime.datetime` object can be converted
88
+ * to this format using
89
+ * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
90
+ * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
91
+ * the Joda Time's [`ISODateTimeFormat.dateTime()`](
92
+ * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
93
+ * ) to obtain a formatter capable of generating timestamps in this format.
94
+ */
95
+ export interface Timestamp {
96
+ /**
97
+ * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
98
+ * be between -62135596800 and 253402300799 inclusive (which corresponds to
99
+ * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
100
+ */
101
+ seconds: Long;
102
+ /**
103
+ * Non-negative fractions of a second at nanosecond resolution. This field is
104
+ * the nanosecond portion of the duration, not an alternative to seconds.
105
+ * Negative second values with fractions must still have non-negative nanos
106
+ * values that count forward in time. Must be between 0 and 999,999,999
107
+ * inclusive.
108
+ */
109
+ nanos: number;
110
+ }
111
+ export declare const Timestamp: MessageFns<Timestamp>;
112
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
113
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
114
+ [K in keyof T]?: DeepPartial<T[K]>;
115
+ } : Partial<T>;
116
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
117
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
118
+ [K in keyof P]: Exact<P[K], I[K]>;
119
+ } & {
120
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
121
+ };
122
+ export interface MessageFns<T> {
123
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
124
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
125
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
126
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
127
+ }
128
+ export {};
129
+ //# sourceMappingURL=timestamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/timestamp.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,OAAO,EAAE,IAAI,CAAC;IACd;;;;;;OAMG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,SAAS,CAsD3C,CAAC;AAEF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,IAAI,GAAG,MAAM,GAA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,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,63 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.8
4
+ // protoc v7.34.1
5
+ // source: google/protobuf/timestamp.proto
6
+ /* eslint-disable */
7
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
+ import Long from "long";
9
+ export const protobufPackage = "google.protobuf";
10
+ function createBaseTimestamp() {
11
+ return { seconds: Long.ZERO, nanos: 0 };
12
+ }
13
+ export const Timestamp = {
14
+ encode(message, writer = new BinaryWriter()) {
15
+ if (!message.seconds.equals(Long.ZERO)) {
16
+ writer.uint32(8).int64(message.seconds.toString());
17
+ }
18
+ if (message.nanos !== 0) {
19
+ writer.uint32(16).int32(message.nanos);
20
+ }
21
+ return writer;
22
+ },
23
+ decode(input, length) {
24
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25
+ const end = length === undefined ? reader.len : reader.pos + length;
26
+ const message = createBaseTimestamp();
27
+ while (reader.pos < end) {
28
+ const tag = reader.uint32();
29
+ switch (tag >>> 3) {
30
+ case 1: {
31
+ if (tag !== 8) {
32
+ break;
33
+ }
34
+ message.seconds = Long.fromString(reader.int64().toString());
35
+ continue;
36
+ }
37
+ case 2: {
38
+ if (tag !== 16) {
39
+ break;
40
+ }
41
+ message.nanos = reader.int32();
42
+ continue;
43
+ }
44
+ }
45
+ if ((tag & 7) === 4 || tag === 0) {
46
+ break;
47
+ }
48
+ reader.skip(tag & 7);
49
+ }
50
+ return message;
51
+ },
52
+ create(base) {
53
+ return Timestamp.fromPartial(base ?? {});
54
+ },
55
+ fromPartial(object) {
56
+ const message = createBaseTimestamp();
57
+ message.seconds = (object.seconds !== undefined && object.seconds !== null)
58
+ ? Long.fromValue(object.seconds)
59
+ : Long.ZERO;
60
+ message.nanos = object.nanos ?? 0;
61
+ return message;
62
+ },
63
+ };