televerse-dao-typechain-types 1.0.8-alpha.21 → 1.0.8-alpha.22
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
CHANGED
|
@@ -87,6 +87,67 @@ export declare const searchRequestPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
87
87
|
created_at: z.ZodString;
|
|
88
88
|
tender_sec: z.ZodNumber;
|
|
89
89
|
}, z.core.$strip>]>;
|
|
90
|
+
export declare const searchRequestWithoutRfqUuidSchema: z.ZodUnion<[z.ZodObject<{
|
|
91
|
+
src_point: z.ZodObject<{
|
|
92
|
+
uuid: z.ZodUUID;
|
|
93
|
+
coordinate: z.ZodObject<{
|
|
94
|
+
lat: z.ZodNumber;
|
|
95
|
+
lng: z.ZodNumber;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
dest_point: z.ZodObject<{
|
|
99
|
+
uuid: z.ZodUUID;
|
|
100
|
+
coordinate: z.ZodObject<{
|
|
101
|
+
lat: z.ZodNumber;
|
|
102
|
+
lng: z.ZodNumber;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
service_type: z.ZodEnum<{
|
|
106
|
+
readonly POINT_TO_POINT: "POINT_TO_POINT";
|
|
107
|
+
readonly INTERNET: "INTERNET";
|
|
108
|
+
}>;
|
|
109
|
+
speed: z.ZodNumber;
|
|
110
|
+
contract_period_count: z.ZodNumber;
|
|
111
|
+
contract_period_unit: z.ZodEnum<{
|
|
112
|
+
readonly DAILY: "DAILY";
|
|
113
|
+
readonly WEEKLY: "WEEKLY";
|
|
114
|
+
readonly MONTHLY: "MONTHLY";
|
|
115
|
+
readonly SEMIANNUALLY: "SEMIANNUALLY";
|
|
116
|
+
readonly ANNUALLY: "ANNUALLY";
|
|
117
|
+
}>;
|
|
118
|
+
created_at: z.ZodString;
|
|
119
|
+
tender_sec: z.ZodNumber;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
src_point: z.ZodObject<{
|
|
122
|
+
uuid: z.ZodUUID;
|
|
123
|
+
coordinate: z.ZodObject<{
|
|
124
|
+
lat: z.ZodNumber;
|
|
125
|
+
lng: z.ZodNumber;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
dest_point: z.ZodObject<{
|
|
129
|
+
uuid: z.ZodUUID;
|
|
130
|
+
coordinate: z.ZodObject<{
|
|
131
|
+
lat: z.ZodNumber;
|
|
132
|
+
lng: z.ZodNumber;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
service_type: z.ZodEnum<{
|
|
136
|
+
readonly POINT_TO_POINT: "POINT_TO_POINT";
|
|
137
|
+
readonly INTERNET: "INTERNET";
|
|
138
|
+
}>;
|
|
139
|
+
speed: z.ZodNumber;
|
|
140
|
+
contract_period_count: z.ZodNumber;
|
|
141
|
+
contract_period_unit: z.ZodEnum<{
|
|
142
|
+
readonly DAILY: "DAILY";
|
|
143
|
+
readonly WEEKLY: "WEEKLY";
|
|
144
|
+
readonly MONTHLY: "MONTHLY";
|
|
145
|
+
readonly SEMIANNUALLY: "SEMIANNUALLY";
|
|
146
|
+
readonly ANNUALLY: "ANNUALLY";
|
|
147
|
+
}>;
|
|
148
|
+
created_at: z.ZodString;
|
|
149
|
+
tender_sec: z.ZodNumber;
|
|
150
|
+
}, z.core.$strip>]>;
|
|
90
151
|
export type SearchRequestPayload = z.infer<typeof searchRequestPayloadSchema>;
|
|
91
152
|
export declare const DIDCommQuoteMessageSchema: z.ZodObject<{
|
|
92
153
|
rfq_uuid: z.ZodUUID;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DecryptedDidCommMessageBodySchema = exports.DecryptedMessageListResultSchema = exports.DecryptedMessageResultSchema = exports.JWESchema = exports.RecipientSchema = exports.RecipientHeaderSchema = exports.EphemeralPublicKeySchema = exports.ResultSchema = exports.IVerifyResultSchema = exports.IErrorSchema = exports.CreateSearchVcSchema = exports.VerifiableCredentialSchema = exports.proofTypeSchema = exports.eip712ProofTypeSchema = exports.jwtProofTypeSchema = exports.unsignedCredentialSchema = exports.credentialStatusReferenceSchema = exports.contextTypeSchema = exports.credentialSubjectSchema = exports.issuerTypeSchema = exports.networksSchema = exports.configJsonSchema = exports.supportedNetworkEnumSchema = exports.supportedNetworks = exports.jwtSchema = exports.DIDCommQuoteMessageSchema = exports.searchRequestPayloadSchema = exports.searchRequestPointSchema = exports.gisPointSchema = exports.postMessagePayloadSchema = exports.postMessageSchema = exports.zOnChainState = void 0;
|
|
3
|
+
exports.DecryptedDidCommMessageBodySchema = exports.DecryptedMessageListResultSchema = exports.DecryptedMessageResultSchema = exports.JWESchema = exports.RecipientSchema = exports.RecipientHeaderSchema = exports.EphemeralPublicKeySchema = exports.ResultSchema = exports.IVerifyResultSchema = exports.IErrorSchema = exports.CreateSearchVcSchema = exports.VerifiableCredentialSchema = exports.proofTypeSchema = exports.eip712ProofTypeSchema = exports.jwtProofTypeSchema = exports.unsignedCredentialSchema = exports.credentialStatusReferenceSchema = exports.contextTypeSchema = exports.credentialSubjectSchema = exports.issuerTypeSchema = exports.networksSchema = exports.configJsonSchema = exports.supportedNetworkEnumSchema = exports.supportedNetworks = exports.jwtSchema = exports.DIDCommQuoteMessageSchema = exports.searchRequestWithoutRfqUuidSchema = exports.searchRequestPayloadSchema = exports.searchRequestPointSchema = exports.gisPointSchema = exports.postMessagePayloadSchema = exports.postMessageSchema = exports.zOnChainState = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const televerse_shared_schema_1 = require("televerse-shared-schema");
|
|
6
6
|
exports.zOnChainState = zod_1.z.object({
|
|
@@ -45,6 +45,11 @@ const networkRequestSchema = zod_1.z.object({
|
|
|
45
45
|
// TODO: Determine type schema for each serviceType
|
|
46
46
|
// This is just an prototype for implementation
|
|
47
47
|
exports.searchRequestPayloadSchema = point2PointRequestSchema.or(networkRequestSchema);
|
|
48
|
+
// Note: This is used inside SNAP that will generate 'rfq_uuid'after receiving this
|
|
49
|
+
const omitFields = { rfq_uuid: true };
|
|
50
|
+
exports.searchRequestWithoutRfqUuidSchema = point2PointRequestSchema
|
|
51
|
+
.omit(omitFields)
|
|
52
|
+
.or(networkRequestSchema.omit(omitFields));
|
|
48
53
|
exports.DIDCommQuoteMessageSchema = zod_1.z.object({
|
|
49
54
|
rfq_uuid: zod_1.z.uuid(),
|
|
50
55
|
quote_uuid: zod_1.z.uuid(),
|