@kernelminds/scailo-sdk 0.1.15 → 0.1.17

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 (49) hide show
  1. package/lib/cjs/src/base.scailo_pb.js +35 -2
  2. package/lib/cjs/src/equations_families.scailo_connect.js +11 -0
  3. package/lib/cjs/src/inventory.scailo_connect.js +12 -1
  4. package/lib/cjs/src/inventory.scailo_pb.js +34 -1
  5. package/lib/cjs/src/purchases_payments.scailo_connect.js +32 -1
  6. package/lib/cjs/src/purchases_payments.scailo_pb.js +68 -28
  7. package/lib/cjs/src/sales_receipts.scailo_connect.js +37 -6
  8. package/lib/cjs/src/sales_receipts.scailo_pb.js +137 -97
  9. package/lib/cjs/types/src/base.scailo_pb.d.ts +26 -0
  10. package/lib/cjs/types/src/base.scailo_pb.d.ts.map +1 -1
  11. package/lib/cjs/types/src/equations_families.scailo_connect.d.ts +11 -0
  12. package/lib/cjs/types/src/equations_families.scailo_connect.d.ts.map +1 -1
  13. package/lib/cjs/types/src/inventory.scailo_connect.d.ts +14 -3
  14. package/lib/cjs/types/src/inventory.scailo_connect.d.ts.map +1 -1
  15. package/lib/cjs/types/src/inventory.scailo_pb.d.ts +19 -0
  16. package/lib/cjs/types/src/inventory.scailo_pb.d.ts.map +1 -1
  17. package/lib/cjs/types/src/purchases_payments.scailo_connect.d.ts +33 -2
  18. package/lib/cjs/types/src/purchases_payments.scailo_connect.d.ts.map +1 -1
  19. package/lib/cjs/types/src/purchases_payments.scailo_pb.d.ts +51 -19
  20. package/lib/cjs/types/src/purchases_payments.scailo_pb.d.ts.map +1 -1
  21. package/lib/cjs/types/src/sales_receipts.scailo_connect.d.ts +39 -8
  22. package/lib/cjs/types/src/sales_receipts.scailo_connect.d.ts.map +1 -1
  23. package/lib/cjs/types/src/sales_receipts.scailo_pb.d.ts +99 -67
  24. package/lib/cjs/types/src/sales_receipts.scailo_pb.d.ts.map +1 -1
  25. package/lib/esm/src/base.scailo_pb.js +35 -2
  26. package/lib/esm/src/equations_families.scailo_connect.js +11 -0
  27. package/lib/esm/src/inventory.scailo_connect.js +12 -1
  28. package/lib/esm/src/inventory.scailo_pb.js +34 -1
  29. package/lib/esm/src/purchases_payments.scailo_connect.js +32 -1
  30. package/lib/esm/src/purchases_payments.scailo_pb.js +68 -28
  31. package/lib/esm/src/sales_receipts.scailo_connect.js +37 -6
  32. package/lib/esm/src/sales_receipts.scailo_pb.js +134 -94
  33. package/lib/esm/types/src/base.scailo_pb.d.ts +26 -0
  34. package/lib/esm/types/src/base.scailo_pb.d.ts.map +1 -1
  35. package/lib/esm/types/src/equations_families.scailo_connect.d.ts +11 -0
  36. package/lib/esm/types/src/equations_families.scailo_connect.d.ts.map +1 -1
  37. package/lib/esm/types/src/inventory.scailo_connect.d.ts +14 -3
  38. package/lib/esm/types/src/inventory.scailo_connect.d.ts.map +1 -1
  39. package/lib/esm/types/src/inventory.scailo_pb.d.ts +19 -0
  40. package/lib/esm/types/src/inventory.scailo_pb.d.ts.map +1 -1
  41. package/lib/esm/types/src/purchases_payments.scailo_connect.d.ts +33 -2
  42. package/lib/esm/types/src/purchases_payments.scailo_connect.d.ts.map +1 -1
  43. package/lib/esm/types/src/purchases_payments.scailo_pb.d.ts +51 -19
  44. package/lib/esm/types/src/purchases_payments.scailo_pb.d.ts.map +1 -1
  45. package/lib/esm/types/src/sales_receipts.scailo_connect.d.ts +39 -8
  46. package/lib/esm/types/src/sales_receipts.scailo_connect.d.ts.map +1 -1
  47. package/lib/esm/types/src/sales_receipts.scailo_pb.d.ts +99 -67
  48. package/lib/esm/types/src/sales_receipts.scailo_pb.d.ts.map +1 -1
  49. package/package.json +1 -1
