@kernelminds/scailo-sdk 0.0.73 → 0.0.75

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 (25) hide show
  1. package/lib/cjs/src/credit_notes.scailo_connect.js +23 -1
  2. package/lib/cjs/src/credit_notes.scailo_pb.js +164 -19
  3. package/lib/cjs/src/debit_notes.scailo_connect.js +23 -1
  4. package/lib/cjs/src/debit_notes.scailo_pb.js +164 -19
  5. package/lib/cjs/types/src/credit_notes.scailo_connect.d.ts +25 -3
  6. package/lib/cjs/types/src/credit_notes.scailo_connect.d.ts.map +1 -1
  7. package/lib/cjs/types/src/credit_notes.scailo_pb.d.ts +117 -13
  8. package/lib/cjs/types/src/credit_notes.scailo_pb.d.ts.map +1 -1
  9. package/lib/cjs/types/src/debit_notes.scailo_connect.d.ts +25 -3
  10. package/lib/cjs/types/src/debit_notes.scailo_connect.d.ts.map +1 -1
  11. package/lib/cjs/types/src/debit_notes.scailo_pb.d.ts +117 -13
  12. package/lib/cjs/types/src/debit_notes.scailo_pb.d.ts.map +1 -1
  13. package/lib/esm/src/credit_notes.scailo_connect.js +23 -1
  14. package/lib/esm/src/credit_notes.scailo_pb.js +164 -19
  15. package/lib/esm/src/debit_notes.scailo_connect.js +23 -1
  16. package/lib/esm/src/debit_notes.scailo_pb.js +164 -19
  17. package/lib/esm/types/src/credit_notes.scailo_connect.d.ts +25 -3
  18. package/lib/esm/types/src/credit_notes.scailo_connect.d.ts.map +1 -1
  19. package/lib/esm/types/src/credit_notes.scailo_pb.d.ts +117 -13
  20. package/lib/esm/types/src/credit_notes.scailo_pb.d.ts.map +1 -1
  21. package/lib/esm/types/src/debit_notes.scailo_connect.d.ts +25 -3
  22. package/lib/esm/types/src/debit_notes.scailo_connect.d.ts.map +1 -1
  23. package/lib/esm/types/src/debit_notes.scailo_pb.d.ts +117 -13
  24. package/lib/esm/types/src/debit_notes.scailo_pb.d.ts.map +1 -1
  25. package/package.json +1 -1
@@ -547,6 +547,17 @@ exports.CreditNotesService = {
547
547
  O: credit_notes_scailo_pb_js_1.CreditNotesServiceItemCreateRequest,
548
548
  kind: protobuf_1.MethodKind.Unary,
549
549
  },
550
+ /**
551
+ * View returned (sales return) statistics of the credit note
552
+ *
553
+ * @generated from rpc Scailo.CreditNotesService.ViewReturnedStatistics
554
+ */
555
+ viewReturnedStatistics: {
556
+ name: "ViewReturnedStatistics",
557
+ I: base_scailo_pb_js_1.IdentifierUUID,
558
+ O: credit_notes_scailo_pb_js_1.CreditNoteReturnStatisticsList,
559
+ kind: protobuf_1.MethodKind.Unary,
560
+ },
550
561
  /**
551
562
  * Other view operations
552
563
  * Download credit note with the given IdentifierUUID (can be used to allow public downloads)
@@ -604,7 +615,7 @@ exports.CreditNotesService = {
604
615
  kind: protobuf_1.MethodKind.Unary,
605
616
  },
606
617
  /**
607
- * View all that match the given count criteria
618
+ * Count all that match the given criteria
608
619
  *
609
620
  * @generated from rpc Scailo.CreditNotesService.Count
610
621
  */
@@ -614,6 +625,17 @@ exports.CreditNotesService = {
614
625
  O: base_scailo_pb_js_1.CountResponse,
615
626
  kind: protobuf_1.MethodKind.Unary,
616
627
  },
