@kernelminds/scailo-sdk 0.1.10 → 0.1.11

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 (31) hide show
  1. package/lib/cjs/index.js +0 -34
  2. package/lib/cjs/src/families.scailo_connect.js +11 -0
  3. package/lib/cjs/src/vault_commons.scailo_pb.js +69 -5
  4. package/lib/cjs/types/index.d.ts +0 -31
  5. package/lib/cjs/types/index.d.ts.map +1 -1
  6. package/lib/cjs/types/src/families.scailo_connect.d.ts +11 -0
  7. package/lib/cjs/types/src/families.scailo_connect.d.ts.map +1 -1
  8. package/lib/cjs/types/src/vault_commons.scailo_pb.d.ts +49 -3
  9. package/lib/cjs/types/src/vault_commons.scailo_pb.d.ts.map +1 -1
  10. package/lib/esm/index.js +0 -34
  11. package/lib/esm/src/families.scailo_connect.js +11 -0
  12. package/lib/esm/src/vault_commons.scailo_pb.js +69 -5
  13. package/lib/esm/types/index.d.ts +0 -31
  14. package/lib/esm/types/index.d.ts.map +1 -1
  15. package/lib/esm/types/src/families.scailo_connect.d.ts +11 -0
  16. package/lib/esm/types/src/families.scailo_connect.d.ts.map +1 -1
  17. package/lib/esm/types/src/vault_commons.scailo_pb.d.ts +49 -3
  18. package/lib/esm/types/src/vault_commons.scailo_pb.d.ts.map +1 -1
  19. package/package.json +1 -1
  20. package/lib/cjs/src/qc_hubs.scailo_connect.js +0 -244
  21. package/lib/cjs/src/qc_hubs.scailo_pb.js +0 -879
  22. package/lib/cjs/types/src/qc_hubs.scailo_connect.d.ts +0 -238
  23. package/lib/cjs/types/src/qc_hubs.scailo_connect.d.ts.map +0 -1
  24. package/lib/cjs/types/src/qc_hubs.scailo_pb.d.ts +0 -678
  25. package/lib/cjs/types/src/qc_hubs.scailo_pb.d.ts.map +0 -1
  26. package/lib/esm/src/qc_hubs.scailo_connect.js +0 -244
  27. package/lib/esm/src/qc_hubs.scailo_pb.js +0 -891
  28. package/lib/esm/types/src/qc_hubs.scailo_connect.d.ts +0 -238
  29. package/lib/esm/types/src/qc_hubs.scailo_connect.d.ts.map +0 -1
  30. package/lib/esm/types/src/qc_hubs.scailo_pb.d.ts +0 -678
  31. package/lib/esm/types/src/qc_hubs.scailo_pb.d.ts.map +0 -1
