@kernelminds/scailo-sdk 0.1.15 → 0.1.16

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 (43) hide show
  1. package/lib/cjs/src/base.scailo_pb.js +35 -2
  2. package/lib/cjs/src/inventory.scailo_connect.js +12 -1
  3. package/lib/cjs/src/inventory.scailo_pb.js +34 -1
  4. package/lib/cjs/src/purchases_payments.scailo_connect.js +32 -1
  5. package/lib/cjs/src/purchases_payments.scailo_pb.js +68 -28
  6. package/lib/cjs/src/sales_receipts.scailo_connect.js +37 -6
  7. package/lib/cjs/src/sales_receipts.scailo_pb.js +137 -97
  8. package/lib/cjs/types/src/base.scailo_pb.d.ts +26 -0
  9. package/lib/cjs/types/src/base.scailo_pb.d.ts.map +1 -1
  10. package/lib/cjs/types/src/inventory.scailo_connect.d.ts +14 -3
  11. package/lib/cjs/types/src/inventory.scailo_connect.d.ts.map +1 -1
  12. package/lib/cjs/types/src/inventory.scailo_pb.d.ts +19 -0
  13. package/lib/cjs/types/src/inventory.scailo_pb.d.ts.map +1 -1
  14. package/lib/cjs/types/src/purchases_payments.scailo_connect.d.ts +33 -2
  15. package/lib/cjs/types/src/purchases_payments.scailo_connect.d.ts.map +1 -1
  16. package/lib/cjs/types/src/purchases_payments.scailo_pb.d.ts +51 -19
  17. package/lib/cjs/types/src/purchases_payments.scailo_pb.d.ts.map +1 -1
  18. package/lib/cjs/types/src/sales_receipts.scailo_connect.d.ts +39 -8
  19. package/lib/cjs/types/src/sales_receipts.scailo_connect.d.ts.map +1 -1
  20. package/lib/cjs/types/src/sales_receipts.scailo_pb.d.ts +99 -67
  21. package/lib/cjs/types/src/sales_receipts.scailo_pb.d.ts.map +1 -1
  22. package/lib/esm/src/base.scailo_pb.js +35 -2
  23. package/lib/esm/src/inventory.scailo_connect.js +12 -1
  24. package/lib/esm/src/inventory.scailo_pb.js +34 -1
  25. package/lib/esm/src/purchases_payments.scailo_connect.js +32 -1
  26. package/lib/esm/src/purchases_payments.scailo_pb.js +68 -28
  27. package/lib/esm/src/sales_receipts.scailo_connect.js +37 -6
  28. package/lib/esm/src/sales_receipts.scailo_pb.js +134 -94
  29. package/lib/esm/types/src/base.scailo_pb.d.ts +26 -0
  30. package/lib/esm/types/src/base.scailo_pb.d.ts.map +1 -1
  31. package/lib/esm/types/src/inventory.scailo_connect.d.ts +14 -3
  32. package/lib/esm/types/src/inventory.scailo_connect.d.ts.map +1 -1
  33. package/lib/esm/types/src/inventory.scailo_pb.d.ts +19 -0
  34. package/lib/esm/types/src/inventory.scailo_pb.d.ts.map +1 -1
  35. package/lib/esm/types/src/purchases_payments.scailo_connect.d.ts +33 -2
  36. package/lib/esm/types/src/purchases_payments.scailo_connect.d.ts.map +1 -1
  37. package/lib/esm/types/src/purchases_payments.scailo_pb.d.ts +51 -19
  38. package/lib/esm/types/src/purchases_payments.scailo_pb.d.ts.map +1 -1
  39. package/lib/esm/types/src/sales_receipts.scailo_connect.d.ts +39 -8
  40. package/lib/esm/types/src/sales_receipts.scailo_connect.d.ts.map +1 -1
  41. package/lib/esm/types/src/sales_receipts.scailo_pb.d.ts +99 -67
  42. package/lib/esm/types/src/sales_receipts.scailo_pb.d.ts.map +1 -1
  43. package/package.json +1 -1