628
+ /**
629
+ * Returns the sum of the total value of all the records that match the given criteria
630
+ *
631
+ * @generated from rpc Scailo.CreditNotesService.AccruedValue
632
+ */
633
+ accruedValue: {
634
+ name: "AccruedValue",
635
+ I: credit_notes_scailo_pb_js_1.CreditNotesServiceCountReq,
636
+ O: base_scailo_pb_js_1.SumResponse,
637
+ kind: protobuf_1.MethodKind.Unary,
638
+ },
617
639
  /**
618
640
  * CSV operations
619
641
  * Download the CSV file that consists of the list of records according to the given filter request. The same file could also be used as a template for uploading records
@@ -4,10 +4,36 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.CreditNoteReferencesList = exports.CreditNoteReference = exports.CreditNotesServiceReferenceCreateRequest = exports.CreditNotesServiceSearchAllReq = exports.CreditNotesServiceCountReq = exports.CreditNotesServiceFilterReq = exports.CreditNotesServicePaginationResponse = exports.CreditNotesServicePaginationReq = exports.CreditNotesServicePaginatedItemsResponse = exports.CreditNoteItemsSearchRequest = exports.CreditNotesServiceAlreadyAddedQuantityForSourceRequest = exports.CreditNoteItemProspectiveInfoRequest = exports.CreditNoteItemHistoryRequest = exports.CreditNoteItemsList = exports.CreditNotesList = exports.CreditNoteItem = exports.CreditNotesServiceItemUpdateRequest = exports.CreditNotesServiceItemCreateRequest = exports.CreditNote = exports.CreditNoteAncillaryParameters = exports.CreditNotesServiceAutofillRequest = exports.CreditNotesServiceUpdateRequest = exports.CreditNotesServiceCreateRequest = exports.CREDIT_NOTE_SORT_KEY = exports.CREDIT_NOTE_ITEM_STATUS = exports.CREDIT_NOTE_ITEM_SORT_KEY = void 0;
7
+ exports.CreditNoteReturnStatisticsList = exports.CreditNoteReturnStatistics = exports.CreditNoteReferencesList = exports.CreditNoteReference = exports.CreditNotesServiceReferenceCreateRequest = exports.CreditNotesServiceSearchAllReq = exports.CreditNotesServiceCountReq = exports.CreditNotesServiceFilterReq = exports.CreditNotesServicePaginationResponse = exports.CreditNotesServicePaginationReq = exports.CreditNotesServicePaginatedItemsResponse = exports.CreditNoteItemsSearchRequest = exports.CreditNotesServiceAlreadyAddedQuantityForSourceRequest = exports.CreditNoteItemProspectiveInfoRequest = exports.CreditNoteItemHistoryRequest = exports.CreditNoteItemsList = exports.CreditNotesList = exports.CreditNoteItem = exports.CreditNotesServiceItemUpdateRequest = exports.CreditNotesServiceItemCreateRequest = exports.CreditNote = exports.CreditNoteAncillaryParameters = exports.CreditNotesServiceAutofillRequest = exports.CreditNotesServiceUpdateRequest = exports.CreditNotesServiceCreateRequest = exports.CREDIT_NOTE_SORT_KEY = exports.CREDIT_NOTE_ITEM_STATUS = exports.CREDIT_NOTE_ITEM_SORT_KEY = exports.CREDIT_NOTE_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 credit note can be added
14
+ *
15
+ * @generated from enum Scailo.CREDIT_NOTE_REF_FROM
16
+ */
17
+ var CREDIT_NOTE_REF_FROM;
18
+ (function (CREDIT_NOTE_REF_FROM) {
19
+ /**
20
+ * Used only in filters
21
+ *
22
+ * @generated from enum value: CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED = 0;
23
+ */
24
+ CREDIT_NOTE_REF_FROM[CREDIT_NOTE_REF_FROM["CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED"] = 0] = "CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED";
25
+ /**
26
+ * Denotes that the credit note originated from a sales order
27
+ *
28
+ * @generated from enum value: CREDIT_NOTE_REF_FROM_SALES_ORDER = 1;
29
+ */
30
+ CREDIT_NOTE_REF_FROM[CREDIT_NOTE_REF_FROM["CREDIT_NOTE_REF_FROM_SALES_ORDER"] = 1] = "CREDIT_NOTE_REF_FROM_SALES_ORDER";
31
+ })(CREDIT_NOTE_REF_FROM || (exports.CREDIT_NOTE_REF_FROM = CREDIT_NOTE_REF_FROM = {}));
32
+ // Retrieve enum metadata with: proto3.getEnumType(CREDIT_NOTE_REF_FROM)
33
+ protobuf_1.proto3.util.setEnumType(CREDIT_NOTE_REF_FROM, "Scailo.CREDIT_NOTE_REF_FROM", [
34
+ { no: 0, name: "CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED" },
35
+ { no: 1, name: "CREDIT_NOTE_REF_FROM_SALES_ORDER" },
36
+ ]);
11
37
  /**
12
38
  *
13
39
  * Describes the available sort keys
@@ -206,6 +232,12 @@ var CREDIT_NOTE_SORT_KEY;
206
232
  * @generated from enum value: CREDIT_NOTE_SORT_KEY_FINAL_REF_NUMBER = 11;
207
233
  */
