@kernelminds/scailo-sdk 0.0.53 → 0.0.55

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.
@@ -503,6 +503,28 @@ exports.WorkOrdersService = {
503
503
  O: work_orders_scailo_pb_js_1.WorkOrdersServiceItemCreateRequest,
504
504
  kind: protobuf_1.MethodKind.Unary,
505
505
  },
506
+ /**
507
+ * View requirement statistics (match with the selected sales order) of the work order
508
+ *
509
+ * @generated from rpc Scailo.WorkOrdersService.ViewRequirementStatistics
510
+ */
511
+ viewRequirementStatistics: {
512
+ name: "ViewRequirementStatistics",
513
+ I: base_scailo_pb_js_1.IdentifierUUID,
514
+ O: work_orders_scailo_pb_js_1.WorkOrderRequirementStatisticsList,
515
+ kind: protobuf_1.MethodKind.Unary,
516
+ },
517
+ /**
518
+ * View production statistics (match with all the associated production plans) of the work order
519
+ *
520
+ * @generated from rpc Scailo.WorkOrdersService.ViewProductionStatistics
521
+ */
522
+ viewProductionStatistics: {
523
+ name: "ViewProductionStatistics",
524
+ I: base_scailo_pb_js_1.IdentifierUUID,
525
+ O: work_orders_scailo_pb_js_1.WorkOrderProductionStatisticsList,
526
+ kind: protobuf_1.MethodKind.Unary,
527
+ },
506
528
  /**
507
529
  * Download work order with the given IdentifierUUID (can be used to allow public downloads)
508
530
  *
@@ -4,10 +4,36 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.WorkOrdersServicePaginatedItemsResponse = exports.WorkOrderItemsSearchRequest = exports.WorkOrdersServiceSearchAllReq = exports.WorkOrdersServiceCountReq = exports.WorkOrdersServiceFilterReq = exports.WorkOrdersServicePaginationResponse = exports.WorkOrdersServicePaginationReq = exports.WorkOrderItemProspectiveInfoRequest = exports.WorkOrderItemHistoryRequest = exports.WorkOrdersItemsList = exports.WorkOrdersList = exports.WorkOrderItem = exports.WorkOrdersServiceItemUpdateRequest = exports.WorkOrdersServiceItemCreateRequest = exports.WorkOrder = exports.WorkOrderAncillaryParameters = exports.WorkOrdersServiceAutofillRequest = exports.WorkOrdersServiceUpdateRequest = exports.WorkOrdersServiceCreateRequest = exports.WORK_ORDER_ITEM_STATUS = exports.WORK_ORDER_ITEM_SORT_KEY = exports.WORK_ORDER_SORT_KEY = void 0;
7
+ exports.WorkOrderProductionStatisticsList = exports.WorkOrderProductionStatistics = exports.WorkOrderRequirementStatisticsList = exports.WorkOrderRequirementStatistics = exports.WorkOrdersServicePaginatedItemsResponse = exports.WorkOrderItemsSearchRequest = exports.WorkOrdersServiceSearchAllReq = exports.WorkOrdersServiceCountReq = exports.WorkOrdersServiceFilterReq = exports.WorkOrdersServicePaginationResponse = exports.WorkOrdersServicePaginationReq = exports.WorkOrderItemProspectiveInfoRequest = exports.WorkOrderItemHistoryRequest = exports.WorkOrdersItemsList = exports.WorkOrdersList = exports.WorkOrderItem = exports.WorkOrdersServiceItemUpdateRequest = exports.WorkOrdersServiceItemCreateRequest = exports.WorkOrder = exports.WorkOrderAncillaryParameters = exports.WorkOrdersServiceAutofillRequest = exports.WorkOrdersServiceUpdateRequest = exports.WorkOrdersServiceCreateRequest = exports.WORK_ORDER_ITEM_STATUS = exports.WORK_ORDER_ITEM_SORT_KEY = exports.WORK_ORDER_SORT_KEY = exports.WORK_ORDER_REF_FROM = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const forms_fields_data_scailo_pb_js_1 = require("./forms_fields_data.scailo_pb.js");
10
10
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
11
+ /**
12
+ *
13
+ * Stores all the possible references from which a work order can be added
14
+ *
15
+ * @generated from enum Scailo.WORK_ORDER_REF_FROM
16
+ */
17
+ var WORK_ORDER_REF_FROM;
18
+ (function (WORK_ORDER_REF_FROM) {
19
+ /**
20
+ * Used only in filters
21
+ *
22
+ * @generated from enum value: WORK_ORDER_REF_FROM_ANY_UNSPECIFIED = 0;
23
+ */
24
+ WORK_ORDER_REF_FROM[WORK_ORDER_REF_FROM["WORK_ORDER_REF_FROM_ANY_UNSPECIFIED"] = 0] = "WORK_ORDER_REF_FROM_ANY_UNSPECIFIED";
25
+ /**
26
+ * Denotes that the work order originated from a sales order
27
+ *
28
+ * @generated from enum value: WORK_ORDER_REF_FROM_SALES_ORDER = 1;
29
+ */
30
+ WORK_ORDER_REF_FROM[WORK_ORDER_REF_FROM["WORK_ORDER_REF_FROM_SALES_ORDER"] = 1] = "WORK_ORDER_REF_FROM_SALES_ORDER";
31
+ })(WORK_ORDER_REF_FROM || (exports.WORK_ORDER_REF_FROM = WORK_ORDER_REF_FROM = {}));
32
+ // Retrieve enum metadata with: proto3.getEnumType(WORK_ORDER_REF_FROM)
33
+ protobuf_1.proto3.util.setEnumType(WORK_ORDER_REF_FROM, "Scailo.WORK_ORDER_REF_FROM", [
34
+ { no: 0, name: "WORK_ORDER_REF_FROM_ANY_UNSPECIFIED" },
35
+ { no: 1, name: "WORK_ORDER_REF_FROM_SALES_ORDER" },
36
+ ]);
11
37
  /**
12
38
  *
13
39
  * Describes the available sort keys
@@ -234,9 +260,9 @@ class WorkOrdersServiceCreateRequest extends protobuf_1.Message {
234
260
  /**
235
261
  * The associated reference
236
262
  *
237
- * @generated from field: string ref_from = 12;
263
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 12;
238
264
  */
