@fatehan/tsrp 1.1.4 → 1.1.5

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.
@@ -9,16 +9,16 @@ export interface DeviceRepo {
9
9
  device?: Device | undefined;
10
10
  icon?: DeviceIcon | undefined;
11
11
  tracker?: Tracker | undefined;
12
- car?: CarRepo | undefined;
12
+ carRepo?: CarRepo | undefined;
13
13
  deviceStatus?: DeviceStatus | undefined;
14
14
  userDeviceIo: SystemIo[];
15
- owner?: UserRepo | undefined;
15
+ ownerRepo?: UserRepo | undefined;
16
16
  organization?: Organization | undefined;
17
17
  }
18
18
  export interface CarRepo {
19
19
  car?: Car | undefined;
20
- driver?: DriverRepo | undefined;
21
- carModel?: CarModelRepo | undefined;
20
+ driverRepo?: DriverRepo | undefined;
21
+ carModelRepo?: CarModelRepo | undefined;
22
22
  }
23
23
  export interface PersonRepo {
24
24
  person?: Person | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"repositories.d.ts","sourceRoot":"","sources":["../../../src/fatehan/services/repositories.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAA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C;AAMnG,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,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,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"}
@@ -18,10 +18,10 @@ function createBaseDeviceRepo() {
18
18
  device: undefined,
19
19
  icon: undefined,
20
20
  tracker: undefined,
21
- car: undefined,
21
+ carRepo: undefined,
22
22
  deviceStatus: undefined,
23
23
  userDeviceIo: [],
24
- owner: undefined,
24
+ ownerRepo: undefined,
25
25
  organization: undefined,
26
26
  };
27
27
  }