208
234
  CREDIT_NOTE_SORT_KEY[CREDIT_NOTE_SORT_KEY["CREDIT_NOTE_SORT_KEY_FINAL_REF_NUMBER"] = 11] = "CREDIT_NOTE_SORT_KEY_FINAL_REF_NUMBER";
235
+ /**
236
+ * Fetch ordered results by the total value
237
+ *
238
+ * @generated from enum value: CREDIT_NOTE_SORT_KEY_TOTAL_VALUE = 30;
239
+ */
240
+ CREDIT_NOTE_SORT_KEY[CREDIT_NOTE_SORT_KEY["CREDIT_NOTE_SORT_KEY_TOTAL_VALUE"] = 30] = "CREDIT_NOTE_SORT_KEY_TOTAL_VALUE";
209
241
  })(CREDIT_NOTE_SORT_KEY || (exports.CREDIT_NOTE_SORT_KEY = CREDIT_NOTE_SORT_KEY = {}));
210
242
  // Retrieve enum metadata with: proto3.getEnumType(CREDIT_NOTE_SORT_KEY)
211
243
  protobuf_1.proto3.util.setEnumType(CREDIT_NOTE_SORT_KEY, "Scailo.CREDIT_NOTE_SORT_KEY", [
@@ -218,6 +250,7 @@ protobuf_1.proto3.util.setEnumType(CREDIT_NOTE_SORT_KEY, "Scailo.CREDIT_NOTE_SOR
218
250
  { no: 6, name: "CREDIT_NOTE_SORT_KEY_COMPLETED_ON" },
219
251
  { no: 10, name: "CREDIT_NOTE_SORT_KEY_REFERENCE_ID" },
220
252
  { no: 11, name: "CREDIT_NOTE_SORT_KEY_FINAL_REF_NUMBER" },
253
+ { no: 30, name: "CREDIT_NOTE_SORT_KEY_TOTAL_VALUE" },
221
254
  ]);
222
255
  /**
223
256
  *
@@ -255,9 +288,9 @@ class CreditNotesServiceCreateRequest extends protobuf_1.Message {
255
288
  /**
256
289
  * The associated reference
257
290
  *
258
- * @generated from field: string ref_from = 12;
291
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 12;
259
292
  */
260
- this.refFrom = "";
293
+ this.refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
261
294
  /**
262
295
  * The associated ID of the reference
263
296
  *
@@ -323,7 +356,7 @@ CreditNotesServiceCreateRequest.fields = protobuf_1.proto3.util.newFieldList(()
323
356
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
324
357
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
325
358
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
326
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
359
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
327
360
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
328
361
  { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
329
362
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -578,9 +611,9 @@ class CreditNote extends protobuf_1.Message {
578
611
  /**
579
612
  * The associated reference
580
613
  *
581
- * @generated from field: string ref_from = 12;
614
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 12;
582
615
  */
583
- this.refFrom = "";
616
+ this.refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
584
617
  /**
585
618
  * The associated ID of the reference
586
619
  *
@@ -663,7 +696,7 @@ CreditNote.fields = protobuf_1.proto3.util.newFieldList(() => [
663
696
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
664
697
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
665
698
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
666
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
699
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
667
700
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
668
701
  { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
669
702
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1171,9 +1204,9 @@ class CreditNotesServiceAlreadyAddedQuantityForSourceRequest extends protobuf_1.
1171
1204
  /**
1172
1205
  * The associated reference
1173
1206
  *
1174
- * @generated from field: string ref_from = 1;
1207
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 1;
1175
1208
  */
1176
- this.refFrom = "";
1209
+ this.refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
1177
1210
  /**
1178
1211
  * The associated ID of the reference
1179
1212
  *
@@ -1205,7 +1238,7 @@ exports.CreditNotesServiceAlreadyAddedQuantityForSourceRequest = CreditNotesServ
1205
1238
  CreditNotesServiceAlreadyAddedQuantityForSourceRequest.runtime = protobuf_1.proto3;
1206
1239
  CreditNotesServiceAlreadyAddedQuantityForSourceRequest.typeName = "Scailo.CreditNotesServiceAlreadyAddedQuantityForSourceRequest";
1207
1240
  CreditNotesServiceAlreadyAddedQuantityForSourceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1208
- { no: 1, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1241
+ { no: 1, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
1209
1242
  { no: 2, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1210
1243
  { no: 3, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1211
1244
  ]);
@@ -1668,9 +1701,9 @@ class CreditNotesServiceFilterReq extends protobuf_1.Message {
1668
1701
  /**
1669
1702
  * The associated reference
1670
1703
  *
1671
- * @generated from field: string ref_from = 22;
1704
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 22;
1672
1705
  */
1673
- this.refFrom = "";
1706
+ this.refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
1674
1707
  /**
1675
1708
  * The associated ID of the reference
1676
1709
  *
@@ -1714,6 +1747,18 @@ class CreditNotesServiceFilterReq extends protobuf_1.Message {
1714
1747
  * @generated from field: uint64 project_id = 52;
1715
1748
  */
1716
1749
  this.projectId = protobuf_1.protoInt64.zero;
1750
+ /**
1751
+ * Stores the minimum value of the credit note (ignored if 0)
1752
+ *
1753
+ * @generated from field: uint64 total_value_min = 70;
1754
+ */
1755
+ this.totalValueMin = protobuf_1.protoInt64.zero;
1756
+ /**
1757
+ * Stores the maximum value of the credit note (ignored if 0)
1758
+ *
1759
+ * @generated from field: uint64 total_value_max = 71;
1760
+ */
1761
+ this.totalValueMax = protobuf_1.protoInt64.zero;
1717
1762
  protobuf_1.proto3.util.initPartial(data, this);
1718
1763
  }