@@ -1,879 +0,0 @@
1
- "use strict";
2
- // @generated by protoc-gen-es v1.5.1 with parameter "target=ts"
3
- // @generated from file qc_hubs.scailo.proto (package Scailo, syntax proto3)
4
- /* eslint-disable */
5
- // @ts-nocheck
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.QCHubsServiceSearchAllReq = exports.QCHubsServiceCountReq = exports.QCHubsServiceFilterReq = exports.QCHubsServicePaginationResponse = exports.QCHubsServicePaginationReq = exports.QCHubsList = exports.QCHub = exports.QCHubsServiceUpdateRequest = exports.QCHubsServiceCreateRequest = exports.QC_HUB_SORT_KEY = void 0;
8
- const protobuf_1 = require("@bufbuild/protobuf");
9
- const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
- /**
11
- *
12
- * Describes the available sort keys
13
- *
14
- * @generated from enum Scailo.QC_HUB_SORT_KEY
15
- */
16
- var QC_HUB_SORT_KEY;
17
- (function (QC_HUB_SORT_KEY) {
18
- /**
19
- * Fetch ordered results by id
20
- *
21
- * @generated from enum value: QC_HUB_SORT_KEY_ID_UNSPECIFIED = 0;
22
- */
23
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_ID_UNSPECIFIED"] = 0] = "QC_HUB_SORT_KEY_ID_UNSPECIFIED";
24
- /**
25
- * Fetch ordered results by the creation timestamp
26
- *
27
- * @generated from enum value: QC_HUB_SORT_KEY_CREATED_AT = 1;
28
- */
29
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_CREATED_AT"] = 1] = "QC_HUB_SORT_KEY_CREATED_AT";
30
- /**
31
- * Fetch ordered results by the modified timestamp
32
- *
33
- * @generated from enum value: QC_HUB_SORT_KEY_MODIFIED_AT = 2;
34
- */
35
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_MODIFIED_AT"] = 2] = "QC_HUB_SORT_KEY_MODIFIED_AT";
36
- /**
37
- * Fetch ordered results by the approved on timestamp
38
- *
39
- * @generated from enum value: QC_HUB_SORT_KEY_APPROVED_ON = 3;
40
- */
41
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_APPROVED_ON"] = 3] = "QC_HUB_SORT_KEY_APPROVED_ON";
42
- /**
43
- * Fetch ordered results by the approved by field
44
- *
45
- * @generated from enum value: QC_HUB_SORT_KEY_APPROVED_BY = 4;
46
- */
47
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_APPROVED_BY"] = 4] = "QC_HUB_SORT_KEY_APPROVED_BY";
48
- /**
49
- * Fetch ordered results by the approver's role ID
50
- *
51
- * @generated from enum value: QC_HUB_SORT_KEY_APPROVER_ROLE_ID = 5;
52
- */
53
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_APPROVER_ROLE_ID"] = 5] = "QC_HUB_SORT_KEY_APPROVER_ROLE_ID";
54
- /**
55
- * Fetch ordered results by the name
56
- *
57
- * @generated from enum value: QC_HUB_SORT_KEY_NAME = 10;
58
- */
59
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_NAME"] = 10] = "QC_HUB_SORT_KEY_NAME";
60
- /**
61
- * Fetch ordered results by the code
62
- *
63
- * @generated from enum value: QC_HUB_SORT_KEY_CODE = 11;
64
- */
65
- QC_HUB_SORT_KEY[QC_HUB_SORT_KEY["QC_HUB_SORT_KEY_CODE"] = 11] = "QC_HUB_SORT_KEY_CODE";
66
- })(QC_HUB_SORT_KEY || (exports.QC_HUB_SORT_KEY = QC_HUB_SORT_KEY = {}));
67
- // Retrieve enum metadata with: proto3.getEnumType(QC_HUB_SORT_KEY)
68
- protobuf_1.proto3.util.setEnumType(QC_HUB_SORT_KEY, "Scailo.QC_HUB_SORT_KEY", [
69
- { no: 0, name: "QC_HUB_SORT_KEY_ID_UNSPECIFIED" },
70
- { no: 1, name: "QC_HUB_SORT_KEY_CREATED_AT" },
71
- { no: 2, name: "QC_HUB_SORT_KEY_MODIFIED_AT" },
72
- { no: 3, name: "QC_HUB_SORT_KEY_APPROVED_ON" },
73
- { no: 4, name: "QC_HUB_SORT_KEY_APPROVED_BY" },
74
- { no: 5, name: "QC_HUB_SORT_KEY_APPROVER_ROLE_ID" },
75
- { no: 10, name: "QC_HUB_SORT_KEY_NAME" },
76
- { no: 11, name: "QC_HUB_SORT_KEY_CODE" },
77
- ]);
78
- /**
79
- *
80
- * Describes the parameters necessary to create a record
81
- *
82
- * @generated from message Scailo.QCHubsServiceCreateRequest
83
- */
84
- class QCHubsServiceCreateRequest extends protobuf_1.Message {
85
- constructor(data) {
86
- super();
87
- /**
88
- * QCHubs a globally unique entity UUID. This will be set at the organization level
89
- *
90
- * @generated from field: string entity_uuid = 1;
91
- */
92
- this.entityUuid = "";
93
- /**
94
- * QCHubs any comment that the user might add during this operation
95
- *
96
- * @generated from field: string user_comment = 2;
97
- */
98
- this.userComment = "";
99
- /**
100
- * The ID of the associated location
101
- *
102
- * @generated from field: uint64 location_id = 9;
103
- */
104
- this.locationId = protobuf_1.protoInt64.zero;
105
- /**
106
- * The name of the qc hub
107
- *
108
- * @generated from field: string name = 10;
109
- */
110
- this.name = "";
111
- /**
112
- * The unique code by which the qc hub is classified
113
- *
114
- * @generated from field: string code = 11;
115
- */
116
- this.code = "";
117
- /**
118
- * The description of the qc hub
119
- *
120
- * @generated from field: string description = 12;
121
- */
122
- this.description = "";
123
- /**
124
- * The username of the incharge
125
- *
126
- * @generated from field: string incharge_username = 13;
127
- */
128
- this.inchargeUsername = "";
129
- /**
130
- * The contact number of the qc hub
131
- *
132
- * @generated from field: string phone = 14;
133
- */
134
- this.phone = "";
135
- protobuf_1.proto3.util.initPartial(data, this);
136
- }
137
- static fromBinary(bytes, options) {
138
- return new QCHubsServiceCreateRequest().fromBinary(bytes, options);
139
- }
140
- static fromJson(jsonValue, options) {
141
- return new QCHubsServiceCreateRequest().fromJson(jsonValue, options);
142
- }
143
- static fromJsonString(jsonString, options) {
144
- return new QCHubsServiceCreateRequest().fromJsonString(jsonString, options);
145
- }
146
- static equals(a, b) {
147
- return protobuf_1.proto3.util.equals(QCHubsServiceCreateRequest, a, b);
148
- }
149
- }
150
- exports.QCHubsServiceCreateRequest = QCHubsServiceCreateRequest;
151
- QCHubsServiceCreateRequest.runtime = protobuf_1.proto3;
152
- QCHubsServiceCreateRequest.typeName = "Scailo.QCHubsServiceCreateRequest";
153
- QCHubsServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
154
- { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
- { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
156
- { no: 9, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
157
- { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
158
- { no: 11, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
159
- { no: 12, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
160
- { no: 13, name: "incharge_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
161
- { no: 14, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
162
- ]);
163
- /**
164
- *
165
- * Describes the parameters necessary to update a record
166
- *
167
- * @generated from message Scailo.QCHubsServiceUpdateRequest
168
- */
169
- class QCHubsServiceUpdateRequest extends protobuf_1.Message {
170
- constructor(data) {
171
- super();
172
- /**
173
- * QCHubs any comment that the user might add during this operation
174
- *
175
- * @generated from field: string user_comment = 1;
176
- */
177
- this.userComment = "";
178
- /**
179
- * The ID of the record that needs to be updated
180
- *
181
- * @generated from field: uint64 id = 2;
182
- */
183
- this.id = protobuf_1.protoInt64.zero;
184
- /**
185
- * Optional boolean value that qc hubs if a notification needs to be sent to users about the update to the record. This is useful when a subsequent operation needs to be performed immediately (such as send to verification after updating the revision)
186
- *
187
- * @generated from field: bool notify_users = 3;
188
- */
189
- this.notifyUsers = false;
190
- /**
191
- * The name of the qc hub
192
- *
193
- * @generated from field: string name = 10;
194
- */
195
- this.name = "";
196
- /**
197
- * The unique code by which the qc hub is classified
198
- *
199
- * @generated from field: string code = 11;
200
- */
201
- this.code = "";
202
- /**
203
- * The description of the qc hub
204
- *
205
- * @generated from field: string description = 12;
206
- */
207
- this.description = "";
208
- /**
209
- * The username of the incharge
210
- *
211
- * @generated from field: string incharge_username = 13;
212
- */
213
- this.inchargeUsername = "";
214
- /**
215
- * The contact number of the qc hub
216
- *
217
- * @generated from field: string phone = 14;
218
- */
219
- this.phone = "";
220
- protobuf_1.proto3.util.initPartial(data, this);
221
- }
222
- static fromBinary(bytes, options) {
223
- return new QCHubsServiceUpdateRequest().fromBinary(bytes, options);
224
- }
225
- static fromJson(jsonValue, options) {
226
- return new QCHubsServiceUpdateRequest().fromJson(jsonValue, options);
227
- }
228
- static fromJsonString(jsonString, options) {
229
- return new QCHubsServiceUpdateRequest().fromJsonString(jsonString, options);
230
- }
231
- static equals(a, b) {
232
- return protobuf_1.proto3.util.equals(QCHubsServiceUpdateRequest, a, b);
233
- }
234
- }
235
- exports.QCHubsServiceUpdateRequest = QCHubsServiceUpdateRequest;
236
- QCHubsServiceUpdateRequest.runtime = protobuf_1.proto3;
237
- QCHubsServiceUpdateRequest.typeName = "Scailo.QCHubsServiceUpdateRequest";
238
- QCHubsServiceUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
239
- { no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
240
- { no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
241
- { no: 3, name: "notify_users", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
242
- { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
243
- { no: 11, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
244
- { no: 12, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
245
- { no: 13, name: "incharge_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
- { no: 14, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
247
- ]);
248
- /**
249
- *
250
- * Describes the parameters that are part of a standard response
251
- *
252
- * @generated from message Scailo.QCHub
253
- */
254
- class QCHub extends protobuf_1.Message {
255
- constructor(data) {
256
- super();
257
- /**
258
- * QCHubs a globally unique entity UUID. This will be set at the organization level
259
- *
260
- * @generated from field: string entity_uuid = 1;
261
- */
262
- this.entityUuid = "";
263
- /**
264
- * The status of this qc hub
265
- *
266
- * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 4;
267
- */
268
- this.status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
269
- /**
270
- * QCHubs the logs of every operation performed on this qc hub
271
- *
272
- * @generated from field: repeated Scailo.LogbookLogConciseSLC logs = 5;
273
- */
274
- this.logs = [];
275
- /**
276
- * The ID of the associated location
277
- *
278
- * @generated from field: uint64 location_id = 9;
279
- */
280
- this.locationId = protobuf_1.protoInt64.zero;
281
- /**
282
- * The name of the qc hub
283
- *
284
- * @generated from field: string name = 10;
285
- */
286
- this.name = "";
287
- /**
288
- * The unique code by which the qc hub is classified
289
- *
290
- * @generated from field: string code = 11;
291
- */
292
- this.code = "";
293
- /**
294
- * The description of the qc hub
295
- *
296
- * @generated from field: string description = 12;
297
- */
298
- this.description = "";
299
- /**
300
- * The username of the incharge
301
- *
302
- * @generated from field: string incharge_username = 13;
303
- */
304
- this.inchargeUsername = "";
305
- /**
306
- * The contact number of the qc hub
307
- *
308
- * @generated from field: string phone = 14;
309
- */
310
- this.phone = "";
311
- protobuf_1.proto3.util.initPartial(data, this);
312
- }
313
- static fromBinary(bytes, options) {
314
- return new QCHub().fromBinary(bytes, options);
315
- }
316
- static fromJson(jsonValue, options) {
317
- return new QCHub().fromJson(jsonValue, options);
318
- }
319
- static fromJsonString(jsonString, options) {
320
- return new QCHub().fromJsonString(jsonString, options);
321
- }
322
- static equals(a, b) {
323
- return protobuf_1.proto3.util.equals(QCHub, a, b);
324
- }
325
- }
326
- exports.QCHub = QCHub;
327
- QCHub.runtime = protobuf_1.proto3;
328
- QCHub.typeName = "Scailo.QCHub";
329
- QCHub.fields = protobuf_1.proto3.util.newFieldList(() => [
330
- { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
331
- { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
332
- { no: 3, name: "approval_metadata", kind: "message", T: base_scailo_pb_js_1.ApprovalMetadata },
333
- { no: 4, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
334
- { no: 5, name: "logs", kind: "message", T: base_scailo_pb_js_1.LogbookLogConciseSLC, repeated: true },
335
- { no: 9, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
336
- { no: 10, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
337
- { no: 11, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
338
- { no: 12, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
339
- { no: 13, name: "incharge_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
340
- { no: 14, name: "phone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
341
- ]);
342
- /**
343
- *
344
- * Describes the message consisting of the list of records
345
- *
346
- * @generated from message Scailo.QCHubsList
347
- */
348
- class QCHubsList extends protobuf_1.Message {
349
- constructor(data) {
350
- super();
351
- /**
352
- * List of records
353
- *
354
- * @generated from field: repeated Scailo.QCHub list = 1;
355
- */
356
- this.list = [];
357
- protobuf_1.proto3.util.initPartial(data, this);
358
- }
359
- static fromBinary(bytes, options) {
360
- return new QCHubsList().fromBinary(bytes, options);
361
- }
362
- static fromJson(jsonValue, options) {
363
- return new QCHubsList().fromJson(jsonValue, options);
364
- }
365
- static fromJsonString(jsonString, options) {
366
- return new QCHubsList().fromJsonString(jsonString, options);
367
- }
368
- static equals(a, b) {
369
- return protobuf_1.proto3.util.equals(QCHubsList, a, b);
370
- }
371
- }
372
- exports.QCHubsList = QCHubsList;
373
- QCHubsList.runtime = protobuf_1.proto3;
374
- QCHubsList.typeName = "Scailo.QCHubsList";
375
- QCHubsList.fields = protobuf_1.proto3.util.newFieldList(() => [
376
- { no: 1, name: "list", kind: "message", T: QCHub, repeated: true },
377
- ]);
378
- /**
379
- *
380
- * Describes a pagination request to retrieve records
381
- *
382
- * @generated from message Scailo.QCHubsServicePaginationReq
383
- */
384
- class QCHubsServicePaginationReq extends protobuf_1.Message {
385
- constructor(data) {
386
- super();
387
- /**
388
- * If true, then returns only active records. If false, then returns only inactive records
389
- *
390
- * @generated from field: Scailo.BOOL_FILTER is_active = 1;
391
- */
392
- this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
393
- /**
394
- * The number of records that need to be sent in the response
395
- *
396
- * @generated from field: int64 count = 2;
397
- */
398
- this.count = protobuf_1.protoInt64.zero;
399
- /**
400
- * The number that need to be offset by before fetching the records
401
- *
402
- * @generated from field: uint64 offset = 3;
403
- */
404
- this.offset = protobuf_1.protoInt64.zero;
405
- /**
406
- * The sort order that is to be used to fetch the pagination response
407
- *
408
- * @generated from field: Scailo.SORT_ORDER sort_order = 4;
409
- */
410
- this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
411
- /**
412
- * The sort key that is to be used to fetch the pagination response
413
- *
414
- * @generated from field: Scailo.QC_HUB_SORT_KEY sort_key = 5;
415
- */
416
- this.sortKey = QC_HUB_SORT_KEY.QC_HUB_SORT_KEY_ID_UNSPECIFIED;
417
- /**
418
- * The status of this qc hub
419
- *
420
- * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 6;
421
- */
422
- this.status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
423
- protobuf_1.proto3.util.initPartial(data, this);
424
- }
425
- static fromBinary(bytes, options) {
426
- return new QCHubsServicePaginationReq().fromBinary(bytes, options);
427
- }
428
- static fromJson(jsonValue, options) {
429
- return new QCHubsServicePaginationReq().fromJson(jsonValue, options);
430
- }
431
- static fromJsonString(jsonString, options) {
432
- return new QCHubsServicePaginationReq().fromJsonString(jsonString, options);
433
- }
434
- static equals(a, b) {
435
- return protobuf_1.proto3.util.equals(QCHubsServicePaginationReq, a, b);
436
- }
437
- }
438
- exports.QCHubsServicePaginationReq = QCHubsServicePaginationReq;
439
- QCHubsServicePaginationReq.runtime = protobuf_1.proto3;
440
- QCHubsServicePaginationReq.typeName = "Scailo.QCHubsServicePaginationReq";
441
- QCHubsServicePaginationReq.fields = protobuf_1.proto3.util.newFieldList(() => [
442
- { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
443
- { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
444
- { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
445
- { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
446
- { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(QC_HUB_SORT_KEY) },
447
- { no: 6, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
448
- ]);
449
- /**
450
- *
451
- * Describes the response to a pagination request
452
- *
453
- * @generated from message Scailo.QCHubsServicePaginationResponse
454
- */
455
- class QCHubsServicePaginationResponse extends protobuf_1.Message {
456
- constructor(data) {
457
- super();
458
- /**
459
- * The number of records in this payload
460
- *
461
- * @generated from field: uint64 count = 1;
462
- */
463
- this.count = protobuf_1.protoInt64.zero;
464
- /**
465
- * The number that has been offset before fetching the records. This is the same value that has been sent as part of the pagination request
466
- *
467
- * @generated from field: uint64 offset = 2;
468
- */
469
- this.offset = protobuf_1.protoInt64.zero;
470
- /**
471
- * The total number of records that are available
472
- *
473
- * @generated from field: uint64 total = 3;
474
- */
475
- this.total = protobuf_1.protoInt64.zero;
476
- /**
477
- * The list of records
478
- *
479
- * @generated from field: repeated Scailo.QCHub payload = 4;
480
- */
481
- this.payload = [];
482
- protobuf_1.proto3.util.initPartial(data, this);
483
- }
484
- static fromBinary(bytes, options) {
485
- return new QCHubsServicePaginationResponse().fromBinary(bytes, options);
486
- }
487
- static fromJson(jsonValue, options) {
488
- return new QCHubsServicePaginationResponse().fromJson(jsonValue, options);
489
- }
490
- static fromJsonString(jsonString, options) {
491
- return new QCHubsServicePaginationResponse().fromJsonString(jsonString, options);
492
- }
493
- static equals(a, b) {
494
- return protobuf_1.proto3.util.equals(QCHubsServicePaginationResponse, a, b);
495
- }
496
- }
497
- exports.QCHubsServicePaginationResponse = QCHubsServicePaginationResponse;
498
- QCHubsServicePaginationResponse.runtime = protobuf_1.proto3;
499
- QCHubsServicePaginationResponse.typeName = "Scailo.QCHubsServicePaginationResponse";
500
- QCHubsServicePaginationResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
501
- { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
502
- { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
503
- { no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
504
- { no: 4, name: "payload", kind: "message", T: QCHub, repeated: true },
505
- ]);
506
- /**
507
- *
508
- * Describes the base request payload of a filter search
509
- *
510
- * @generated from message Scailo.QCHubsServiceFilterReq
511
- */
512
- class QCHubsServiceFilterReq extends protobuf_1.Message {
513
- constructor(data) {
514
- super();
515
- /**
516
- * If true, then returns only active records. If false, then returns only inactive records
517
- *
518
- * @generated from field: Scailo.BOOL_FILTER is_active = 1;
519
- */
520
- this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
521
- /**
522
- * The number of records that need to be sent in the response. Returns all records if it is set to -1
523
- *
524
- * @generated from field: int64 count = 2;
525
- */
526
- this.count = protobuf_1.protoInt64.zero;
527
- /**
528
- * The number that need to be offset by before fetching the records
529
- *
530
- * @generated from field: uint64 offset = 3;
531
- */
532
- this.offset = protobuf_1.protoInt64.zero;
533
- /**
534
- * The sort order that is to be used to fetch the pagination response
535
- *
536
- * @generated from field: Scailo.SORT_ORDER sort_order = 4;
537
- */
538
- this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
539
- /**
540
- * The sort key that is to be used to fetch the pagination response
541
- *
542
- * @generated from field: Scailo.QC_HUB_SORT_KEY sort_key = 5;
543
- */
544
- this.sortKey = QC_HUB_SORT_KEY.QC_HUB_SORT_KEY_ID_UNSPECIFIED;
545
- /**
546
- * The minimum timestamp that needs to be considered to filter by creation
547
- *
548
- * @generated from field: uint64 creation_timestamp_start = 101;
549
- */
550
- this.creationTimestampStart = protobuf_1.protoInt64.zero;
551
- /**
552
- * The maximum timestamp that needs to be considered to filter by creation
553
- *
554
- * @generated from field: uint64 creation_timestamp_end = 102;
555
- */
556
- this.creationTimestampEnd = protobuf_1.protoInt64.zero;
557
- /**
558
- * The minimum timestamp that needs to be considered to filter by modification
559
- *
560
- * @generated from field: uint64 modification_timestamp_start = 103;
561
- */
562
- this.modificationTimestampStart = protobuf_1.protoInt64.zero;
563
- /**
564
- * The maximum timestamp that needs to be considered to filter by modification
565
- *
566
- * @generated from field: uint64 modification_timestamp_end = 104;
567
- */
568
- this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
569
- /**
570
- * The entity UUID that is to be used to filter records
571
- *
572
- * @generated from field: string entity_uuid = 8;
573
- */
574
- this.entityUuid = "";
575
- /**
576
- * The status of this qc hub
577
- *
578
- * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 10;
579
- */
580
- this.status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
581
- /**
582
- * The start range of approved timestamp
583
- *
584
- * @generated from field: uint64 approved_on_start = 11;
585
- */
586
- this.approvedOnStart = protobuf_1.protoInt64.zero;
587
- /**
588
- * The end range of approved timestamp
589
- *
590
- * @generated from field: uint64 approved_on_end = 12;
591
- */
592
- this.approvedOnEnd = protobuf_1.protoInt64.zero;
593
- /**
594
- * The ID of the approver
595
- *
596
- * @generated from field: uint64 approved_by_user_id = 13;
597
- */
598
- this.approvedByUserId = protobuf_1.protoInt64.zero;
599
- /**
600
- * The role ID of the approver
601
- *
602
- * @generated from field: uint64 approver_role_id = 14;
603
- */
604
- this.approverRoleId = protobuf_1.protoInt64.zero;
605
- /**
606
- * The name of the qc hub
607
- *
608
- * @generated from field: string name = 20;
609
- */
610
- this.name = "";
611
- /**
612
- * The unique code by which the qc hub is classified
613
- *
614
- * @generated from field: string code = 21;
615
- */
616
- this.code = "";
617
- /**
618
- * The ID of the associated location
619
- *
620
- * @generated from field: uint64 location_id = 22;
621
- */
622
- this.locationId = protobuf_1.protoInt64.zero;
623
- protobuf_1.proto3.util.initPartial(data, this);
624
- }
625
- static fromBinary(bytes, options) {
626
- return new QCHubsServiceFilterReq().fromBinary(bytes, options);
627
- }
628
- static fromJson(jsonValue, options) {
629
- return new QCHubsServiceFilterReq().fromJson(jsonValue, options);
630
- }
631
- static fromJsonString(jsonString, options) {
632
- return new QCHubsServiceFilterReq().fromJsonString(jsonString, options);
633
- }
634
- static equals(a, b) {
635
- return protobuf_1.proto3.util.equals(QCHubsServiceFilterReq, a, b);
636
- }
637
- }
638
- exports.QCHubsServiceFilterReq = QCHubsServiceFilterReq;
639
- QCHubsServiceFilterReq.runtime = protobuf_1.proto3;
640
- QCHubsServiceFilterReq.typeName = "Scailo.QCHubsServiceFilterReq";
641
- QCHubsServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
642
- { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
643
- { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
644
- { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
645
- { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
646
- { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(QC_HUB_SORT_KEY) },
647
- { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
648
- { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
649
- { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
650
- { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
651
- { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
652
- { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
653
- { no: 11, name: "approved_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
654
- { no: 12, name: "approved_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
655
- { no: 13, name: "approved_by_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
656
- { no: 14, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
657
- { no: 20, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
658
- { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
659
- { no: 22, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
660
- ]);
661
- /**
662
- *
663
- * Describes the base request payload of a count search
664
- *
665
- * @generated from message Scailo.QCHubsServiceCountReq
666
- */
667
- class QCHubsServiceCountReq extends protobuf_1.Message {
668
- constructor(data) {
669
- super();
670
- /**
671
- * If true, then returns only active records. If false, then returns only inactive records
672
- *
673
- * @generated from field: Scailo.BOOL_FILTER is_active = 1;
674
- */
675
- this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
676
- /**
677
- * The minimum timestamp that needs to be considered to filter by creation
678
- *
679
- * @generated from field: uint64 creation_timestamp_start = 101;
680
- */
681
- this.creationTimestampStart = protobuf_1.protoInt64.zero;
682
- /**
683
- * The maximum timestamp that needs to be considered to filter by creation
684
- *
685
- * @generated from field: uint64 creation_timestamp_end = 102;
686
- */
687
- this.creationTimestampEnd = protobuf_1.protoInt64.zero;
688
- /**
689
- * The minimum timestamp that needs to be considered to filter by modification
690
- *
691
- * @generated from field: uint64 modification_timestamp_start = 103;
692
- */
693
- this.modificationTimestampStart = protobuf_1.protoInt64.zero;
694
- /**
695
- * The maximum timestamp that needs to be considered to filter by modification
696
- *
697
- * @generated from field: uint64 modification_timestamp_end = 104;
698
- */
699
- this.modificationTimestampEnd = protobuf_1.protoInt64.zero;
700
- /**
701
- * The entity UUID that is to be used to filter records
702
- *
703
- * @generated from field: string entity_uuid = 8;
704
- */
705
- this.entityUuid = "";
706
- /**
707
- * The status of this qc hub
708
- *
709
- * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 10;
710
- */
711
- this.status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
712
- /**
713
- * The start range of approved timestamp
714
- *
715
- * @generated from field: uint64 approved_on_start = 11;
716
- */
717
- this.approvedOnStart = protobuf_1.protoInt64.zero;
718
- /**
719
- * The end range of approved timestamp
720
- *
721
- * @generated from field: uint64 approved_on_end = 12;
722
- */
723
- this.approvedOnEnd = protobuf_1.protoInt64.zero;
724
- /**
725
- * The ID of the approver
726
- *
727
- * @generated from field: uint64 approved_by_user_id = 13;
728
- */
729
- this.approvedByUserId = protobuf_1.protoInt64.zero;
730
- /**
731
- * The role ID of the approver
732
- *
733
- * @generated from field: uint64 approver_role_id = 14;
734
- */
735
- this.approverRoleId = protobuf_1.protoInt64.zero;
736
- /**
737
- * The name of the qc hub
738
- *
739
- * @generated from field: string name = 20;
740
- */
741
- this.name = "";
742
- /**
743
- * The unique code by which the qc hub is classified
744
- *
745
- * @generated from field: string code = 21;
746
- */
747
- this.code = "";
748
- /**
749
- * The ID of the associated location
750
- *
751
- * @generated from field: uint64 location_id = 22;
752
- */
753
- this.locationId = protobuf_1.protoInt64.zero;
754
- protobuf_1.proto3.util.initPartial(data, this);
755
- }
756
- static fromBinary(bytes, options) {
757
- return new QCHubsServiceCountReq().fromBinary(bytes, options);
758
- }
759
- static fromJson(jsonValue, options) {
760
- return new QCHubsServiceCountReq().fromJson(jsonValue, options);
761
- }
762
- static fromJsonString(jsonString, options) {
763
- return new QCHubsServiceCountReq().fromJsonString(jsonString, options);
764
- }
765
- static equals(a, b) {
766
- return protobuf_1.proto3.util.equals(QCHubsServiceCountReq, a, b);
767
- }
768
- }
769
- exports.QCHubsServiceCountReq = QCHubsServiceCountReq;
770
- QCHubsServiceCountReq.runtime = protobuf_1.proto3;
771
- QCHubsServiceCountReq.typeName = "Scailo.QCHubsServiceCountReq";
772
- QCHubsServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
773
- { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
774
- { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
775
- { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
776
- { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
777
- { no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
778
- { no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
779
- { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
780
- { no: 11, name: "approved_on_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
781
- { no: 12, name: "approved_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
782
- { no: 13, name: "approved_by_user_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
783
- { no: 14, name: "approver_role_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
784
- { no: 20, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
785
- { no: 21, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
786
- { no: 22, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
787
- ]);
788
- /**
789
- *
790
- * Describes the request payload for performing a generic search operation on records
791
- *
792
- * @generated from message Scailo.QCHubsServiceSearchAllReq
793
- */
794
- class QCHubsServiceSearchAllReq extends protobuf_1.Message {
795
- constructor(data) {
796
- super();
797
- /**
798
- * If true, then returns only active records. If false, then returns only inactive records
799
- *
800
- * @generated from field: Scailo.BOOL_FILTER is_active = 1;
801
- */
802
- this.isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
803
- /**
804
- * The number of records that need to be sent in the response. Returns all records if it is set to -1
805
- *
806
- * @generated from field: int64 count = 2;
807
- */
808
- this.count = protobuf_1.protoInt64.zero;
809
- /**
810
- * The number that need to be offset by before fetching the records
811
- *
812
- * @generated from field: uint64 offset = 3;
813
- */
814
- this.offset = protobuf_1.protoInt64.zero;
815
- /**
816
- * The sort order that is to be used to fetch the pagination response
817
- *
818
- * @generated from field: Scailo.SORT_ORDER sort_order = 4;
819
- */
820
- this.sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
821
- /**
822
- * The sort key that is to be used to fetch the pagination response
823
- *
824
- * @generated from field: Scailo.QC_HUB_SORT_KEY sort_key = 5;
825
- */
826
- this.sortKey = QC_HUB_SORT_KEY.QC_HUB_SORT_KEY_ID_UNSPECIFIED;
827
- /**
828
- * The entity UUID that is to be used to filter records
829
- *
830
- * @generated from field: string entity_uuid = 6;
831
- */
832
- this.entityUuid = "";
833
- /**
834
- * Limit the search space to the given status
835
- *
836
- * @generated from field: Scailo.STANDARD_LIFECYCLE_STATUS status = 10;
837
- */
838
- this.status = base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS.ANY_UNSPECIFIED;
839
- /**
840
- * Describes the key with which the search operation needs to be performed
841
- *
842
- * @generated from field: string search_key = 11;
843
- */
844
- this.searchKey = "";
845
- /**
846
- * The ID of the associated location
847
- *
848
- * @generated from field: uint64 location_id = 12;
849
- */
850
- this.locationId = protobuf_1.protoInt64.zero;
851
- protobuf_1.proto3.util.initPartial(data, this);
852
- }
853
- static fromBinary(bytes, options) {
854
- return new QCHubsServiceSearchAllReq().fromBinary(bytes, options);
855
- }
856
- static fromJson(jsonValue, options) {
857
- return new QCHubsServiceSearchAllReq().fromJson(jsonValue, options);
858
- }
859
- static fromJsonString(jsonString, options) {
860
- return new QCHubsServiceSearchAllReq().fromJsonString(jsonString, options);
861
- }
862
- static equals(a, b) {
863
- return protobuf_1.proto3.util.equals(QCHubsServiceSearchAllReq, a, b);
864
- }
865
- }
866
- exports.QCHubsServiceSearchAllReq = QCHubsServiceSearchAllReq;
867
- QCHubsServiceSearchAllReq.runtime = protobuf_1.proto3;
868
- QCHubsServiceSearchAllReq.typeName = "Scailo.QCHubsServiceSearchAllReq";
869
- QCHubsServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(() => [
870
- { no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
871
- { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
872
- { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
873
- { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
874
- { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(QC_HUB_SORT_KEY) },
875
- { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
876
- { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
877
- { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
878
- { no: 12, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
879
- ]);