@kernelminds/scailo-sdk 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/src/families.scailo_connect.js +85 -8
- package/lib/cjs/src/families.scailo_pb.js +217 -22
- package/lib/cjs/types/src/families.scailo_connect.d.ts +87 -10
- package/lib/cjs/types/src/families.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/families.scailo_pb.d.ts +160 -18
- package/lib/cjs/types/src/families.scailo_pb.d.ts.map +1 -1
- package/lib/esm/src/families.scailo_connect.js +85 -8
- package/lib/esm/src/families.scailo_pb.js +229 -22
- package/lib/esm/types/src/families.scailo_connect.d.ts +87 -10
- package/lib/esm/types/src/families.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/families.scailo_pb.d.ts +160 -18
- package/lib/esm/types/src/families.scailo_pb.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -163,27 +163,49 @@ exports.FamiliesService = {
|
|
|
163
163
|
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
164
164
|
kind: protobuf_1.MethodKind.Unary,
|
|
165
165
|
},
|
|
166
|
+
/**
|
|
167
|
+
* Adjusts the price of the family with the given UUID
|
|
168
|
+
*
|
|
169
|
+
* @generated from rpc Scailo.FamiliesService.AdjustPrice
|
|
170
|
+
*/
|
|
171
|
+
adjustPrice: {
|
|
172
|
+
name: "AdjustPrice",
|
|
173
|
+
I: families_scailo_pb_js_1.FamiliesServiceAdjustPriceRequest,
|
|
174
|
+
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
175
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
176
|
+
},
|
|
177
|
+
/**
|
|
178
|
+
* Adjusts the price of all the families mentioned in the file
|
|
179
|
+
*
|
|
180
|
+
* @generated from rpc Scailo.FamiliesService.UploadPrices
|
|
181
|
+
*/
|
|
182
|
+
uploadPrices: {
|
|
183
|
+
name: "UploadPrices",
|
|
184
|
+
I: base_scailo_pb_js_1.StandardFile,
|
|
185
|
+
O: base_scailo_pb_js_1.IdentifierUUIDsList,
|
|
186
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
187
|
+
},
|
|
166
188
|
/**
|
|
167
189
|
* CSV operations
|
|
168
|
-
* Download the CSV file that
|
|
190
|
+
* Download the CSV file that consists of the list of families according to the given filter request. The same file could also be used as a template for uploading families
|
|
169
191
|
*
|
|
170
192
|
* @generated from rpc Scailo.FamiliesService.DownloadAsCSV
|
|
171
193
|
*/
|
|
172
194
|
downloadAsCSV: {
|
|
173
195
|
name: "DownloadAsCSV",
|
|
174
|
-
I:
|
|
196
|
+
I: families_scailo_pb_js_1.FamiliesServiceFilterReq,
|
|
175
197
|
O: base_scailo_pb_js_1.StandardFile,
|
|
176
198
|
kind: protobuf_1.MethodKind.Unary,
|
|
177
199
|
},
|
|
178
200
|
/**
|
|
179
|
-
*
|
|
201
|
+
* Import families using a CSV file (duplicate codes will be skipped)
|
|
180
202
|
*
|
|
181
|
-
* @generated from rpc Scailo.FamiliesService.
|
|
203
|
+
* @generated from rpc Scailo.FamiliesService.Import
|
|
182
204
|
*/
|
|
183
|
-
|
|
184
|
-
name: "
|
|
185
|
-
I: base_scailo_pb_js_1.
|
|
186
|
-
O: base_scailo_pb_js_1.
|
|
205
|
+
import: {
|
|
206
|
+
name: "Import",
|
|
207
|
+
I: base_scailo_pb_js_1.StandardFile,
|
|
208
|
+
O: base_scailo_pb_js_1.IdentifierUUIDsList,
|
|
187
209
|
kind: protobuf_1.MethodKind.Unary,
|
|
188
210
|
},
|
|
189
211
|
/**
|
|
@@ -241,6 +263,61 @@ exports.FamiliesService = {
|
|
|
241
263
|
O: families_scailo_pb_js_1.FamilyStoragesList,
|
|
242
264
|
kind: protobuf_1.MethodKind.Unary,
|
|
243
265
|
},
|
|
266
|
+
/**
|
|
267
|
+
* Add a label
|
|
268
|
+
*
|
|
269
|
+
* @generated from rpc Scailo.FamiliesService.AddLabel
|
|
270
|
+
*/
|
|
271
|
+
addLabel: {
|
|
272
|
+
name: "AddLabel",
|
|
273
|
+
I: families_scailo_pb_js_1.FamiliesServiceLabelCreateRequest,
|
|
274
|
+
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
275
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
276
|
+
},
|
|
277
|
+
/**
|
|
278
|
+
* Approve a label
|
|
279
|
+
*
|
|
280
|
+
* @generated from rpc Scailo.FamiliesService.ApproveLabel
|
|
281
|
+
*/
|
|
282
|
+
approveLabel: {
|
|
283
|
+
name: "ApproveLabel",
|
|
284
|
+
I: base_scailo_pb_js_1.IdentifierWithUserComment,
|
|
285
|
+
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
286
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
* Delete a label
|
|
290
|
+
*
|
|
291
|
+
* @generated from rpc Scailo.FamiliesService.DeleteLabel
|
|
292
|
+
*/
|
|
293
|
+
deleteLabel: {
|
|
294
|
+
name: "DeleteLabel",
|
|
295
|
+
I: base_scailo_pb_js_1.IdentifierWithUserComment,
|
|
296
|
+
O: base_scailo_pb_js_1.IdentifierResponse,
|
|
297
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* View a label for the given ID
|
|
301
|
+
*
|
|
302
|
+
* @generated from rpc Scailo.FamiliesService.ViewLabelByID
|
|
303
|
+
*/
|
|
304
|
+
viewLabelByID: {
|
|
305
|
+
name: "ViewLabelByID",
|
|
306
|
+
I: base_scailo_pb_js_1.Identifier,
|
|
307
|
+
O: families_scailo_pb_js_1.FamilyLabel,
|
|
308
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* View all labels for given family ID
|
|
312
|
+
*
|
|
313
|
+
* @generated from rpc Scailo.FamiliesService.ViewLabels
|
|
314
|
+
*/
|
|
315
|
+
viewLabels: {
|
|
316
|
+
name: "ViewLabels",
|
|
317
|
+
I: base_scailo_pb_js_1.Identifier,
|
|
318
|
+
O: families_scailo_pb_js_1.FamilyLabelsList,
|
|
319
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
320
|
+
},
|
|
244
321
|
/**
|
|
245
322
|
* Add a unit conversion
|
|
246
323
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.FamilyQCGroupsList = exports.FamilyQCGroup = exports.FamiliesServiceQCGroupCreateRequest = exports.FamilyUnitConversionsList = exports.FamilyUnitConversion = exports.FamiliesServiceUnitConversionCreateRequest = exports.FamiliesServiceUnitConversionPresenceRequest = exports.FamilyStoragesList = exports.FamilyStorage = exports.FamiliesServiceStorageCreateRequest = exports.FamiliesServiceSearchAllReq = exports.FamiliesServiceCountReq = exports.FamiliesServiceFilterReq = exports.FamiliesServicePaginationResponse = exports.FamiliesServicePaginationReq = exports.FamiliesList = exports.Family = exports.FamiliesServiceUpdateRequest = exports.FamiliesServiceCreateRequest = exports.FamilyTypesList = exports.FAMILY_SORT_KEY = exports.CONSUMPTION_SEQUENCE = exports.FAMILY_TYPE = void 0;
|
|
7
|
+
exports.FamiliesServiceAdjustPriceRequest = exports.FamilyQCGroupsList = exports.FamilyQCGroup = exports.FamiliesServiceQCGroupCreateRequest = exports.FamilyUnitConversionsList = exports.FamilyUnitConversion = exports.FamiliesServiceUnitConversionCreateRequest = exports.FamiliesServiceUnitConversionPresenceRequest = exports.FamilyStoragesList = exports.FamilyStorage = exports.FamiliesServiceStorageCreateRequest = exports.FamilyLabelsList = exports.FamilyLabel = exports.FamiliesServiceLabelCreateRequest = exports.FamiliesServiceSearchAllReq = exports.FamiliesServiceCountReq = exports.FamiliesServiceFilterReq = exports.FamiliesServicePaginationResponse = exports.FamiliesServicePaginationReq = exports.FamiliesList = exports.Family = exports.FamiliesServiceUpdateRequest = exports.FamiliesServiceCreateRequest = exports.FamilyTypesList = exports.FAMILY_SORT_KEY = exports.CONSUMPTION_SEQUENCE = exports.FAMILY_TYPE = void 0;
|
|
8
8
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
9
|
const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
|
|
10
10
|
/**
|
|
@@ -391,12 +391,6 @@ class FamiliesServiceCreateRequest extends protobuf_1.Message {
|
|
|
391
391
|
* @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 28;
|
|
392
392
|
*/
|
|
393
393
|
this.consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
|
|
394
|
-
/**
|
|
395
|
-
* Stores the list of label IDs
|
|
396
|
-
*
|
|
397
|
-
* @generated from field: repeated uint64 label_ids = 30;
|
|
398
|
-
*/
|
|
399
|
-
this.labelIds = [];
|
|
400
394
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
401
395
|
}
|
|
402
396
|
static fromBinary(bytes, options) {
|
|
@@ -435,7 +429,6 @@ FamiliesServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
|
|
|
435
429
|
{ no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
436
430
|
{ no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
437
431
|
{ no: 28, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
|
|
438
|
-
{ no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
439
432
|
]);
|
|
440
433
|
/**
|
|
441
434
|
*
|
|
@@ -566,12 +559,6 @@ class FamiliesServiceUpdateRequest extends protobuf_1.Message {
|
|
|
566
559
|
* @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 28;
|
|
567
560
|
*/
|
|
568
561
|
this.consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
|
|
569
|
-
/**
|
|
570
|
-
* Stores the list of label IDs
|
|
571
|
-
*
|
|
572
|
-
* @generated from field: repeated uint64 label_ids = 30;
|
|
573
|
-
*/
|
|
574
|
-
this.labelIds = [];
|
|
575
562
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
576
563
|
}
|
|
577
564
|
static fromBinary(bytes, options) {
|
|
@@ -611,7 +598,6 @@ FamiliesServiceUpdateRequest.fields = protobuf_1.proto3.util.newFieldList(() =>
|
|
|
611
598
|
{ no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
612
599
|
{ no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
613
600
|
{ no: 28, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
|
|
614
|
-
{ no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
615
601
|
]);
|
|
616
602
|
/**
|
|
617
603
|
*
|
|
@@ -742,12 +728,6 @@ class Family extends protobuf_1.Message {
|
|
|
742
728
|
* @generated from field: Scailo.CONSUMPTION_SEQUENCE consumption_sequence = 29;
|
|
743
729
|
*/
|
|
744
730
|
this.consumptionSequence = CONSUMPTION_SEQUENCE.CONSUMPTION_SEQUENCE_ANY_UNSPECIFIED;
|
|
745
|
-
/**
|
|
746
|
-
* Stores the list of label IDs
|
|
747
|
-
*
|
|
748
|
-
* @generated from field: repeated uint64 label_ids = 30;
|
|
749
|
-
*/
|
|
750
|
-
this.labelIds = [];
|
|
751
731
|
/**
|
|
752
732
|
* The number of times that the family has been amended
|
|
753
733
|
*
|
|
@@ -795,7 +775,6 @@ Family.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
795
775
|
{ no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
796
776
|
{ no: 27, name: "min_stock_to_maintain", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
797
777
|
{ no: 29, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
|
|
798
|
-
{ no: 30, name: "label_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
|
|
799
778
|
{ no: 40, name: "amendment_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
800
779
|
]);
|
|
801
780
|
/**
|
|
@@ -1145,6 +1124,12 @@ class FamiliesServiceFilterReq extends protobuf_1.Message {
|
|
|
1145
1124
|
* @generated from field: uint64 parent_storage_id = 50;
|
|
1146
1125
|
*/
|
|
1147
1126
|
this.parentStorageId = protobuf_1.protoInt64.zero;
|
|
1127
|
+
/**
|
|
1128
|
+
* Filter by families that have the given label ID
|
|
1129
|
+
*
|
|
1130
|
+
* @generated from field: uint64 label_id = 60;
|
|
1131
|
+
*/
|
|
1132
|
+
this.labelId = protobuf_1.protoInt64.zero;
|
|
1148
1133
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
1149
1134
|
}
|
|
1150
1135
|
static fromBinary(bytes, options) {
|
|
@@ -1193,6 +1178,7 @@ FamiliesServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
1193
1178
|
{ no: 33, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1194
1179
|
{ no: 39, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
|
|
1195
1180
|
{ no: 50, name: "parent_storage_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1181
|
+
{ no: 60, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1196
1182
|
]);
|
|
1197
1183
|
/**
|
|
1198
1184
|
*
|
|
@@ -1353,6 +1339,12 @@ class FamiliesServiceCountReq extends protobuf_1.Message {
|
|
|
1353
1339
|
* @generated from field: uint64 parent_storage_id = 50;
|
|
1354
1340
|
*/
|
|
1355
1341
|
this.parentStorageId = protobuf_1.protoInt64.zero;
|
|
1342
|
+
/**
|
|
1343
|
+
* Filter by families that have the given label ID
|
|
1344
|
+
*
|
|
1345
|
+
* @generated from field: uint64 label_id = 60;
|
|
1346
|
+
*/
|
|
1347
|
+
this.labelId = protobuf_1.protoInt64.zero;
|
|
1356
1348
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
1357
1349
|
}
|
|
1358
1350
|
static fromBinary(bytes, options) {
|
|
@@ -1397,6 +1389,7 @@ FamiliesServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
1397
1389
|
{ no: 33, name: "tax_group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1398
1390
|
{ no: 39, name: "consumption_sequence", kind: "enum", T: protobuf_1.proto3.getEnumType(CONSUMPTION_SEQUENCE) },
|
|
1399
1391
|
{ no: 50, name: "parent_storage_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1392
|
+
{ no: 60, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1400
1393
|
]);
|
|
1401
1394
|
/**
|
|
1402
1395
|
*
|
|
@@ -1504,6 +1497,158 @@ FamiliesServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
1504
1497
|
{ no: 29, name: "parent_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1505
1498
|
{ no: 30, name: "is_leaf", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
|
|
1506
1499
|
]);
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* Describes the parameters necessary to create a family label
|
|
1503
|
+
*
|
|
1504
|
+
* @generated from message Scailo.FamiliesServiceLabelCreateRequest
|
|
1505
|
+
*/
|
|
1506
|
+
class FamiliesServiceLabelCreateRequest extends protobuf_1.Message {
|
|
1507
|
+
constructor(data) {
|
|
1508
|
+
super();
|
|
1509
|
+
/**
|
|
1510
|
+
* Stores any comment that the user might add during this operation
|
|
1511
|
+
*
|
|
1512
|
+
* @generated from field: string user_comment = 1;
|
|
1513
|
+
*/
|
|
1514
|
+
this.userComment = "";
|
|
1515
|
+
/**
|
|
1516
|
+
* Stores the family ID
|
|
1517
|
+
*
|
|
1518
|
+
* @generated from field: uint64 family_id = 10;
|
|
1519
|
+
*/
|
|
1520
|
+
this.familyId = protobuf_1.protoInt64.zero;
|
|
1521
|
+
/**
|
|
1522
|
+
* Stores the label ID
|
|
1523
|
+
*
|
|
1524
|
+
* @generated from field: uint64 label_id = 11;
|
|
1525
|
+
*/
|
|
1526
|
+
this.labelId = protobuf_1.protoInt64.zero;
|
|
1527
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1528
|
+
}
|
|
1529
|
+
static fromBinary(bytes, options) {
|
|
1530
|
+
return new FamiliesServiceLabelCreateRequest().fromBinary(bytes, options);
|
|
1531
|
+
}
|
|
1532
|
+
static fromJson(jsonValue, options) {
|
|
1533
|
+
return new FamiliesServiceLabelCreateRequest().fromJson(jsonValue, options);
|
|
1534
|
+
}
|
|
1535
|
+
static fromJsonString(jsonString, options) {
|
|
1536
|
+
return new FamiliesServiceLabelCreateRequest().fromJsonString(jsonString, options);
|
|
1537
|
+
}
|
|
1538
|
+
static equals(a, b) {
|
|
1539
|
+
return protobuf_1.proto3.util.equals(FamiliesServiceLabelCreateRequest, a, b);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
exports.FamiliesServiceLabelCreateRequest = FamiliesServiceLabelCreateRequest;
|
|
1543
|
+
FamiliesServiceLabelCreateRequest.runtime = protobuf_1.proto3;
|
|
1544
|
+
FamiliesServiceLabelCreateRequest.typeName = "Scailo.FamiliesServiceLabelCreateRequest";
|
|
1545
|
+
FamiliesServiceLabelCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1546
|
+
{ no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1547
|
+
{ no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1548
|
+
{ no: 11, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1549
|
+
]);
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* Describes the parameters that constitute a family label
|
|
1553
|
+
*
|
|
1554
|
+
* @generated from message Scailo.FamilyLabel
|
|
1555
|
+
*/
|
|
1556
|
+
class FamilyLabel extends protobuf_1.Message {
|
|
1557
|
+
constructor(data) {
|
|
1558
|
+
super();
|
|
1559
|
+
/**
|
|
1560
|
+
* Stores a globally unique entity UUID. This will be set at the organization level
|
|
1561
|
+
*
|
|
1562
|
+
* @generated from field: string entity_uuid = 1;
|
|
1563
|
+
*/
|
|
1564
|
+
this.entityUuid = "";
|
|
1565
|
+
/**
|
|
1566
|
+
* Denotes if this record requires approval (or has been approved)
|
|
1567
|
+
*
|
|
1568
|
+
* @generated from field: bool need_approval = 4;
|
|
1569
|
+
*/
|
|
1570
|
+
this.needApproval = false;
|
|
1571
|
+
/**
|
|
1572
|
+
* Stores any comment that the user might have added during an operation
|
|
1573
|
+
*
|
|
1574
|
+
* @generated from field: string user_comment = 5;
|
|
1575
|
+
*/
|
|
1576
|
+
this.userComment = "";
|
|
1577
|
+
/**
|
|
1578
|
+
* Stores the family ID
|
|
1579
|
+
*
|
|
1580
|
+
* @generated from field: uint64 family_id = 10;
|
|
1581
|
+
*/
|
|
1582
|
+
this.familyId = protobuf_1.protoInt64.zero;
|
|
1583
|
+
/**
|
|
1584
|
+
* Stores the label ID
|
|
1585
|
+
*
|
|
1586
|
+
* @generated from field: uint64 label_id = 11;
|
|
1587
|
+
*/
|
|
1588
|
+
this.labelId = protobuf_1.protoInt64.zero;
|
|
1589
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1590
|
+
}
|
|
1591
|
+
static fromBinary(bytes, options) {
|
|
1592
|
+
return new FamilyLabel().fromBinary(bytes, options);
|
|
1593
|
+
}
|
|
1594
|
+
static fromJson(jsonValue, options) {
|
|
1595
|
+
return new FamilyLabel().fromJson(jsonValue, options);
|
|
1596
|
+
}
|
|
1597
|
+
static fromJsonString(jsonString, options) {
|
|
1598
|
+
return new FamilyLabel().fromJsonString(jsonString, options);
|
|
1599
|
+
}
|
|
1600
|
+
static equals(a, b) {
|
|
1601
|
+
return protobuf_1.proto3.util.equals(FamilyLabel, a, b);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
exports.FamilyLabel = FamilyLabel;
|
|
1605
|
+
FamilyLabel.runtime = protobuf_1.proto3;
|
|
1606
|
+
FamilyLabel.typeName = "Scailo.FamilyLabel";
|
|
1607
|
+
FamilyLabel.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1608
|
+
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1609
|
+
{ no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
|
|
1610
|
+
{ no: 3, name: "approval_metadata", kind: "message", T: base_scailo_pb_js_1.ApprovalMetadata },
|
|
1611
|
+
{ no: 4, name: "need_approval", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1612
|
+
{ no: 5, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1613
|
+
{ no: 10, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1614
|
+
{ no: 11, name: "label_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1615
|
+
]);
|
|
1616
|
+
/**
|
|
1617
|
+
*
|
|
1618
|
+
* Describes the message consisting of the list of family labels
|
|
1619
|
+
*
|
|
1620
|
+
* @generated from message Scailo.FamilyLabelsList
|
|
1621
|
+
*/
|
|
1622
|
+
class FamilyLabelsList extends protobuf_1.Message {
|
|
1623
|
+
constructor(data) {
|
|
1624
|
+
super();
|
|
1625
|
+
/**
|
|
1626
|
+
* List of records
|
|
1627
|
+
*
|
|
1628
|
+
* @generated from field: repeated Scailo.FamilyLabel list = 1;
|
|
1629
|
+
*/
|
|
1630
|
+
this.list = [];
|
|
1631
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1632
|
+
}
|
|
1633
|
+
static fromBinary(bytes, options) {
|
|
1634
|
+
return new FamilyLabelsList().fromBinary(bytes, options);
|
|
1635
|
+
}
|
|
1636
|
+
static fromJson(jsonValue, options) {
|
|
1637
|
+
return new FamilyLabelsList().fromJson(jsonValue, options);
|
|
1638
|
+
}
|
|
1639
|
+
static fromJsonString(jsonString, options) {
|
|
1640
|
+
return new FamilyLabelsList().fromJsonString(jsonString, options);
|
|
1641
|
+
}
|
|
1642
|
+
static equals(a, b) {
|
|
1643
|
+
return protobuf_1.proto3.util.equals(FamilyLabelsList, a, b);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
exports.FamilyLabelsList = FamilyLabelsList;
|
|
1647
|
+
FamilyLabelsList.runtime = protobuf_1.proto3;
|
|
1648
|
+
FamilyLabelsList.typeName = "Scailo.FamilyLabelsList";
|
|
1649
|
+
FamilyLabelsList.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1650
|
+
{ no: 1, name: "list", kind: "message", T: FamilyLabel, repeated: true },
|
|
1651
|
+
]);
|
|
1507
1652
|
/**
|
|
1508
1653
|
*
|
|
1509
1654
|
* Describes the parameters necessary to create a family storage
|
|
@@ -2031,3 +2176,53 @@ FamilyQCGroupsList.typeName = "Scailo.FamilyQCGroupsList";
|
|
|
2031
2176
|
FamilyQCGroupsList.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2032
2177
|
{ no: 1, name: "list", kind: "message", T: FamilyQCGroup, repeated: true },
|
|
2033
2178
|
]);
|
|
2179
|
+
/**
|
|
2180
|
+
*
|
|
2181
|
+
* Describes the parameters necessary to adjust a family's price
|
|
2182
|
+
*
|
|
2183
|
+
* @generated from message Scailo.FamiliesServiceAdjustPriceRequest
|
|
2184
|
+
*/
|
|
2185
|
+
class FamiliesServiceAdjustPriceRequest extends protobuf_1.Message {
|
|
2186
|
+
constructor(data) {
|
|
2187
|
+
super();
|
|
2188
|
+
/**
|
|
2189
|
+
* Stores any comment that the user might add during this operation
|
|
2190
|
+
*
|
|
2191
|
+
* @generated from field: string user_comment = 1;
|
|
2192
|
+
*/
|
|
2193
|
+
this.userComment = "";
|
|
2194
|
+
/**
|
|
2195
|
+
* The UUID of the family
|
|
2196
|
+
*
|
|
2197
|
+
* @generated from field: string uuid = 10;
|
|
2198
|
+
*/
|
|
2199
|
+
this.uuid = "";
|
|
2200
|
+
/**
|
|
2201
|
+
* Stores the unit price
|
|
2202
|
+
*
|
|
2203
|
+
* @generated from field: uint64 price = 26;
|
|
2204
|
+
*/
|
|
2205
|
+
this.price = protobuf_1.protoInt64.zero;
|
|
2206
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2207
|
+
}
|
|
2208
|
+
static fromBinary(bytes, options) {
|
|
2209
|
+
return new FamiliesServiceAdjustPriceRequest().fromBinary(bytes, options);
|
|
2210
|
+
}
|
|
2211
|
+
static fromJson(jsonValue, options) {
|
|
2212
|
+
return new FamiliesServiceAdjustPriceRequest().fromJson(jsonValue, options);
|
|
2213
|
+
}
|
|
2214
|
+
static fromJsonString(jsonString, options) {
|
|
2215
|
+
return new FamiliesServiceAdjustPriceRequest().fromJsonString(jsonString, options);
|
|
2216
|
+
}
|
|
2217
|
+
static equals(a, b) {
|
|
2218
|
+
return protobuf_1.proto3.util.equals(FamiliesServiceAdjustPriceRequest, a, b);
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
exports.FamiliesServiceAdjustPriceRequest = FamiliesServiceAdjustPriceRequest;
|
|
2222
|
+
FamiliesServiceAdjustPriceRequest.runtime = protobuf_1.proto3;
|
|
2223
|
+
FamiliesServiceAdjustPriceRequest.typeName = "Scailo.FamiliesServiceAdjustPriceRequest";
|
|
2224
|
+
FamiliesServiceAdjustPriceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2225
|
+
{ no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2226
|
+
{ no: 10, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2227
|
+
{ no: 26, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
2228
|
+
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FamiliesList, FamiliesServiceCountReq, FamiliesServiceCreateRequest, FamiliesServiceFilterReq, FamiliesServicePaginationReq, FamiliesServicePaginationResponse, FamiliesServiceQCGroupCreateRequest, FamiliesServiceSearchAllReq, FamiliesServiceStorageCreateRequest, FamiliesServiceUnitConversionCreateRequest, FamiliesServiceUnitConversionPresenceRequest, FamiliesServiceUpdateRequest, Family, FamilyQCGroup, FamilyQCGroupsList, FamilyStorage, FamilyStoragesList, FamilyTypesList, FamilyUnitConversion, FamilyUnitConversionsList } from "./families.scailo_pb.js";
|
|
2
|
-
import { ActiveStatus, AmendmentLogsList, CountInSLCStatusRequest, CountResponse, Identifier, IdentifierResponse, IdentifiersList, IdentifierUUID,
|
|
1
|
+
import { FamiliesList, FamiliesServiceAdjustPriceRequest, FamiliesServiceCountReq, FamiliesServiceCreateRequest, FamiliesServiceFilterReq, FamiliesServiceLabelCreateRequest, FamiliesServicePaginationReq, FamiliesServicePaginationResponse, FamiliesServiceQCGroupCreateRequest, FamiliesServiceSearchAllReq, FamiliesServiceStorageCreateRequest, FamiliesServiceUnitConversionCreateRequest, FamiliesServiceUnitConversionPresenceRequest, FamiliesServiceUpdateRequest, Family, FamilyLabel, FamilyLabelsList, FamilyQCGroup, FamilyQCGroupsList, FamilyStorage, FamilyStoragesList, FamilyTypesList, FamilyUnitConversion, FamilyUnitConversionsList } from "./families.scailo_pb.js";
|
|
2
|
+
import { ActiveStatus, AmendmentLogsList, CountInSLCStatusRequest, CountResponse, Identifier, IdentifierResponse, IdentifiersList, IdentifierUUID, IdentifierUUIDsList, IdentifierUUIDWithUserComment, IdentifierWithUserComment, SimpleSearchReq, StandardFile } from "./base.scailo_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
@@ -156,27 +156,49 @@ export declare const FamiliesService: {
|
|
|
156
156
|
readonly O: typeof IdentifierResponse;
|
|
157
157
|
readonly kind: MethodKind.Unary;
|
|
158
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Adjusts the price of the family with the given UUID
|
|
161
|
+
*
|
|
162
|
+
* @generated from rpc Scailo.FamiliesService.AdjustPrice
|
|
163
|
+
*/
|
|
164
|
+
readonly adjustPrice: {
|
|
165
|
+
readonly name: "AdjustPrice";
|
|
166
|
+
readonly I: typeof FamiliesServiceAdjustPriceRequest;
|
|
167
|
+
readonly O: typeof IdentifierResponse;
|
|
168
|
+
readonly kind: MethodKind.Unary;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Adjusts the price of all the families mentioned in the file
|
|
172
|
+
*
|
|
173
|
+
* @generated from rpc Scailo.FamiliesService.UploadPrices
|
|
174
|
+
*/
|
|
175
|
+
readonly uploadPrices: {
|
|
176
|
+
readonly name: "UploadPrices";
|
|
177
|
+
readonly I: typeof StandardFile;
|
|
178
|
+
readonly O: typeof IdentifierUUIDsList;
|
|
179
|
+
readonly kind: MethodKind.Unary;
|
|
180
|
+
};
|
|
159
181
|
/**
|
|
160
182
|
* CSV operations
|
|
161
|
-
* Download the CSV file that
|
|
183
|
+
* Download the CSV file that consists of the list of families according to the given filter request. The same file could also be used as a template for uploading families
|
|
162
184
|
*
|
|
163
185
|
* @generated from rpc Scailo.FamiliesService.DownloadAsCSV
|
|
164
186
|
*/
|
|
165
187
|
readonly downloadAsCSV: {
|
|
166
188
|
readonly name: "DownloadAsCSV";
|
|
167
|
-
readonly I: typeof
|
|
189
|
+
readonly I: typeof FamiliesServiceFilterReq;
|
|
168
190
|
readonly O: typeof StandardFile;
|
|
169
191
|
readonly kind: MethodKind.Unary;
|
|
170
192
|
};
|
|
171
193
|
/**
|
|
172
|
-
*
|
|
194
|
+
* Import families using a CSV file (duplicate codes will be skipped)
|
|
173
195
|
*
|
|
174
|
-
* @generated from rpc Scailo.FamiliesService.
|
|
196
|
+
* @generated from rpc Scailo.FamiliesService.Import
|
|
175
197
|
*/
|
|
176
|
-
readonly
|
|
177
|
-
readonly name: "
|
|
178
|
-
readonly I: typeof
|
|
179
|
-
readonly O: typeof
|
|
198
|
+
readonly import: {
|
|
199
|
+
readonly name: "Import";
|
|
200
|
+
readonly I: typeof StandardFile;
|
|
201
|
+
readonly O: typeof IdentifierUUIDsList;
|
|
180
202
|
readonly kind: MethodKind.Unary;
|
|
181
203
|
};
|
|
182
204
|
/**
|
|
@@ -234,6 +256,61 @@ export declare const FamiliesService: {
|
|
|
234
256
|
readonly O: typeof FamilyStoragesList;
|
|
235
257
|
readonly kind: MethodKind.Unary;
|
|
236
258
|
};
|
|
259
|
+
/**
|
|
260
|
+
* Add a label
|
|
261
|
+
*
|
|
262
|
+
* @generated from rpc Scailo.FamiliesService.AddLabel
|
|
263
|
+
*/
|
|
264
|
+
readonly addLabel: {
|
|
265
|
+
readonly name: "AddLabel";
|
|
266
|
+
readonly I: typeof FamiliesServiceLabelCreateRequest;
|
|
267
|
+
readonly O: typeof IdentifierResponse;
|
|
268
|
+
readonly kind: MethodKind.Unary;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Approve a label
|
|
272
|
+
*
|
|
273
|
+
* @generated from rpc Scailo.FamiliesService.ApproveLabel
|
|
274
|
+
*/
|
|
275
|
+
readonly approveLabel: {
|
|
276
|
+
readonly name: "ApproveLabel";
|
|
277
|
+
readonly I: typeof IdentifierWithUserComment;
|
|
278
|
+
readonly O: typeof IdentifierResponse;
|
|
279
|
+
readonly kind: MethodKind.Unary;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Delete a label
|
|
283
|
+
*
|
|
284
|
+
* @generated from rpc Scailo.FamiliesService.DeleteLabel
|
|
285
|
+
*/
|
|
286
|
+
readonly deleteLabel: {
|
|
287
|
+
readonly name: "DeleteLabel";
|
|
288
|
+
readonly I: typeof IdentifierWithUserComment;
|
|
289
|
+
readonly O: typeof IdentifierResponse;
|
|
290
|
+
readonly kind: MethodKind.Unary;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* View a label for the given ID
|
|
294
|
+
*
|
|
295
|
+
* @generated from rpc Scailo.FamiliesService.ViewLabelByID
|
|
296
|
+
*/
|
|
297
|
+
readonly viewLabelByID: {
|
|
298
|
+
readonly name: "ViewLabelByID";
|
|
299
|
+
readonly I: typeof Identifier;
|
|
300
|
+
readonly O: typeof FamilyLabel;
|
|
301
|
+
readonly kind: MethodKind.Unary;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* View all labels for given family ID
|
|
305
|
+
*
|
|
306
|
+
* @generated from rpc Scailo.FamiliesService.ViewLabels
|
|
307
|
+
*/
|
|
308
|
+
readonly viewLabels: {
|
|
309
|
+
readonly name: "ViewLabels";
|
|
310
|
+
readonly I: typeof Identifier;
|
|
311
|
+
readonly O: typeof FamilyLabelsList;
|
|
312
|
+
readonly kind: MethodKind.Unary;
|
|
313
|
+
};
|
|
237
314
|
/**
|
|
238
315
|
* Add a unit conversion
|
|
239
316
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"families.scailo_connect.d.ts","sourceRoot":"","sources":["../../../../src/families.scailo_connect.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,iCAAiC,EAAE,mCAAmC,EAAE,2BAA2B,EAAE,mCAAmC,EAAE,0CAA0C,EAAE,4CAA4C,EAAE,4BAA4B,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"families.scailo_connect.d.ts","sourceRoot":"","sources":["../../../../src/families.scailo_connect.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,iCAAiC,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,iCAAiC,EAAE,4BAA4B,EAAE,iCAAiC,EAAE,mCAAmC,EAAE,2BAA2B,EAAE,mCAAmC,EAAE,0CAA0C,EAAE,4CAA4C,EAAE,4BAA4B,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAC7pB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC7R,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;QAGxB;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;;;;WAOG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;;WAKG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;;CAQG,CAAC"}
|