239
- this.refFrom = "";
265
+ this.refFrom = WORK_ORDER_REF_FROM.WORK_ORDER_REF_FROM_ANY_UNSPECIFIED;
240
266
  /**
241
267
  * The associated ID of the reference
242
268
  *
@@ -278,7 +304,7 @@ WorkOrdersServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(() =
278
304
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
279
305
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
280
306
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
281
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
307
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(WORK_ORDER_REF_FROM) },
282
308
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
283
309
  { no: 14, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
284
310
  { no: 30, name: "form_data", kind: "message", T: forms_fields_data_scailo_pb_js_1.FormFieldDatumCreateRequest, repeated: true },
@@ -501,9 +527,9 @@ class WorkOrder extends protobuf_1.Message {
501
527
  /**
502
528
  * The associated reference
503
529
  *
504
- * @generated from field: string ref_from = 12;
530
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 12;
505
531
  */
506
- this.refFrom = "";
532
+ this.refFrom = WORK_ORDER_REF_FROM.WORK_ORDER_REF_FROM_ANY_UNSPECIFIED;
507
533
  /**
508
534
  * The associated ID of the reference
509
535
  *
@@ -556,7 +582,7 @@ WorkOrder.fields = protobuf_1.proto3.util.newFieldList(() => [
556
582
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
557
583
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
558
584
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
559
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
585
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(WORK_ORDER_REF_FROM) },
560
586
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
561
587
  { no: 14, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
562
588
  { no: 20, name: "list", kind: "message", T: WorkOrderItem, repeated: true },
@@ -1193,9 +1219,9 @@ class WorkOrdersServiceFilterReq extends protobuf_1.Message {
1193
1219
  /**
1194
1220
  * The associated reference
1195
1221
  *
1196
- * @generated from field: string ref_from = 22;
1222
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 22;
1197
1223
  */