@@ -243,7 +243,7 @@ exports.InventoryService = {
243
243
  kind: protobuf_1.MethodKind.Unary,
244
244
  },
245
245
  /**
246
- * View consolidated inventory statistics
246
+ * View consolidated inventory statistics for family with the given Identifier
247
247
  *
248
248
  * @generated from rpc Scailo.InventoryService.ViewConsolidatedStatistics
249
249
  */
@@ -253,6 +253,17 @@ exports.InventoryService = {
253
253
  O: inventory_scailo_pb_js_1.ConsolidatedInventoryStatistics,
254
254
  kind: protobuf_1.MethodKind.Unary,
255
255
  },
256
+ /**
257
+ * View consolidated inventory statistics for families with the given IdentifiersList
258
+ *
259
+ * @generated from rpc Scailo.InventoryService.ViewConsolidatedStatisticsForFamilies
260
+ */
261
+ viewConsolidatedStatisticsForFamilies: {
262
+ name: "ViewConsolidatedStatisticsForFamilies",
263
+ I: base_scailo_pb_js_1.IdentifiersList,
264
+ O: inventory_scailo_pb_js_1.ConsolidatedInventoryStatisticsList,
265
+ kind: protobuf_1.MethodKind.Unary,
266
+ },
256
267
  /**
257
268
  * View inventory placed in storage represented by the Identifier
258
269
  *
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.InventoryDemand = exports.InventoryDemandMap = exports.InventoryDetailedDemand = exports.InventoryOrderedStatistics = exports.InventoryIndentedStatistics = exports.InventoryWorkInProgressStatistics = exports.AbridgedPurchaseReturnItem = exports.AbridgedGoodsReceiptItem = exports.AbridgedPurchaseOrderItem = exports.AbridgedPurchaseIndentItem = exports.AbridgedInventoryItem = exports.AbridgedProductionPlanItem = exports.ConsolidatedInventoryStatistics = exports.FilterReturnableInventoryForIdentifierUUID = exports.FilterReturnableInventoryReq = exports.SearchReturnableInventoryForIdentifierUUID = exports.SearchReturnableInventoryReq = exports.ReturnableInventorySearchReq = exports.InventoryServiceFamilyQuantityReq = exports.InventoryHashSearchReq = exports.IssuableInventorySearchReq = exports.InventoryCodeMap = exports.GenericInventoryList = exports.GenericInventory = exports.INVENTORY_NODE_ORIGIN_TYPE = exports.GENERIC_INVENTORY_REF_FROM = void 0;
7
+ exports.InventoryDemand = exports.InventoryDemandMap = exports.InventoryDetailedDemand = exports.InventoryOrderedStatistics = exports.InventoryIndentedStatistics = exports.InventoryWorkInProgressStatistics = exports.AbridgedPurchaseReturnItem = exports.AbridgedGoodsReceiptItem = exports.AbridgedPurchaseOrderItem = exports.AbridgedPurchaseIndentItem = exports.AbridgedInventoryItem = exports.AbridgedProductionPlanItem = exports.ConsolidatedInventoryStatisticsList = exports.ConsolidatedInventoryStatistics = exports.FilterReturnableInventoryForIdentifierUUID = exports.FilterReturnableInventoryReq = exports.SearchReturnableInventoryForIdentifierUUID = exports.SearchReturnableInventoryReq = exports.ReturnableInventorySearchReq = exports.InventoryServiceFamilyQuantityReq = exports.InventoryHashSearchReq = exports.IssuableInventorySearchReq = exports.InventoryCodeMap = exports.GenericInventoryList = exports.GenericInventory = exports.INVENTORY_NODE_ORIGIN_TYPE = exports.GENERIC_INVENTORY_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
10
  const families_scailo_pb_js_1 = require("./families.scailo_pb.js");
@@ -1290,6 +1290,39 @@ class ConsolidatedInventoryStatistics extends protobuf_1.Message {
1290
1290
  }
1291
1291
  }
1292
1292
  exports.ConsolidatedInventoryStatistics = ConsolidatedInventoryStatistics;
1293
+ /**
1294
+ * @generated from message Scailo.ConsolidatedInventoryStatisticsList
1295
+ */
1296
+ class ConsolidatedInventoryStatisticsList extends protobuf_1.Message {
1297
+ /**
1298
+ * The list of records
1299
+ *
1300
+ * @generated from field: repeated Scailo.ConsolidatedInventoryStatistics list = 1;
1301
+ */
1302
+ list = [];
1303
+ constructor(data) {
1304
+ super();
1305
+ protobuf_1.proto3.util.initPartial(data, this);
1306
+ }
1307
+ static runtime = protobuf_1.proto3;
1308
+ static typeName = "Scailo.ConsolidatedInventoryStatisticsList";
1309
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1310
+ { no: 1, name: "list", kind: "message", T: ConsolidatedInventoryStatistics, repeated: true },
1311
+ ]);
1312
+ static fromBinary(bytes, options) {
1313
+ return new ConsolidatedInventoryStatisticsList().fromBinary(bytes, options);
1314
+ }
1315
+ static fromJson(jsonValue, options) {
1316
+ return new ConsolidatedInventoryStatisticsList().fromJson(jsonValue, options);
1317
+ }
1318
+ static fromJsonString(jsonString, options) {
1319
+ return new ConsolidatedInventoryStatisticsList().fromJsonString(jsonString, options);
1320
+ }
1321
+ static equals(a, b) {
1322
+ return protobuf_1.proto3.util.equals(ConsolidatedInventoryStatisticsList, a, b);
1323
+ }
1324
+ }
1325
+ exports.ConsolidatedInventoryStatisticsList = ConsolidatedInventoryStatisticsList;
1293
1326
  /**
1294
1327
  *
1295
1328
  * Describes the abridged version of each production plan item
@@ -174,7 +174,16 @@ exports.PurchasesPaymentsService = {
174
174
  },
175
175
  /**
176
176
  * Send Email
177
- * rpc SendEmail (Identifier) returns (IdentifierResponse);
177
+ *
178
+ * @generated from rpc Scailo.PurchasesPaymentsService.SendEmail
179
+ */
180
+ sendEmail: {
181
+ name: "SendEmail",
182
+ I: base_scailo_pb_js_1.IdentifierWithEmailAttributes,
183
+ O: base_scailo_pb_js_1.IdentifierResponse,
184
+ kind: protobuf_1.MethodKind.Unary,
185
+ },
186
+ /**
178
187
  * Create a magic link
179
188
  *
180
189
  * @generated from rpc Scailo.PurchasesPaymentsService.CreateMagicLink
@@ -284,6 +293,28 @@ exports.PurchasesPaymentsService = {
284
293
  O: purchases_payments_scailo_pb_js_1.PurchasesPaymentsServicePaginationResponse,
285
294
  kind: protobuf_1.MethodKind.Unary,
286
295
  },
296
+ /**
297
+ * Checks if the record is downloadable (checks if the custom download function has been implemented)
298
+ *
299
+ * @generated from rpc Scailo.PurchasesPaymentsService.IsDownloadable
300
+ */
301
+ isDownloadable: {
302
+ name: "IsDownloadable",
303
+ I: base_scailo_pb_js_1.IdentifierUUID,
304
+ O: base_scailo_pb_js_1.BooleanResponse,
305
+ kind: protobuf_1.MethodKind.Unary,
306
+ },
307
+ /**
308
+ * Download purchase payment with the given IdentifierUUID (can be used to allow public downloads)
309
+ *
310
+ * @generated from rpc Scailo.PurchasesPaymentsService.DownloadByUUID
311
+ */
312
+ downloadByUUID: {
313
+ name: "DownloadByUUID",
314
+ I: base_scailo_pb_js_1.IdentifierUUID,
315
+ O: base_scailo_pb_js_1.StandardFile,
316
+ kind: protobuf_1.MethodKind.Unary,
317
+ },
287
318
  /**
288
319
  * View all that match the given search key
289
320
  *
@@ -4,9 +4,49 @@
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.PurchasesPaymentsServiceSearchAllReq = exports.PurchasesPaymentsServiceCountReq = exports.PurchasesPaymentsServiceFilterReq = exports.PurchasesPaymentsServicePaginationResponse = exports.PurchasesPaymentsServicePaginationReq = exports.PurchasesPaymentsList = exports.PurchasePayment = exports.PurchasePaymentAncillaryParameters = exports.PurchasesPaymentsServiceUpdateRequest = exports.PurchasesPaymentsServiceCreateRequest = exports.PURCHASE_PAYMENT_SORT_KEY = void 0;
7
+ exports.PurchasesPaymentsServiceSearchAllReq = exports.PurchasesPaymentsServiceCountReq = exports.PurchasesPaymentsServiceFilterReq = exports.PurchasesPaymentsServicePaginationResponse = exports.PurchasesPaymentsServicePaginationReq = exports.PurchasesPaymentsList = exports.PurchasePayment = exports.PurchasePaymentAncillaryParameters = exports.PurchasesPaymentsServiceUpdateRequest = exports.PurchasesPaymentsServiceCreateRequest = exports.PURCHASE_PAYMENT_SORT_KEY = exports.PURCHASE_PAYMENT_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 purchase payment can be added
13
+ *
14
+ * @generated from enum Scailo.PURCHASE_PAYMENT_REF_FROM
15
+ */
16
+ var PURCHASE_PAYMENT_REF_FROM;
17
+ (function (PURCHASE_PAYMENT_REF_FROM) {
18
+ /**
19
+ * Used only in filters
20
+ *
21
+ * @generated from enum value: PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED = 0;
22
+ */
23
+ PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED"] = 0] = "PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED";
24
+ /**
25
+ * Denotes that the purchase payment originated from a purchase order
26
+ *
27
+ * @generated from enum value: PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER = 1;
28
+ */
29
+ PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER"] = 1] = "PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER";
30
+ /**
31
+ * Denotes that the purchase payment originated from a vendor invoice
32
+ *
33
+ * @generated from enum value: PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE = 2;
34
+ */
35
+ PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE"] = 2] = "PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE";
36
+ /**
37
+ * Denotes that the purchase payment originated from a debit note
38
+ *
39
+ * @generated from enum value: PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE = 3;
40
+ */
41
+ PURCHASE_PAYMENT_REF_FROM[PURCHASE_PAYMENT_REF_FROM["PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE"] = 3] = "PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE";
42
+ })(PURCHASE_PAYMENT_REF_FROM || (exports.PURCHASE_PAYMENT_REF_FROM = PURCHASE_PAYMENT_REF_FROM = {}));
43
+ // Retrieve enum metadata with: proto3.getEnumType(PURCHASE_PAYMENT_REF_FROM)
44
+ protobuf_1.proto3.util.setEnumType(PURCHASE_PAYMENT_REF_FROM, "Scailo.PURCHASE_PAYMENT_REF_FROM", [
45
+ { no: 0, name: "PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED" },
46
+ { no: 1, name: "PURCHASE_PAYMENT_REF_FROM_PURCHASE_ORDER" },
47
+ { no: 2, name: "PURCHASE_PAYMENT_REF_FROM_VENDOR_INVOICE" },
48
+ { no: 3, name: "PURCHASE_PAYMENT_REF_FROM_DEBIT_NOTE" },
49
+ ]);
10
50
  /**
11
51
  *
12
52
  * Describes the available sort keys
@@ -123,9 +163,9 @@ class PurchasesPaymentsServiceCreateRequest extends protobuf_1.Message {
123
163
  /**
124
164
  * The reference on which the purchase payment has been created
125
165
  *
126
- * @generated from field: string ref_from = 12;
166
+ * @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 12;
127
167
  */
