@kernelminds/scailo-sdk 0.0.96 → 0.0.98
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.
- package/lib/cjs/index.js +34 -0
- package/lib/cjs/permissions.js +60 -38
- package/lib/cjs/src/credit_notes.scailo_connect.js +12 -0
- package/lib/cjs/src/debit_notes.scailo_connect.js +12 -0
- package/lib/cjs/src/general_settings.scailo_pb.js +14 -0
- package/lib/cjs/src/goods_dispatches.scailo_connect.js +12 -0
- package/lib/cjs/src/goods_receipts.scailo_connect.js +12 -0
- package/lib/cjs/src/inward_jobs.scailo_connect.js +12 -0
- package/lib/cjs/src/login.scailo_pb.js +7 -0
- package/lib/cjs/src/magic_links.scailo_connect.js +198 -0
- package/lib/cjs/src/magic_links.scailo_pb.js +1035 -0
- package/lib/cjs/src/outward_jobs.scailo_connect.js +12 -0
- package/lib/cjs/src/proforma_invoices.scailo_connect.js +12 -0
- package/lib/cjs/src/purchases_orders.scailo_connect.js +12 -0
- package/lib/cjs/src/purchases_returns.scailo_connect.js +12 -0
- package/lib/cjs/src/sales_enquiries.scailo_connect.js +12 -0
- package/lib/cjs/src/sales_invoices.scailo_connect.js +12 -0
- package/lib/cjs/src/sales_orders.scailo_connect.js +12 -0
- package/lib/cjs/src/sales_quotations.scailo_connect.js +12 -0
- package/lib/cjs/src/sales_returns.scailo_connect.js +12 -0
- package/lib/cjs/src/vendor_invoices.scailo_connect.js +12 -0
- package/lib/cjs/types/index.d.ts +31 -0
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/permissions.d.ts +105 -0
- package/lib/cjs/types/permissions.d.ts.map +1 -1
- package/lib/cjs/types/src/credit_notes.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/credit_notes.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/debit_notes.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/debit_notes.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/general_settings.scailo_pb.d.ts +12 -0
- package/lib/cjs/types/src/general_settings.scailo_pb.d.ts.map +1 -1
- package/lib/cjs/types/src/goods_dispatches.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/goods_dispatches.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/goods_receipts.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/goods_receipts.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/inward_jobs.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/inward_jobs.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/login.scailo_pb.d.ts +6 -0
- package/lib/cjs/types/src/login.scailo_pb.d.ts.map +1 -1
- package/lib/cjs/types/src/magic_links.scailo_connect.d.ts +192 -0
- package/lib/cjs/types/src/magic_links.scailo_connect.d.ts.map +1 -0
- package/lib/cjs/types/src/magic_links.scailo_pb.d.ts +774 -0
- package/lib/cjs/types/src/magic_links.scailo_pb.d.ts.map +1 -0
- package/lib/cjs/types/src/outward_jobs.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/outward_jobs.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/proforma_invoices.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/proforma_invoices.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/purchases_orders.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/purchases_orders.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_enquiries.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/sales_enquiries.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_invoices.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/sales_invoices.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_orders.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/sales_orders.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_quotations.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/sales_quotations.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
- package/lib/cjs/types/src/vendor_invoices.scailo_connect.d.ts +12 -0
- package/lib/cjs/types/src/vendor_invoices.scailo_connect.d.ts.map +1 -1
- package/lib/esm/index.js +34 -0
- package/lib/esm/permissions.js +60 -38
- package/lib/esm/src/credit_notes.scailo_connect.js +12 -0
- package/lib/esm/src/debit_notes.scailo_connect.js +12 -0
- package/lib/esm/src/general_settings.scailo_pb.js +14 -0
- package/lib/esm/src/goods_dispatches.scailo_connect.js +12 -0
- package/lib/esm/src/goods_receipts.scailo_connect.js +12 -0
- package/lib/esm/src/inward_jobs.scailo_connect.js +12 -0
- package/lib/esm/src/login.scailo_pb.js +7 -0
- package/lib/esm/src/magic_links.scailo_connect.js +198 -0
- package/lib/esm/src/magic_links.scailo_pb.js +1047 -0
- package/lib/esm/src/outward_jobs.scailo_connect.js +12 -0
- package/lib/esm/src/proforma_invoices.scailo_connect.js +12 -0
- package/lib/esm/src/purchases_orders.scailo_connect.js +12 -0
- package/lib/esm/src/purchases_returns.scailo_connect.js +12 -0
- package/lib/esm/src/sales_enquiries.scailo_connect.js +12 -0
- package/lib/esm/src/sales_invoices.scailo_connect.js +12 -0
- package/lib/esm/src/sales_orders.scailo_connect.js +12 -0
- package/lib/esm/src/sales_quotations.scailo_connect.js +12 -0
- package/lib/esm/src/sales_returns.scailo_connect.js +12 -0
- package/lib/esm/src/vendor_invoices.scailo_connect.js +12 -0
- package/lib/esm/types/index.d.ts +31 -0
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/permissions.d.ts +105 -0
- package/lib/esm/types/permissions.d.ts.map +1 -1
- package/lib/esm/types/src/credit_notes.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/credit_notes.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/debit_notes.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/debit_notes.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/general_settings.scailo_pb.d.ts +12 -0
- package/lib/esm/types/src/general_settings.scailo_pb.d.ts.map +1 -1
- package/lib/esm/types/src/goods_dispatches.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/goods_dispatches.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/goods_receipts.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/goods_receipts.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/inward_jobs.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/inward_jobs.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/login.scailo_pb.d.ts +6 -0
- package/lib/esm/types/src/login.scailo_pb.d.ts.map +1 -1
- package/lib/esm/types/src/magic_links.scailo_connect.d.ts +192 -0
- package/lib/esm/types/src/magic_links.scailo_connect.d.ts.map +1 -0
- package/lib/esm/types/src/magic_links.scailo_pb.d.ts +774 -0
- package/lib/esm/types/src/magic_links.scailo_pb.d.ts.map +1 -0
- package/lib/esm/types/src/outward_jobs.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/outward_jobs.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/proforma_invoices.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/proforma_invoices.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/purchases_orders.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/purchases_orders.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/purchases_returns.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/sales_enquiries.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/sales_enquiries.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/sales_invoices.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/sales_invoices.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/sales_orders.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/sales_orders.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/sales_quotations.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/sales_quotations.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/sales_returns.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/sales_returns.scailo_connect.d.ts.map +1 -1
- package/lib/esm/types/src/vendor_invoices.scailo_connect.d.ts +12 -0
- package/lib/esm/types/src/vendor_invoices.scailo_connect.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1047 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v1.5.1 with parameter "target=ts"
|
|
3
|
+
// @generated from file magic_links.scailo.proto (package Scailo, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MagicLinkAccessLogsList = exports.MagicLinkAccessLog = exports.MagicLinkServiceSearchByCodeReq = exports.MagicLinksServiceSearchAllReq = exports.MagicLinksServiceCountReq = exports.MagicLinksServiceFilterReq = exports.MagicLinksServicePaginationReq = exports.MagicLinksServiceUpdateRequest = exports.MagicLinksServiceCreateRequestForSpecificResource = exports.MagicLinksServiceCreateRequest = exports.MagicLinkPaginationResp = exports.MagicLinksList = exports.MagicLink = exports.MAGIC_LINK_SORT_KEY = exports.MAGIC_LINK_RESOURCE_TYPE = void 0;
|
|
8
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
|
+
const base_scailo_pb_js_1 = require("./base.scailo_pb.js");
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Describes the available resource types magic links
|
|
13
|
+
*
|
|
14
|
+
* @generated from enum Scailo.MAGIC_LINK_RESOURCE_TYPE
|
|
15
|
+
*/
|
|
16
|
+
var MAGIC_LINK_RESOURCE_TYPE;
|
|
17
|
+
(function (MAGIC_LINK_RESOURCE_TYPE) {
|
|
18
|
+
/**
|
|
19
|
+
* Used only in filters
|
|
20
|
+
*
|
|
21
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED = 0;
|
|
22
|
+
*/
|
|
23
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED"] = 0] = "MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED";
|
|
24
|
+
/**
|
|
25
|
+
* Denotes that the magic link was created for a purchase order
|
|
26
|
+
*
|
|
27
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_PURCHASE_ORDER = 100;
|
|
28
|
+
*/
|
|
29
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_PURCHASE_ORDER"] = 100] = "MAGIC_LINK_RESOURCE_TYPE_PURCHASE_ORDER";
|
|
30
|
+
/**
|
|
31
|
+
* Denotes that the magic link was created for a goods receipt
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_GOODS_RECEIPT = 110;
|
|
34
|
+
*/
|
|
35
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_GOODS_RECEIPT"] = 110] = "MAGIC_LINK_RESOURCE_TYPE_GOODS_RECEIPT";
|
|
36
|
+
/**
|
|
37
|
+
* Denotes that the magic link was created for a vendor invoice
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_VENDOR_INVOICE = 120;
|
|
40
|
+
*/
|
|
41
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_VENDOR_INVOICE"] = 120] = "MAGIC_LINK_RESOURCE_TYPE_VENDOR_INVOICE";
|
|
42
|
+
/**
|
|
43
|
+
* Denotes that the magic link was created for a debit note
|
|
44
|
+
*
|
|
45
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_DEBIT_NOTE = 130;
|
|
46
|
+
*/
|
|
47
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_DEBIT_NOTE"] = 130] = "MAGIC_LINK_RESOURCE_TYPE_DEBIT_NOTE";
|
|
48
|
+
/**
|
|
49
|
+
* Denotes that the magic link was created for a purchase return
|
|
50
|
+
*
|
|
51
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_PURCHASE_RETURN = 140;
|
|
52
|
+
*/
|
|
53
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_PURCHASE_RETURN"] = 140] = "MAGIC_LINK_RESOURCE_TYPE_PURCHASE_RETURN";
|
|
54
|
+
/**
|
|
55
|
+
* Denotes that the magic link was created for a sales enquiry
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_ENQUIRY = 200;
|
|
58
|
+
*/
|
|
59
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_SALES_ENQUIRY"] = 200] = "MAGIC_LINK_RESOURCE_TYPE_SALES_ENQUIRY";
|
|
60
|
+
/**
|
|
61
|
+
* Denotes that the magic link was created for a sales quotation;
|
|
62
|
+
*
|
|
63
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_QUOTATION = 205;
|
|
64
|
+
*/
|
|
65
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_SALES_QUOTATION"] = 205] = "MAGIC_LINK_RESOURCE_TYPE_SALES_QUOTATION";
|
|
66
|
+
/**
|
|
67
|
+
* Denotes that the magic link was created for a sales order
|
|
68
|
+
*
|
|
69
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_ORDER = 210;
|
|
70
|
+
*/
|
|
71
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_SALES_ORDER"] = 210] = "MAGIC_LINK_RESOURCE_TYPE_SALES_ORDER";
|
|
72
|
+
/**
|
|
73
|
+
* Denotes that the magic link was created for a goods dispatch
|
|
74
|
+
*
|
|
75
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_GOODS_DISPATCH = 220;
|
|
76
|
+
*/
|
|
77
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_GOODS_DISPATCH"] = 220] = "MAGIC_LINK_RESOURCE_TYPE_GOODS_DISPATCH";
|
|
78
|
+
/**
|
|
79
|
+
* Denotes that the magic link was created for a proforma invoice
|
|
80
|
+
*
|
|
81
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_PROFORMA_INVOICE = 225;
|
|
82
|
+
*/
|
|
83
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_PROFORMA_INVOICE"] = 225] = "MAGIC_LINK_RESOURCE_TYPE_PROFORMA_INVOICE";
|
|
84
|
+
/**
|
|
85
|
+
* Denotes that the magic link was created for a sales invoice
|
|
86
|
+
*
|
|
87
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_INVOICE = 230;
|
|
88
|
+
*/
|
|
89
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_SALES_INVOICE"] = 230] = "MAGIC_LINK_RESOURCE_TYPE_SALES_INVOICE";
|
|
90
|
+
/**
|
|
91
|
+
* Denotes that the magic link was created for a credit note
|
|
92
|
+
*
|
|
93
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_CREDIT_NOTE = 240;
|
|
94
|
+
*/
|
|
95
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_CREDIT_NOTE"] = 240] = "MAGIC_LINK_RESOURCE_TYPE_CREDIT_NOTE";
|
|
96
|
+
/**
|
|
97
|
+
* Denotes that the magic link was created for a sales return
|
|
98
|
+
*
|
|
99
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_SALES_RETURN = 250;
|
|
100
|
+
*/
|
|
101
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_SALES_RETURN"] = 250] = "MAGIC_LINK_RESOURCE_TYPE_SALES_RETURN";
|
|
102
|
+
/**
|
|
103
|
+
* Denotes that the magic link was created for an inward job
|
|
104
|
+
*
|
|
105
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_INWARD_JOB = 300;
|
|
106
|
+
*/
|
|
107
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_INWARD_JOB"] = 300] = "MAGIC_LINK_RESOURCE_TYPE_INWARD_JOB";
|
|
108
|
+
/**
|
|
109
|
+
* Denotes that the magic link was created for an outward job
|
|
110
|
+
*
|
|
111
|
+
* @generated from enum value: MAGIC_LINK_RESOURCE_TYPE_OUTWARD_JOB = 400;
|
|
112
|
+
*/
|
|
113
|
+
MAGIC_LINK_RESOURCE_TYPE[MAGIC_LINK_RESOURCE_TYPE["MAGIC_LINK_RESOURCE_TYPE_OUTWARD_JOB"] = 400] = "MAGIC_LINK_RESOURCE_TYPE_OUTWARD_JOB";
|
|
114
|
+
})(MAGIC_LINK_RESOURCE_TYPE || (exports.MAGIC_LINK_RESOURCE_TYPE = MAGIC_LINK_RESOURCE_TYPE = {}));
|
|
115
|
+
// Retrieve enum metadata with: proto3.getEnumType(MAGIC_LINK_RESOURCE_TYPE)
|
|
116
|
+
protobuf_1.proto3.util.setEnumType(MAGIC_LINK_RESOURCE_TYPE, "Scailo.MAGIC_LINK_RESOURCE_TYPE", [
|
|
117
|
+
{ no: 0, name: "MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED" },
|
|
118
|
+
{ no: 100, name: "MAGIC_LINK_RESOURCE_TYPE_PURCHASE_ORDER" },
|
|
119
|
+
{ no: 110, name: "MAGIC_LINK_RESOURCE_TYPE_GOODS_RECEIPT" },
|
|
120
|
+
{ no: 120, name: "MAGIC_LINK_RESOURCE_TYPE_VENDOR_INVOICE" },
|
|
121
|
+
{ no: 130, name: "MAGIC_LINK_RESOURCE_TYPE_DEBIT_NOTE" },
|
|
122
|
+
{ no: 140, name: "MAGIC_LINK_RESOURCE_TYPE_PURCHASE_RETURN" },
|
|
123
|
+
{ no: 200, name: "MAGIC_LINK_RESOURCE_TYPE_SALES_ENQUIRY" },
|
|
124
|
+
{ no: 205, name: "MAGIC_LINK_RESOURCE_TYPE_SALES_QUOTATION" },
|
|
125
|
+
{ no: 210, name: "MAGIC_LINK_RESOURCE_TYPE_SALES_ORDER" },
|
|
126
|
+
{ no: 220, name: "MAGIC_LINK_RESOURCE_TYPE_GOODS_DISPATCH" },
|
|
127
|
+
{ no: 225, name: "MAGIC_LINK_RESOURCE_TYPE_PROFORMA_INVOICE" },
|
|
128
|
+
{ no: 230, name: "MAGIC_LINK_RESOURCE_TYPE_SALES_INVOICE" },
|
|
129
|
+
{ no: 240, name: "MAGIC_LINK_RESOURCE_TYPE_CREDIT_NOTE" },
|
|
130
|
+
{ no: 250, name: "MAGIC_LINK_RESOURCE_TYPE_SALES_RETURN" },
|
|
131
|
+
{ no: 300, name: "MAGIC_LINK_RESOURCE_TYPE_INWARD_JOB" },
|
|
132
|
+
{ no: 400, name: "MAGIC_LINK_RESOURCE_TYPE_OUTWARD_JOB" },
|
|
133
|
+
]);
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* Describes the available sort keys for retrieving magic links
|
|
137
|
+
*
|
|
138
|
+
* @generated from enum Scailo.MAGIC_LINK_SORT_KEY
|
|
139
|
+
*/
|
|
140
|
+
var MAGIC_LINK_SORT_KEY;
|
|
141
|
+
(function (MAGIC_LINK_SORT_KEY) {
|
|
142
|
+
/**
|
|
143
|
+
* Fetch ordered results by id
|
|
144
|
+
*
|
|
145
|
+
* @generated from enum value: MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED = 0;
|
|
146
|
+
*/
|
|
147
|
+
MAGIC_LINK_SORT_KEY[MAGIC_LINK_SORT_KEY["MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED"] = 0] = "MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED";
|
|
148
|
+
/**
|
|
149
|
+
* Fetch ordered results by the creation timestamp
|
|
150
|
+
*
|
|
151
|
+
* @generated from enum value: MAGIC_LINK_SORT_KEY_CREATED_AT = 1;
|
|
152
|
+
*/
|
|
153
|
+
MAGIC_LINK_SORT_KEY[MAGIC_LINK_SORT_KEY["MAGIC_LINK_SORT_KEY_CREATED_AT"] = 1] = "MAGIC_LINK_SORT_KEY_CREATED_AT";
|
|
154
|
+
/**
|
|
155
|
+
* Fetch ordered results by the modified timestamp
|
|
156
|
+
*
|
|
157
|
+
* @generated from enum value: MAGIC_LINK_SORT_KEY_MODIFIED_AT = 2;
|
|
158
|
+
*/
|
|
159
|
+
MAGIC_LINK_SORT_KEY[MAGIC_LINK_SORT_KEY["MAGIC_LINK_SORT_KEY_MODIFIED_AT"] = 2] = "MAGIC_LINK_SORT_KEY_MODIFIED_AT";
|
|
160
|
+
/**
|
|
161
|
+
* Fetch ordered results by expiry timestamp
|
|
162
|
+
*
|
|
163
|
+
* @generated from enum value: MAGIC_LINK_SORT_KEY_EXPIRES_AT = 10;
|
|
164
|
+
*/
|
|
165
|
+
MAGIC_LINK_SORT_KEY[MAGIC_LINK_SORT_KEY["MAGIC_LINK_SORT_KEY_EXPIRES_AT"] = 10] = "MAGIC_LINK_SORT_KEY_EXPIRES_AT";
|
|
166
|
+
})(MAGIC_LINK_SORT_KEY || (exports.MAGIC_LINK_SORT_KEY = MAGIC_LINK_SORT_KEY = {}));
|
|
167
|
+
// Retrieve enum metadata with: proto3.getEnumType(MAGIC_LINK_SORT_KEY)
|
|
168
|
+
protobuf_1.proto3.util.setEnumType(MAGIC_LINK_SORT_KEY, "Scailo.MAGIC_LINK_SORT_KEY", [
|
|
169
|
+
{ no: 0, name: "MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED" },
|
|
170
|
+
{ no: 1, name: "MAGIC_LINK_SORT_KEY_CREATED_AT" },
|
|
171
|
+
{ no: 2, name: "MAGIC_LINK_SORT_KEY_MODIFIED_AT" },
|
|
172
|
+
{ no: 10, name: "MAGIC_LINK_SORT_KEY_EXPIRES_AT" },
|
|
173
|
+
]);
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* Describes the data structure of each magic link on the platform
|
|
177
|
+
*
|
|
178
|
+
* @generated from message Scailo.MagicLink
|
|
179
|
+
*/
|
|
180
|
+
class MagicLink extends protobuf_1.Message {
|
|
181
|
+
/**
|
|
182
|
+
* Stores a globally unique entity UUID. This will be set at the organization level
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: string entity_uuid = 1;
|
|
185
|
+
*/
|
|
186
|
+
entityUuid = "";
|
|
187
|
+
/**
|
|
188
|
+
* Stores the metadata of this resource
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: Scailo.EmployeeMetadata metadata = 2;
|
|
191
|
+
*/
|
|
192
|
+
metadata;
|
|
193
|
+
/**
|
|
194
|
+
* The UUID of the resource
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: string resource_uuid = 10;
|
|
197
|
+
*/
|
|
198
|
+
resourceUuid = "";
|
|
199
|
+
/**
|
|
200
|
+
* The type of the resource
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
|
|
203
|
+
*/
|
|
204
|
+
resourceType = MAGIC_LINK_RESOURCE_TYPE.MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED;
|
|
205
|
+
/**
|
|
206
|
+
* Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: uint64 expires_at = 30;
|
|
209
|
+
*/
|
|
210
|
+
expiresAt = protobuf_1.protoInt64.zero;
|
|
211
|
+
/**
|
|
212
|
+
* Stores an optional description of the magic link
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: string description = 35;
|
|
215
|
+
*/
|
|
216
|
+
description = "";
|
|
217
|
+
/**
|
|
218
|
+
* Stores the code of the magic link that can be used to uniquely identify the magic link. This code will be used in the associated links, and will be used to uniquely identify the resource.
|
|
219
|
+
*
|
|
220
|
+
* @generated from field: string code = 40;
|
|
221
|
+
*/
|
|
222
|
+
code = "";
|
|
223
|
+
/**
|
|
224
|
+
* Stores the generated URL of the magic link
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: string url = 100;
|
|
227
|
+
*/
|
|
228
|
+
url = "";
|
|
229
|
+
constructor(data) {
|
|
230
|
+
super();
|
|
231
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
232
|
+
}
|
|
233
|
+
static runtime = protobuf_1.proto3;
|
|
234
|
+
static typeName = "Scailo.MagicLink";
|
|
235
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
236
|
+
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
237
|
+
{ no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
|
|
238
|
+
{ no: 10, name: "resource_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
+
{ no: 21, name: "resource_type", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_RESOURCE_TYPE) },
|
|
240
|
+
{ no: 30, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
241
|
+
{ no: 35, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
242
|
+
{ no: 40, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
243
|
+
{ no: 100, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
244
|
+
]);
|
|
245
|
+
static fromBinary(bytes, options) {
|
|
246
|
+
return new MagicLink().fromBinary(bytes, options);
|
|
247
|
+
}
|
|
248
|
+
static fromJson(jsonValue, options) {
|
|
249
|
+
return new MagicLink().fromJson(jsonValue, options);
|
|
250
|
+
}
|
|
251
|
+
static fromJsonString(jsonString, options) {
|
|
252
|
+
return new MagicLink().fromJsonString(jsonString, options);
|
|
253
|
+
}
|
|
254
|
+
static equals(a, b) {
|
|
255
|
+
return protobuf_1.proto3.util.equals(MagicLink, a, b);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
exports.MagicLink = MagicLink;
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* Describes the data structure that stores a list of magic links
|
|
262
|
+
*
|
|
263
|
+
* @generated from message Scailo.MagicLinksList
|
|
264
|
+
*/
|
|
265
|
+
class MagicLinksList extends protobuf_1.Message {
|
|
266
|
+
/**
|
|
267
|
+
* List of magic links
|
|
268
|
+
*
|
|
269
|
+
* @generated from field: repeated Scailo.MagicLink list = 1;
|
|
270
|
+
*/
|
|
271
|
+
list = [];
|
|
272
|
+
constructor(data) {
|
|
273
|
+
super();
|
|
274
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
275
|
+
}
|
|
276
|
+
static runtime = protobuf_1.proto3;
|
|
277
|
+
static typeName = "Scailo.MagicLinksList";
|
|
278
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
279
|
+
{ no: 1, name: "list", kind: "message", T: MagicLink, repeated: true },
|
|
280
|
+
]);
|
|
281
|
+
static fromBinary(bytes, options) {
|
|
282
|
+
return new MagicLinksList().fromBinary(bytes, options);
|
|
283
|
+
}
|
|
284
|
+
static fromJson(jsonValue, options) {
|
|
285
|
+
return new MagicLinksList().fromJson(jsonValue, options);
|
|
286
|
+
}
|
|
287
|
+
static fromJsonString(jsonString, options) {
|
|
288
|
+
return new MagicLinksList().fromJsonString(jsonString, options);
|
|
289
|
+
}
|
|
290
|
+
static equals(a, b) {
|
|
291
|
+
return protobuf_1.proto3.util.equals(MagicLinksList, a, b);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
exports.MagicLinksList = MagicLinksList;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* Describes the data structure that responds to a pagination request
|
|
298
|
+
*
|
|
299
|
+
* @generated from message Scailo.MagicLinkPaginationResp
|
|
300
|
+
*/
|
|
301
|
+
class MagicLinkPaginationResp extends protobuf_1.Message {
|
|
302
|
+
/**
|
|
303
|
+
* The number of records in this payload
|
|
304
|
+
*
|
|
305
|
+
* @generated from field: uint64 count = 1;
|
|
306
|
+
*/
|
|
307
|
+
count = protobuf_1.protoInt64.zero;
|
|
308
|
+
/**
|
|
309
|
+
* The number that has been offset before fetching the records. This is the same value that has been sent as part of the pagination request
|
|
310
|
+
*
|
|
311
|
+
* @generated from field: uint64 offset = 2;
|
|
312
|
+
*/
|
|
313
|
+
offset = protobuf_1.protoInt64.zero;
|
|
314
|
+
/**
|
|
315
|
+
* The total number of records that are available
|
|
316
|
+
*
|
|
317
|
+
* @generated from field: uint64 total = 3;
|
|
318
|
+
*/
|
|
319
|
+
total = protobuf_1.protoInt64.zero;
|
|
320
|
+
/**
|
|
321
|
+
* The list of records
|
|
322
|
+
*
|
|
323
|
+
* @generated from field: repeated Scailo.MagicLink payload = 4;
|
|
324
|
+
*/
|
|
325
|
+
payload = [];
|
|
326
|
+
constructor(data) {
|
|
327
|
+
super();
|
|
328
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
329
|
+
}
|
|
330
|
+
static runtime = protobuf_1.proto3;
|
|
331
|
+
static typeName = "Scailo.MagicLinkPaginationResp";
|
|
332
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
333
|
+
{ no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
334
|
+
{ no: 2, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
335
|
+
{ no: 3, name: "total", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
336
|
+
{ no: 4, name: "payload", kind: "message", T: MagicLink, repeated: true },
|
|
337
|
+
]);
|
|
338
|
+
static fromBinary(bytes, options) {
|
|
339
|
+
return new MagicLinkPaginationResp().fromBinary(bytes, options);
|
|
340
|
+
}
|
|
341
|
+
static fromJson(jsonValue, options) {
|
|
342
|
+
return new MagicLinkPaginationResp().fromJson(jsonValue, options);
|
|
343
|
+
}
|
|
344
|
+
static fromJsonString(jsonString, options) {
|
|
345
|
+
return new MagicLinkPaginationResp().fromJsonString(jsonString, options);
|
|
346
|
+
}
|
|
347
|
+
static equals(a, b) {
|
|
348
|
+
return protobuf_1.proto3.util.equals(MagicLinkPaginationResp, a, b);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
exports.MagicLinkPaginationResp = MagicLinkPaginationResp;
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* Describes the necessary data structure during creation of a magic link
|
|
355
|
+
*
|
|
356
|
+
* @generated from message Scailo.MagicLinksServiceCreateRequest
|
|
357
|
+
*/
|
|
358
|
+
class MagicLinksServiceCreateRequest extends protobuf_1.Message {
|
|
359
|
+
/**
|
|
360
|
+
* Stores a globally unique entity UUID. This will be set at the organization level
|
|
361
|
+
*
|
|
362
|
+
* @generated from field: string entity_uuid = 1;
|
|
363
|
+
*/
|
|
364
|
+
entityUuid = "";
|
|
365
|
+
/**
|
|
366
|
+
* Stores any comment that the user might add during this operation
|
|
367
|
+
*
|
|
368
|
+
* @generated from field: string user_comment = 2;
|
|
369
|
+
*/
|
|
370
|
+
userComment = "";
|
|
371
|
+
/**
|
|
372
|
+
* The UUID of the resource
|
|
373
|
+
*
|
|
374
|
+
* @generated from field: string resource_uuid = 10;
|
|
375
|
+
*/
|
|
376
|
+
resourceUuid = "";
|
|
377
|
+
/**
|
|
378
|
+
* The type of the resource
|
|
379
|
+
*
|
|
380
|
+
* @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
|
|
381
|
+
*/
|
|
382
|
+
resourceType = MAGIC_LINK_RESOURCE_TYPE.MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED;
|
|
383
|
+
/**
|
|
384
|
+
* Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
|
|
385
|
+
*
|
|
386
|
+
* @generated from field: uint64 expires_at = 30;
|
|
387
|
+
*/
|
|
388
|
+
expiresAt = protobuf_1.protoInt64.zero;
|
|
389
|
+
/**
|
|
390
|
+
* Stores an optional description of the magic link
|
|
391
|
+
*
|
|
392
|
+
* @generated from field: string description = 35;
|
|
393
|
+
*/
|
|
394
|
+
description = "";
|
|
395
|
+
constructor(data) {
|
|
396
|
+
super();
|
|
397
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
398
|
+
}
|
|
399
|
+
static runtime = protobuf_1.proto3;
|
|
400
|
+
static typeName = "Scailo.MagicLinksServiceCreateRequest";
|
|
401
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
402
|
+
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
403
|
+
{ no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
404
|
+
{ no: 10, name: "resource_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
405
|
+
{ no: 21, name: "resource_type", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_RESOURCE_TYPE) },
|
|
406
|
+
{ no: 30, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
407
|
+
{ no: 35, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
408
|
+
]);
|
|
409
|
+
static fromBinary(bytes, options) {
|
|
410
|
+
return new MagicLinksServiceCreateRequest().fromBinary(bytes, options);
|
|
411
|
+
}
|
|
412
|
+
static fromJson(jsonValue, options) {
|
|
413
|
+
return new MagicLinksServiceCreateRequest().fromJson(jsonValue, options);
|
|
414
|
+
}
|
|
415
|
+
static fromJsonString(jsonString, options) {
|
|
416
|
+
return new MagicLinksServiceCreateRequest().fromJsonString(jsonString, options);
|
|
417
|
+
}
|
|
418
|
+
static equals(a, b) {
|
|
419
|
+
return protobuf_1.proto3.util.equals(MagicLinksServiceCreateRequest, a, b);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
exports.MagicLinksServiceCreateRequest = MagicLinksServiceCreateRequest;
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* Describes the necessary data structure for creation of a magic link. This data structure is used within other services, while creating magic links for the given resource
|
|
426
|
+
*
|
|
427
|
+
* @generated from message Scailo.MagicLinksServiceCreateRequestForSpecificResource
|
|
428
|
+
*/
|
|
429
|
+
class MagicLinksServiceCreateRequestForSpecificResource extends protobuf_1.Message {
|
|
430
|
+
/**
|
|
431
|
+
* Stores any comment that the user might add during this operation
|
|
432
|
+
*
|
|
433
|
+
* @generated from field: string user_comment = 2;
|
|
434
|
+
*/
|
|
435
|
+
userComment = "";
|
|
436
|
+
/**
|
|
437
|
+
* The UUID of the resource
|
|
438
|
+
*
|
|
439
|
+
* @generated from field: string resource_uuid = 10;
|
|
440
|
+
*/
|
|
441
|
+
resourceUuid = "";
|
|
442
|
+
/**
|
|
443
|
+
* Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
|
|
444
|
+
*
|
|
445
|
+
* @generated from field: uint64 expires_at = 30;
|
|
446
|
+
*/
|
|
447
|
+
expiresAt = protobuf_1.protoInt64.zero;
|
|
448
|
+
/**
|
|
449
|
+
* Stores an optional description of the magic link
|
|
450
|
+
*
|
|
451
|
+
* @generated from field: string description = 35;
|
|
452
|
+
*/
|
|
453
|
+
description = "";
|
|
454
|
+
constructor(data) {
|
|
455
|
+
super();
|
|
456
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
457
|
+
}
|
|
458
|
+
static runtime = protobuf_1.proto3;
|
|
459
|
+
static typeName = "Scailo.MagicLinksServiceCreateRequestForSpecificResource";
|
|
460
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
461
|
+
{ no: 2, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
462
|
+
{ no: 10, name: "resource_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
463
|
+
{ no: 30, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
464
|
+
{ no: 35, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
465
|
+
]);
|
|
466
|
+
static fromBinary(bytes, options) {
|
|
467
|
+
return new MagicLinksServiceCreateRequestForSpecificResource().fromBinary(bytes, options);
|
|
468
|
+
}
|
|
469
|
+
static fromJson(jsonValue, options) {
|
|
470
|
+
return new MagicLinksServiceCreateRequestForSpecificResource().fromJson(jsonValue, options);
|
|
471
|
+
}
|
|
472
|
+
static fromJsonString(jsonString, options) {
|
|
473
|
+
return new MagicLinksServiceCreateRequestForSpecificResource().fromJsonString(jsonString, options);
|
|
474
|
+
}
|
|
475
|
+
static equals(a, b) {
|
|
476
|
+
return protobuf_1.proto3.util.equals(MagicLinksServiceCreateRequestForSpecificResource, a, b);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
exports.MagicLinksServiceCreateRequestForSpecificResource = MagicLinksServiceCreateRequestForSpecificResource;
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* Describes the data structure to perform the update (draft/revision) operation on a magic link
|
|
483
|
+
*
|
|
484
|
+
* @generated from message Scailo.MagicLinksServiceUpdateRequest
|
|
485
|
+
*/
|
|
486
|
+
class MagicLinksServiceUpdateRequest extends protobuf_1.Message {
|
|
487
|
+
/**
|
|
488
|
+
* Stores any comment that the user might add during this operation
|
|
489
|
+
*
|
|
490
|
+
* @generated from field: string user_comment = 1;
|
|
491
|
+
*/
|
|
492
|
+
userComment = "";
|
|
493
|
+
/**
|
|
494
|
+
* The ID of the magic link that needs to be updated
|
|
495
|
+
*
|
|
496
|
+
* @generated from field: uint64 id = 2;
|
|
497
|
+
*/
|
|
498
|
+
id = protobuf_1.protoInt64.zero;
|
|
499
|
+
/**
|
|
500
|
+
* Stores the UNIX timestamp of when the link expires. If 0, then the link never expires
|
|
501
|
+
*
|
|
502
|
+
* @generated from field: uint64 expires_at = 30;
|
|
503
|
+
*/
|
|
504
|
+
expiresAt = protobuf_1.protoInt64.zero;
|
|
505
|
+
/**
|
|
506
|
+
* Stores an optional description of the magic link
|
|
507
|
+
*
|
|
508
|
+
* @generated from field: string description = 35;
|
|
509
|
+
*/
|
|
510
|
+
description = "";
|
|
511
|
+
constructor(data) {
|
|
512
|
+
super();
|
|
513
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
514
|
+
}
|
|
515
|
+
static runtime = protobuf_1.proto3;
|
|
516
|
+
static typeName = "Scailo.MagicLinksServiceUpdateRequest";
|
|
517
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
518
|
+
{ no: 1, name: "user_comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
519
|
+
{ no: 2, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
520
|
+
{ no: 30, name: "expires_at", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
521
|
+
{ no: 35, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
522
|
+
]);
|
|
523
|
+
static fromBinary(bytes, options) {
|
|
524
|
+
return new MagicLinksServiceUpdateRequest().fromBinary(bytes, options);
|
|
525
|
+
}
|
|
526
|
+
static fromJson(jsonValue, options) {
|
|
527
|
+
return new MagicLinksServiceUpdateRequest().fromJson(jsonValue, options);
|
|
528
|
+
}
|
|
529
|
+
static fromJsonString(jsonString, options) {
|
|
530
|
+
return new MagicLinksServiceUpdateRequest().fromJsonString(jsonString, options);
|
|
531
|
+
}
|
|
532
|
+
static equals(a, b) {
|
|
533
|
+
return protobuf_1.proto3.util.equals(MagicLinksServiceUpdateRequest, a, b);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
exports.MagicLinksServiceUpdateRequest = MagicLinksServiceUpdateRequest;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* Describes a pagination request to retrieve records
|
|
540
|
+
*
|
|
541
|
+
* @generated from message Scailo.MagicLinksServicePaginationReq
|
|
542
|
+
*/
|
|
543
|
+
class MagicLinksServicePaginationReq extends protobuf_1.Message {
|
|
544
|
+
/**
|
|
545
|
+
* If true, then returns only active records. If false, then returns only inactive records
|
|
546
|
+
*
|
|
547
|
+
* @generated from field: Scailo.BOOL_FILTER is_active = 1;
|
|
548
|
+
*/
|
|
549
|
+
isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
|
|
550
|
+
/**
|
|
551
|
+
* The number of records that need to be sent in the response
|
|
552
|
+
*
|
|
553
|
+
* @generated from field: int64 count = 2;
|
|
554
|
+
*/
|
|
555
|
+
count = protobuf_1.protoInt64.zero;
|
|
556
|
+
/**
|
|
557
|
+
* The number that need to be offset by before fetching the records
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: uint64 offset = 3;
|
|
560
|
+
*/
|
|
561
|
+
offset = protobuf_1.protoInt64.zero;
|
|
562
|
+
/**
|
|
563
|
+
* The sort order that is to be used to fetch the pagination response
|
|
564
|
+
*
|
|
565
|
+
* @generated from field: Scailo.SORT_ORDER sort_order = 4;
|
|
566
|
+
*/
|
|
567
|
+
sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
|
|
568
|
+
/**
|
|
569
|
+
* The sort key that is to be used to fetch the pagination response
|
|
570
|
+
*
|
|
571
|
+
* @generated from field: Scailo.MAGIC_LINK_SORT_KEY sort_key = 5;
|
|
572
|
+
*/
|
|
573
|
+
sortKey = MAGIC_LINK_SORT_KEY.MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED;
|
|
574
|
+
constructor(data) {
|
|
575
|
+
super();
|
|
576
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
577
|
+
}
|
|
578
|
+
static runtime = protobuf_1.proto3;
|
|
579
|
+
static typeName = "Scailo.MagicLinksServicePaginationReq";
|
|
580
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
581
|
+
{ no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
|
|
582
|
+
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
583
|
+
{ no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
584
|
+
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
|
|
585
|
+
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_SORT_KEY) },
|
|
586
|
+
]);
|
|
587
|
+
static fromBinary(bytes, options) {
|
|
588
|
+
return new MagicLinksServicePaginationReq().fromBinary(bytes, options);
|
|
589
|
+
}
|
|
590
|
+
static fromJson(jsonValue, options) {
|
|
591
|
+
return new MagicLinksServicePaginationReq().fromJson(jsonValue, options);
|
|
592
|
+
}
|
|
593
|
+
static fromJsonString(jsonString, options) {
|
|
594
|
+
return new MagicLinksServicePaginationReq().fromJsonString(jsonString, options);
|
|
595
|
+
}
|
|
596
|
+
static equals(a, b) {
|
|
597
|
+
return protobuf_1.proto3.util.equals(MagicLinksServicePaginationReq, a, b);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
exports.MagicLinksServicePaginationReq = MagicLinksServicePaginationReq;
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* Describes the base request payload of a filter search
|
|
604
|
+
*
|
|
605
|
+
* @generated from message Scailo.MagicLinksServiceFilterReq
|
|
606
|
+
*/
|
|
607
|
+
class MagicLinksServiceFilterReq extends protobuf_1.Message {
|
|
608
|
+
/**
|
|
609
|
+
* If true, then returns only active records. If false, then returns only inactive records
|
|
610
|
+
*
|
|
611
|
+
* @generated from field: Scailo.BOOL_FILTER is_active = 1;
|
|
612
|
+
*/
|
|
613
|
+
isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
|
|
614
|
+
/**
|
|
615
|
+
* The number of records that need to be sent in the response. Returns all records if it is set to -1
|
|
616
|
+
*
|
|
617
|
+
* @generated from field: int64 count = 2;
|
|
618
|
+
*/
|
|
619
|
+
count = protobuf_1.protoInt64.zero;
|
|
620
|
+
/**
|
|
621
|
+
* The number that need to be offset by before fetching the records
|
|
622
|
+
*
|
|
623
|
+
* @generated from field: uint64 offset = 3;
|
|
624
|
+
*/
|
|
625
|
+
offset = protobuf_1.protoInt64.zero;
|
|
626
|
+
/**
|
|
627
|
+
* The sort order that is to be used to fetch the pagination response
|
|
628
|
+
*
|
|
629
|
+
* @generated from field: Scailo.SORT_ORDER sort_order = 4;
|
|
630
|
+
*/
|
|
631
|
+
sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
|
|
632
|
+
/**
|
|
633
|
+
* The sort key that is to be used to fetch the pagination response
|
|
634
|
+
*
|
|
635
|
+
* @generated from field: Scailo.MAGIC_LINK_SORT_KEY sort_key = 5;
|
|
636
|
+
*/
|
|
637
|
+
sortKey = MAGIC_LINK_SORT_KEY.MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED;
|
|
638
|
+
/**
|
|
639
|
+
* The minimum timestamp that needs to be considered to filter by creation
|
|
640
|
+
*
|
|
641
|
+
* @generated from field: uint64 creation_timestamp_start = 101;
|
|
642
|
+
*/
|
|
643
|
+
creationTimestampStart = protobuf_1.protoInt64.zero;
|
|
644
|
+
/**
|
|
645
|
+
* The maximum timestamp that needs to be considered to filter by creation
|
|
646
|
+
*
|
|
647
|
+
* @generated from field: uint64 creation_timestamp_end = 102;
|
|
648
|
+
*/
|
|
649
|
+
creationTimestampEnd = protobuf_1.protoInt64.zero;
|
|
650
|
+
/**
|
|
651
|
+
* The minimum timestamp that needs to be considered to filter by modification
|
|
652
|
+
*
|
|
653
|
+
* @generated from field: uint64 modification_timestamp_start = 103;
|
|
654
|
+
*/
|
|
655
|
+
modificationTimestampStart = protobuf_1.protoInt64.zero;
|
|
656
|
+
/**
|
|
657
|
+
* The maximum timestamp that needs to be considered to filter by modification
|
|
658
|
+
*
|
|
659
|
+
* @generated from field: uint64 modification_timestamp_end = 104;
|
|
660
|
+
*/
|
|
661
|
+
modificationTimestampEnd = protobuf_1.protoInt64.zero;
|
|
662
|
+
/**
|
|
663
|
+
* The entity UUID that is to be used to filter records
|
|
664
|
+
*
|
|
665
|
+
* @generated from field: string entity_uuid = 8;
|
|
666
|
+
*/
|
|
667
|
+
entityUuid = "";
|
|
668
|
+
/**
|
|
669
|
+
* The type of the resource
|
|
670
|
+
*
|
|
671
|
+
* @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
|
|
672
|
+
*/
|
|
673
|
+
resourceType = MAGIC_LINK_RESOURCE_TYPE.MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED;
|
|
674
|
+
/**
|
|
675
|
+
* The UUID of the resource
|
|
676
|
+
*
|
|
677
|
+
* @generated from field: string resource_uuid = 22;
|
|
678
|
+
*/
|
|
679
|
+
resourceUuid = "";
|
|
680
|
+
/**
|
|
681
|
+
* The start timestamp that needs to be considered to filter by expiry
|
|
682
|
+
*
|
|
683
|
+
* @generated from field: uint64 expires_at_start = 30;
|
|
684
|
+
*/
|
|
685
|
+
expiresAtStart = protobuf_1.protoInt64.zero;
|
|
686
|
+
/**
|
|
687
|
+
* The end timestamp that needs to be considered to filter by expiry
|
|
688
|
+
*
|
|
689
|
+
* @generated from field: uint64 expires_at_end = 31;
|
|
690
|
+
*/
|
|
691
|
+
expiresAtEnd = protobuf_1.protoInt64.zero;
|
|
692
|
+
constructor(data) {
|
|
693
|
+
super();
|
|
694
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
695
|
+
}
|
|
696
|
+
static runtime = protobuf_1.proto3;
|
|
697
|
+
static typeName = "Scailo.MagicLinksServiceFilterReq";
|
|
698
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
699
|
+
{ no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
|
|
700
|
+
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
701
|
+
{ no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
702
|
+
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
|
|
703
|
+
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_SORT_KEY) },
|
|
704
|
+
{ no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
705
|
+
{ no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
706
|
+
{ no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
707
|
+
{ no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
708
|
+
{ no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
709
|
+
{ no: 21, name: "resource_type", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_RESOURCE_TYPE) },
|
|
710
|
+
{ no: 22, name: "resource_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
711
|
+
{ no: 30, name: "expires_at_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
712
|
+
{ no: 31, name: "expires_at_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
713
|
+
]);
|
|
714
|
+
static fromBinary(bytes, options) {
|
|
715
|
+
return new MagicLinksServiceFilterReq().fromBinary(bytes, options);
|
|
716
|
+
}
|
|
717
|
+
static fromJson(jsonValue, options) {
|
|
718
|
+
return new MagicLinksServiceFilterReq().fromJson(jsonValue, options);
|
|
719
|
+
}
|
|
720
|
+
static fromJsonString(jsonString, options) {
|
|
721
|
+
return new MagicLinksServiceFilterReq().fromJsonString(jsonString, options);
|
|
722
|
+
}
|
|
723
|
+
static equals(a, b) {
|
|
724
|
+
return protobuf_1.proto3.util.equals(MagicLinksServiceFilterReq, a, b);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
exports.MagicLinksServiceFilterReq = MagicLinksServiceFilterReq;
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* Describes the base request payload of a count search
|
|
731
|
+
*
|
|
732
|
+
* @generated from message Scailo.MagicLinksServiceCountReq
|
|
733
|
+
*/
|
|
734
|
+
class MagicLinksServiceCountReq extends protobuf_1.Message {
|
|
735
|
+
/**
|
|
736
|
+
* If true, then returns only active records. If false, then returns only inactive records
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: Scailo.BOOL_FILTER is_active = 1;
|
|
739
|
+
*/
|
|
740
|
+
isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
|
|
741
|
+
/**
|
|
742
|
+
* The minimum timestamp that needs to be considered to filter by creation
|
|
743
|
+
*
|
|
744
|
+
* @generated from field: uint64 creation_timestamp_start = 101;
|
|
745
|
+
*/
|
|
746
|
+
creationTimestampStart = protobuf_1.protoInt64.zero;
|
|
747
|
+
/**
|
|
748
|
+
* The maximum timestamp that needs to be considered to filter by creation
|
|
749
|
+
*
|
|
750
|
+
* @generated from field: uint64 creation_timestamp_end = 102;
|
|
751
|
+
*/
|
|
752
|
+
creationTimestampEnd = protobuf_1.protoInt64.zero;
|
|
753
|
+
/**
|
|
754
|
+
* The minimum timestamp that needs to be considered to filter by modification
|
|
755
|
+
*
|
|
756
|
+
* @generated from field: uint64 modification_timestamp_start = 103;
|
|
757
|
+
*/
|
|
758
|
+
modificationTimestampStart = protobuf_1.protoInt64.zero;
|
|
759
|
+
/**
|
|
760
|
+
* The maximum timestamp that needs to be considered to filter by modification
|
|
761
|
+
*
|
|
762
|
+
* @generated from field: uint64 modification_timestamp_end = 104;
|
|
763
|
+
*/
|
|
764
|
+
modificationTimestampEnd = protobuf_1.protoInt64.zero;
|
|
765
|
+
/**
|
|
766
|
+
* The entity UUID that is to be used to filter records
|
|
767
|
+
*
|
|
768
|
+
* @generated from field: string entity_uuid = 8;
|
|
769
|
+
*/
|
|
770
|
+
entityUuid = "";
|
|
771
|
+
/**
|
|
772
|
+
* The type of the resource
|
|
773
|
+
*
|
|
774
|
+
* @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
|
|
775
|
+
*/
|
|
776
|
+
resourceType = MAGIC_LINK_RESOURCE_TYPE.MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED;
|
|
777
|
+
/**
|
|
778
|
+
* The UUID of the resource
|
|
779
|
+
*
|
|
780
|
+
* @generated from field: string resource_uuid = 22;
|
|
781
|
+
*/
|
|
782
|
+
resourceUuid = "";
|
|
783
|
+
/**
|
|
784
|
+
* The start timestamp that needs to be considered to filter by expiry
|
|
785
|
+
*
|
|
786
|
+
* @generated from field: uint64 expires_at_start = 30;
|
|
787
|
+
*/
|
|
788
|
+
expiresAtStart = protobuf_1.protoInt64.zero;
|
|
789
|
+
/**
|
|
790
|
+
* The end timestamp that needs to be considered to filter by expiry
|
|
791
|
+
*
|
|
792
|
+
* @generated from field: uint64 expires_at_end = 31;
|
|
793
|
+
*/
|
|
794
|
+
expiresAtEnd = protobuf_1.protoInt64.zero;
|
|
795
|
+
constructor(data) {
|
|
796
|
+
super();
|
|
797
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
798
|
+
}
|
|
799
|
+
static runtime = protobuf_1.proto3;
|
|
800
|
+
static typeName = "Scailo.MagicLinksServiceCountReq";
|
|
801
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
802
|
+
{ no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
|
|
803
|
+
{ no: 101, name: "creation_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
804
|
+
{ no: 102, name: "creation_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
805
|
+
{ no: 103, name: "modification_timestamp_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
806
|
+
{ no: 104, name: "modification_timestamp_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
807
|
+
{ no: 8, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
808
|
+
{ no: 21, name: "resource_type", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_RESOURCE_TYPE) },
|
|
809
|
+
{ no: 22, name: "resource_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
810
|
+
{ no: 30, name: "expires_at_start", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
811
|
+
{ no: 31, name: "expires_at_end", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
812
|
+
]);
|
|
813
|
+
static fromBinary(bytes, options) {
|
|
814
|
+
return new MagicLinksServiceCountReq().fromBinary(bytes, options);
|
|
815
|
+
}
|
|
816
|
+
static fromJson(jsonValue, options) {
|
|
817
|
+
return new MagicLinksServiceCountReq().fromJson(jsonValue, options);
|
|
818
|
+
}
|
|
819
|
+
static fromJsonString(jsonString, options) {
|
|
820
|
+
return new MagicLinksServiceCountReq().fromJsonString(jsonString, options);
|
|
821
|
+
}
|
|
822
|
+
static equals(a, b) {
|
|
823
|
+
return protobuf_1.proto3.util.equals(MagicLinksServiceCountReq, a, b);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
exports.MagicLinksServiceCountReq = MagicLinksServiceCountReq;
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* Describes the request payload for performing a generic search operation on magic links
|
|
830
|
+
*
|
|
831
|
+
* @generated from message Scailo.MagicLinksServiceSearchAllReq
|
|
832
|
+
*/
|
|
833
|
+
class MagicLinksServiceSearchAllReq extends protobuf_1.Message {
|
|
834
|
+
/**
|
|
835
|
+
* If true, then returns only active records. If false, then returns only inactive records
|
|
836
|
+
*
|
|
837
|
+
* @generated from field: Scailo.BOOL_FILTER is_active = 1;
|
|
838
|
+
*/
|
|
839
|
+
isActive = base_scailo_pb_js_1.BOOL_FILTER.BOOL_FILTER_ANY_UNSPECIFIED;
|
|
840
|
+
/**
|
|
841
|
+
* The number of records that need to be sent in the response. Returns all records if it is set to -1
|
|
842
|
+
*
|
|
843
|
+
* @generated from field: int64 count = 2;
|
|
844
|
+
*/
|
|
845
|
+
count = protobuf_1.protoInt64.zero;
|
|
846
|
+
/**
|
|
847
|
+
* The number that need to be offset by before fetching the records
|
|
848
|
+
*
|
|
849
|
+
* @generated from field: uint64 offset = 3;
|
|
850
|
+
*/
|
|
851
|
+
offset = protobuf_1.protoInt64.zero;
|
|
852
|
+
/**
|
|
853
|
+
* The sort order that is to be used to fetch the pagination response
|
|
854
|
+
*
|
|
855
|
+
* @generated from field: Scailo.SORT_ORDER sort_order = 4;
|
|
856
|
+
*/
|
|
857
|
+
sortOrder = base_scailo_pb_js_1.SORT_ORDER.ASCENDING_UNSPECIFIED;
|
|
858
|
+
/**
|
|
859
|
+
* The sort key that is to be used to fetch the response
|
|
860
|
+
*
|
|
861
|
+
* @generated from field: Scailo.MAGIC_LINK_SORT_KEY sort_key = 5;
|
|
862
|
+
*/
|
|
863
|
+
sortKey = MAGIC_LINK_SORT_KEY.MAGIC_LINK_SORT_KEY_ID_UNSPECIFIED;
|
|
864
|
+
/**
|
|
865
|
+
* The entity UUID that is to be used to filter magic links
|
|
866
|
+
*
|
|
867
|
+
* @generated from field: string entity_uuid = 6;
|
|
868
|
+
*/
|
|
869
|
+
entityUuid = "";
|
|
870
|
+
/**
|
|
871
|
+
* Describes the key with which the search operation needs to be performed
|
|
872
|
+
*
|
|
873
|
+
* @generated from field: string search_key = 10;
|
|
874
|
+
*/
|
|
875
|
+
searchKey = "";
|
|
876
|
+
/**
|
|
877
|
+
* The type of the resource
|
|
878
|
+
*
|
|
879
|
+
* @generated from field: Scailo.MAGIC_LINK_RESOURCE_TYPE resource_type = 21;
|
|
880
|
+
*/
|
|
881
|
+
resourceType = MAGIC_LINK_RESOURCE_TYPE.MAGIC_LINK_RESOURCE_TYPE_ANY_UNSPECIFIED;
|
|
882
|
+
constructor(data) {
|
|
883
|
+
super();
|
|
884
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
885
|
+
}
|
|
886
|
+
static runtime = protobuf_1.proto3;
|
|
887
|
+
static typeName = "Scailo.MagicLinksServiceSearchAllReq";
|
|
888
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
889
|
+
{ no: 1, name: "is_active", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.BOOL_FILTER) },
|
|
890
|
+
{ no: 2, name: "count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
891
|
+
{ no: 3, name: "offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
892
|
+
{ no: 4, name: "sort_order", kind: "enum", T: protobuf_1.proto3.getEnumType(base_scailo_pb_js_1.SORT_ORDER) },
|
|
893
|
+
{ no: 5, name: "sort_key", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_SORT_KEY) },
|
|
894
|
+
{ no: 6, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
895
|
+
{ no: 10, name: "search_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
896
|
+
{ no: 21, name: "resource_type", kind: "enum", T: protobuf_1.proto3.getEnumType(MAGIC_LINK_RESOURCE_TYPE) },
|
|
897
|
+
]);
|
|
898
|
+
static fromBinary(bytes, options) {
|
|
899
|
+
return new MagicLinksServiceSearchAllReq().fromBinary(bytes, options);
|
|
900
|
+
}
|
|
901
|
+
static fromJson(jsonValue, options) {
|
|
902
|
+
return new MagicLinksServiceSearchAllReq().fromJson(jsonValue, options);
|
|
903
|
+
}
|
|
904
|
+
static fromJsonString(jsonString, options) {
|
|
905
|
+
return new MagicLinksServiceSearchAllReq().fromJsonString(jsonString, options);
|
|
906
|
+
}
|
|
907
|
+
static equals(a, b) {
|
|
908
|
+
return protobuf_1.proto3.util.equals(MagicLinksServiceSearchAllReq, a, b);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
exports.MagicLinksServiceSearchAllReq = MagicLinksServiceSearchAllReq;
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* Describes the request payload for retrieving the magic link information using the code
|
|
915
|
+
*
|
|
916
|
+
* @generated from message Scailo.MagicLinkServiceSearchByCodeReq
|
|
917
|
+
*/
|
|
918
|
+
class MagicLinkServiceSearchByCodeReq extends protobuf_1.Message {
|
|
919
|
+
/**
|
|
920
|
+
* The code that needs to be used to retrieve the magic link
|
|
921
|
+
*
|
|
922
|
+
* @generated from field: string code = 1;
|
|
923
|
+
*/
|
|
924
|
+
code = "";
|
|
925
|
+
/**
|
|
926
|
+
* The IP address that is requesting the search (must be a valid IPv4 or IPv6 address)
|
|
927
|
+
*
|
|
928
|
+
* @generated from field: string ip_address = 2;
|
|
929
|
+
*/
|
|
930
|
+
ipAddress = "";
|
|
931
|
+
constructor(data) {
|
|
932
|
+
super();
|
|
933
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
934
|
+
}
|
|
935
|
+
static runtime = protobuf_1.proto3;
|
|
936
|
+
static typeName = "Scailo.MagicLinkServiceSearchByCodeReq";
|
|
937
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
938
|
+
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
939
|
+
{ no: 2, name: "ip_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
940
|
+
]);
|
|
941
|
+
static fromBinary(bytes, options) {
|
|
942
|
+
return new MagicLinkServiceSearchByCodeReq().fromBinary(bytes, options);
|
|
943
|
+
}
|
|
944
|
+
static fromJson(jsonValue, options) {
|
|
945
|
+
return new MagicLinkServiceSearchByCodeReq().fromJson(jsonValue, options);
|
|
946
|
+
}
|
|
947
|
+
static fromJsonString(jsonString, options) {
|
|
948
|
+
return new MagicLinkServiceSearchByCodeReq().fromJsonString(jsonString, options);
|
|
949
|
+
}
|
|
950
|
+
static equals(a, b) {
|
|
951
|
+
return protobuf_1.proto3.util.equals(MagicLinkServiceSearchByCodeReq, a, b);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
exports.MagicLinkServiceSearchByCodeReq = MagicLinkServiceSearchByCodeReq;
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* Describes the access log of each magic link
|
|
958
|
+
*
|
|
959
|
+
* @generated from message Scailo.MagicLinkAccessLog
|
|
960
|
+
*/
|
|
961
|
+
class MagicLinkAccessLog extends protobuf_1.Message {
|
|
962
|
+
/**
|
|
963
|
+
* Stores a globally unique entity UUID. This will be set at the organization level
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: string entity_uuid = 1;
|
|
966
|
+
*/
|
|
967
|
+
entityUuid = "";
|
|
968
|
+
/**
|
|
969
|
+
* Stores the metadata of this user
|
|
970
|
+
*
|
|
971
|
+
* @generated from field: Scailo.EmployeeMetadata metadata = 2;
|
|
972
|
+
*/
|
|
973
|
+
metadata;
|
|
974
|
+
/**
|
|
975
|
+
* Stores the UUID of the magic link that was accessed
|
|
976
|
+
*
|
|
977
|
+
* @generated from field: string magic_link_uuid = 12;
|
|
978
|
+
*/
|
|
979
|
+
magicLinkUuid = "";
|
|
980
|
+
/**
|
|
981
|
+
* Stores the IP address from where the resource was accessed
|
|
982
|
+
*
|
|
983
|
+
* @generated from field: string ip_addr = 13;
|
|
984
|
+
*/
|
|
985
|
+
ipAddr = "";
|
|
986
|
+
constructor(data) {
|
|
987
|
+
super();
|
|
988
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
989
|
+
}
|
|
990
|
+
static runtime = protobuf_1.proto3;
|
|
991
|
+
static typeName = "Scailo.MagicLinkAccessLog";
|
|
992
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
993
|
+
{ no: 1, name: "entity_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
994
|
+
{ no: 2, name: "metadata", kind: "message", T: base_scailo_pb_js_1.EmployeeMetadata },
|
|
995
|
+
{ no: 12, name: "magic_link_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
996
|
+
{ no: 13, name: "ip_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
997
|
+
]);
|
|
998
|
+
static fromBinary(bytes, options) {
|
|
999
|
+
return new MagicLinkAccessLog().fromBinary(bytes, options);
|
|
1000
|
+
}
|
|
1001
|
+
static fromJson(jsonValue, options) {
|
|
1002
|
+
return new MagicLinkAccessLog().fromJson(jsonValue, options);
|
|
1003
|
+
}
|
|
1004
|
+
static fromJsonString(jsonString, options) {
|
|
1005
|
+
return new MagicLinkAccessLog().fromJsonString(jsonString, options);
|
|
1006
|
+
}
|
|
1007
|
+
static equals(a, b) {
|
|
1008
|
+
return protobuf_1.proto3.util.equals(MagicLinkAccessLog, a, b);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
exports.MagicLinkAccessLog = MagicLinkAccessLog;
|
|
1012
|
+
/**
|
|
1013
|
+
*
|
|
1014
|
+
* Describes the message consisting of the list of access logs
|
|
1015
|
+
*
|
|
1016
|
+
* @generated from message Scailo.MagicLinkAccessLogsList
|
|
1017
|
+
*/
|
|
1018
|
+
class MagicLinkAccessLogsList extends protobuf_1.Message {
|
|
1019
|
+
/**
|
|
1020
|
+
* List of access logs
|
|
1021
|
+
*
|
|
1022
|
+
* @generated from field: repeated Scailo.MagicLinkAccessLog list = 1;
|
|
1023
|
+
*/
|
|
1024
|
+
list = [];
|
|
1025
|
+
constructor(data) {
|
|
1026
|
+
super();
|
|
1027
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1028
|
+
}
|
|
1029
|
+
static runtime = protobuf_1.proto3;
|
|
1030
|
+
static typeName = "Scailo.MagicLinkAccessLogsList";
|
|
1031
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1032
|
+
{ no: 1, name: "list", kind: "message", T: MagicLinkAccessLog, repeated: true },
|
|
1033
|
+
]);
|
|
1034
|
+
static fromBinary(bytes, options) {
|
|
1035
|
+
return new MagicLinkAccessLogsList().fromBinary(bytes, options);
|
|
1036
|
+
}
|
|
1037
|
+
static fromJson(jsonValue, options) {
|
|
1038
|
+
return new MagicLinkAccessLogsList().fromJson(jsonValue, options);
|
|
1039
|
+
}
|
|
1040
|
+
static fromJsonString(jsonString, options) {
|
|
1041
|
+
return new MagicLinkAccessLogsList().fromJsonString(jsonString, options);
|
|
1042
|
+
}
|
|
1043
|
+
static equals(a, b) {
|
|
1044
|
+
return protobuf_1.proto3.util.equals(MagicLinkAccessLogsList, a, b);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
exports.MagicLinkAccessLogsList = MagicLinkAccessLogsList;
|