@@ -4,90 +4,130 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.SalesReceiptsServiceSearchAllReq = exports.SalesReceiptsServiceCountReq = exports.SalesReceiptsServiceFilterReq = exports.SalesReceiptsServicePaginationResponse = exports.SalesReceiptsServicePaginationReq = exports.SalesReceiptsList = exports.SaleReceipt = exports.SaleReceiptAncillaryParameters = exports.SalesReceiptsServiceUpdateRequest = exports.SalesReceiptsServiceCreateRequest = exports.SALE_RECEIPT_SORT_KEY = void 0;
7
+ exports.SalesReceiptsServiceSearchAllReq = exports.SalesReceiptsServiceCountReq = exports.SalesReceiptsServiceFilterReq = exports.SalesReceiptsServicePaginationResponse = exports.SalesReceiptsServicePaginationReq = exports.SalesReceiptsList = exports.SalesReceipt = exports.SalesReceiptAncillaryParameters = exports.SalesReceiptsServiceUpdateRequest = exports.SalesReceiptsServiceCreateRequest = exports.SALES_RECEIPT_SORT_KEY = exports.SALES_RECEIPT_REF_FROM = void 0;
8
8
  const protobuf_1 = require("@bufbuild/protobuf");
9
9
  const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
10
+ /**
11
+ *
12
+ * Stores all the possible references from which a sales receipt can be added
13
+ *
14
+ * @generated from enum Scailo.SALES_RECEIPT_REF_FROM
15
+ */
16
+ var SALES_RECEIPT_REF_FROM;
17
+ (function (SALES_RECEIPT_REF_FROM) {
18
+ /**
19
+ * Used only in filters
20
+ *
21
+ * @generated from enum value: SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED = 0;
22
+ */
23
+ SALES_RECEIPT_REF_FROM[SALES_RECEIPT_REF_FROM["SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED"] = 0] = "SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED";
24
+ /**
25
+ * Denotes that the sales receipt originated from a sales order
26
+ *
27
+ * @generated from enum value: SALES_RECEIPT_REF_FROM_SALES_ORDER = 1;
28
+ */
29
+ SALES_RECEIPT_REF_FROM[SALES_RECEIPT_REF_FROM["SALES_RECEIPT_REF_FROM_SALES_ORDER"] = 1] = "SALES_RECEIPT_REF_FROM_SALES_ORDER";
30
+ /**
31
+ * Denotes that the sales receipt originated from a sales invoice
32
+ *
33
+ * @generated from enum value: SALES_RECEIPT_REF_FROM_SALES_INVOICE = 2;
34
+ */
35
+ SALES_RECEIPT_REF_FROM[SALES_RECEIPT_REF_FROM["SALES_RECEIPT_REF_FROM_SALES_INVOICE"] = 2] = "SALES_RECEIPT_REF_FROM_SALES_INVOICE";
36
+ /**
37
+ * Denotes that the sales receipt originated from a credit note
38
+ *
39
+ * @generated from enum value: SALES_RECEIPT_REF_FROM_CREDIT_NOTE = 3;
40
+ */
41
+ SALES_RECEIPT_REF_FROM[SALES_RECEIPT_REF_FROM["SALES_RECEIPT_REF_FROM_CREDIT_NOTE"] = 3] = "SALES_RECEIPT_REF_FROM_CREDIT_NOTE";
42
+ })(SALES_RECEIPT_REF_FROM || (exports.SALES_RECEIPT_REF_FROM = SALES_RECEIPT_REF_FROM = {}));
43
+ // Retrieve enum metadata with: proto3.getEnumType(SALES_RECEIPT_REF_FROM)
44
+ protobuf_1.proto3.util.setEnumType(SALES_RECEIPT_REF_FROM, "Scailo.SALES_RECEIPT_REF_FROM", [
45
+ { no: 0, name: "SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED" },
46
+ { no: 1, name: "SALES_RECEIPT_REF_FROM_SALES_ORDER" },
47
+ { no: 2, name: "SALES_RECEIPT_REF_FROM_SALES_INVOICE" },
48
+ { no: 3, name: "SALES_RECEIPT_REF_FROM_CREDIT_NOTE" },
49
+ ]);
10
50
  /**
11
51
  *
12
52
  * Describes the available sort keys
13
53
  *
14
- * @generated from enum Scailo.SALE_RECEIPT_SORT_KEY
54
+ * @generated from enum Scailo.SALES_RECEIPT_SORT_KEY
15
55
  */