128
- refFrom = "";
168
+ refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
129
169
  /**
130
170
  * The ID of the associated reference
131
171
  *
@@ -147,9 +187,9 @@ class PurchasesPaymentsServiceCreateRequest 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 PurchasesPaymentsServiceCreateRequest 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(PURCHASE_PAYMENT_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 PurchasesPaymentsServiceUpdateRequest 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 PurchasesPaymentsServiceUpdateRequest 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 */ },
@@ -443,9 +483,9 @@ class PurchasePayment extends protobuf_1.Message {
443
483
  /**
444
484
  * The reference on which the purchase payment has been created
445
485
  *
446
- * @generated from field: string ref_from = 12;
486
+ * @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 12;
447
487
  */
448
- refFrom = "";
488
+ refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
449
489
  /**
450
490
  * The ID of the associated reference
451
491
  *
@@ -473,9 +513,9 @@ class PurchasePayment 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
  *
@@ -516,12 +556,12 @@ class PurchasePayment 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(PURCHASE_PAYMENT_REF_FROM) },
520
560
  { no: 13, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
521
561
  { no: 14, name: "vendor_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 */ },
@@ -829,9 +869,9 @@ class PurchasesPaymentsServiceFilterReq extends protobuf_1.Message {
829
869
  /**
830
870
  * The reference on which the purchase payment has been created
831
871
  *
832
- * @generated from field: string ref_from = 22;
872
+ * @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 22;
833
873
  */
834
- refFrom = "";
874
+ refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
835
875
  /**
836
876
  * The ID of the associated reference
837
877
  *
@@ -859,9 +899,9 @@ class PurchasesPaymentsServiceFilterReq 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
  *
@@ -900,12 +940,12 @@ class PurchasesPaymentsServiceFilterReq 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(PURCHASE_PAYMENT_REF_FROM) },
904
944
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
905
945
  { no: 24, name: "vendor_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 PurchasesPaymentsServiceCountReq extends protobuf_1.Message {
1023
1063
  /**
1024
1064
  * The reference on which the purchase payment has been created
1025
1065
  *
1026
- * @generated from field: string ref_from = 22;
1066
+ * @generated from field: Scailo.PURCHASE_PAYMENT_REF_FROM ref_from = 22;
1027
1067
  */
1028
- refFrom = "";
1068
+ refFrom = PURCHASE_PAYMENT_REF_FROM.PURCHASE_PAYMENT_REF_FROM_ANY_UNSPECIFIED;
1029
1069
  /**
1030
1070
  * The ID of the associated reference
1031
1071
  *
@@ -1053,9 +1093,9 @@ class PurchasesPaymentsServiceCountReq 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 PurchasesPaymentsServiceCountReq 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(PURCHASE_PAYMENT_REF_FROM) },
1094
1134
  { no: 23, name: "ref_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1095
1135
  { no: 24, name: "vendor_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
  ]);
@@ -174,7 +174,16 @@ exports.SalesReceiptsService = {
174
174
  },
175
175
  /**
176
176
  * Send Email
177
- * rpc SendEmail (Identifier) returns (IdentifierResponse);
177
+ *
178
+ * @generated from rpc Scailo.SalesReceiptsService.SendEmail
179
+ */
180
+ sendEmail: {
181
+ name: "SendEmail",
182
+ I: base_scailo_pb_js_1.IdentifierWithEmailAttributes,
183
+ O: base_scailo_pb_js_1.IdentifierResponse,
184
+ kind: protobuf_1.MethodKind.Unary,
185
+ },
186
+ /**
178
187
  * Create a magic link
179
188
  *
180
189
  * @generated from rpc Scailo.SalesReceiptsService.CreateMagicLink
@@ -193,7 +202,7 @@ exports.SalesReceiptsService = {
193
202
  viewByID: {
194
203
  name: "ViewByID",
195
204
  I: base_scailo_pb_js_1.Identifier,
196
- O: sales_receipts_scailo_pb_js_1.SaleReceipt,
205
+ O: sales_receipts_scailo_pb_js_1.SalesReceipt,
197
206
  kind: protobuf_1.MethodKind.Unary,
198
207
  },
199
208
  /**
@@ -204,7 +213,7 @@ exports.SalesReceiptsService = {
204
213
  viewByUUID: {
205
214
  name: "ViewByUUID",
206
215
  I: base_scailo_pb_js_1.IdentifierUUID,
207
- O: sales_receipts_scailo_pb_js_1.SaleReceipt,
216
+ O: sales_receipts_scailo_pb_js_1.SalesReceipt,
208
217
  kind: protobuf_1.MethodKind.Unary,
209
218
  },
210
219
  /**
@@ -215,7 +224,7 @@ exports.SalesReceiptsService = {
215
224
  viewEssentialByID: {
216
225
  name: "ViewEssentialByID",
217
226
  I: base_scailo_pb_js_1.Identifier,
218
- O: sales_receipts_scailo_pb_js_1.SaleReceipt,
227
+ O: sales_receipts_scailo_pb_js_1.SalesReceipt,
219
228
  kind: protobuf_1.MethodKind.Unary,
220
229
  },
221
230
  /**
@@ -226,7 +235,7 @@ exports.SalesReceiptsService = {
226
235
  viewEssentialByUUID: {
227
236
  name: "ViewEssentialByUUID",
228
237
  I: base_scailo_pb_js_1.IdentifierUUID,
229
- O: sales_receipts_scailo_pb_js_1.SaleReceipt,
238
+ O: sales_receipts_scailo_pb_js_1.SalesReceipt,
230
239
  kind: protobuf_1.MethodKind.Unary,
231
240
  },
232
241
  /**
@@ -248,7 +257,7 @@ exports.SalesReceiptsService = {
248
257
  viewAncillaryParametersByUUID: {
249
258
  name: "ViewAncillaryParametersByUUID",
250
259
  I: base_scailo_pb_js_1.IdentifierUUID,
251
- O: sales_receipts_scailo_pb_js_1.SaleReceiptAncillaryParameters,
260
+ O: sales_receipts_scailo_pb_js_1.SalesReceiptAncillaryParameters,
252
261
  kind: protobuf_1.MethodKind.Unary,
253
262
  },
254
263
  /**
@@ -284,6 +293,28 @@ exports.SalesReceiptsService = {
284
293
  O: sales_receipts_scailo_pb_js_1.SalesReceiptsServicePaginationResponse,
285
294
  kind: protobuf_1.MethodKind.Unary,
286
295
  },
296
+ /**
297
+ * Checks if the record is downloadable (checks if the custom download function has been implemented)
298
+ *
299
+ * @generated from rpc Scailo.SalesReceiptsService.IsDownloadable
300
+ */
301
+ isDownloadable: {
302
+ name: "IsDownloadable",
303
+ I: base_scailo_pb_js_1.IdentifierUUID,
304
+ O: base_scailo_pb_js_1.BooleanResponse,
305
+ kind: protobuf_1.MethodKind.Unary,
306
+ },
307
+ /**
308
+ * Download sales receipt with the given IdentifierUUID (can be used to allow public downloads)
309
+ *
310
+ * @generated from rpc Scailo.SalesReceiptsService.DownloadByUUID
311
+ */
312
+ downloadByUUID: {
313
+ name: "DownloadByUUID",
314
+ I: base_scailo_pb_js_1.IdentifierUUID,
315
+ O: base_scailo_pb_js_1.StandardFile,
316
+ kind: protobuf_1.MethodKind.Unary,
317
+ },
287
318
  /**
288
319
  * View all that match the given search key
289
320
  *