@aldiokta/protocgen 1.1.65 → 1.1.67
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/package.json +1 -1
- package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +33 -0
- package/prisca/v1/budget_planning/budget_planning_pb.js +1764 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +71 -0
- package/prisca/v1/core/auth/auth_pb.js +599 -1
- package/prisca/v1/core/currency_exchange_rate/currency_exchange_rate_grpc_pb.js +180 -0
- package/prisca/v1/core/currency_exchange_rate/currency_exchange_rate_pb.js +2696 -0
- package/prisca/v1/core/employee/employee_pb.js +61 -1
- package/prisca/v1/core/subscription/subscription_grpc_pb.js +82 -0
- package/prisca/v1/core/subscription/subscription_pb.js +1713 -0
- package/prisca/v1/invoice/invoice_grpc_pb.js +24 -0
- package/prisca/v1/invoice/invoice_pb.js +1102 -108
- package/prisca/v1/purchase_order/purchase_order_pb.js +62 -2
|
@@ -3750,7 +3750,9 @@ proto.CreateEmployeeResponse.prototype.toObject = function(opt_includeInstance)
|
|
|
3750
3750
|
proto.CreateEmployeeResponse.toObject = function(includeInstance, msg) {
|
|
3751
3751
|
var f, obj = {
|
|
3752
3752
|
employee: (f = msg.getEmployee()) && proto.BaseEmployee.toObject(includeInstance, f),
|
|
3753
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3753
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f),
|
|
3754
|
+
userStatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3755
|
+
userStatusReason: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
3754
3756
|
};
|
|
3755
3757
|
|
|
3756
3758
|
if (includeInstance) {
|
|
@@ -3797,6 +3799,14 @@ proto.CreateEmployeeResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
3797
3799
|
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3798
3800
|
msg.setMeta(value);
|
|
3799
3801
|
break;
|
|
3802
|
+
case 3:
|
|
3803
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3804
|
+
msg.setUserStatus(value);
|
|
3805
|
+
break;
|
|
3806
|
+
case 4:
|
|
3807
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3808
|
+
msg.setUserStatusReason(value);
|
|
3809
|
+
break;
|
|
3800
3810
|
default:
|
|
3801
3811
|
reader.skipField();
|
|
3802
3812
|
break;
|
|
@@ -3842,6 +3852,20 @@ proto.CreateEmployeeResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
3842
3852
|
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3843
3853
|
);
|
|
3844
3854
|
}
|
|
3855
|
+
f = message.getUserStatus();
|
|
3856
|
+
if (f.length > 0) {
|
|
3857
|
+
writer.writeString(
|
|
3858
|
+
3,
|
|
3859
|
+
f
|
|
3860
|
+
);
|
|
3861
|
+
}
|
|
3862
|
+
f = message.getUserStatusReason();
|
|
3863
|
+
if (f.length > 0) {
|
|
3864
|
+
writer.writeString(
|
|
3865
|
+
4,
|
|
3866
|
+
f
|
|
3867
|
+
);
|
|
3868
|
+
}
|
|
3845
3869
|
};
|
|
3846
3870
|
|
|
3847
3871
|
|
|
@@ -3919,6 +3943,42 @@ proto.CreateEmployeeResponse.prototype.hasMeta = function() {
|
|
|
3919
3943
|
};
|
|
3920
3944
|
|
|
3921
3945
|
|
|
3946
|
+
/**
|
|
3947
|
+
* optional string user_status = 3;
|
|
3948
|
+
* @return {string}
|
|
3949
|
+
*/
|
|
3950
|
+
proto.CreateEmployeeResponse.prototype.getUserStatus = function() {
|
|
3951
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3952
|
+
};
|
|
3953
|
+
|
|
3954
|
+
|
|
3955
|
+
/**
|
|
3956
|
+
* @param {string} value
|
|
3957
|
+
* @return {!proto.CreateEmployeeResponse} returns this
|
|
3958
|
+
*/
|
|
3959
|
+
proto.CreateEmployeeResponse.prototype.setUserStatus = function(value) {
|
|
3960
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3961
|
+
};
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* optional string user_status_reason = 4;
|
|
3966
|
+
* @return {string}
|
|
3967
|
+
*/
|
|
3968
|
+
proto.CreateEmployeeResponse.prototype.getUserStatusReason = function() {
|
|
3969
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3970
|
+
};
|
|
3971
|
+
|
|
3972
|
+
|
|
3973
|
+
/**
|
|
3974
|
+
* @param {string} value
|
|
3975
|
+
* @return {!proto.CreateEmployeeResponse} returns this
|
|
3976
|
+
*/
|
|
3977
|
+
proto.CreateEmployeeResponse.prototype.setUserStatusReason = function(value) {
|
|
3978
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3979
|
+
};
|
|
3980
|
+
|
|
3981
|
+
|
|
3922
3982
|
|
|
3923
3983
|
/**
|
|
3924
3984
|
* List of repeated fields within this message type.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_core_subscription_subscription_pb = require('../../../../prisca/v1/core/subscription/subscription_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_GetEntitlementRequest(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_core_subscription_subscription_pb.GetEntitlementRequest)) {
|
|
10
|
+
throw new Error('Expected argument of type GetEntitlementRequest');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_GetEntitlementRequest(buffer_arg) {
|
|
16
|
+
return prisca_v1_core_subscription_subscription_pb.GetEntitlementRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_GetEntitlementResponse(arg) {
|
|
20
|
+
if (!(arg instanceof prisca_v1_core_subscription_subscription_pb.GetEntitlementResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type GetEntitlementResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_GetEntitlementResponse(buffer_arg) {
|
|
27
|
+
return prisca_v1_core_subscription_subscription_pb.GetEntitlementResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function serialize_ProcessSubscriptionEventRequest(arg) {
|
|
31
|
+
if (!(arg instanceof prisca_v1_core_subscription_subscription_pb.ProcessSubscriptionEventRequest)) {
|
|
32
|
+
throw new Error('Expected argument of type ProcessSubscriptionEventRequest');
|
|
33
|
+
}
|
|
34
|
+
return Buffer.from(arg.serializeBinary());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function deserialize_ProcessSubscriptionEventRequest(buffer_arg) {
|
|
38
|
+
return prisca_v1_core_subscription_subscription_pb.ProcessSubscriptionEventRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function serialize_ProcessSubscriptionEventResponse(arg) {
|
|
42
|
+
if (!(arg instanceof prisca_v1_core_subscription_subscription_pb.ProcessSubscriptionEventResponse)) {
|
|
43
|
+
throw new Error('Expected argument of type ProcessSubscriptionEventResponse');
|
|
44
|
+
}
|
|
45
|
+
return Buffer.from(arg.serializeBinary());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function deserialize_ProcessSubscriptionEventResponse(buffer_arg) {
|
|
49
|
+
return prisca_v1_core_subscription_subscription_pb.ProcessSubscriptionEventResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
// SubscriptionService is Prisca's side of the Subscription System control-plane
|
|
54
|
+
// integration (PRISCA-95). The HMAC verification itself happens at the REST
|
|
55
|
+
// gateway (prisca-v2-backend) — by the time a call reaches here the request is
|
|
56
|
+
// already authenticated, so this service never sees the shared secret.
|
|
57
|
+
var SubscriptionServiceService = exports.SubscriptionServiceService = {
|
|
58
|
+
processSubscriptionEvent: {
|
|
59
|
+
path: '/SubscriptionService/ProcessSubscriptionEvent',
|
|
60
|
+
requestStream: false,
|
|
61
|
+
responseStream: false,
|
|
62
|
+
requestType: prisca_v1_core_subscription_subscription_pb.ProcessSubscriptionEventRequest,
|
|
63
|
+
responseType: prisca_v1_core_subscription_subscription_pb.ProcessSubscriptionEventResponse,
|
|
64
|
+
requestSerialize: serialize_ProcessSubscriptionEventRequest,
|
|
65
|
+
requestDeserialize: deserialize_ProcessSubscriptionEventRequest,
|
|
66
|
+
responseSerialize: serialize_ProcessSubscriptionEventResponse,
|
|
67
|
+
responseDeserialize: deserialize_ProcessSubscriptionEventResponse,
|
|
68
|
+
},
|
|
69
|
+
getEntitlement: {
|
|
70
|
+
path: '/SubscriptionService/GetEntitlement',
|
|
71
|
+
requestStream: false,
|
|
72
|
+
responseStream: false,
|
|
73
|
+
requestType: prisca_v1_core_subscription_subscription_pb.GetEntitlementRequest,
|
|
74
|
+
responseType: prisca_v1_core_subscription_subscription_pb.GetEntitlementResponse,
|
|
75
|
+
requestSerialize: serialize_GetEntitlementRequest,
|
|
76
|
+
requestDeserialize: deserialize_GetEntitlementRequest,
|
|
77
|
+
responseSerialize: serialize_GetEntitlementResponse,
|
|
78
|
+
responseDeserialize: deserialize_GetEntitlementResponse,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
exports.SubscriptionServiceClient = grpc.makeGenericClientConstructor(SubscriptionServiceService, 'SubscriptionService');
|