@@ -36,8 +36,8 @@ exports.DeviceRepo = {
36
36
  if (message.tracker !== undefined) {
37
37
  devices_1.Tracker.encode(message.tracker, writer.uint32(26).fork()).join();
38
38
  }
39
- if (message.car !== undefined) {
40
- exports.CarRepo.encode(message.car, writer.uint32(34).fork()).join();
39
+ if (message.carRepo !== undefined) {
40
+ exports.CarRepo.encode(message.carRepo, writer.uint32(34).fork()).join();
41
41
  }
42
42
  if (message.deviceStatus !== undefined) {
43
43
  dataModel_1.DeviceStatus.encode(message.deviceStatus, writer.uint32(42).fork()).join();
@@ -45,8 +45,8 @@ exports.DeviceRepo = {
45
45
  for (const v of message.userDeviceIo) {
46
46
  devices_1.SystemIo.encode(v, writer.uint32(50).fork()).join();
47
47
  }
48
- if (message.owner !== undefined) {
49
- exports.UserRepo.encode(message.owner, writer.uint32(58).fork()).join();
48
+ if (message.ownerRepo !== undefined) {
49
+ exports.UserRepo.encode(message.ownerRepo, writer.uint32(58).fork()).join();
50
50
  }
51
51
  if (message.organization !== undefined) {
52
52
  identities_1.Organization.encode(message.organization, writer.uint32(66).fork()).join();
@@ -85,7 +85,7 @@ exports.DeviceRepo = {
85
85
  if (tag !== 34) {
86
86
  break;
87
87
  }
88
- message.car = exports.CarRepo.decode(reader, reader.uint32());
88
+ message.carRepo = exports.CarRepo.decode(reader, reader.uint32());
89
89
  continue;
90
90
  }
91
91
  case 5: {
@@ -106,7 +106,7 @@ exports.DeviceRepo = {
106
106
  if (tag !== 58) {
107
107
  break;
108
108
  }
109
- message.owner = exports.UserRepo.decode(reader, reader.uint32());
109
+ message.ownerRepo = exports.UserRepo.decode(reader, reader.uint32());
110
110
  continue;
111
111
  }
112
112
  case 8: {
@@ -129,12 +129,12 @@ exports.DeviceRepo = {
129
129
  device: isSet(object.device) ? devices_1.Device.fromJSON(object.device) : undefined,
130
130
  icon: isSet(object.icon) ? devices_1.DeviceIcon.fromJSON(object.icon) : undefined,
131
131
  tracker: isSet(object.tracker) ? devices_1.Tracker.fromJSON(object.tracker) : undefined,
132
- car: isSet(object.car) ? exports.CarRepo.fromJSON(object.car) : undefined,
132
+ carRepo: isSet(object.car_repo) ? exports.CarRepo.fromJSON(object.car_repo) : undefined,
133
133
  deviceStatus: isSet(object.device_status) ? dataModel_1.DeviceStatus.fromJSON(object.device_status) : undefined,
134
134
  userDeviceIo: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.user_device_io)
135
135
  ? object.user_device_io.map((e) => devices_1.SystemIo.fromJSON(e))
136
136
  : [],
137
- owner: isSet(object.owner) ? exports.UserRepo.fromJSON(object.owner) : undefined,
137
+ ownerRepo: isSet(object.owner_repo) ? exports.UserRepo.fromJSON(object.owner_repo) : undefined,
138
138
  organization: isSet(object.organization) ? identities_1.Organization.fromJSON(object.organization) : undefined,
139
139
  };
140
140
  },
@@ -150,8 +150,8 @@ exports.DeviceRepo = {
150
150
  if (message.tracker !== undefined) {
151
151
  obj.tracker = devices_1.Tracker.toJSON(message.tracker);
152
152
  }
153
- if (message.car !== undefined) {
154
- obj.car = exports.CarRepo.toJSON(message.car);
153
+ if (message.carRepo !== undefined) {
154
+ obj.car_repo = exports.CarRepo.toJSON(message.carRepo);
155
155
  }
156
156
  if (message.deviceStatus !== undefined) {
157
157
  obj.device_status = dataModel_1.DeviceStatus.toJSON(message.deviceStatus);
@@ -159,8 +159,8 @@ exports.DeviceRepo = {
159
159
  if ((_a = message.userDeviceIo) === null || _a === void 0 ? void 0 : _a.length) {
160
160
  obj.user_device_io = message.userDeviceIo.map((e) => devices_1.SystemIo.toJSON(e));
161
161
  }
162
- if (message.owner !== undefined) {
163
- obj.owner = exports.UserRepo.toJSON(message.owner);
162
+ if (message.ownerRepo !== undefined) {
163
+ obj.owner_repo = exports.UserRepo.toJSON(message.ownerRepo);
164
164
  }
165
165
  if (message.organization !== undefined) {
166
166
  obj.organization = identities_1.Organization.toJSON(message.organization);
@@ -182,13 +182,15 @@ exports.DeviceRepo = {
182
182
  message.tracker = (object.tracker !== undefined && object.tracker !== null)
183
183
  ? devices_1.Tracker.fromPartial(object.tracker)
184
184
  : undefined;
185
- message.car = (object.car !== undefined && object.car !== null) ? exports.CarRepo.fromPartial(object.car) : undefined;
185
+ message.carRepo = (object.carRepo !== undefined && object.carRepo !== null)
186
+ ? exports.CarRepo.fromPartial(object.carRepo)
187
+ : undefined;
186
188
  message.deviceStatus = (object.deviceStatus !== undefined && object.deviceStatus !== null)
187
189
  ? dataModel_1.DeviceStatus.fromPartial(object.deviceStatus)
188
190
  : undefined;
189
191
  message.userDeviceIo = ((_a = object.userDeviceIo) === null || _a === void 0 ? void 0 : _a.map((e) => devices_1.SystemIo.fromPartial(e))) || [];
190
- message.owner = (object.owner !== undefined && object.owner !== null)
191
- ? exports.UserRepo.fromPartial(object.owner)
192
+ message.ownerRepo = (object.ownerRepo !== undefined && object.ownerRepo !== null)
193
+ ? exports.UserRepo.fromPartial(object.ownerRepo)
192
194
  : undefined;
193
195
  message.organization = (object.organization !== undefined && object.organization !== null)
194
196
  ? identities_1.Organization.fromPartial(object.organization)
@@ -197,18 +199,18 @@ exports.DeviceRepo = {
197
199
  },
198
200
  };
199
201
  function createBaseCarRepo() {
200
- return { car: undefined, driver: undefined, carModel: undefined };
202
+ return { car: undefined, driverRepo: undefined, carModelRepo: undefined };
201
203
  }
202
204
  exports.CarRepo = {
203
205
  encode(message, writer = new wire_1.BinaryWriter()) {
204
206
  if (message.car !== undefined) {
205
207
  devices_1.Car.encode(message.car, writer.uint32(10).fork()).join();
206
208
  }
207
- if (message.driver !== undefined) {
208
- exports.DriverRepo.encode(message.driver, writer.uint32(18).fork()).join();
209
+ if (message.driverRepo !== undefined) {
210
+ exports.DriverRepo.encode(message.driverRepo, writer.uint32(18).fork()).join();
209
211
  }
210
- if (message.carModel !== undefined) {
211
- exports.CarModelRepo.encode(message.carModel, writer.uint32(26).fork()).join();
212
+ if (message.carModelRepo !== undefined) {
213
+ exports.CarModelRepo.encode(message.carModelRepo, writer.uint32(26).fork()).join();
212
214
  }
213
215
  return writer;
214
216
  },
@@ -230,14 +232,14 @@ exports.CarRepo = {
230
232
  if (tag !== 18) {
231
233
  break;
232
234
  }
233
- message.driver = exports.DriverRepo.decode(reader, reader.uint32());
235
+ message.driverRepo = exports.DriverRepo.decode(reader, reader.uint32());
234
236
  continue;
235
237
  }
236
238
  case 3: {
237
239
  if (tag !== 26) {
238
240
  break;
239
241
  }
240
- message.carModel = exports.CarModelRepo.decode(reader, reader.uint32());
242
+ message.carModelRepo = exports.CarModelRepo.decode(reader, reader.uint32());
241
243
  continue;
242
244
  }
243
245
  }
@@ -251,8 +253,8 @@ exports.CarRepo = {
251
253
  fromJSON(object) {
252
254
  return {
253
255
  car: isSet(object.object) ? devices_1.Car.fromJSON(object.object) : undefined,
254
- driver: isSet(object.driver) ? exports.DriverRepo.fromJSON(object.driver) : undefined,
255
- carModel: isSet(object.car_types) ? exports.CarModelRepo.fromJSON(object.car_types) : undefined,
256
+ driverRepo: isSet(object.driver_repo) ? exports.DriverRepo.fromJSON(object.driver_repo) : undefined,
257
+ carModelRepo: isSet(object.car_model_repo) ? exports.CarModelRepo.fromJSON(object.car_model_repo) : undefined,
256
258
  };
257
259
  },
258
260
  toJSON(message) {
@@ -260,11 +262,11 @@ exports.CarRepo = {
260
262
  if (message.car !== undefined) {
261
263
  obj.object = devices_1.Car.toJSON(message.car);
262
264
  }
263
- if (message.driver !== undefined) {
264
- obj.driver = exports.DriverRepo.toJSON(message.driver);
265
+ if (message.driverRepo !== undefined) {
266
+ obj.driver_repo = exports.DriverRepo.toJSON(message.driverRepo);
265
267
  }
266
- if (message.carModel !== undefined) {
267
- obj.car_types = exports.CarModelRepo.toJSON(message.carModel);
268
+ if (message.carModelRepo !== undefined) {
269
+ obj.car_model_repo = exports.CarModelRepo.toJSON(message.carModelRepo);
268
270
  }
269
271
  return obj;
270
272
  },
@@ -274,11 +276,11 @@ exports.CarRepo = {
274
276
  fromPartial(object) {
275
277
  const message = createBaseCarRepo();
276
278
  message.car = (object.car !== undefined && object.car !== null) ? devices_1.Car.fromPartial(object.car) : undefined;
277
- message.driver = (object.driver !== undefined && object.driver !== null)
278
- ? exports.DriverRepo.fromPartial(object.driver)
279
+ message.driverRepo = (object.driverRepo !== undefined && object.driverRepo !== null)
280
+ ? exports.DriverRepo.fromPartial(object.driverRepo)
279
281
  : undefined;
280
- message.carModel = (object.carModel !== undefined && object.carModel !== null)
281
- ? exports.CarModelRepo.fromPartial(object.carModel)
282
+ message.carModelRepo = (object.carModelRepo !== undefined && object.carModelRepo !== null)
283
+ ? exports.CarModelRepo.fromPartial(object.carModelRepo)
282
284
  : undefined;
283
285
  return message;
284
286
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fatehan/tsrp",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "fatehan main models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",