1198
- this.refFrom = "";
1224
+ this.refFrom = WORK_ORDER_REF_FROM.WORK_ORDER_REF_FROM_ANY_UNSPECIFIED;
1199
1225
  /**
1200
1226
  * The associated ID of the reference
1201
1227
  *
@@ -1274,7 +1300,7 @@ WorkOrdersServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1274
1300
  { no: 19, name: "delivery_date_end", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1275
1301
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1276
1302
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1277
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1303
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(WORK_ORDER_REF_FROM) },
1278
1304
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1279
1305
  { no: 24, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1280
1306
  { no: 40, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1402,9 +1428,9 @@ class WorkOrdersServiceCountReq extends protobuf_1.Message {
1402
1428
  /**
1403
1429
  * The associated reference
1404
1430
  *
1405
- * @generated from field: string ref_from = 22;
1431
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 22;
1406
1432
  */
1407
- this.refFrom = "";
1433
+ this.refFrom = WORK_ORDER_REF_FROM.WORK_ORDER_REF_FROM_ANY_UNSPECIFIED;
1408
1434
  /**
1409
1435
  * The associated ID of the reference
1410
1436
  *
@@ -1479,7 +1505,7 @@ WorkOrdersServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1479
1505
  { no: 19, name: "delivery_date_end", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1480
1506
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1481
1507
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1482
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1508
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(WORK_ORDER_REF_FROM) },
1483
1509
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1484
1510
  { no: 24, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1485
1511
  { no: 40, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1547,9 +1573,9 @@ class WorkOrdersServiceSearchAllReq extends protobuf_1.Message {
1547
1573
  /**
1548
1574
  * The associated reference
1549
1575
  *
1550
- * @generated from field: string ref_from = 22;
1576
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 22;
1551
1577
  */
