@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
@@ -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
  *
@@ -253,9 +286,9 @@ class CreditNotesServiceCreateRequest extends protobuf_1.Message {
253
286
  /**
254
287
  * The associated reference
255
288
  *
256
- * @generated from field: string ref_from = 12;
289
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 12;
257
290
  */
258
- refFrom = "";
291
+ refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
259
292
  /**
260
293
  * The associated ID of the reference
261
294
  *
@@ -309,7 +342,7 @@ class CreditNotesServiceCreateRequest extends protobuf_1.Message {
309
342
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
310
343
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
311
344
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
312
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
345
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
313
346
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
314
347
  { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
315
348
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -588,9 +621,9 @@ class CreditNote extends protobuf_1.Message {
588
621
  /**
589
622
  * The associated reference
590
623
  *
591
- * @generated from field: string ref_from = 12;
624
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 12;
592
625
  */
593
- refFrom = "";
626
+ refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
594
627
  /**
595
628
  * The associated ID of the reference
596
629
  *
@@ -661,7 +694,7 @@ class CreditNote extends protobuf_1.Message {
661
694
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
662
695
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
663
696
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
664
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
697
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
665
698
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
666
699
  { no: 14, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
667
700
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1193,9 +1226,9 @@ class CreditNotesServiceAlreadyAddedQuantityForSourceRequest extends protobuf_1.
1193
1226
  /**
1194
1227
  * The associated reference
1195
1228
  *
1196
- * @generated from field: string ref_from = 1;
1229
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 1;
1197
1230
  */
1198
- refFrom = "";
1231
+ refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
1199
1232
  /**
1200
1233
  * The associated ID of the reference
1201
1234
  *
@@ -1215,7 +1248,7 @@ class CreditNotesServiceAlreadyAddedQuantityForSourceRequest extends protobuf_1.
1215
1248
  static runtime = protobuf_1.proto3;
1216
1249
  static typeName = "Scailo.CreditNotesServiceAlreadyAddedQuantityForSourceRequest";
1217
1250
  static fields = protobuf_1.proto3.util.newFieldList(() => [
1218
- { no: 1, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1251
+ { no: 1, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
1219
1252
  { no: 2, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1220
1253
  { no: 3, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1221
1254
  ]);
@@ -1690,9 +1723,9 @@ class CreditNotesServiceFilterReq extends protobuf_1.Message {
1690
1723
  /**
1691
1724
  * The associated reference
1692
1725
  *
1693
- * @generated from field: string ref_from = 22;
1726
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 22;
1694
1727
  */
1695
- refFrom = "";
1728
+ refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
1696
1729
  /**
1697
1730
  * The associated ID of the reference
1698
1731
  *
@@ -1736,6 +1769,18 @@ class CreditNotesServiceFilterReq extends protobuf_1.Message {
1736
1769
  * @generated from field: uint64 project_id = 52;
1737
1770
  */
1738
1771
  projectId = protobuf_1.protoInt64.zero;
1772
+ /**
1773
+ * Stores the minimum value of the credit note (ignored if 0)
1774
+ *
1775
+ * @generated from field: uint64 total_value_min = 70;
1776
+ */
1777
+ totalValueMin = protobuf_1.protoInt64.zero;
1778
+ /**
1779
+ * Stores the maximum value of the credit note (ignored if 0)
1780
+ *
1781
+ * @generated from field: uint64 total_value_max = 71;
1782
+ */
1783
+ totalValueMax = protobuf_1.protoInt64.zero;
1739
1784
  constructor(data) {
1740
1785
  super();
1741
1786
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1762,7 +1807,7 @@ class CreditNotesServiceFilterReq extends protobuf_1.Message {
1762
1807
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1763
1808
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1764
1809
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1765
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1810
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
1766
1811
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1767
1812
  { no: 24, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1768
1813
  { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1770,6 +1815,8 @@ class CreditNotesServiceFilterReq extends protobuf_1.Message {
1770
1815
  { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1771
1816
  { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1772
1817
  { no: 52, name: "project_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1818
+ { no: 70, name: "total_value_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1819
+ { no: 71, name: "total_value_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1773
1820
  ]);
1774
1821
  static fromBinary(bytes, options) {
1775
1822
  return new CreditNotesServiceFilterReq().fromBinary(bytes, options);
@@ -1885,9 +1932,9 @@ class CreditNotesServiceCountReq extends protobuf_1.Message {
1885
1932
  /**
1886
1933
  * The associated reference
1887
1934
  *
1888
- * @generated from field: string ref_from = 22;
1935
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 22;
1889
1936
  */
1890
- refFrom = "";
1937
+ refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
1891
1938
  /**
1892
1939
  * The associated ID of the reference
1893
1940
  *
@@ -1931,6 +1978,18 @@ class CreditNotesServiceCountReq extends protobuf_1.Message {
1931
1978
  * @generated from field: uint64 project_id = 52;
1932
1979
  */
1933
1980
  projectId = protobuf_1.protoInt64.zero;
1981
+ /**
1982
+ * Stores the minimum value of the credit note (ignored if 0)
1983
+ *
1984
+ * @generated from field: uint64 total_value_min = 70;
1985
+ */
1986
+ totalValueMin = protobuf_1.protoInt64.zero;
1987
+ /**
1988
+ * Stores the maximum value of the credit note (ignored if 0)
1989
+ *
1990
+ * @generated from field: uint64 total_value_max = 71;
1991
+ */
1992
+ totalValueMax = protobuf_1.protoInt64.zero;
1934
1993
  constructor(data) {
1935
1994
  super();
1936
1995
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1953,7 +2012,7 @@ class CreditNotesServiceCountReq extends protobuf_1.Message {
1953
2012
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1954
2013
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1955
2014
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1956
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2015
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
1957
2016
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1958
2017
  { no: 24, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1959
2018
  { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -1961,6 +2020,8 @@ class CreditNotesServiceCountReq extends protobuf_1.Message {
1961
2020
  { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1962
2021
  { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1963
2022
  { no: 52, name: "project_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2023
+ { no: 70, name: "total_value_min", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2024
+ { no: 71, name: "total_value_max", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1964
2025
  ]);
1965
2026
  static fromBinary(bytes, options) {
1966
2027
  return new CreditNotesServiceCountReq().fromBinary(bytes, options);
@@ -2034,9 +2095,9 @@ class CreditNotesServiceSearchAllReq extends protobuf_1.Message {
2034
2095
  /**
2035
2096
  * The associated reference
2036
2097
  *
2037
- * @generated from field: string ref_from = 22;
2098
+ * @generated from field: Scailo.CREDIT_NOTE_REF_FROM ref_from = 22;
2038
2099
  */
2039
- refFrom = "";
2100
+ refFrom = CREDIT_NOTE_REF_FROM.CREDIT_NOTE_REF_FROM_ANY_UNSPECIFIED;
2040
2101
  /**
2041
2102
  * The associated ID of the reference
2042
2103
  *
@@ -2071,7 +2132,7 @@ class CreditNotesServiceSearchAllReq extends protobuf_1.Message {
2071
2132
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2072
2133
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
2073
2134
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2074
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2135
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(CREDIT_NOTE_REF_FROM) },
2075
2136
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2076
2137
  { no: 50, name: "consignee_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2077
2138
  { no: 51, name: "buyer_client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -2254,3 +2315,87 @@ class CreditNoteReferencesList extends protobuf_1.Message {
2254
2315
  }
2255
2316
  }
2256
2317
  exports.CreditNoteReferencesList = CreditNoteReferencesList;
2318
+ /**
2319
+ *
2320
+ * Describes the returned statistics of the credit note
2321
+ *
2322
+ * @generated from message Scailo.CreditNoteReturnStatistics
2323
+ */
2324
+ class CreditNoteReturnStatistics extends protobuf_1.Message {
2325
+ /**
2326
+ * Stores the ID of the family
2327
+ *
2328
+ * @generated from field: uint64 family_id = 1;
2329
+ */
2330
+ familyId = protobuf_1.protoInt64.zero;
2331
+ /**
2332
+ * Stores the billed quantity
2333
+ *
2334
+ * @generated from field: uint64 billed_quantity = 2;
2335
+ */
2336
+ billedQuantity = protobuf_1.protoInt64.zero;
2337
+ /**
2338
+ * Stores the returned quantity
2339
+ *
2340
+ * @generated from field: uint64 returned_quantity = 3;
2341
+ */
2342
+ returnedQuantity = protobuf_1.protoInt64.zero;
2343
+ constructor(data) {
2344
+ super();
2345
+ protobuf_1.proto3.util.initPartial(data, this);
2346
+ }
2347
+ static runtime = protobuf_1.proto3;
2348
+ static typeName = "Scailo.CreditNoteReturnStatistics";
2349
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2350
+ { no: 1, name: "family_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2351
+ { no: 2, name: "billed_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2352
+ { no: 3, name: "returned_quantity", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2353
+ ]);
2354
+ static fromBinary(bytes, options) {
2355
+ return new CreditNoteReturnStatistics().fromBinary(bytes, options);
2356
+ }
2357
+ static fromJson(jsonValue, options) {
2358
+ return new CreditNoteReturnStatistics().fromJson(jsonValue, options);
2359
+ }
2360
+ static fromJsonString(jsonString, options) {
2361
+ return new CreditNoteReturnStatistics().fromJsonString(jsonString, options);
2362
+ }
2363
+ static equals(a, b) {
2364
+ return protobuf_1.proto3.util.equals(CreditNoteReturnStatistics, a, b);
2365
+ }
2366
+ }
2367
+ exports.CreditNoteReturnStatistics = CreditNoteReturnStatistics;
2368
+ /**
2369
+ *
2370
+ * Describes the list of returned statistics of the credit note
2371
+ *
2372
+ * @generated from message Scailo.CreditNoteReturnStatisticsList
2373
+ */
2374
+ class CreditNoteReturnStatisticsList extends protobuf_1.Message {
2375
+ /**
2376
+ * @generated from field: repeated Scailo.CreditNoteReturnStatistics list = 1;
2377
+ */
2378
+ list = [];
2379
+ constructor(data) {
2380
+ super();
2381
+ protobuf_1.proto3.util.initPartial(data, this);
2382
+ }
2383
+ static runtime = protobuf_1.proto3;
2384
+ static typeName = "Scailo.CreditNoteReturnStatisticsList";
2385
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
2386
+ { no: 1, name: "list", kind: "message", T: CreditNoteReturnStatistics, repeated: true },
2387
+ ]);
2388
+ static fromBinary(bytes, options) {
2389
+ return new CreditNoteReturnStatisticsList().fromBinary(bytes, options);
2390
+ }
2391
+ static fromJson(jsonValue, options) {
2392
+ return new CreditNoteReturnStatisticsList().fromJson(jsonValue, options);
2393
+ }
2394
+ static fromJsonString(jsonString, options) {
2395
+ return new CreditNoteReturnStatisticsList().fromJsonString(jsonString, options);
2396
+ }
2397
+ static equals(a, b) {
2398
+ return protobuf_1.proto3.util.equals(CreditNoteReturnStatisticsList, a, b);
2399
+ }
2400
+ }
2401
+ exports.CreditNoteReturnStatisticsList = CreditNoteReturnStatisticsList;
@@ -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