@acequants/aegis-contracts 0.1.43 → 0.1.45
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/dist/src/gen/billing/v1/billing.d.ts +172 -0
- package/dist/src/gen/billing/v1/billing.d.ts.map +1 -0
- package/dist/src/gen/billing/v1/billing.js +645 -0
- package/dist/src/gen/system/v1/system.d.ts +0 -137
- package/dist/src/gen/system/v1/system.d.ts.map +1 -1
- package/dist/src/gen/system/v1/system.js +0 -531
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/package.json +1 -1
- package/proto/billing/v1/billing.proto +90 -0
- package/proto/system/v1/system.proto +0 -67
|
@@ -1937,496 +1937,6 @@ export const GrpcDtoClientFeatures = {
|
|
|
1937
1937
|
return message;
|
|
1938
1938
|
},
|
|
1939
1939
|
};
|
|
1940
|
-
function createBaseGrpcDtoCurrency() {
|
|
1941
|
-
return { publicId: "", code: "", name: "", symbol: "", isActive: false, exchangeRate: 0 };
|
|
1942
|
-
}
|
|
1943
|
-
export const GrpcDtoCurrency = {
|
|
1944
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1945
|
-
if (message.publicId !== "") {
|
|
1946
|
-
writer.uint32(10).string(message.publicId);
|
|
1947
|
-
}
|
|
1948
|
-
if (message.code !== "") {
|
|
1949
|
-
writer.uint32(18).string(message.code);
|
|
1950
|
-
}
|
|
1951
|
-
if (message.name !== "") {
|
|
1952
|
-
writer.uint32(26).string(message.name);
|
|
1953
|
-
}
|
|
1954
|
-
if (message.symbol !== "") {
|
|
1955
|
-
writer.uint32(34).string(message.symbol);
|
|
1956
|
-
}
|
|
1957
|
-
if (message.isActive !== false) {
|
|
1958
|
-
writer.uint32(40).bool(message.isActive);
|
|
1959
|
-
}
|
|
1960
|
-
if (message.exchangeRate !== 0) {
|
|
1961
|
-
writer.uint32(53).float(message.exchangeRate);
|
|
1962
|
-
}
|
|
1963
|
-
if (message.createdAt !== undefined) {
|
|
1964
|
-
Timestamp.encode(message.createdAt, writer.uint32(58).fork()).ldelim();
|
|
1965
|
-
}
|
|
1966
|
-
if (message.updatedAt !== undefined) {
|
|
1967
|
-
Timestamp.encode(message.updatedAt, writer.uint32(66).fork()).ldelim();
|
|
1968
|
-
}
|
|
1969
|
-
if (message.deletedAt !== undefined) {
|
|
1970
|
-
Timestamp.encode(message.deletedAt, writer.uint32(74).fork()).ldelim();
|
|
1971
|
-
}
|
|
1972
|
-
return writer;
|
|
1973
|
-
},
|
|
1974
|
-
decode(input, length) {
|
|
1975
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1976
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1977
|
-
const message = createBaseGrpcDtoCurrency();
|
|
1978
|
-
while (reader.pos < end) {
|
|
1979
|
-
const tag = reader.uint32();
|
|
1980
|
-
switch (tag >>> 3) {
|
|
1981
|
-
case 1:
|
|
1982
|
-
if (tag !== 10) {
|
|
1983
|
-
break;
|
|
1984
|
-
}
|
|
1985
|
-
message.publicId = reader.string();
|
|
1986
|
-
continue;
|
|
1987
|
-
case 2:
|
|
1988
|
-
if (tag !== 18) {
|
|
1989
|
-
break;
|
|
1990
|
-
}
|
|
1991
|
-
message.code = reader.string();
|
|
1992
|
-
continue;
|
|
1993
|
-
case 3:
|
|
1994
|
-
if (tag !== 26) {
|
|
1995
|
-
break;
|
|
1996
|
-
}
|
|
1997
|
-
message.name = reader.string();
|
|
1998
|
-
continue;
|
|
1999
|
-
case 4:
|
|
2000
|
-
if (tag !== 34) {
|
|
2001
|
-
break;
|
|
2002
|
-
}
|
|
2003
|
-
message.symbol = reader.string();
|
|
2004
|
-
continue;
|
|
2005
|
-
case 5:
|
|
2006
|
-
if (tag !== 40) {
|
|
2007
|
-
break;
|
|
2008
|
-
}
|
|
2009
|
-
message.isActive = reader.bool();
|
|
2010
|
-
continue;
|
|
2011
|
-
case 6:
|
|
2012
|
-
if (tag !== 53) {
|
|
2013
|
-
break;
|
|
2014
|
-
}
|
|
2015
|
-
message.exchangeRate = reader.float();
|
|
2016
|
-
continue;
|
|
2017
|
-
case 7:
|
|
2018
|
-
if (tag !== 58) {
|
|
2019
|
-
break;
|
|
2020
|
-
}
|
|
2021
|
-
message.createdAt = Timestamp.decode(reader, reader.uint32());
|
|
2022
|
-
continue;
|
|
2023
|
-
case 8:
|
|
2024
|
-
if (tag !== 66) {
|
|
2025
|
-
break;
|
|
2026
|
-
}
|
|
2027
|
-
message.updatedAt = Timestamp.decode(reader, reader.uint32());
|
|
2028
|
-
continue;
|
|
2029
|
-
case 9:
|
|
2030
|
-
if (tag !== 74) {
|
|
2031
|
-
break;
|
|
2032
|
-
}
|
|
2033
|
-
message.deletedAt = Timestamp.decode(reader, reader.uint32());
|
|
2034
|
-
continue;
|
|
2035
|
-
}
|
|
2036
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2037
|
-
break;
|
|
2038
|
-
}
|
|
2039
|
-
reader.skipType(tag & 7);
|
|
2040
|
-
}
|
|
2041
|
-
return message;
|
|
2042
|
-
},
|
|
2043
|
-
};
|
|
2044
|
-
function createBaseGrpcInputExchangeRates() {
|
|
2045
|
-
return {};
|
|
2046
|
-
}
|
|
2047
|
-
export const GrpcInputExchangeRates = {
|
|
2048
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
2049
|
-
if (message.baseCurrencyPublicId !== undefined) {
|
|
2050
|
-
writer.uint32(10).string(message.baseCurrencyPublicId);
|
|
2051
|
-
}
|
|
2052
|
-
if (message.quoteCurrencyPublicId !== undefined) {
|
|
2053
|
-
writer.uint32(18).string(message.quoteCurrencyPublicId);
|
|
2054
|
-
}
|
|
2055
|
-
if (message.search !== undefined) {
|
|
2056
|
-
writer.uint32(26).string(message.search);
|
|
2057
|
-
}
|
|
2058
|
-
if (message.page !== undefined) {
|
|
2059
|
-
writer.uint32(32).int32(message.page);
|
|
2060
|
-
}
|
|
2061
|
-
if (message.pageSize !== undefined) {
|
|
2062
|
-
writer.uint32(40).int32(message.pageSize);
|
|
2063
|
-
}
|
|
2064
|
-
if (message.sortBy !== undefined) {
|
|
2065
|
-
writer.uint32(50).string(message.sortBy);
|
|
2066
|
-
}
|
|
2067
|
-
if (message.sortOrder !== undefined) {
|
|
2068
|
-
writer.uint32(58).string(message.sortOrder);
|
|
2069
|
-
}
|
|
2070
|
-
return writer;
|
|
2071
|
-
},
|
|
2072
|
-
decode(input, length) {
|
|
2073
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2074
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2075
|
-
const message = createBaseGrpcInputExchangeRates();
|
|
2076
|
-
while (reader.pos < end) {
|
|
2077
|
-
const tag = reader.uint32();
|
|
2078
|
-
switch (tag >>> 3) {
|
|
2079
|
-
case 1:
|
|
2080
|
-
if (tag !== 10) {
|
|
2081
|
-
break;
|
|
2082
|
-
}
|
|
2083
|
-
message.baseCurrencyPublicId = reader.string();
|
|
2084
|
-
continue;
|
|
2085
|
-
case 2:
|
|
2086
|
-
if (tag !== 18) {
|
|
2087
|
-
break;
|
|
2088
|
-
}
|
|
2089
|
-
message.quoteCurrencyPublicId = reader.string();
|
|
2090
|
-
continue;
|
|
2091
|
-
case 3:
|
|
2092
|
-
if (tag !== 26) {
|
|
2093
|
-
break;
|
|
2094
|
-
}
|
|
2095
|
-
message.search = reader.string();
|
|
2096
|
-
continue;
|
|
2097
|
-
case 4:
|
|
2098
|
-
if (tag !== 32) {
|
|
2099
|
-
break;
|
|
2100
|
-
}
|
|
2101
|
-
message.page = reader.int32();
|
|
2102
|
-
continue;
|
|
2103
|
-
case 5:
|
|
2104
|
-
if (tag !== 40) {
|
|
2105
|
-
break;
|
|
2106
|
-
}
|
|
2107
|
-
message.pageSize = reader.int32();
|
|
2108
|
-
continue;
|
|
2109
|
-
case 6:
|
|
2110
|
-
if (tag !== 50) {
|
|
2111
|
-
break;
|
|
2112
|
-
}
|
|
2113
|
-
message.sortBy = reader.string();
|
|
2114
|
-
continue;
|
|
2115
|
-
case 7:
|
|
2116
|
-
if (tag !== 58) {
|
|
2117
|
-
break;
|
|
2118
|
-
}
|
|
2119
|
-
message.sortOrder = reader.string();
|
|
2120
|
-
continue;
|
|
2121
|
-
}
|
|
2122
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2123
|
-
break;
|
|
2124
|
-
}
|
|
2125
|
-
reader.skipType(tag & 7);
|
|
2126
|
-
}
|
|
2127
|
-
return message;
|
|
2128
|
-
},
|
|
2129
|
-
};
|
|
2130
|
-
function createBaseGrpcInputExchangeRateCreate() {
|
|
2131
|
-
return { baseCurrencyPublicId: "", quoteCurrencyPublicId: "", rate: "", source: "" };
|
|
2132
|
-
}
|
|
2133
|
-
export const GrpcInputExchangeRateCreate = {
|
|
2134
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
2135
|
-
if (message.baseCurrencyPublicId !== "") {
|
|
2136
|
-
writer.uint32(10).string(message.baseCurrencyPublicId);
|
|
2137
|
-
}
|
|
2138
|
-
if (message.quoteCurrencyPublicId !== "") {
|
|
2139
|
-
writer.uint32(18).string(message.quoteCurrencyPublicId);
|
|
2140
|
-
}
|
|
2141
|
-
if (message.rate !== "") {
|
|
2142
|
-
writer.uint32(26).string(message.rate);
|
|
2143
|
-
}
|
|
2144
|
-
if (message.source !== "") {
|
|
2145
|
-
writer.uint32(34).string(message.source);
|
|
2146
|
-
}
|
|
2147
|
-
return writer;
|
|
2148
|
-
},
|
|
2149
|
-
decode(input, length) {
|
|
2150
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2151
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2152
|
-
const message = createBaseGrpcInputExchangeRateCreate();
|
|
2153
|
-
while (reader.pos < end) {
|
|
2154
|
-
const tag = reader.uint32();
|
|
2155
|
-
switch (tag >>> 3) {
|
|
2156
|
-
case 1:
|
|
2157
|
-
if (tag !== 10) {
|
|
2158
|
-
break;
|
|
2159
|
-
}
|
|
2160
|
-
message.baseCurrencyPublicId = reader.string();
|
|
2161
|
-
continue;
|
|
2162
|
-
case 2:
|
|
2163
|
-
if (tag !== 18) {
|
|
2164
|
-
break;
|
|
2165
|
-
}
|
|
2166
|
-
message.quoteCurrencyPublicId = reader.string();
|
|
2167
|
-
continue;
|
|
2168
|
-
case 3:
|
|
2169
|
-
if (tag !== 26) {
|
|
2170
|
-
break;
|
|
2171
|
-
}
|
|
2172
|
-
message.rate = reader.string();
|
|
2173
|
-
continue;
|
|
2174
|
-
case 4:
|
|
2175
|
-
if (tag !== 34) {
|
|
2176
|
-
break;
|
|
2177
|
-
}
|
|
2178
|
-
message.source = reader.string();
|
|
2179
|
-
continue;
|
|
2180
|
-
}
|
|
2181
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2182
|
-
break;
|
|
2183
|
-
}
|
|
2184
|
-
reader.skipType(tag & 7);
|
|
2185
|
-
}
|
|
2186
|
-
return message;
|
|
2187
|
-
},
|
|
2188
|
-
};
|
|
2189
|
-
function createBaseGrpcInputExchangeRateCacheClear() {
|
|
2190
|
-
return {};
|
|
2191
|
-
}
|
|
2192
|
-
export const GrpcInputExchangeRateCacheClear = {
|
|
2193
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
2194
|
-
return writer;
|
|
2195
|
-
},
|
|
2196
|
-
decode(input, length) {
|
|
2197
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2198
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2199
|
-
const message = createBaseGrpcInputExchangeRateCacheClear();
|
|
2200
|
-
while (reader.pos < end) {
|
|
2201
|
-
const tag = reader.uint32();
|
|
2202
|
-
switch (tag >>> 3) {
|
|
2203
|
-
}
|
|
2204
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2205
|
-
break;
|
|
2206
|
-
}
|
|
2207
|
-
reader.skipType(tag & 7);
|
|
2208
|
-
}
|
|
2209
|
-
return message;
|
|
2210
|
-
},
|
|
2211
|
-
};
|
|
2212
|
-
function createBaseGrpcInputExchangeRateConversion() {
|
|
2213
|
-
return { fromCode: "", toCode: "", amount: "" };
|
|
2214
|
-
}
|
|
2215
|
-
export const GrpcInputExchangeRateConversion = {
|
|
2216
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
2217
|
-
if (message.fromCode !== "") {
|
|
2218
|
-
writer.uint32(10).string(message.fromCode);
|
|
2219
|
-
}
|
|
2220
|
-
if (message.toCode !== "") {
|
|
2221
|
-
writer.uint32(18).string(message.toCode);
|
|
2222
|
-
}
|
|
2223
|
-
if (message.amount !== "") {
|
|
2224
|
-
writer.uint32(26).string(message.amount);
|
|
2225
|
-
}
|
|
2226
|
-
return writer;
|
|
2227
|
-
},
|
|
2228
|
-
decode(input, length) {
|
|
2229
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2230
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2231
|
-
const message = createBaseGrpcInputExchangeRateConversion();
|
|
2232
|
-
while (reader.pos < end) {
|
|
2233
|
-
const tag = reader.uint32();
|
|
2234
|
-
switch (tag >>> 3) {
|
|
2235
|
-
case 1:
|
|
2236
|
-
if (tag !== 10) {
|
|
2237
|
-
break;
|
|
2238
|
-
}
|
|
2239
|
-
message.fromCode = reader.string();
|
|
2240
|
-
continue;
|
|
2241
|
-
case 2:
|
|
2242
|
-
if (tag !== 18) {
|
|
2243
|
-
break;
|
|
2244
|
-
}
|
|
2245
|
-
message.toCode = reader.string();
|
|
2246
|
-
continue;
|
|
2247
|
-
case 3:
|
|
2248
|
-
if (tag !== 26) {
|
|
2249
|
-
break;
|
|
2250
|
-
}
|
|
2251
|
-
message.amount = reader.string();
|
|
2252
|
-
continue;
|
|
2253
|
-
}
|
|
2254
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2255
|
-
break;
|
|
2256
|
-
}
|
|
2257
|
-
reader.skipType(tag & 7);
|
|
2258
|
-
}
|
|
2259
|
-
return message;
|
|
2260
|
-
},
|
|
2261
|
-
};
|
|
2262
|
-
function createBaseGrpcDtoExchangeRate() {
|
|
2263
|
-
return { publicId: "", rate: "", source: "" };
|
|
2264
|
-
}
|
|
2265
|
-
export const GrpcDtoExchangeRate = {
|
|
2266
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
2267
|
-
if (message.publicId !== "") {
|
|
2268
|
-
writer.uint32(10).string(message.publicId);
|
|
2269
|
-
}
|
|
2270
|
-
if (message.baseCurrency !== undefined) {
|
|
2271
|
-
GrpcDtoCurrency.encode(message.baseCurrency, writer.uint32(18).fork()).ldelim();
|
|
2272
|
-
}
|
|
2273
|
-
if (message.quoteCurrency !== undefined) {
|
|
2274
|
-
GrpcDtoCurrency.encode(message.quoteCurrency, writer.uint32(26).fork()).ldelim();
|
|
2275
|
-
}
|
|
2276
|
-
if (message.rate !== "") {
|
|
2277
|
-
writer.uint32(34).string(message.rate);
|
|
2278
|
-
}
|
|
2279
|
-
if (message.source !== "") {
|
|
2280
|
-
writer.uint32(42).string(message.source);
|
|
2281
|
-
}
|
|
2282
|
-
if (message.createdAt !== undefined) {
|
|
2283
|
-
Timestamp.encode(message.createdAt, writer.uint32(50).fork()).ldelim();
|
|
2284
|
-
}
|
|
2285
|
-
if (message.updatedAt !== undefined) {
|
|
2286
|
-
Timestamp.encode(message.updatedAt, writer.uint32(58).fork()).ldelim();
|
|
2287
|
-
}
|
|
2288
|
-
if (message.deletedAt !== undefined) {
|
|
2289
|
-
Timestamp.encode(message.deletedAt, writer.uint32(66).fork()).ldelim();
|
|
2290
|
-
}
|
|
2291
|
-
return writer;
|
|
2292
|
-
},
|
|
2293
|
-
decode(input, length) {
|
|
2294
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2295
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2296
|
-
const message = createBaseGrpcDtoExchangeRate();
|
|
2297
|
-
while (reader.pos < end) {
|
|
2298
|
-
const tag = reader.uint32();
|
|
2299
|
-
switch (tag >>> 3) {
|
|
2300
|
-
case 1:
|
|
2301
|
-
if (tag !== 10) {
|
|
2302
|
-
break;
|
|
2303
|
-
}
|
|
2304
|
-
message.publicId = reader.string();
|
|
2305
|
-
continue;
|
|
2306
|
-
case 2:
|
|
2307
|
-
if (tag !== 18) {
|
|
2308
|
-
break;
|
|
2309
|
-
}
|
|
2310
|
-
message.baseCurrency = GrpcDtoCurrency.decode(reader, reader.uint32());
|
|
2311
|
-
continue;
|
|
2312
|
-
case 3:
|
|
2313
|
-
if (tag !== 26) {
|
|
2314
|
-
break;
|
|
2315
|
-
}
|
|
2316
|
-
message.quoteCurrency = GrpcDtoCurrency.decode(reader, reader.uint32());
|
|
2317
|
-
continue;
|
|
2318
|
-
case 4:
|
|
2319
|
-
if (tag !== 34) {
|
|
2320
|
-
break;
|
|
2321
|
-
}
|
|
2322
|
-
message.rate = reader.string();
|
|
2323
|
-
continue;
|
|
2324
|
-
case 5:
|
|
2325
|
-
if (tag !== 42) {
|
|
2326
|
-
break;
|
|
2327
|
-
}
|
|
2328
|
-
message.source = reader.string();
|
|
2329
|
-
continue;
|
|
2330
|
-
case 6:
|
|
2331
|
-
if (tag !== 50) {
|
|
2332
|
-
break;
|
|
2333
|
-
}
|
|
2334
|
-
message.createdAt = Timestamp.decode(reader, reader.uint32());
|
|
2335
|
-
continue;
|
|
2336
|
-
case 7:
|
|
2337
|
-
if (tag !== 58) {
|
|
2338
|
-
break;
|
|
2339
|
-
}
|
|
2340
|
-
message.updatedAt = Timestamp.decode(reader, reader.uint32());
|
|
2341
|
-
continue;
|
|
2342
|
-
case 8:
|
|
2343
|
-
if (tag !== 66) {
|
|
2344
|
-
break;
|
|
2345
|
-
}
|
|
2346
|
-
message.deletedAt = Timestamp.decode(reader, reader.uint32());
|
|
2347
|
-
continue;
|
|
2348
|
-
}
|
|
2349
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2350
|
-
break;
|
|
2351
|
-
}
|
|
2352
|
-
reader.skipType(tag & 7);
|
|
2353
|
-
}
|
|
2354
|
-
return message;
|
|
2355
|
-
},
|
|
2356
|
-
};
|
|
2357
|
-
function createBaseGrpcDtoExchangeRates() {
|
|
2358
|
-
return { items: [] };
|
|
2359
|
-
}
|
|
2360
|
-
export const GrpcDtoExchangeRates = {
|
|
2361
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
2362
|
-
for (const v of message.items) {
|
|
2363
|
-
GrpcDtoExchangeRate.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2364
|
-
}
|
|
2365
|
-
if (message.meta !== undefined) {
|
|
2366
|
-
GrpcDtoPagination.encode(message.meta, writer.uint32(18).fork()).ldelim();
|
|
2367
|
-
}
|
|
2368
|
-
return writer;
|
|
2369
|
-
},
|
|
2370
|
-
decode(input, length) {
|
|
2371
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2372
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2373
|
-
const message = createBaseGrpcDtoExchangeRates();
|
|
2374
|
-
while (reader.pos < end) {
|
|
2375
|
-
const tag = reader.uint32();
|
|
2376
|
-
switch (tag >>> 3) {
|
|
2377
|
-
case 1:
|
|
2378
|
-
if (tag !== 10) {
|
|
2379
|
-
break;
|
|
2380
|
-
}
|
|
2381
|
-
message.items.push(GrpcDtoExchangeRate.decode(reader, reader.uint32()));
|
|
2382
|
-
continue;
|
|
2383
|
-
case 2:
|
|
2384
|
-
if (tag !== 18) {
|
|
2385
|
-
break;
|
|
2386
|
-
}
|
|
2387
|
-
message.meta = GrpcDtoPagination.decode(reader, reader.uint32());
|
|
2388
|
-
continue;
|
|
2389
|
-
}
|
|
2390
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2391
|
-
break;
|
|
2392
|
-
}
|
|
2393
|
-
reader.skipType(tag & 7);
|
|
2394
|
-
}
|
|
2395
|
-
return message;
|
|
2396
|
-
},
|
|
2397
|
-
};
|
|
2398
|
-
function createBaseGrpcDtoExchangeRateConvertion() {
|
|
2399
|
-
return { amount: 0 };
|
|
2400
|
-
}
|
|
2401
|
-
export const GrpcDtoExchangeRateConvertion = {
|
|
2402
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
2403
|
-
if (message.amount !== 0) {
|
|
2404
|
-
writer.uint32(13).float(message.amount);
|
|
2405
|
-
}
|
|
2406
|
-
return writer;
|
|
2407
|
-
},
|
|
2408
|
-
decode(input, length) {
|
|
2409
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
2410
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2411
|
-
const message = createBaseGrpcDtoExchangeRateConvertion();
|
|
2412
|
-
while (reader.pos < end) {
|
|
2413
|
-
const tag = reader.uint32();
|
|
2414
|
-
switch (tag >>> 3) {
|
|
2415
|
-
case 1:
|
|
2416
|
-
if (tag !== 13) {
|
|
2417
|
-
break;
|
|
2418
|
-
}
|
|
2419
|
-
message.amount = reader.float();
|
|
2420
|
-
continue;
|
|
2421
|
-
}
|
|
2422
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2423
|
-
break;
|
|
2424
|
-
}
|
|
2425
|
-
reader.skipType(tag & 7);
|
|
2426
|
-
}
|
|
2427
|
-
return message;
|
|
2428
|
-
},
|
|
2429
|
-
};
|
|
2430
1940
|
export function SystemServiceControllerMethods() {
|
|
2431
1941
|
return function (constructor) {
|
|
2432
1942
|
const grpcMethods = [
|
|
@@ -2449,10 +1959,6 @@ export function SystemServiceControllerMethods() {
|
|
|
2449
1959
|
"clientFeaturesAdd",
|
|
2450
1960
|
"clientFeaturesRemove",
|
|
2451
1961
|
"clientFeatures",
|
|
2452
|
-
"rates",
|
|
2453
|
-
"create",
|
|
2454
|
-
"convertion",
|
|
2455
|
-
"clearCache",
|
|
2456
1962
|
];
|
|
2457
1963
|
for (const method of grpcMethods) {
|
|
2458
1964
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -2642,41 +2148,4 @@ export const SystemServiceService = {
|
|
|
2642
2148
|
responseSerialize: (value) => Buffer.from(GrpcDtoClientFeatures.encode(value).finish()),
|
|
2643
2149
|
responseDeserialize: (value) => GrpcDtoClientFeatures.decode(value),
|
|
2644
2150
|
},
|
|
2645
|
-
/** --- Exchange Rate --- */
|
|
2646
|
-
rates: {
|
|
2647
|
-
path: "/aegis.system.v1.SystemService/Rates",
|
|
2648
|
-
requestStream: false,
|
|
2649
|
-
responseStream: false,
|
|
2650
|
-
requestSerialize: (value) => Buffer.from(GrpcInputExchangeRates.encode(value).finish()),
|
|
2651
|
-
requestDeserialize: (value) => GrpcInputExchangeRates.decode(value),
|
|
2652
|
-
responseSerialize: (value) => Buffer.from(GrpcDtoExchangeRates.encode(value).finish()),
|
|
2653
|
-
responseDeserialize: (value) => GrpcDtoExchangeRates.decode(value),
|
|
2654
|
-
},
|
|
2655
|
-
create: {
|
|
2656
|
-
path: "/aegis.system.v1.SystemService/Create",
|
|
2657
|
-
requestStream: false,
|
|
2658
|
-
responseStream: false,
|
|
2659
|
-
requestSerialize: (value) => Buffer.from(GrpcInputExchangeRateCreate.encode(value).finish()),
|
|
2660
|
-
requestDeserialize: (value) => GrpcInputExchangeRateCreate.decode(value),
|
|
2661
|
-
responseSerialize: (value) => Buffer.from(GrpcDtoExchangeRate.encode(value).finish()),
|
|
2662
|
-
responseDeserialize: (value) => GrpcDtoExchangeRate.decode(value),
|
|
2663
|
-
},
|
|
2664
|
-
convertion: {
|
|
2665
|
-
path: "/aegis.system.v1.SystemService/Convertion",
|
|
2666
|
-
requestStream: false,
|
|
2667
|
-
responseStream: false,
|
|
2668
|
-
requestSerialize: (value) => Buffer.from(GrpcInputExchangeRateConversion.encode(value).finish()),
|
|
2669
|
-
requestDeserialize: (value) => GrpcInputExchangeRateConversion.decode(value),
|
|
2670
|
-
responseSerialize: (value) => Buffer.from(GrpcDtoExchangeRateConvertion.encode(value).finish()),
|
|
2671
|
-
responseDeserialize: (value) => GrpcDtoExchangeRateConvertion.decode(value),
|
|
2672
|
-
},
|
|
2673
|
-
clearCache: {
|
|
2674
|
-
path: "/aegis.system.v1.SystemService/ClearCache",
|
|
2675
|
-
requestStream: false,
|
|
2676
|
-
responseStream: false,
|
|
2677
|
-
requestSerialize: (value) => Buffer.from(GrpcInputExchangeRateCacheClear.encode(value).finish()),
|
|
2678
|
-
requestDeserialize: (value) => GrpcInputExchangeRateCacheClear.decode(value),
|
|
2679
|
-
responseSerialize: (value) => Buffer.from(GrpcDtoMessage.encode(value).finish()),
|
|
2680
|
-
responseDeserialize: (value) => GrpcDtoMessage.decode(value),
|
|
2681
|
-
},
|
|
2682
2151
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export * as v1System from "./gen/system/v1/system";
|
|
|
4
4
|
export * as v1Agent from "./gen/agent/v1/agent";
|
|
5
5
|
export * as v1Analytics from "./gen/analytics/v1/analytics";
|
|
6
6
|
export * as v1Ops from "./gen/ops/v1/ops";
|
|
7
|
+
export * as v1Billing from "./gen/billing/v1/billing";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC"}
|
package/dist/src/index.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package aegis.billing.v1;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
// import "shared/v1/shared.proto";
|
|
9
|
+
|
|
10
|
+
// ---- TO BE SHARED ----
|
|
11
|
+
|
|
12
|
+
message GrpcDtoPagination {
|
|
13
|
+
int32 total_items = 1;
|
|
14
|
+
int32 total_pages = 2;
|
|
15
|
+
int32 current_page = 3;
|
|
16
|
+
int32 page_size = 4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message GrpcDtoMessage {
|
|
20
|
+
string message = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// ---- CURRENCY ----
|
|
24
|
+
message GrpcDtoCurrency {
|
|
25
|
+
string publicId = 1;
|
|
26
|
+
string code = 2;
|
|
27
|
+
string name = 3;
|
|
28
|
+
string symbol = 4;
|
|
29
|
+
bool isActive = 5;
|
|
30
|
+
float exchangeRate = 6;
|
|
31
|
+
google.protobuf.Timestamp createdAt = 7;
|
|
32
|
+
google.protobuf.Timestamp updatedAt = 8;
|
|
33
|
+
google.protobuf.Timestamp deletedAt = 9;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ---- EXCHANGE RATE ----
|
|
37
|
+
message GrpcInputExchangeRates {
|
|
38
|
+
optional string baseCurrencyPublicId = 1;
|
|
39
|
+
optional string quoteCurrencyPublicId = 2;
|
|
40
|
+
optional string search = 3;
|
|
41
|
+
optional int32 page = 4;
|
|
42
|
+
optional int32 pageSize = 5;
|
|
43
|
+
optional string sortBy = 6;
|
|
44
|
+
optional string sortOrder = 7;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GrpcInputExchangeRateCreate {
|
|
48
|
+
string baseCurrencyPublicId = 1;
|
|
49
|
+
string quoteCurrencyPublicId = 2;
|
|
50
|
+
string rate = 3;
|
|
51
|
+
string source = 4;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message GrpcInputExchangeRateCacheClear {
|
|
55
|
+
// optional string servicePublicId = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message GrpcInputExchangeRateConvert {
|
|
59
|
+
string fromCode = 1;
|
|
60
|
+
string toCode = 2;
|
|
61
|
+
string amount = 3;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message GrpcDtoExchangeRate {
|
|
65
|
+
string publicId = 1;
|
|
66
|
+
optional GrpcDtoCurrency baseCurrency = 2;
|
|
67
|
+
optional GrpcDtoCurrency quoteCurrency = 3;
|
|
68
|
+
string rate = 4;
|
|
69
|
+
string source = 5;
|
|
70
|
+
google.protobuf.Timestamp createdAt = 6;
|
|
71
|
+
google.protobuf.Timestamp updatedAt = 7;
|
|
72
|
+
google.protobuf.Timestamp deletedAt = 8;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message GrpcDtoExchangeRates {
|
|
76
|
+
repeated GrpcDtoExchangeRate items = 1;
|
|
77
|
+
GrpcDtoPagination meta = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message GrpcDtoExchangeRateConvert {
|
|
81
|
+
float amount = 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
service BillingService {
|
|
85
|
+
// --- Exchange Rate ---
|
|
86
|
+
rpc Rates (GrpcInputExchangeRates) returns (GrpcDtoExchangeRates);
|
|
87
|
+
rpc Create (GrpcInputExchangeRateCreate) returns (GrpcDtoExchangeRate);
|
|
88
|
+
rpc Convert (GrpcInputExchangeRateConvert) returns (GrpcDtoExchangeRateConvert);
|
|
89
|
+
rpc ClearCache (GrpcInputExchangeRateCacheClear) returns (GrpcDtoMessage);
|
|
90
|
+
}
|