16
- var SALE_RECEIPT_SORT_KEY;
17
- (function (SALE_RECEIPT_SORT_KEY) {
56
+ var SALES_RECEIPT_SORT_KEY;
57
+ (function (SALES_RECEIPT_SORT_KEY) {
18
58
  /**
19
59
  * Fetch ordered results by id
20
60
  *
21
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED = 0;
61
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED = 0;
22
62
  */
23
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED"] = 0] = "SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED";
63
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED"] = 0] = "SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED";
24
64
  /**
25
65
  * Fetch ordered results by the creation timestamp
26
66
  *
27
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_CREATED_AT = 1;
67
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_CREATED_AT = 1;
28
68
  */
29
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_CREATED_AT"] = 1] = "SALE_RECEIPT_SORT_KEY_CREATED_AT";
69
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_CREATED_AT"] = 1] = "SALES_RECEIPT_SORT_KEY_CREATED_AT";
30
70
  /**
31
71
  * Fetch ordered results by the modified timestamp
32
72
  *
33
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_MODIFIED_AT = 2;
73
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_MODIFIED_AT = 2;
34
74
  */
35
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_MODIFIED_AT"] = 2] = "SALE_RECEIPT_SORT_KEY_MODIFIED_AT";
75
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_MODIFIED_AT"] = 2] = "SALES_RECEIPT_SORT_KEY_MODIFIED_AT";
36
76
  /**
37
77
  * Fetch ordered results by the approved on timestamp
38
78
  *
39
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_APPROVED_ON = 3;
79
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_APPROVED_ON = 3;
40
80
  */
41
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_APPROVED_ON"] = 3] = "SALE_RECEIPT_SORT_KEY_APPROVED_ON";
81
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_APPROVED_ON"] = 3] = "SALES_RECEIPT_SORT_KEY_APPROVED_ON";
42
82
  /**
43
83
  * Fetch ordered results by the approved by field
44
84
  *
45
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_APPROVED_BY = 4;
85
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_APPROVED_BY = 4;
46
86
  */
47
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_APPROVED_BY"] = 4] = "SALE_RECEIPT_SORT_KEY_APPROVED_BY";
87
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_APPROVED_BY"] = 4] = "SALES_RECEIPT_SORT_KEY_APPROVED_BY";
48
88
  /**
49
89
  * Fetch ordered results by the approver's role ID
50
90
  *
51
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_APPROVER_ROLE_ID = 5;
91
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_APPROVER_ROLE_ID = 5;
52
92
  */
53
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_APPROVER_ROLE_ID"] = 5] = "SALE_RECEIPT_SORT_KEY_APPROVER_ROLE_ID";
93
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_APPROVER_ROLE_ID"] = 5] = "SALES_RECEIPT_SORT_KEY_APPROVER_ROLE_ID";
54
94
  /**
55
95
  * Fetch ordered results by the approver's completed on timestamp
56
96
  *
57
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_COMPLETED_ON = 6;
97
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_COMPLETED_ON = 6;
58
98
  */
59
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_COMPLETED_ON"] = 6] = "SALE_RECEIPT_SORT_KEY_COMPLETED_ON";
99
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_COMPLETED_ON"] = 6] = "SALES_RECEIPT_SORT_KEY_COMPLETED_ON";
60
100
  /**
61
101
  * Fetch ordered results by the reference ID
62
102
  *
63
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_REFERENCE_ID = 10;
103
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_REFERENCE_ID = 10;
64
104
  */
65
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_REFERENCE_ID"] = 10] = "SALE_RECEIPT_SORT_KEY_REFERENCE_ID";
105
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_REFERENCE_ID"] = 10] = "SALES_RECEIPT_SORT_KEY_REFERENCE_ID";
66
106
  /**
67
107
  * Fetch ordered results by the final ref number
68
108
  *
69
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_FINAL_REF_NUMBER = 11;
109
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_FINAL_REF_NUMBER = 11;
70
110
  */
71
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_FINAL_REF_NUMBER"] = 11] = "SALE_RECEIPT_SORT_KEY_FINAL_REF_NUMBER";
111
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_FINAL_REF_NUMBER"] = 11] = "SALES_RECEIPT_SORT_KEY_FINAL_REF_NUMBER";
72
112
  /**
73
113
  * Fetch ordered results by the payment timestamp
74
114
  *
75
- * @generated from enum value: SALE_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP = 12;
76
- */
77
- SALE_RECEIPT_SORT_KEY[SALE_RECEIPT_SORT_KEY["SALE_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP"] = 12] = "SALE_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP";
78
- })(SALE_RECEIPT_SORT_KEY || (exports.SALE_RECEIPT_SORT_KEY = SALE_RECEIPT_SORT_KEY = {}));
79
- // Retrieve enum metadata with: proto3.getEnumType(SALE_RECEIPT_SORT_KEY)
80
- protobuf_1.proto3.util.setEnumType(SALE_RECEIPT_SORT_KEY, "Scailo.SALE_RECEIPT_SORT_KEY", [
81
- { no: 0, name: "SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED" },
82
- { no: 1, name: "SALE_RECEIPT_SORT_KEY_CREATED_AT" },
83
- { no: 2, name: "SALE_RECEIPT_SORT_KEY_MODIFIED_AT" },
84
- { no: 3, name: "SALE_RECEIPT_SORT_KEY_APPROVED_ON" },
85
- { no: 4, name: "SALE_RECEIPT_SORT_KEY_APPROVED_BY" },
86
- { no: 5, name: "SALE_RECEIPT_SORT_KEY_APPROVER_ROLE_ID" },
87
- { no: 6, name: "SALE_RECEIPT_SORT_KEY_COMPLETED_ON" },
88
- { no: 10, name: "SALE_RECEIPT_SORT_KEY_REFERENCE_ID" },
89
- { no: 11, name: "SALE_RECEIPT_SORT_KEY_FINAL_REF_NUMBER" },
90
- { no: 12, name: "SALE_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP" },
115
+ * @generated from enum value: SALES_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP = 12;
116
+ */
117
+ SALES_RECEIPT_SORT_KEY[SALES_RECEIPT_SORT_KEY["SALES_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP"] = 12] = "SALES_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP";
118
+ })(SALES_RECEIPT_SORT_KEY || (exports.SALES_RECEIPT_SORT_KEY = SALES_RECEIPT_SORT_KEY = {}));
119
+ // Retrieve enum metadata with: proto3.getEnumType(SALES_RECEIPT_SORT_KEY)
120
+ protobuf_1.proto3.util.setEnumType(SALES_RECEIPT_SORT_KEY, "Scailo.SALES_RECEIPT_SORT_KEY", [
121
+ { no: 0, name: "SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED" },
122
+ { no: 1, name: "SALES_RECEIPT_SORT_KEY_CREATED_AT" },
123
+ { no: 2, name: "SALES_RECEIPT_SORT_KEY_MODIFIED_AT" },
124
+ { no: 3, name: "SALES_RECEIPT_SORT_KEY_APPROVED_ON" },
125
+ { no: 4, name: "SALES_RECEIPT_SORT_KEY_APPROVED_BY" },
126
+ { no: 5, name: "SALES_RECEIPT_SORT_KEY_APPROVER_ROLE_ID" },
127
+ { no: 6, name: "SALES_RECEIPT_SORT_KEY_COMPLETED_ON" },
128
+ { no: 10, name: "SALES_RECEIPT_SORT_KEY_REFERENCE_ID" },
129
+ { no: 11, name: "SALES_RECEIPT_SORT_KEY_FINAL_REF_NUMBER" },
130
+ { no: 12, name: "SALES_RECEIPT_SORT_KEY_PAYMENT_TIMESTAMP" },
91
131
  ]);
92
132
  /**
93
133
  *
@@ -123,9 +163,9 @@ class SalesReceiptsServiceCreateRequest extends protobuf_1.Message {
123
163
  /**
124
164
  * The reference on which the sales receipt has been created
125
165
  *
126
- * @generated from field: string ref_from = 12;
166
+ * @generated from field: Scailo.SALES_RECEIPT_REF_FROM ref_from = 12;
127
167
  */
128
- refFrom = "";
168
+ refFrom = SALES_RECEIPT_REF_FROM.SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED;
129
169
  /**
130
170
  * The ID of the associated reference
131
171
  *
@@ -147,9 +187,9 @@ class SalesReceiptsServiceCreateRequest extends protobuf_1.Message {
147
187
  /**
148
188
  * The type of the transaction
149
189
  *
150
- * @generated from field: string transaction_type = 17;
190
+ * @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 17;
151
191
  */
152
- transactionType = "";
192
+ transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
153
193
  /**
154
194
  * The initial amount in cents, without any deductions
155
195
  *
@@ -185,11 +225,11 @@ class SalesReceiptsServiceCreateRequest extends protobuf_1.Message {
185
225
  { no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
226
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
187
227
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_REF_FROM) },
189
229
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
190
230
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
191
231
  { no: 16, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
192
- { no: 17, name: "transaction_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
232
+ { no: 17, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
193
233
  { no: 18, name: "amount_base", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
194
234
  { no: 19, name: "amount_net", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
195
235
  { no: 20, name: "payment_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -261,9 +301,9 @@ class SalesReceiptsServiceUpdateRequest extends protobuf_1.Message {
261
301
  /**
262
302
  * The type of the transaction
263
303
  *
264
- * @generated from field: string transaction_type = 17;
304
+ * @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 17;
265
305
  */
266
- transactionType = "";
306
+ transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
267
307
  /**
268
308
  * The initial amount in cents, without any deductions
269
309
  *
@@ -302,7 +342,7 @@ class SalesReceiptsServiceUpdateRequest extends protobuf_1.Message {
302
342
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
303
343
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
304
344
  { no: 16, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
305
- { no: 17, name: "transaction_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
345
+ { no: 17, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
306
346
  { no: 18, name: "amount_base", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
307
347
  { no: 19, name: "amount_net", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
308
348
  { no: 20, name: "payment_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -326,9 +366,9 @@ exports.SalesReceiptsServiceUpdateRequest = SalesReceiptsServiceUpdateRequest;
326
366
  *
327
367
  * Stores the UUID references of the record
328
368
  *
329
- * @generated from message Scailo.SaleReceiptAncillaryParameters
369
+ * @generated from message Scailo.SalesReceiptAncillaryParameters
330
370
  */
331
- class SaleReceiptAncillaryParameters extends protobuf_1.Message {
371
+ class SalesReceiptAncillaryParameters extends protobuf_1.Message {
332
372
  /**
333
373
  * The UUID of the ref_id (the UUID of the associated ref_id)
334
374
  *
@@ -358,7 +398,7 @@ class SaleReceiptAncillaryParameters extends protobuf_1.Message {
358
398
  protobuf_1.proto3.util.initPartial(data, this);
359
399
  }
360
400
  static runtime = protobuf_1.proto3;
361
- static typeName = "Scailo.SaleReceiptAncillaryParameters";
401
+ static typeName = "Scailo.SalesReceiptAncillaryParameters";
362
402
  static fields = protobuf_1.proto3.util.newFieldList(() => [
363
403
  { no: 213, name: "ref_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
364
404
  { no: 214, name: "client_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -366,26 +406,26 @@ class SaleReceiptAncillaryParameters extends protobuf_1.Message {
366
406
  { no: 216, name: "currency_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
367
407
  ]);
368
408
  static fromBinary(bytes, options) {
369
- return new SaleReceiptAncillaryParameters().fromBinary(bytes, options);
409
+ return new SalesReceiptAncillaryParameters().fromBinary(bytes, options);
370
410
  }
371
411
  static fromJson(jsonValue, options) {
372
- return new SaleReceiptAncillaryParameters().fromJson(jsonValue, options);
412
+ return new SalesReceiptAncillaryParameters().fromJson(jsonValue, options);
373
413
  }
374
414
  static fromJsonString(jsonString, options) {
375
- return new SaleReceiptAncillaryParameters().fromJsonString(jsonString, options);
415
+ return new SalesReceiptAncillaryParameters().fromJsonString(jsonString, options);
376
416
  }
377
417
  static equals(a, b) {
378
- return protobuf_1.proto3.util.equals(SaleReceiptAncillaryParameters, a, b);
418
+ return protobuf_1.proto3.util.equals(SalesReceiptAncillaryParameters, a, b);
379
419
  }
380
420
  }
381
- exports.SaleReceiptAncillaryParameters = SaleReceiptAncillaryParameters;
421
+ exports.SalesReceiptAncillaryParameters = SalesReceiptAncillaryParameters;
382
422
  /**
383
423
  *
384
424
  * Describes the parameters that are part of a standard response
385
425
  *
386
- * @generated from message Scailo.SaleReceipt
426
+ * @generated from message Scailo.SalesReceipt
387
427
  */
388
- class SaleReceipt extends protobuf_1.Message {
428
+ class SalesReceipt extends protobuf_1.Message {
389
429
  /**
390
430
  * Stores a globally unique entity UUID. This will be set at the organization level
391
431
  *
@@ -443,9 +483,9 @@ class SaleReceipt extends protobuf_1.Message {
443
483
  /**
444
484
  * The reference on which the sales receipt has been created
445
485
  *
446
- * @generated from field: string ref_from = 12;
486
+ * @generated from field: Scailo.SALES_RECEIPT_REF_FROM ref_from = 12;
447
487
  */
448
- refFrom = "";
488
+ refFrom = SALES_RECEIPT_REF_FROM.SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED;
449
489
  /**
450
490
  * The ID of the associated reference
451
491
  *
@@ -473,9 +513,9 @@ class SaleReceipt extends protobuf_1.Message {
473
513
  /**
474
514
  * The type of the transaction
475
515
  *
476
- * @generated from field: string transaction_type = 17;
516
+ * @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 17;
477
517
  */
478
- transactionType = "";
518
+ transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
479
519
  /**
480
520
  * The initial amount in cents, without any deductions
481
521
  *
@@ -505,7 +545,7 @@ class SaleReceipt extends protobuf_1.Message {
505
545
  protobuf_1.proto3.util.initPartial(data, this);
506
546
  }
507
547
  static runtime = protobuf_1.proto3;
508
- static typeName = "Scailo.SaleReceipt";
548
+ static typeName = "Scailo.SalesReceipt";
509
549
  static fields = protobuf_1.proto3.util.newFieldList(() => [
510
550
  { no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
511
551
  { no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
@@ -516,31 +556,31 @@ class SaleReceipt extends protobuf_1.Message {
516
556
  { no: 9, name: "vault_folder_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
517
557
  { no: 10, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
518
558
  { no: 11, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
519
- { no: 12, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
559
+ { no: 12, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_REF_FROM) },
520
560
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
521
561
  { no: 14, name: "client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
522
562
  { no: 15, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
523
563
  { no: 16, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
524
- { no: 17, name: "transaction_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
564
+ { no: 17, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
525
565
  { no: 18, name: "amount_base", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
526
566
  { no: 19, name: "amount_net", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
527
567
  { no: 20, name: "payment_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
528
568
  { no: 21, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
529
569
  ]);
530
570
  static fromBinary(bytes, options) {
531
- return new SaleReceipt().fromBinary(bytes, options);
571
+ return new SalesReceipt().fromBinary(bytes, options);
532
572
  }
533
573
  static fromJson(jsonValue, options) {
534
- return new SaleReceipt().fromJson(jsonValue, options);
574
+ return new SalesReceipt().fromJson(jsonValue, options);
535
575
  }
536
576
  static fromJsonString(jsonString, options) {
537
- return new SaleReceipt().fromJsonString(jsonString, options);
577
+ return new SalesReceipt().fromJsonString(jsonString, options);
538
578
  }
539
579
  static equals(a, b) {
540
- return protobuf_1.proto3.util.equals(SaleReceipt, a, b);
580
+ return protobuf_1.proto3.util.equals(SalesReceipt, a, b);
541
581
  }
542
582
  }
543
- exports.SaleReceipt = SaleReceipt;
583
+ exports.SalesReceipt = SalesReceipt;
544
584
  /**
545
585
  *
546
586
  * Describes the message consisting of the list of records
@@ -551,7 +591,7 @@ class SalesReceiptsList extends protobuf_1.Message {
551
591
  /**
552
592
  * List of records
553
593
  *
554
- * @generated from field: repeated Scailo.SaleReceipt list = 1;
594
+ * @generated from field: repeated Scailo.SalesReceipt list = 1;
555
595
  */
556
596
  list = [];
557
597
  constructor(data) {
@@ -561,7 +601,7 @@ class SalesReceiptsList extends protobuf_1.Message {
561
601
  static runtime = protobuf_1.proto3;
562
602
  static typeName = "Scailo.SalesReceiptsList";
563
603
  static fields = protobuf_1.proto3.util.newFieldList(() => [
564
- { no: 1, name: "list", kind: "message", T: SaleReceipt, repeated: true },
604
+ { no: 1, name: "list", kind: "message", T: SalesReceipt, repeated: true },
565
605
  ]);
566
606
  static fromBinary(bytes, options) {
567
607
  return new SalesReceiptsList().fromBinary(bytes, options);
@@ -611,9 +651,9 @@ class SalesReceiptsServicePaginationReq extends protobuf_1.Message {
611
651
  /**
612
652
  * The sort key that is to be used to fetch the pagination response
613
653
  *
614
- * @generated from field: Scailo.SALE_RECEIPT_SORT_KEY sort_key = 5;
654
+ * @generated from field: Scailo.SALES_RECEIPT_SORT_KEY sort_key = 5;
615
655
  */
616
- sortKey = SALE_RECEIPT_SORT_KEY.SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED;
656
+ sortKey = SALES_RECEIPT_SORT_KEY.SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED;
617
657
  /**
618
658
  * The status of this sales receipt
619
659
  *
@@ -631,7 +671,7 @@ class SalesReceiptsServicePaginationReq extends protobuf_1.Message {
631
671
  { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
632
672
  { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
633
673
  { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
634
- { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SALE_RECEIPT_SORT_KEY) },
674
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_SORT_KEY) },
635
675
  { no: 6, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
636
676
  ]);
637
677
  static fromBinary(bytes, options) {
@@ -676,7 +716,7 @@ class SalesReceiptsServicePaginationResponse extends protobuf_1.Message {
676
716
  /**
677
717
  * The list of records
678
718
  *
679
- * @generated from field: repeated Scailo.SaleReceipt payload = 4;
719
+ * @generated from field: repeated Scailo.SalesReceipt payload = 4;
680
720
  */
681
721
  payload = [];
682
722
  constructor(data) {
@@ -689,7 +729,7 @@ class SalesReceiptsServicePaginationResponse extends protobuf_1.Message {
689
729
  { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
690
730
  { no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
691
731
  { no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
692
- { no: 4, name: "payload", kind: "message", T: SaleReceipt, repeated: true },
732
+ { no: 4, name: "payload", kind: "message", T: SalesReceipt, repeated: true },
693
733
  ]);
694
734
  static fromBinary(bytes, options) {
695
735
  return new SalesReceiptsServicePaginationResponse().fromBinary(bytes, options);
@@ -739,9 +779,9 @@ class SalesReceiptsServiceFilterReq extends protobuf_1.Message {
739
779
  /**
740
780
  * The sort key that is to be used to fetch the pagination response
741
781
  *
742
- * @generated from field: Scailo.SALE_RECEIPT_SORT_KEY sort_key = 5;
782
+ * @generated from field: Scailo.SALES_RECEIPT_SORT_KEY sort_key = 5;
743
783
  */
744
- sortKey = SALE_RECEIPT_SORT_KEY.SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED;
784
+ sortKey = SALES_RECEIPT_SORT_KEY.SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED;
745
785
  /**
746
786
  * The minimum timestamp that needs to be considered to filter by creation
747
787
  *
@@ -829,9 +869,9 @@ class SalesReceiptsServiceFilterReq extends protobuf_1.Message {
829
869
  /**
830
870
  * The reference on which the sales receipt has been created
831
871
  *
832
- * @generated from field: string ref_from = 22;
872
+ * @generated from field: Scailo.SALES_RECEIPT_REF_FROM ref_from = 22;
833
873
  */
834
- refFrom = "";
874
+ refFrom = SALES_RECEIPT_REF_FROM.SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED;
835
875
  /**
836
876
  * The ID of the associated reference
837
877
  *
@@ -859,9 +899,9 @@ class SalesReceiptsServiceFilterReq extends protobuf_1.Message {
859
899
  /**
860
900
  * The type of the transaction
861
901
  *
862
- * @generated from field: string transaction_type = 27;
902
+ * @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 27;
863
903
  */
864
- transactionType = "";
904
+ transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
865
905
  /**
866
906
  * The start range of the payment timestamp
867
907
  *
@@ -885,7 +925,7 @@ class SalesReceiptsServiceFilterReq extends protobuf_1.Message {
885
925
  { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
886
926
  { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
887
927
  { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
888
- { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SALE_RECEIPT_SORT_KEY) },
928
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_SORT_KEY) },
889
929
  { no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
890
930
  { no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
891
931
  { no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
@@ -900,12 +940,12 @@ class SalesReceiptsServiceFilterReq extends protobuf_1.Message {
900
940
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
901
941
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
902
942
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
903
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
943
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_REF_FROM) },
904
944
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
905
945
  { no: 24, name: "client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
906
946
  { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
907
947
  { no: 26, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
908
- { no: 27, name: "transaction_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
948
+ { no: 27, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
909
949
  { no: 28, name: "payment_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
910
950
  { no: 29, name: "payment_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
911
951
  ]);
@@ -1023,9 +1063,9 @@ class SalesReceiptsServiceCountReq extends protobuf_1.Message {
1023
1063
  /**
1024
1064
  * The reference on which the sales receipt has been created
1025
1065
  *
1026
- * @generated from field: string ref_from = 22;
1066
+ * @generated from field: Scailo.SALES_RECEIPT_REF_FROM ref_from = 22;
1027
1067
  */
1028
- refFrom = "";
1068
+ refFrom = SALES_RECEIPT_REF_FROM.SALES_RECEIPT_REF_FROM_ANY_UNSPECIFIED;
1029
1069
  /**
1030
1070
  * The ID of the associated reference
1031
1071
  *
@@ -1053,9 +1093,9 @@ class SalesReceiptsServiceCountReq extends protobuf_1.Message {
1053
1093
  /**
1054
1094
  * The type of the transaction
1055
1095
  *
1056
- * @generated from field: string transaction_type = 27;
1096
+ * @generated from field: Scailo.TRANSACTION_TYPE transaction_type = 27;
1057
1097
  */
1058
- transactionType = "";
1098
+ transactionType = base_scailo_pb_js_1.TRANSACTION_TYPE.TRANSACTION_TYPE_ANY_UNSPECIFIED;
1059
1099
  /**
1060
1100
  * The start range of the payment timestamp
1061
1101
  *
@@ -1090,12 +1130,12 @@ class SalesReceiptsServiceCountReq extends protobuf_1.Message {
1090
1130
  { no: 16, name: "completed_on_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1091
1131
  { no: 20, name: "reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1092
1132
  { no: 21, name: "final_ref_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1093
- { no: 22, name: "ref_from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1133
+ { no: 22, name: "ref_from", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_REF_FROM) },
1094
1134
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1095
1135
  { no: 24, name: "client_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1096
1136
  { no: 25, name: "bank_account_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1097
1137
  { no: 26, name: "currency_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1098
- { no: 27, name: "transaction_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1138
+ { no: 27, name: "transaction_type", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.TRANSACTION_TYPE) },
1099
1139
  { no: 28, name: "payment_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1100
1140
  { no: 29, name: "payment_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1101
1141
  ]);
@@ -1147,9 +1187,9 @@ class SalesReceiptsServiceSearchAllReq extends protobuf_1.Message {
1147
1187
  /**
1148
1188
  * The sort key that is to be used to fetch the pagination response
1149
1189
  *
1150
- * @generated from field: Scailo.SALE_RECEIPT_SORT_KEY sort_key = 5;
1190
+ * @generated from field: Scailo.SALES_RECEIPT_SORT_KEY sort_key = 5;
1151
1191
  */
1152
- sortKey = SALE_RECEIPT_SORT_KEY.SALE_RECEIPT_SORT_KEY_ID_UNSPECIFIED;
1192
+ sortKey = SALES_RECEIPT_SORT_KEY.SALES_RECEIPT_SORT_KEY_ID_UNSPECIFIED;
1153
1193
  /**
1154
1194
  * The entity UUID that is to be used to filter records
1155
1195
  *
@@ -1192,7 +1232,7 @@ class SalesReceiptsServiceSearchAllReq extends protobuf_1.Message {
1192
1232
  { no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1193
1233
  { no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1194
1234
  { no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
1195
- { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SALE_RECEIPT_SORT_KEY) },
1235
+ { no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(SALES_RECEIPT_SORT_KEY) },
1196
1236
  { no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1197
1237
  { no: 10, name: "status", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.STANDARD_LIFECYCLE_STATUS) },
1198
1238
  { no: 11, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -940,6 +940,32 @@ export declare enum AMENDMENT_LOG_REF_FOR {
940
940
  */
941
941
  AMENDMENT_LOG_REF_FOR_EQUATION_WORK_ORDER = 100
942
942
  }
943
+ /**
944
+ *
945
+ * Stores all the possible references of a transaction type
946
+ *
947
+ * @generated from enum Scailo.TRANSACTION_TYPE
948
+ */
949
+ export declare enum TRANSACTION_TYPE {
950
+ /**
951
+ * Only used for filter operations
952
+ *
953
+ * @generated from enum value: TRANSACTION_TYPE_ANY_UNSPECIFIED = 0;
954
+ */
955
+ TRANSACTION_TYPE_ANY_UNSPECIFIED = 0,
956
+ /**
957
+ * Denotes a credit
958
+ *
959
+ * @generated from enum value: TRANSACTION_TYPE_CREDIT = 1;
960
+ */
961
+ TRANSACTION_TYPE_CREDIT = 1,
962
+ /**
963
+ * Denotes a debit
964
+ *
965
+ * @generated from enum value: TRANSACTION_TYPE_DEBIT = 2;
966
+ */
967
+ TRANSACTION_TYPE_DEBIT = 2
968
+ }
943
969
  /**
944
970
  *
945
971
  * Describes an empty object