1552
- this.refFrom = "";
1578
+ this.refFrom = WORK_ORDER_REF_FROM.WORK_ORDER_REF_FROM_ANY_UNSPECIFIED;
1553
1579
  /**
1554
1580
  * The associated ID of the reference
1555
1581
  *
@@ -1589,7 +1615,7 @@ WorkOrdersServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(() =>
1589
1615
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1590
1616
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1591
1617
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1592
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1618
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(WORK_ORDER_REF_FROM) },
1593
1619
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1594
1620
  { no: 24, name: "location_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1595
1621
  ]);
@@ -1798,3 +1824,171 @@ WorkOrdersServicePaginatedItemsResponse.fields = protobuf_1.proto3.util.newField
1798
1824
  { no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1799
1825
  { no: 4, name: "payload", kind: "message", T: WorkOrderItem, repeated: true },
1800
1826
  ]);
1827
+ /**
1828
+ *
1829
+ * Describes the requirement statistics of the work order
1830
+ *
1831
+ * @generated from message Scailo.WorkOrderRequirementStatistics
1832
+ */
1833
+ class WorkOrderRequirementStatistics extends protobuf_1.Message {
1834
+ constructor(data) {
1835
+ super();
1836
+ /**
1837
+ * Stores the ID of the family
1838
+ *
1839
+ * @generated from field: uint64 family_id = 1;
1840
+ */
1841
+ this.familyId = protobuf_1.protoInt64.zero;
1842
+ /**
1843
+ * Stores the sales order quantity
1844
+ *
1845
+ * @generated from field: uint64 sales_order_quantity = 2;
1846
+ */
1847
+ this.salesOrderQuantity = protobuf_1.protoInt64.zero;
1848
+ /**
1849
+ * Stores the work order quantity
1850
+ *
1851
+ * @generated from field: uint64 work_order_quantity = 3;
1852
+ */
1853
+ this.workOrderQuantity = protobuf_1.protoInt64.zero;
1854
+ protobuf_1.proto3.util.initPartial(data, this);
1855
+ }
1856
+ static fromBinary(bytes, options) {
1857
+ return new WorkOrderRequirementStatistics().fromBinary(bytes, options);
1858
+ }
1859
+ static fromJson(jsonValue, options) {
1860
+ return new WorkOrderRequirementStatistics().fromJson(jsonValue, options);
1861
+ }
1862
+ static fromJsonString(jsonString, options) {
1863
+ return new WorkOrderRequirementStatistics().fromJsonString(jsonString, options);
1864
+ }
1865
+ static equals(a, b) {
1866
+ return protobuf_1.proto3.util.equals(WorkOrderRequirementStatistics, a, b);
1867
+ }
1868
+ }
1869
+ exports.WorkOrderRequirementStatistics = WorkOrderRequirementStatistics;
1870
+ WorkOrderRequirementStatistics.runtime = protobuf_1.proto3;
1871
+ WorkOrderRequirementStatistics.typeName = "Scailo.WorkOrderRequirementStatistics";
1872
+ WorkOrderRequirementStatistics.fields = protobuf_1.proto3.util.newFieldList(() => [
1873
+ { no: 1, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1874
+ { no: 2, name: "sales_order_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1875
+ { no: 3, name: "work_order_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1876
+ ]);
1877
+ /**
1878
+ *
1879
+ * Describes the list of requirement statistics of the work order
1880
+ *
1881
+ * @generated from message Scailo.WorkOrderRequirementStatisticsList
1882
+ */
1883
+ class WorkOrderRequirementStatisticsList extends protobuf_1.Message {
1884
+ constructor(data) {
1885
+ super();
1886
+ /**
1887
+ * @generated from field: repeated Scailo.WorkOrderRequirementStatistics list = 1;
1888
+ */
1889
+ this.list = [];
1890
+ protobuf_1.proto3.util.initPartial(data, this);
1891
+ }
1892
+ static fromBinary(bytes, options) {
1893
+ return new WorkOrderRequirementStatisticsList().fromBinary(bytes, options);
1894
+ }
1895
+ static fromJson(jsonValue, options) {
1896
+ return new WorkOrderRequirementStatisticsList().fromJson(jsonValue, options);
1897
+ }
1898
+ static fromJsonString(jsonString, options) {
1899
+ return new WorkOrderRequirementStatisticsList().fromJsonString(jsonString, options);
1900
+ }
1901
+ static equals(a, b) {
1902
+ return protobuf_1.proto3.util.equals(WorkOrderRequirementStatisticsList, a, b);
1903
+ }
1904
+ }
1905
+ exports.WorkOrderRequirementStatisticsList = WorkOrderRequirementStatisticsList;
1906
+ WorkOrderRequirementStatisticsList.runtime = protobuf_1.proto3;
1907
+ WorkOrderRequirementStatisticsList.typeName = "Scailo.WorkOrderRequirementStatisticsList";
1908
+ WorkOrderRequirementStatisticsList.fields = protobuf_1.proto3.util.newFieldList(() => [
1909
+ { no: 1, name: "list", kind: "message", T: WorkOrderRequirementStatistics, repeated: true },
1910
+ ]);
1911
+ /**
1912
+ *
1913
+ * Describes the requirement statistics of the work order
1914
+ *
1915
+ * @generated from message Scailo.WorkOrderProductionStatistics
1916
+ */
1917
+ class WorkOrderProductionStatistics extends protobuf_1.Message {
1918
+ constructor(data) {
1919
+ super();
1920
+ /**
1921
+ * Stores the ID of the family
1922
+ *
1923
+ * @generated from field: uint64 family_id = 1;
1924
+ */
1925
+ this.familyId = protobuf_1.protoInt64.zero;
1926
+ /**
1927
+ * Stores the production plan quantity
1928
+ *
1929
+ * @generated from field: uint64 production_plan_quantity = 2;
1930
+ */
1931
+ this.productionPlanQuantity = protobuf_1.protoInt64.zero;
1932
+ /**
1933
+ * Stores the work order quantity
1934
+ *
1935
+ * @generated from field: uint64 work_order_quantity = 3;
1936
+ */
1937
+ this.workOrderQuantity = protobuf_1.protoInt64.zero;
1938
+ protobuf_1.proto3.util.initPartial(data, this);
1939
+ }
1940
+ static fromBinary(bytes, options) {
1941
+ return new WorkOrderProductionStatistics().fromBinary(bytes, options);
1942
+ }
1943
+ static fromJson(jsonValue, options) {
1944
+ return new WorkOrderProductionStatistics().fromJson(jsonValue, options);
1945
+ }
1946
+ static fromJsonString(jsonString, options) {
1947
+ return new WorkOrderProductionStatistics().fromJsonString(jsonString, options);
1948
+ }
1949
+ static equals(a, b) {
1950
+ return protobuf_1.proto3.util.equals(WorkOrderProductionStatistics, a, b);
1951
+ }
1952
+ }
1953
+ exports.WorkOrderProductionStatistics = WorkOrderProductionStatistics;
1954
+ WorkOrderProductionStatistics.runtime = protobuf_1.proto3;
1955
+ WorkOrderProductionStatistics.typeName = "Scailo.WorkOrderProductionStatistics";
1956
+ WorkOrderProductionStatistics.fields = protobuf_1.proto3.util.newFieldList(() => [
1957
+ { no: 1, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1958
+ { no: 2, name: "production_plan_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1959
+ { no: 3, name: "work_order_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1960
+ ]);
1961
+ /**
1962
+ *
1963
+ * Describes the list of requirement statistics of the work order
1964
+ *
1965
+ * @generated from message Scailo.WorkOrderProductionStatisticsList
1966
+ */
1967
+ class WorkOrderProductionStatisticsList extends protobuf_1.Message {
1968
+ constructor(data) {
1969
+ super();
1970
+ /**
1971
+ * @generated from field: repeated Scailo.WorkOrderProductionStatistics list = 1;
1972
+ */
1973
+ this.list = [];
1974
+ protobuf_1.proto3.util.initPartial(data, this);
1975
+ }
1976
+ static fromBinary(bytes, options) {
1977
+ return new WorkOrderProductionStatisticsList().fromBinary(bytes, options);
1978
+ }
1979
+ static fromJson(jsonValue, options) {
1980
+ return new WorkOrderProductionStatisticsList().fromJson(jsonValue, options);
1981
+ }
1982
+ static fromJsonString(jsonString, options) {
1983
+ return new WorkOrderProductionStatisticsList().fromJsonString(jsonString, options);
1984
+ }
1985
+ static equals(a, b) {
1986
+ return protobuf_1.proto3.util.equals(WorkOrderProductionStatisticsList, a, b);
1987
+ }
1988
+ }
1989
+ exports.WorkOrderProductionStatisticsList = WorkOrderProductionStatisticsList;
1990
+ WorkOrderProductionStatisticsList.runtime = protobuf_1.proto3;
1991
+ WorkOrderProductionStatisticsList.typeName = "Scailo.WorkOrderProductionStatisticsList";
1992
+ WorkOrderProductionStatisticsList.fields = protobuf_1.proto3.util.newFieldList(() => [
1993
+ { no: 1, name: "list", kind: "message", T: WorkOrderProductionStatistics, repeated: true },
1994
+ ]);
@@ -1,4 +1,4 @@
1
- import { WorkOrder, WorkOrderAncillaryParameters, WorkOrderItem, WorkOrderItemHistoryRequest, WorkOrderItemProspectiveInfoRequest, WorkOrderItemsSearchRequest, WorkOrdersItemsList, WorkOrdersList, WorkOrdersServiceAutofillRequest, WorkOrdersServiceCountReq, WorkOrdersServiceCreateRequest, WorkOrdersServiceFilterReq, WorkOrdersServiceItemCreateRequest, WorkOrdersServiceItemUpdateRequest, WorkOrdersServicePaginatedItemsResponse, WorkOrdersServicePaginationReq, WorkOrdersServicePaginationResponse, WorkOrdersServiceSearchAllReq, WorkOrdersServiceUpdateRequest } from "./work_orders.scailo_pb.js";
1
+ import { WorkOrder, WorkOrderAncillaryParameters, WorkOrderItem, WorkOrderItemHistoryRequest, WorkOrderItemProspectiveInfoRequest, WorkOrderItemsSearchRequest, WorkOrderProductionStatisticsList, WorkOrderRequirementStatisticsList, WorkOrdersItemsList, WorkOrdersList, WorkOrdersServiceAutofillRequest, WorkOrdersServiceCountReq, WorkOrdersServiceCreateRequest, WorkOrdersServiceFilterReq, WorkOrdersServiceItemCreateRequest, WorkOrdersServiceItemUpdateRequest, WorkOrdersServicePaginatedItemsResponse, WorkOrdersServicePaginationReq, WorkOrdersServicePaginationResponse, WorkOrdersServiceSearchAllReq, WorkOrdersServiceUpdateRequest } from "./work_orders.scailo_pb.js";
2
2
  import { ActiveStatus, BooleanResponse, CountInSLCStatusRequest, CountResponse, Identifier, IdentifierResponse, IdentifiersList, IdentifierUUID, IdentifierUUIDWithFile, IdentifierUUIDWithUserComment, IdentifierWithEmailAttributes, IdentifierWithSearchKey, IdentifierWithUserComment, ReorderItemsRequest, RepeatWithDeliveryDate, StandardFile } from "./base.scailo_pb.js";
3
3
  import { MethodKind } from "@bufbuild/protobuf";
4
4
  import { FamiliesList, FilterFamiliesReqForIdentifier } from "./families.scailo_pb.js";
@@ -496,6 +496,28 @@ export declare const WorkOrdersService: {
496
496
  readonly O: typeof WorkOrdersServiceItemCreateRequest;
497
497
  readonly kind: MethodKind.Unary;
498
498
  };
499
+ /**
500
+ * View requirement statistics (match with the selected sales order) of the work order
501
+ *
502
+ * @generated from rpc Scailo.WorkOrdersService.ViewRequirementStatistics
503
+ */
504
+ readonly viewRequirementStatistics: {
505
+ readonly name: "ViewRequirementStatistics";
506
+ readonly I: typeof IdentifierUUID;
507
+ readonly O: typeof WorkOrderRequirementStatisticsList;
508
+ readonly kind: MethodKind.Unary;
509
+ };
510
+ /**
511
+ * View production statistics (match with all the associated production plans) of the work order
512
+ *
513
+ * @generated from rpc Scailo.WorkOrdersService.ViewProductionStatistics
514
+ */
515
+ readonly viewProductionStatistics: {
516
+ readonly name: "ViewProductionStatistics";
517
+ readonly I: typeof IdentifierUUID;
518
+ readonly O: typeof WorkOrderProductionStatisticsList;
519
+ readonly kind: MethodKind.Unary;
520
+ };
499
521
  /**
500
522
  * Download work order with the given IdentifierUUID (can be used to allow public downloads)
501
523
  *
@@ -1 +1 @@
1
- {"version":3,"file":"work_orders.scailo_connect.d.ts","sourceRoot":"","sources":["../../../../src/work_orders.scailo_connect.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,aAAa,EAAE,2BAA2B,EAAE,mCAAmC,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,cAAc,EAAE,gCAAgC,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,kCAAkC,EAAE,kCAAkC,EAAE,uCAAuC,EAAE,8BAA8B,EAAE,mCAAmC,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACtlB,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClX,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;QAG1B;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;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AOH;;;;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;;;;;WAKG;;;;;;;;CAQG,CAAC"}
@@ -2,6 +2,26 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { FormFieldDatum, FormFieldDatumCreateRequest } from "./forms_fields_data.scailo_pb.js";
4
4
  import { ApprovalMetadata, BOOL_FILTER, EmployeeMetadata, LogbookLogConciseSLC, SORT_ORDER, STANDARD_LIFECYCLE_STATUS } from "./base.scailo_pb.js";
5
+ /**
6
+ *
7
+ * Stores all the possible references from which a work order can be added
8
+ *
9
+ * @generated from enum Scailo.WORK_ORDER_REF_FROM
10
+ */
11
+ export declare enum WORK_ORDER_REF_FROM {
12
+ /**
13
+ * Used only in filters
14
+ *
15
+ * @generated from enum value: WORK_ORDER_REF_FROM_ANY_UNSPECIFIED = 0;
16
+ */
17
+ WORK_ORDER_REF_FROM_ANY_UNSPECIFIED = 0,
18
+ /**
19
+ * Denotes that the work order originated from a sales order
20
+ *
21
+ * @generated from enum value: WORK_ORDER_REF_FROM_SALES_ORDER = 1;
22
+ */
23
+ WORK_ORDER_REF_FROM_SALES_ORDER = 1
24
+ }
5
25
  /**
6
26
  *
7
27
  * Describes the available sort keys
@@ -192,9 +212,9 @@ export declare class WorkOrdersServiceCreateRequest extends Message<WorkOrdersSe
192
212
  /**
193
213
  * The associated reference
194
214
  *
195
- * @generated from field: string ref_from = 12;
215
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 12;
196
216
  */
197
- refFrom: string;
217
+ refFrom: WORK_ORDER_REF_FROM;
198
218
  /**
199
219
  * The associated ID of the reference
200
220
  *
@@ -400,9 +420,9 @@ export declare class WorkOrder extends Message<WorkOrder> {
400
420
  /**
401
421
  * The associated reference
402
422
  *
403
- * @generated from field: string ref_from = 12;
423
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 12;
404
424
  */
405
- refFrom: string;
425
+ refFrom: WORK_ORDER_REF_FROM;
406
426
  /**
407
427
  * The associated ID of the reference
408
428
  *
@@ -926,9 +946,9 @@ export declare class WorkOrdersServiceFilterReq extends Message<WorkOrdersServic
926
946
  /**
927
947
  * The associated reference
928
948
  *
929
- * @generated from field: string ref_from = 22;
949
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 22;
930
950
  */
931
- refFrom: string;
951
+ refFrom: WORK_ORDER_REF_FROM;
932
952
  /**
933
953
  * The associated ID of the reference
934
954
  *
@@ -1093,9 +1113,9 @@ export declare class WorkOrdersServiceCountReq extends Message<WorkOrdersService
1093
1113
  /**
1094
1114
  * The associated reference
1095
1115
  *
1096
- * @generated from field: string ref_from = 22;
1116
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 22;
1097
1117
  */
1098
- refFrom: string;
1118
+ refFrom: WORK_ORDER_REF_FROM;
1099
1119
  /**
1100
1120
  * The associated ID of the reference
1101
1121
  *
@@ -1200,9 +1220,9 @@ export declare class WorkOrdersServiceSearchAllReq extends Message<WorkOrdersSer
1200
1220
  /**
1201
1221
  * The associated reference
1202
1222
  *
1203
- * @generated from field: string ref_from = 22;
1223
+ * @generated from field: Scailo.WORK_ORDER_REF_FROM ref_from = 22;
1204
1224
  */
1205
- refFrom: string;
1225
+ refFrom: WORK_ORDER_REF_FROM;
1206
1226
  /**
1207
1227
  * The associated ID of the reference
1208
1228
  *
@@ -1382,4 +1402,112 @@ export declare class WorkOrdersServicePaginatedItemsResponse extends Message<Wor
1382
1402
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkOrdersServicePaginatedItemsResponse;
1383
1403
  static equals(a: WorkOrdersServicePaginatedItemsResponse | PlainMessage<WorkOrdersServicePaginatedItemsResponse> | undefined, b: WorkOrdersServicePaginatedItemsResponse | PlainMessage<WorkOrdersServicePaginatedItemsResponse> | undefined): boolean;
1384
1404
  }
1405
+ /**
1406
+ *
1407
+ * Describes the requirement statistics of the work order
1408
+ *
1409
+ * @generated from message Scailo.WorkOrderRequirementStatistics
1410
+ */
1411
+ export declare class WorkOrderRequirementStatistics extends Message<WorkOrderRequirementStatistics> {
1412
+ /**
1413
+ * Stores the ID of the family
1414
+ *
1415
+ * @generated from field: uint64 family_id = 1;
1416
+ */
1417
+ familyId: bigint;
1418
+ /**
1419
+ * Stores the sales order quantity
1420
+ *
1421
+ * @generated from field: uint64 sales_order_quantity = 2;
1422
+ */
1423
+ salesOrderQuantity: bigint;
1424
+ /**
1425
+ * Stores the work order quantity
1426
+ *
1427
+ * @generated from field: uint64 work_order_quantity = 3;
1428
+ */
1429
+ workOrderQuantity: bigint;
1430
+ constructor(data?: PartialMessage<WorkOrderRequirementStatistics>);
1431
+ static readonly runtime: typeof proto3;
1432
+ static readonly typeName = "Scailo.WorkOrderRequirementStatistics";
1433
+ static readonly fields: FieldList;
1434
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkOrderRequirementStatistics;
1435
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkOrderRequirementStatistics;
1436
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkOrderRequirementStatistics;
1437
+ static equals(a: WorkOrderRequirementStatistics | PlainMessage<WorkOrderRequirementStatistics> | undefined, b: WorkOrderRequirementStatistics | PlainMessage<WorkOrderRequirementStatistics> | undefined): boolean;
1438
+ }
1439
+ /**
1440
+ *
1441
+ * Describes the list of requirement statistics of the work order
1442
+ *
1443
+ * @generated from message Scailo.WorkOrderRequirementStatisticsList
1444
+ */
1445
+ export declare class WorkOrderRequirementStatisticsList extends Message<WorkOrderRequirementStatisticsList> {
1446
+ /**
1447
+ * @generated from field: repeated Scailo.WorkOrderRequirementStatistics list = 1;
1448
+ */
1449
+ list: WorkOrderRequirementStatistics[];
1450
+ constructor(data?: PartialMessage<WorkOrderRequirementStatisticsList>);
1451
+ static readonly runtime: typeof proto3;
1452
+ static readonly typeName = "Scailo.WorkOrderRequirementStatisticsList";
1453
+ static readonly fields: FieldList;
1454
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkOrderRequirementStatisticsList;
1455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkOrderRequirementStatisticsList;
1456
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkOrderRequirementStatisticsList;
1457
+ static equals(a: WorkOrderRequirementStatisticsList | PlainMessage<WorkOrderRequirementStatisticsList> | undefined, b: WorkOrderRequirementStatisticsList | PlainMessage<WorkOrderRequirementStatisticsList> | undefined): boolean;
1458
+ }
1459
+ /**
1460
+ *
1461
+ * Describes the requirement statistics of the work order
1462
+ *
1463
+ * @generated from message Scailo.WorkOrderProductionStatistics
1464
+ */
1465
+ export declare class WorkOrderProductionStatistics extends Message<WorkOrderProductionStatistics> {
1466
+ /**
1467
+ * Stores the ID of the family
1468
+ *
1469
+ * @generated from field: uint64 family_id = 1;
1470
+ */
1471
+ familyId: bigint;
1472
+ /**
1473
+ * Stores the production plan quantity
1474
+ *
1475
+ * @generated from field: uint64 production_plan_quantity = 2;
1476
+ */
1477
+ productionPlanQuantity: bigint;
1478
+ /**
1479
+ * Stores the work order quantity
1480
+ *
1481
+ * @generated from field: uint64 work_order_quantity = 3;
1482
+ */
1483
+ workOrderQuantity: bigint;
1484
+ constructor(data?: PartialMessage<WorkOrderProductionStatistics>);
1485
+ static readonly runtime: typeof proto3;
1486
+ static readonly typeName = "Scailo.WorkOrderProductionStatistics";
1487
+ static readonly fields: FieldList;
1488
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkOrderProductionStatistics;
1489
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkOrderProductionStatistics;
1490
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkOrderProductionStatistics;
1491
+ static equals(a: WorkOrderProductionStatistics | PlainMessage<WorkOrderProductionStatistics> | undefined, b: WorkOrderProductionStatistics | PlainMessage<WorkOrderProductionStatistics> | undefined): boolean;
1492
+ }
1493
+ /**
1494
+ *
1495
+ * Describes the list of requirement statistics of the work order
1496
+ *
1497
+ * @generated from message Scailo.WorkOrderProductionStatisticsList
1498
+ */
1499
+ export declare class WorkOrderProductionStatisticsList extends Message<WorkOrderProductionStatisticsList> {
1500
+ /**
1501
+ * @generated from field: repeated Scailo.WorkOrderProductionStatistics list = 1;
1502
+ */
1503
+ list: WorkOrderProductionStatistics[];
1504
+ constructor(data?: PartialMessage<WorkOrderProductionStatisticsList>);
1505
+ static readonly runtime: typeof proto3;
1506
+ static readonly typeName = "Scailo.WorkOrderProductionStatisticsList";
1507
+ static readonly fields: FieldList;
1508
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WorkOrderProductionStatisticsList;
1509
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WorkOrderProductionStatisticsList;
1510
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WorkOrderProductionStatisticsList;
1511
+ static equals(a: WorkOrderProductionStatisticsList | PlainMessage<WorkOrderProductionStatisticsList> | undefined, b: WorkOrderProductionStatisticsList | PlainMessage<WorkOrderProductionStatisticsList> | undefined): boolean;
1512
+ }
1385
1513
  //# sourceMappingURL=work_orders.scailo_pb.d.ts.map