1719
1764
  static fromBinary(bytes, options) {
@@ -1752,7 +1797,7 @@ CreditNotesServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1752
1797
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1753
1798
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1754
1799
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1755
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1800
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
1756
1801
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1757
1802
  { no: 24, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1758
1803
  { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1760,6 +1805,8 @@ CreditNotesServiceFilterReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1760
1805
  { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1761
1806
  { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1762
1807
  { no: 52, name: "project_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1808
+ { no: 70, name: "total_value_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1809
+ { no: 71, name: "total_value_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1763
1810
  ]);
1764
1811
  /**
1765
1812
  *
@@ -1863,9 +1910,9 @@ class CreditNotesServiceCountReq extends protobuf_1.Message {
1863
1910
  /**
1864
1911
  * The associated reference
1865
1912
  *
1866
- * @generated from field: string ref_from = 22;
1913
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 22;
1867
1914
  */
1868
- this.refFrom = "";
1915
+ this.refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
1869
1916
  /**
1870
1917
  * The associated ID of the reference
1871
1918
  *
@@ -1909,6 +1956,18 @@ class CreditNotesServiceCountReq extends protobuf_1.Message {
1909
1956
  * @generated from field: uint64 project_id = 52;
1910
1957
  */
1911
1958
  this.projectId = protobuf_1.protoInt64.zero;
1959
+ /**
1960
+ * Stores the minimum value of the credit note (ignored if 0)
1961
+ *
1962
+ * @generated from field: uint64 total_value_min = 70;
1963
+ */
1964
+ this.totalValueMin = protobuf_1.protoInt64.zero;
1965
+ /**
1966
+ * Stores the maximum value of the credit note (ignored if 0)
1967
+ *
1968
+ * @generated from field: uint64 total_value_max = 71;
1969
+ */
1970
+ this.totalValueMax = protobuf_1.protoInt64.zero;
1912
1971
  protobuf_1.proto3.util.initPartial(data, this);
1913
1972
  }
1914
1973
  static fromBinary(bytes, options) {
@@ -1943,7 +2002,7 @@ CreditNotesServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1943
2002
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1944
2003
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1945
2004
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1946
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2005
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
1947
2006
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1948
2007
  { no: 24, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1949
2008
  { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1951,6 +2010,8 @@ CreditNotesServiceCountReq.fields = protobuf_1.proto3.util.newFieldList(() => [
1951
2010
  { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1952
2011
  { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1953
2012
  { no: 52, name: "project_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2013
+ { no: 70, name: "total_value_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2014
+ { no: 71, name: "total_value_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1954
2015
  ]);
1955
2016
  /**
1956
2017
  *
@@ -2012,9 +2073,9 @@ class CreditNotesServiceSearchAllReq extends protobuf_1.Message {
2012
2073
  /**
2013
2074
  * The associated reference
2014
2075
  *
2015
- * @generated from field: string ref_from = 22;
2076
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 22;
2016
2077
  */
2017
- this.refFrom = "";
2078
+ this.refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
2018
2079
  /**
2019
2080
  * The associated ID of the reference
2020
2081
  *
@@ -2061,7 +2122,7 @@ CreditNotesServiceSearchAllReq.fields = protobuf_1.proto3.util.newFieldList(() =
2061
2122
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2062
2123
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
2063
2124
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2064
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2125
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
2065
2126
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2066
2127
  { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2067
2128
  { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -2218,3 +2279,87 @@ CreditNoteReferencesList.typeName = "Scailo.CreditNoteReferencesList";
2218
2279
  CreditNoteReferencesList.fields = protobuf_1.proto3.util.newFieldList(() => [
2219
2280
  { no: 1, name: "list", kind: "message", T: CreditNoteReference, repeated: true },
2220
2281
  ]);
2282
+ /**
2283
+ *
2284
+ * Describes the returned statistics of the credit note
2285
+ *
2286
+ * @generated from message Scailo.CreditNoteReturnStatistics
2287
+ */
2288
+ class CreditNoteReturnStatistics extends protobuf_1.Message {
2289
+ constructor(data) {
2290
+ super();
2291
+ /**
2292
+ * Stores the ID of the family
2293
+ *
2294
+ * @generated from field: uint64 family_id = 1;
2295
+ */
2296
+ this.familyId = protobuf_1.protoInt64.zero;
2297
+ /**
2298
+ * Stores the billed quantity
2299
+ *
2300
+ * @generated from field: uint64 billed_quantity = 2;
2301
+ */
2302
+ this.billedQuantity = protobuf_1.protoInt64.zero;
2303
+ /**
2304
+ * Stores the returned quantity
2305
+ *
2306
+ * @generated from field: uint64 returned_quantity = 3;
2307
+ */
2308
+ this.returnedQuantity = protobuf_1.protoInt64.zero;
2309
+ protobuf_1.proto3.util.initPartial(data, this);
2310
+ }
2311
+ static fromBinary(bytes, options) {
2312
+ return new CreditNoteReturnStatistics().fromBinary(bytes, options);
2313
+ }
2314
+ static fromJson(jsonValue, options) {
2315
+ return new CreditNoteReturnStatistics().fromJson(jsonValue, options);
2316
+ }
2317
+ static fromJsonString(jsonString, options) {
2318
+ return new CreditNoteReturnStatistics().fromJsonString(jsonString, options);
2319
+ }
2320
+ static equals(a, b) {
2321
+ return protobuf_1.proto3.util.equals(CreditNoteReturnStatistics, a, b);
2322
+ }
2323
+ }
2324
+ exports.CreditNoteReturnStatistics = CreditNoteReturnStatistics;
2325
+ CreditNoteReturnStatistics.runtime = protobuf_1.proto3;
2326
+ CreditNoteReturnStatistics.typeName = "Scailo.CreditNoteReturnStatistics";
2327
+ CreditNoteReturnStatistics.fields = protobuf_1.proto3.util.newFieldList(() => [
2328
+ { no: 1, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2329
+ { no: 2, name: "billed_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2330
+ { no: 3, name: "returned_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2331
+ ]);
2332
+ /**
2333
+ *
2334
+ * Describes the list of returned statistics of the credit note
2335
+ *
2336
+ * @generated from message Scailo.CreditNoteReturnStatisticsList
2337
+ */
2338
+ class CreditNoteReturnStatisticsList extends protobuf_1.Message {
2339
+ constructor(data) {
2340
+ super();
2341
+ /**
2342
+ * @generated from field: repeated Scailo.CreditNoteReturnStatistics list = 1;
2343
+ */
2344
+ this.list = [];
2345
+ protobuf_1.proto3.util.initPartial(data, this);
2346
+ }
2347
+ static fromBinary(bytes, options) {
2348
+ return new CreditNoteReturnStatisticsList().fromBinary(bytes, options);
2349
+ }
2350
+ static fromJson(jsonValue, options) {
2351
+ return new CreditNoteReturnStatisticsList().fromJson(jsonValue, options);
2352
+ }
2353
+ static fromJsonString(jsonString, options) {
2354
+ return new CreditNoteReturnStatisticsList().fromJsonString(jsonString, options);
2355
+ }
2356
+ static equals(a, b) {
2357
+ return protobuf_1.proto3.util.equals(CreditNoteReturnStatisticsList, a, b);
2358
+ }
2359
+ }
2360
+ exports.CreditNoteReturnStatisticsList = CreditNoteReturnStatisticsList;
2361
+ CreditNoteReturnStatisticsList.runtime = protobuf_1.proto3;
2362
+ CreditNoteReturnStatisticsList.typeName = "Scailo.CreditNoteReturnStatisticsList";
2363
+ CreditNoteReturnStatisticsList.fields = protobuf_1.proto3.util.newFieldList(() => [
2364
+ { no: 1, name: "list", kind: "message", T: CreditNoteReturnStatistics, repeated: true },
2365
+ ]);
@@ -547,6 +547,17 @@ exports.DebitNotesService = {
547
547
  O: debit_notes_scailo_pb_js_1.DebitNotesServiceItemCreateRequest,
548
548
  kind: protobuf_1.MethodKind.Unary,
549
549
  },
550
+ /**
551
+ * View returned (purchase return) statistics of the debit note
552
+ *
553
+ * @generated from rpc Scailo.DebitNotesService.ViewReturnedStatistics
554
+ */
555
+ viewReturnedStatistics: {
556
+ name: "ViewReturnedStatistics",
557
+ I: base_scailo_pb_js_1.IdentifierUUID,
558
+ O: debit_notes_scailo_pb_js_1.DebitNoteReturnStatisticsList,
559
+ kind: protobuf_1.MethodKind.Unary,
560
+ },
550
561
  /**
551
562
  * Other view operations
552
563
  * Download debit note with the given IdentifierUUID (can be used to allow public downloads)
@@ -604,7 +615,7 @@ exports.DebitNotesService = {
604
615
  kind: protobuf_1.MethodKind.Unary,
605
616
  },
606
617
  /**
607
- * View all that match the given count criteria
618
+ * Count all that match the given criteria
608
619
  *
609
620
  * @generated from rpc Scailo.DebitNotesService.Count
610
621
  */
@@ -614,6 +625,17 @@ exports.DebitNotesService = {
614
625
  O: base_scailo_pb_js_1.CountResponse,
615
626
  kind: protobuf_1.MethodKind.Unary,
616
627
  },
628
+ /**
629
+ * Returns the sum of the total value of all the records that match the given criteria
630
+ *
631
+ * @generated from rpc Scailo.DebitNotesService.AccruedValue
632
+ */
633
+ accruedValue: {
634
+ name: "AccruedValue",
635
+ I: debit_notes_scailo_pb_js_1.DebitNotesServiceCountReq,
636
+ O: base_scailo_pb_js_1.SumResponse,
637
+ kind: protobuf_1.MethodKind.Unary,
638
+ },
617
639
  /**
618
640
  * CSV operations
619
641
  * Download the CSV file that consists of the list of records according to the given filter request. The same file could also be used as a template for uploading records